.stationery,
.stationery-shop {
  --evergreen: #163e34;
  --spruce: #244f43;
  --ink: #253d34;
  --muted: #4e605a;
  --paper: #f3f7f5;
  --stock: #fffefa;
  --ribbon: #812e3f;
  --gold: #a6874d;
  --rule: #c6d2ca;
  --heading: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper-fibers: repeating-linear-gradient(96deg, transparent 0 6px, #79532d05 6px 7px);
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  margin: 0;
  font: 17px/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}
.stationery *, .stationery-shop * { box-sizing: border-box; }
.stationery a, .stationery-shop a { color: inherit; text-underline-offset: .19em; }
.stationery a:focus-visible, .stationery-shop a:focus-visible {
  outline: 3px solid #b95338;
  outline-offset: 4px;
}
.postal-mast, .postal-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1.65rem;
  padding: .75rem max(5vw, calc((100vw - 1140px) / 2));
}
.postal-mast {
  position: relative;
  justify-content: space-between;
  padding-top: 1.1rem;
  background: #12342e;
  color: #fff8e8;
  border-bottom: 1px solid #8a865e;
}
.postal-mast::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 2px 3px at 13px 5px, #ffe8a9 85%, transparent),
    radial-gradient(ellipse 2px 3px at 49px 5px, #ea9c83 85%, transparent),
    radial-gradient(ellipse 2px 3px at 85px 5px, #cbdac0 85%, transparent),
    linear-gradient(#a7976590, #a7976590) left 2px / 100% 1px no-repeat;
  background-size: 108px 10px, 108px 10px, 108px 10px, 100% 1px;
}
.postal-mast .postal-wordmark, .postal-foot .postal-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: inherit;
  text-decoration: none;
  font: 700 clamp(1.25rem, 2.5vw, 1.8rem)/1.12 var(--heading);
  letter-spacing: -.045em;
}
.postal-wordmark::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 1.27em;
  height: .88em;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(36deg, transparent 48%, currentColor 49% 52%, transparent 53%) top left / 51% 65% no-repeat,
    linear-gradient(-36deg, transparent 48%, currentColor 49% 52%, transparent 53%) top right / 51% 65% no-repeat;
}
.postal-mast nav, .postal-foot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(.8rem, 2vw, 1.75rem);
}
.postal-mast nav a, .postal-foot nav a, .postal-foot > a:not(.postal-wordmark) {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: inherit;
  font: 650 .87rem/1.3 var(--sans);
  text-decoration: none;
}
.postal-mast nav a:hover, .postal-mast a[aria-current="page"],
.postal-foot a:hover { text-decoration: underline; }
.postal-foot {
  position: relative;
  isolation: isolate;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  gap: .25rem 1.4rem;
  min-height: clamp(194px, 26vw, 440px);
  padding: clamp(22px, 3vw, 46px) 5% 0;
  background: #102540;
  color: #fff8e8;
  border-top: 3px double #b7a373;
}
.postal-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/winter-footer.webp") center bottom / 100% auto no-repeat;
  mask-image: linear-gradient(to top, black 65%, transparent);
}
.postal-foot:has(nav) {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
}
.postal-foot nav { justify-content: center; }
.postal-foot .footer-brand {
  color: inherit;
  font: 700 clamp(1.25rem, 2.5vw, 1.8rem)/1.12 var(--heading);
}
.guide-main {
  max-width: 1140px;
  width: 90%;
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
}
.guide-cover, .stationery-shop .price-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  align-items: center;
  gap: 2.25rem;
  margin-inline: calc(50% - 50vw);
  padding: clamp(1.75rem, 3.6vw, 3.8rem) max(5vw, calc((100vw - 1140px) / 2));
  color: #fff8ec;
  background: #183e35;
  border-bottom: 3px double #b7a373;
}
.guide-cover h1, .policy-sheet h1, .stationery-shop .price-intro h1 {
  font: 600 clamp(2.65rem, 4.9vw, 4.7rem)/1.02 var(--heading);
  letter-spacing: -.055em;
  color: var(--evergreen);
  margin: 0;
  text-wrap: balance;
}
.guide-cover .summary {
  max-width: 40rem;
  margin: 1.15rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.62;
}
/* The house fills the outer edge; the question, answer and CTA sit on pine. */
.cover-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 53%;
  background: #183e35 url("/winter-header.webp") center 48% / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, black 23%);
}
.cover-art img { display: none; }
.guide-cover h1, .stationery-shop .price-intro h1 { color: #fff8e9; }
.stationery .guide-cover a.other-link { color: #f3d69b; }
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  margin-top: 1.15rem;
}
.stationery a.create-link, .stationery a.primary, .stationery-shop .price-cover .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1.2rem;
  background: var(--ribbon);
  color: #fff9e9;
  border: 1px solid #75242a;
  border-radius: 4px;
  font: 700 .95rem/1.4 var(--sans);
  text-decoration: none;
}
.stationery a.create-link:hover, .stationery a.primary:hover, .stationery-shop .price-cover .primary:hover {
  background: #76242b;
}
.stationery a.other-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ribbon);
  font-weight: 700;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 45rem);
  justify-content: space-between;
  align-items: start;
  gap: clamp(2rem, 6vw, 7rem);
  margin-top: clamp(2rem, 4vw, 3.7rem);
}
.question-nav {
  position: sticky;
  top: 1.5rem;
  display: grid;
  padding: .9rem 1.1rem;
  background: #742b36;
  color: #fff8ed;
  border-block: 3px double #d4b992;
}
.question-nav strong {
  font: 700 1.15rem/1.3 var(--heading);
  color: #ffedcd;
  margin: .3rem 0 .5rem;
}
.question-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .4rem 0;
  border-top: 1px solid #dba48e80;
  font-size: .92rem;
  line-height: 1.35;
}
.answers section, .policy-sheet section, .stationery-shop .price-section {
  padding: clamp(1.4rem, 3.2vw, 2.5rem) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
.answers section:first-child { padding-top: 0; border-top: none; }
.answers h2, .policy-sheet h2, .stationery-shop .price-section h2 {
  color: var(--evergreen);
  font: 600 clamp(1.6rem, 2.65vw, 2.35rem)/1.13 var(--heading);
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.answers p, .policy-sheet p { margin: .75rem 0 0; }
.answers strong { color: var(--evergreen); }
.answers ol { margin: 1rem 0; padding-left: 1.6rem; }
.answers li { padding: .35rem 0 .35rem .22rem; }
.answers li::marker { color: var(--ribbon); font-weight: 750; }
.answers blockquote {
  position: relative;
  margin: 1.15rem 0;
  padding: 1.55rem clamp(1rem, 3vw, 2rem) 1.3rem;
  background:
    repeating-linear-gradient(120deg, #943638 0 8px, #fcf7e8 8px 17px, #497064 17px 25px, #fcf7e8 25px 34px) left top / 100% 5px no-repeat,
    var(--paper-fibers), var(--stock);
  border: 1px solid var(--rule);
  box-shadow: 1px 2px 3px #51381b1a;
  color: var(--spruce);
  font: italic 1.22rem/1.52 var(--heading);
}
.answers blockquote p { margin: 0; }
.answers .letter-plan {
  counter-reset: door;
  list-style: none;
  display: grid;
  margin: 1.25rem 0 0;
  padding: 0;
}
.letter-plan li {
  counter-increment: door;
  position: relative;
  padding: .85rem 0 .85rem 2.9rem;
  border-top: 1px dashed var(--rule);
}
.letter-plan li::before {
  content: counter(door);
  position: absolute;
  left: 0;
  top: .83rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.9rem;
  color: var(--ribbon);
  border: 2px dotted var(--gold);
  background: var(--stock);
  font: 700 1.18rem/1 var(--heading);
}
.link-roles {
  display: grid;
  grid-template-columns: minmax(7rem, .35fr) minmax(0, 1fr);
  gap: 0 1rem;
  margin: 1rem 0 0;
}
.link-roles dt, .link-roles dd { margin: 0; padding: .75rem 0; border-top: 1px dashed var(--rule); }
.link-roles dt { font-weight: 720; color: var(--ribbon); }
.policy-sheet {
  width: min(90%, 50rem);
  margin: clamp(1.5rem, 4vw, 4rem) auto;
  background: var(--paper-fibers), var(--stock);
  border: 1px solid var(--rule);
  border-top: 4px double var(--ribbon);
  box-shadow: 1px 3px 4px #51381b1a;
  padding: clamp(1.2rem, 5vw, 4rem);
}
.policy-sheet h1 { font-size: clamp(2.5rem, 4.5vw, 3.8rem); }
.policy-sheet > h1 + p { color: var(--muted); margin-bottom: 1.45rem; }
.policy-sheet .kicker { margin: 0 0 .65rem; color: var(--ribbon); font-weight: 700; }
.policy-sheet section { padding: 1.4rem 0; }
.policy-sheet h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.policy-sheet [id="refunds"] {
  border-left: 3px solid var(--ribbon);
  padding-left: 1rem;
}
.policy-sheet .primary { margin-top: 1rem; }
.stationery-shop .shell { max-width: none; width: 100%; margin: 0; padding: 0; }
.stationery-shop .prices { width: min(90%, 1140px); margin: 0 auto; padding: 0 0 3rem; }
.stationery-shop .price-intro { padding: 0; }
.stationery-shop .price-intro .letterhead { color: #f3d69b; }
.stationery-shop .price-intro .intro { color: #fff8ec; }
.stationery-shop .price-section { border-top: 3px double #b48b8c; }
.stationery-shop .price-section > p { color: var(--muted); }
.stationery-shop .price-section:has(#book-prices) {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(5vw, calc((100vw - 1140px) / 2));
  background: #742b36;
}
.stationery-shop .price-section:has(#book-prices) > h2 { color: #fff6e1; }
.stationery-shop .price-section:has(#book-prices) > p { color: #faeee3; }
.stationery-shop .price-card, .stationery-shop .book-price, .stationery-shop .pack-card {
  border-color: var(--rule);
  border-radius: 3px;
  background: var(--paper-fibers), var(--stock);
  box-shadow: 1px 2px 3px #51381b1a;
}
.stationery-shop #store-state {
  margin: 1rem 0;
  padding: .72rem 1rem;
  border-inline-start: 3px solid var(--ribbon);
  background: #e9efeb;
  color: var(--evergreen);
  font-size: .95rem;
  line-height: 1.45;
}
.stationery-shop .free-inclusions {
  max-width: 50rem;
  padding-inline-start: 1.25rem;
  margin: 0;
}
.stationery-shop .free-inclusions li { margin-block: .45rem; }
.stationery-shop .free-inclusions li::marker { color: var(--ribbon); }
.stationery-shop .pack-example { font-size: .93rem; margin-block: 1rem 0; }
.stationery-shop .payment-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.stationery-shop .payment-links a { display: inline-flex; align-items: center; min-height: 44px; }
.stationery-shop .price-tag { color: var(--ribbon); }
.stationery-shop .postal-mast { max-width: none; width: 100%; }
.stationery-shop .postal-foot { color: #fff8e8; }
@media (min-width: 781px) {
  .policy-page .postal-mast::after {
    content: "";
    position: absolute;
    inset: 8px auto 0 50%;
    width: 8.5rem;
    transform: translateX(-50%);
    pointer-events: none;
    background: url("/winter-header.webp") center 44% / cover;
    mask-image: linear-gradient(90deg, transparent, black 23% 77%, transparent);
  }
}
@media (max-width: 780px) {
  .guide-cover, .stationery-shop .price-cover { gap: 1.6rem; }
  .guide-layout { display: block; }
  .question-nav { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .9rem; margin-bottom: 1.8rem; padding: .55rem .9rem; }
  .question-nav strong { width: 100%; }
  .question-nav a { border: none; min-height: 38px; }
}
@media (max-width: 640px) {
  .guide-cover, .stationery-shop .price-cover {
    grid-template-columns: 1fr;
    gap: .8rem;
    padding: 1.65rem 5vw 0;
  }
  .cover-art {
    position: static;
    width: auto;
    height: clamp(132px, 40vw, 220px);
    margin-inline: -5vw;
    background-position: center 18%;
    mask-image: linear-gradient(to bottom, transparent, black 22%);
  }
  .guide-cover h1, .stationery-shop .price-intro h1 { font-size: clamp(2.45rem, 10vw, 3.65rem); }
  .postal-mast { column-gap: .7rem; padding: .8rem 5% .35rem; }
  .postal-foot { column-gap: .75rem; }
  .postal-mast nav a { min-height: 37px; }
  .postal-mast nav { gap: .7rem; }
  .postal-wordmark::before { width: 1.1em; }
  .guide-layout { margin-top: 1.3rem; }
}
@media (max-width: 420px) {
  .link-roles { display: block; }
  .link-roles dt { padding: .65rem 0 0; }
  .link-roles dd { border-top: none; padding: 0 0 .65rem; }
}

/* Reading a guide should feel like opening the post beside the calendar. */
.stationery, .stationery-shop {
  --paper: #f7f1e3;
  --stock: #fff7e6;
  --ink: #2e4033;
  --muted: #565a4c;
  --rule: #cbbd9f;
  background: var(--paper-fibers), var(--paper);
}
.guide-cover, .stationery-shop .price-cover { border-bottom: 2px dashed #bfa77b; }
.question-nav {
  padding: 1.35rem 1.25rem 1.8rem;
  color: #533a2d;
  background:
    linear-gradient(90deg, transparent 11px, #993e371f 11px 12px, transparent 12px),
    var(--paper-fibers), #eddec1;
  border: none;
  border-top: 4px solid #973e35;
  box-shadow: 2px 4px 0 #c7b09135;
}
.question-nav strong { color: #773d32; }
.question-nav a { border-top-color: #c7b692; min-height: 44px; }
.answers section, .policy-sheet section { border-top-style: dashed; }
.answers section:first-child { border: 0; }
.answers blockquote { border: none; border-bottom: 1px solid #d3bf9a; }
.guide-snapshot {
  margin: 1.35rem auto;
  width: min(100%, 30rem);
  padding: 1rem 0;
  border-block: 1px dashed var(--rule);
  text-align: center;
}
.guide-snapshot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 30rem;
  margin: 0 auto;
  box-shadow: 1px 2px 6px #61442224;
}
.guide-snapshot figcaption {
  color: #5d513e;
  font: italic 1rem/1.45 var(--heading);
  margin: .65rem 0 0;
}
.policy-sheet {
  box-shadow: none;
  border-width: 0;
  border-top: 4px solid #853e36;
}
.stationery-shop .price-section { border-top: 1px dashed #bdae90; }
.stationery-shop .price-section:has(#book-prices) {
  background:
    linear-gradient(90deg, #56232afc, #662830ee 49%, #622d35bb 76%, #442c3299),
    #66303a url("/christmas-writing-table.webp") center 62% / cover;
}
.stationery-shop .pack-example { margin-top: .8rem; }
.stationery-shop #store-state { background: #e8e5d4; }
@media (min-width: 781px) {
  .question-nav::after {
    content: "";
    position: absolute;
    left: 1.3rem;
    bottom: -28px;
    width: 24px;
    height: 36px;
    background: #8c3c37;
    clip-path: polygon(0 0,100% 0,100% 100%,50% 76%,0 100%);
  }
}
@media (max-width: 780px) {
  .question-nav { padding: .9rem 1rem; }
  .question-nav a { min-height: 44px; }
  .guide-snapshot { width: 100%; }
}

.related-guides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.35rem;
  margin-top: 1.5rem;
  padding-block: .85rem;
  border-block: 1px dashed var(--rule);
}
.related-guides a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.35;
  color: var(--spruce);
}
.answers .illustrated-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem 2rem;
  padding-left: 1.35rem;
}
.illustrated-steps h3 {
  margin: 0;
  color: var(--evergreen);
  font: 650 1.25rem/1.25 var(--heading);
}
.illustrated-steps .guide-snapshot { margin: .8rem 0 0; border: 0; padding: 0; }
.illustrated-steps .guide-snapshot img { max-height: 18rem; }
.code-entry { max-width: 30rem; margin-top: 1.2rem; }
.code-entry label { display: block; font-weight: 700; }
.code-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.code-controls input, .code-controls button {
  box-sizing: border-box;
  min-height: 46px;
  border-radius: 4px;
  padding: .55rem .8rem;
  font: inherit;
}
.code-controls input {
  flex: 1 1 12rem;
  min-width: 0;
  width: 100%;
  background: var(--stock);
  color: var(--ink);
  border: 1px solid var(--rule);
  letter-spacing: .06em;
}
.code-controls button {
  cursor: pointer;
  background: var(--ribbon);
  color: #fff8ec;
  border: 1px solid #702635;
  font-weight: 700;
}
.code-entry p { margin: .45rem 0 0; font-size: .92rem; line-height: 1.4; }
.code-entry [role="status"]:empty { display: none; }
.code-entry [role="status"]:not(:empty) { color: #ffe0b6; font-weight: 700; }
.code-controls :focus-visible { outline: 3px solid #f5d88b; outline-offset: 2px; }
@media (max-width: 640px) {
  .answers .illustrated-steps { grid-template-columns: 1fr; }
}
