/* Newsletter — a letter arriving (rebuilt 2026-09-29).
   The signup is a stamped, postmarked letter beside the page's painting. "What's inside" is an
   opened envelope with the six things every issue carries laid out beneath it — a calendar
   page, a deadline tag, a library book, a pinned story, an index card and a ticket — each
   sliding out of the envelope as you reach it. The fine print is a P.S.
   Everything is scoped to body.p-newsletter. */

.p-newsletter main { overflow-x: clip; }

/* ---------- opening: words, painting, and the letter ---------- */
.p-newsletter .nl-open-grid { display: grid; gap: 22px; align-items: start; }
.p-newsletter .nl-open h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; max-width: 11em; }
.p-newsletter .nl-open .lede { font-size: clamp(18.5px, 1.6vw, 21px); color: var(--navy); max-width: 26em; margin-top: 14px; }
.p-newsletter main > .nl-open .nl-open-art { margin: 0; align-self: start; }
.p-newsletter main > .nl-open .nl-open-art seasonal-artwork { max-width: 620px; margin: 0; }
@media (min-width: 940px) {
  .p-newsletter .nl-open-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "words card" "art card"; column-gap: clamp(32px, 5vw, 72px); row-gap: 10px; }
  .p-newsletter .nl-open-words { grid-area: words; align-self: end; }
  .p-newsletter main > .nl-open .nl-open-art { grid-area: art; margin: 0 0 -60px; position: relative; z-index: 1; }
  .p-newsletter .nl-card { grid-area: card; align-self: center; }
}
@media (max-width: 939px) { .p-newsletter main > .nl-open .nl-open-art seasonal-artwork { margin: 0 auto; } }
.p-newsletter .nl-open-read { margin-top: 20px; }

/* the letter */
.p-newsletter .nl-card { position: relative; isolation: isolate; width: auto; margin: 26px 0 0; border: 0; background: none; border-radius: 8px; text-align: left;
  padding: 34px 22px 26px; box-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 34px 54px -30px rgba(60, 40, 10, .6); }
.p-newsletter .nl-card::after { content: ""; position: absolute; inset: 0; border-radius: 8px; z-index: -1; background:
  linear-gradient(90deg, var(--brick) 0 10px, var(--paper) 10px 16px, var(--blue-ink) 16px 26px, var(--paper) 26px 32px) 0 0 / 32px 7px repeat-x,
  linear-gradient(90deg, var(--brick) 0 10px, var(--paper) 10px 16px, var(--blue-ink) 16px 26px, var(--paper) 26px 32px) 0 100% / 32px 7px repeat-x, #fffdf7; }
.p-newsletter .nl-card::before { /* the envelope it came out of, peeking behind */ content: ""; position: absolute; inset: 14px -8px -10px 10px; border-radius: 8px; z-index: -2; background: #ecdcb4; rotate: -2deg; }
.p-newsletter .nl-card h2 { margin: 0; font-size: clamp(30px, 3vw, 38px); padding-right: 170px; }
.p-newsletter .nl-card-sub { margin: 6px 0 0; font-size: 18px; color: var(--text); padding-right: 124px; }
.p-newsletter .nl-card .form-trust-row { justify-content: flex-start; margin: 16px 0 18px; font-size: 15.5px; color: var(--sage-ink); gap: 10px 14px; }
.p-newsletter .nl-card .form { gap: 16px; }
.p-newsletter .nl-card .form label { font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.p-newsletter .nl-card .form input { background: var(--paper); min-height: 50px; }
.p-newsletter .nl-card .btn[type="submit"] { width: 100%; min-height: 56px; font-size: 19px; }
.p-newsletter .nl-card .form-status { font-size: 16px; }
.p-newsletter .nl-card .form-status.ok { color: #2f6b4f; }
.p-newsletter .nl-stamp { position: absolute; top: 18px; right: 18px; width: 70px; height: 82px; padding: 7px; background: #fffdf6; rotate: 6deg; display: grid; place-items: center; z-index: 1;
  filter: drop-shadow(0 3px 3px rgba(60, 40, 10, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.5px, transparent 95%, #000) -5px -5px / 10px 10px padding-box; -webkit-mask-composite: source-over;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.5px, transparent 95%, #000) -5px -5px / 10px 10px padding-box; mask-composite: add; }
.p-newsletter .nl-stamp img { width: 100%; height: 100%; object-fit: contain; background: var(--gold-soft); border-radius: 2px; padding: 4px; }
.p-newsletter .nl-postmark { position: absolute; top: 6px; right: 46px; width: 86px; height: 86px; color: rgba(29, 44, 76, .5); rotate: -14deg; z-index: 2; pointer-events: none; }
@media (min-width: 560px) { .p-newsletter .nl-card { padding: 40px 38px 32px; } }

/* ---------- what's inside: the opened envelope and its six contents ---------- */
.p-newsletter .nl-inside { background: var(--paper); padding-block: clamp(80px, 10vw, 140px) clamp(56px, 8vw, 100px); }
.p-newsletter .nl-inside-head { text-align: center; margin: 0 auto 8px; max-width: 30em; }
.p-newsletter .nl-inside-head .eyebrow { transform-origin: center bottom; }
.p-newsletter .nl-inside-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.p-newsletter .nl-envelope { position: relative; width: min(100%, 560px); height: 96px; margin: 64px auto 0; perspective: 900px; }
.p-newsletter .nl-pocket { position: absolute; inset: 0; border-radius: 0 0 14px 14px; background: #ecdcb4;
  box-shadow: inset 0 -12px 20px -14px rgba(122, 91, 19, .35), 0 20px 30px -22px rgba(60, 40, 10, .5); }
.p-newsletter .nl-pocket::before { /* the pocket's folded side seams */ content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to top right, transparent 49.4%, rgba(122, 91, 19, .22) 50%, transparent 50.8%) left / 50% 100% no-repeat,
              linear-gradient(to top left, transparent 49.4%, rgba(122, 91, 19, .22) 50%, transparent 50.8%) right / 50% 100% no-repeat; }
.p-newsletter .nl-pocket::after { /* airmail edge along the bottom */ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; border-radius: 0 0 14px 14px;
  background: repeating-linear-gradient(90deg, var(--brick) 0 14px, #ecdcb4 14px 20px, var(--blue-ink) 20px 34px, #ecdcb4 34px 40px); }
.p-newsletter .nl-flap { position: absolute; left: 0; right: 0; bottom: 100%; height: 70px; background: #e3cf9f; clip-path: polygon(0 100%, 50% 0, 100% 100%); transform-origin: 50% 100%; }
.p-newsletter .nl-contents { list-style: none; margin: -40px 0 0; padding: 0; display: grid; gap: 22px; position: relative; z-index: 1; grid-template-columns: 1fr; }
@media (min-width: 640px) { .p-newsletter .nl-contents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .p-newsletter .nl-contents { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; } }

.p-newsletter .nl-item { --bg: #fffdf7; --tilt: 0deg; position: relative; margin: 0; padding: 58px 24px 24px; border: 0; border-radius: 8px; background: var(--bg); rotate: var(--tilt);
  box-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 22px 34px -22px rgba(60, 40, 10, .55); overflow: visible; }
.p-newsletter .nl-item h3 { margin: 0; font-size: 22px; line-height: 1.2; color: var(--navy); }
.p-newsletter .nl-item p { margin: 8px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--text); }
.p-newsletter .nl-no { position: absolute; top: 14px; left: 20px; min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 600 16px/1 var(--f-display); color: var(--navy); background: var(--paper); box-shadow: inset 0 0 0 2px var(--navy); z-index: 1; }
.p-newsletter .nl-deco { position: absolute; pointer-events: none; }
.p-newsletter .nl-contents > li:nth-child(1) { --tilt: -1.2deg; }
.p-newsletter .nl-contents > li:nth-child(2) { --tilt: 1deg; }
.p-newsletter .nl-contents > li:nth-child(3) { --tilt: -.6deg; }
.p-newsletter .nl-contents > li:nth-child(4) { --tilt: 1.4deg; }
.p-newsletter .nl-contents > li:nth-child(5) { --tilt: -1deg; }
.p-newsletter .nl-contents > li:nth-child(6) { --tilt: .8deg; }

/* 1 a calendar page: a navy header with binding rings */
.p-newsletter .nl-item--calendar { padding-top: 70px; }
.p-newsletter .nl-item--calendar .nl-deco { left: 0; right: 0; top: 0; height: 46px; border-radius: 8px 8px 0 0; background: var(--navy);
  box-shadow: inset 0 -4px 0 var(--gold); }
.p-newsletter .nl-item--calendar .nl-deco::before { content: ""; position: absolute; left: 18%; right: 18%; top: -9px; height: 20px;
  background: radial-gradient(circle 5px at 50% 50%, var(--gold) 90%, transparent 100%) 0 0 / 25% 100% space; }
.p-newsletter .nl-item--calendar .nl-no { top: 7px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--gold); }
/* 2 a deadline tag with its eyelet and string */
.p-newsletter .nl-item--tag { --bg: var(--brick-soft); border-radius: 8px 36px 8px 8px; }
/* a brass eyelet with a twine loop (Oct 1, 2026: the straight string ran past the rounded corner) */
.p-newsletter .nl-item--tag .nl-deco { top: -4px; right: 10px; width: 64px; height: 48px; background: url(/images/newsletter/tag-loop.svg) no-repeat 0 0 / 64px 48px; }
.p-newsletter .nl-item--tag h3 { color: var(--brick-ink, #8f4424); }
/* 3 a library book with a spine and ribbon */
.p-newsletter .nl-item--book { padding-left: 42px; border-radius: 6px 16px 16px 6px; }
.p-newsletter .nl-item--book .nl-deco { left: 0; top: 0; bottom: 0; width: 18px; border-radius: 6px 0 0 6px; background: var(--sage); box-shadow: inset -3px 0 0 rgba(0, 0, 0, .14); }
.p-newsletter .nl-item--book .nl-deco::after { content: ""; position: absolute; left: calc(100% + 1px); top: 0; width: 12px; height: 0; }
.p-newsletter .nl-item--book::after { content: ""; position: absolute; top: -1px; right: 22px; width: 13px; height: 34px; background: var(--brick); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.p-newsletter .nl-item--book .nl-no { left: 36px; }
/* 4 a story note, pinned */
.p-newsletter .nl-item--note { --bg: #fbf0cf; border-radius: 4px; }
.p-newsletter .nl-item--note .nl-deco { top: -11px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--brick) 32% 100%); box-shadow: 0 5px 6px -2px rgba(0, 0, 0, .35); }
.p-newsletter .nl-item--note::after { content: "\2665"; position: absolute; right: 22px; top: 14px; font-size: 26px; line-height: 1; color: var(--brick); rotate: 10deg; }
/* 5 an index card with ruled lines */
.p-newsletter .nl-item--index { background: linear-gradient(180deg, transparent 94px, rgba(169, 84, 47, .45) 94px 96px, transparent 96px), linear-gradient(180deg, #fffdf7 0 96px, transparent 96px), repeating-linear-gradient(180deg, transparent 0 27px, rgba(143, 165, 198, .32) 27px 28px) 0 0 / 100% 28px, #fffdf7; }
.p-newsletter .nl-item--index p { margin-top: 12px; }
.p-newsletter .nl-item--index::after { content: "?"; position: absolute; right: 22px; top: 6px; font: 400 40px/1 var(--f-hand); color: var(--blue-ink); rotate: 8deg; }
.p-newsletter .nl-item--index p { line-height: 28px; }
/* 6 a ticket with notched sides and a tear line */
.p-newsletter .nl-item--ticket { --bg: var(--blue-soft);
  -webkit-mask: radial-gradient(circle 13px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 13px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  box-shadow: none; filter: drop-shadow(0 14px 14px rgba(60, 40, 10, .18)); }
.p-newsletter .nl-item--ticket .nl-deco { top: 12px; bottom: 12px; right: 58px; border-left: 2px dashed rgba(60, 83, 120, .4); }
.p-newsletter .nl-item--ticket { padding-right: 76px; }
.p-newsletter .nl-item--ticket::after { content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 2px solid var(--blue-ink); background: radial-gradient(circle, var(--blue-ink) 30%, transparent 34%); opacity: .6; }

/* ---------- past issues: the newest one opened on the desk, a print of its top taped on ----------
   Older issues sit under it as smaller letters (.nl-past-list), newest first. */
.p-newsletter .nl-past { background: var(--sand); padding-block: clamp(64px, 8vw, 110px); }
.p-newsletter .nl-past-head { text-align: center; margin: 0 auto clamp(34px, 4.5vw, 56px); max-width: 30em; }
.p-newsletter .nl-past-head .eyebrow { transform-origin: center bottom; }
.p-newsletter .nl-past-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.p-newsletter .nl-past-card, .p-newsletter .nl-past-item { position: relative; isolation: isolate; border-radius: 8px; box-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 34px 54px -30px rgba(60, 40, 10, .6); }
.p-newsletter .nl-past-card::after, .p-newsletter .nl-past-item::after { /* airmail edges, like the sign-up letter */ content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background:
  linear-gradient(90deg, var(--brick) 0 10px, var(--paper) 10px 16px, var(--blue-ink) 16px 26px, var(--paper) 26px 32px) 0 0 / 32px 7px repeat-x,
  linear-gradient(90deg, var(--brick) 0 10px, var(--paper) 10px 16px, var(--blue-ink) 16px 26px, var(--paper) 26px 32px) 0 100% / 32px 7px repeat-x, #fffdf7; }
.p-newsletter .nl-past-card { display: grid; gap: 30px; max-width: 1040px; margin: 0 auto; padding: 38px 20px 32px; }
.p-newsletter .nl-past-card::before { /* the envelope it came in, under it */ content: ""; position: absolute; inset: 16px -8px -12px 12px; border-radius: 8px; z-index: -2; background: #ecdcb4; rotate: 1.2deg; }
@media (min-width: 820px) {
  .p-newsletter .nl-past-card { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; column-gap: clamp(36px, 5vw, 64px); padding: 48px clamp(34px, 4vw, 54px) 44px; }
}

/* the print of the issue's top, taped at two corners */
.p-newsletter .nl-past-print { position: relative; margin: 6px 8px 0; padding: 9px; background: #fff; rotate: -1.6deg; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .14), 0 20px 28px -18px rgba(60, 40, 10, .55); }
.p-newsletter .nl-past-print img { display: block; width: 100%; height: auto; }
.p-newsletter .nl-tape { position: absolute; top: 2px; z-index: 1; width: 92px; height: 26px; background: rgba(233, 214, 160, .82); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.p-newsletter .nl-tape--l { left: -28px; rotate: -38deg; }
.p-newsletter .nl-tape--r { right: -28px; rotate: 36deg; }

/* what's in it */
.p-newsletter .nl-past-when { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 800 13px/1.2 var(--f-body); letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); }
.p-newsletter .nl-past-when::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); }
.p-newsletter .nl-past-words h3 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--navy); }
.p-newsletter .nl-past-words > p:not(.nl-past-when) { margin: 12px 0 24px; max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--text); }
@media (max-width: 819px) { .p-newsletter .nl-past-words { padding: 0 4px; } .p-newsletter .nl-tape { width: 78px; } .p-newsletter .nl-tape--l { left: -18px; } .p-newsletter .nl-tape--r { right: -18px; } }

/* older issues, as smaller letters under the newest */
.p-newsletter .nl-past-list { list-style: none; max-width: 1040px; margin: clamp(34px, 4vw, 52px) auto 0; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.p-newsletter .nl-past-item { margin: 0; padding: 28px 22px 24px; rotate: -.8deg; }
.p-newsletter .nl-past-item:nth-child(even) { rotate: .7deg; }
.p-newsletter .nl-past-item h3 { margin: 0 0 16px; font-size: 21px; line-height: 1.2; color: var(--navy); }
.p-newsletter .nl-past-item .nl-past-when { font-size: 12px; }

/* ---------- P.S. fair questions ---------- */
.p-newsletter .nl-faq { background: var(--cream); padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 110px); }
.p-newsletter .nl-faq-grid { display: grid; gap: 18px; max-width: 1040px; }
.p-newsletter .nl-faq-head { display: flex; align-items: baseline; gap: 14px; }
.p-newsletter .nl-ps { font: 400 44px/1 var(--f-hand); color: var(--gold-ink); rotate: -6deg; }
.p-newsletter .nl-faq-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); }
.p-newsletter .nl-faq-list { display: grid; gap: 12px; }
.p-newsletter .nl-faq-list details.accordion { margin: 0; }
.p-newsletter .nl-faq a:not(.btn) { color: var(--navy); font-weight: 800; text-decoration: none; box-shadow: inset 0 -.32em 0 var(--gold-soft); overflow-wrap: anywhere; }
@media (min-width: 900px) { .p-newsletter .nl-faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; } .p-newsletter .nl-faq-head { flex-direction: column; gap: 6px; } }

/* ---------- meaningful movement ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the letter arrives: it slides in, then the postmark is stamped on it */
  @keyframes nl-arrive { from { opacity: 0; transform: translate(40px, -24px) rotate(6deg); } 70% { opacity: 1; transform: translate(0, 2px) rotate(-.6deg); } to { opacity: 1; transform: none; } }
  @keyframes nl-postmark { 0% { opacity: 0; transform: scale(1.8); } 60% { opacity: 1; transform: scale(.94); } 100% { opacity: 1; transform: none; } }
  .p-newsletter .nl-card { animation: nl-arrive .95s .2s var(--ease) both; }
  .p-newsletter .nl-postmark { animation: nl-postmark .5s 1.1s var(--spring) both; }
  .p-newsletter .nl-stamp { transition: rotate .5s var(--spring); }
  .p-newsletter .nl-card:hover .nl-stamp { rotate: -2deg; }
  .p-newsletter .nl-card:focus-within { box-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 44px 64px -30px rgba(60, 40, 10, .65); }
  .p-newsletter .nl-card { transition: box-shadow .45s var(--ease); }
  /* signed up: the letter gives a little hop, like a note dropped in the mailbox */
  @keyframes nl-sent { 30% { transform: translateY(-12px) rotate(-1deg); } 60% { transform: translateY(2px); } 100% { transform: none; } }
  .p-newsletter .nl-card:has(.form-status.ok) { animation: nl-sent .8s var(--ease); }

  /* the six contents come out of the envelope, one after another */
  @keyframes nl-pull { from { opacity: 0; transform: translateY(-60px) scale(.9); } 70% { opacity: 1; transform: translateY(4px) scale(1.01); } to { opacity: 1; transform: none; } }
  .p-newsletter .nl-item.osv-reveal { transform: translateY(-60px) scale(.9); }
  .p-newsletter .nl-item.osv-reveal.in { animation: nl-pull .8s var(--ease) both; transition: none; }
  .p-newsletter .nl-contents > li:nth-child(2).in { animation-delay: .1s; }
  .p-newsletter .nl-contents > li:nth-child(3).in { animation-delay: .2s; }
  .p-newsletter .nl-contents > li:nth-child(4).in { animation-delay: .3s; }
  .p-newsletter .nl-contents > li:nth-child(5).in { animation-delay: .4s; }
  .p-newsletter .nl-contents > li:nth-child(6).in { animation-delay: .5s; }
  .p-newsletter .nl-item { transition: translate .45s var(--spring), rotate .45s var(--spring); }
  .p-newsletter .nl-contents > li.nl-item:hover { translate: 0 -6px; rotate: 0deg; }
  .p-newsletter .nl-item--note:hover .nl-deco { animation: nl-wiggle .6s var(--ease); }
  /* the print straightens a little when you reach for the issue */
  .p-newsletter .nl-past-print { transition: rotate .45s var(--spring); }
  .p-newsletter .nl-past-card:hover .nl-past-print, .p-newsletter .nl-past-card:focus-within .nl-past-print { rotate: -.4deg; }
  @keyframes nl-wiggle { 30% { transform: rotate(-16deg); } 60% { transform: rotate(12deg); } }

  /* the flap opens as the envelope scrolls into view */
  @supports (animation-timeline: view()) {
    @keyframes nl-open-flap { from { transform: rotateX(180deg); } to { transform: none; } }
    .p-newsletter .nl-flap { animation: nl-open-flap linear both; animation-timeline: view(); animation-range: entry 40% cover 38%; }
  }
}
@media print { .p-newsletter .nl-envelope, .p-newsletter .nl-postmark { display: none; } .p-newsletter .nl-item, .p-newsletter .nl-past-print, .p-newsletter .nl-past-item { rotate: none; } }
@media (max-width: 559px) {
  .p-newsletter .nl-postmark { width: 68px; height: 68px; top: 10px; right: 60px; }
  .p-newsletter .nl-stamp { width: 58px; height: 68px; top: 14px; right: 14px; }
  .p-newsletter .nl-card h2 { padding-right: 116px; }
  .p-newsletter .nl-card-sub { padding-right: 0; margin-top: 18px; }
}
