/* The Very Serious Art Club: Airmail
   The page is a pale blue-white desk. The header is an airmail envelope, and
   everything below is what came out of it: lined and graph paper, postage
   stamps for the plans, a gift tag, sticky notes, a polaroid, and the back of
   the envelope to finish. */

:root {
  /* surfaces */
  --desk: #ECF0F5;           /* off-white with a blue undertone */
  --envelope: #FEFDF9;
  --sheet: #FFFDF8;
  --logo-paper: #FEFDF9;     /* background of the clay logo photo */

  /* ink */
  --ink: #1E2A3A;            /* blue-black fountain-pen ink */
  --ink-soft: #4D586A;       /* only on white paper */
  --desk-ink: #3B4759;       /* small text straight on the desk */
  --red-ink: #9E2A1D;        /* eyebrows */

  /* airmail + clay colours */
  --air-red: #D9412B;
  --air-blue: #2F5FA7;
  --clay-yellow: #EDB72C;
  --clay-green: #2F5D45;
  --clay-pink: #DE6F7C;
  --clay-lilac: #B79BD0;

  /* paper details */
  --line-blue: #B9CCE3;
  --margin-red: #E8A49B;
  --graph: #D4E3F0;
  --note-yellow: #FBE38E;
  --note-pink: #F9C9D0;
  --note-blue: #CFE2F5;
  --slip-green: #DCEBD8;
  --tag-pink: #F6D3D3;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "DM Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-type: "Special Elite", "Courier Prime", "Courier New", monospace;
  --f-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --shadow-paper: 0 1px 2px rgba(31, 45, 72, .13), 0 18px 30px -18px rgba(31, 45, 72, .42);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .28 0 0 0 0 .42 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--desk);
  background-image: var(--noise);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* tape and postmarks may hang off the paper, but never off the screen (no sideways wobble on iPhone) */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--f-display); font-variation-settings: "SOFT" 100;
  text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -.01em;
}
h2 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.gutter {
  padding-left: max(clamp(24px, 3.5vw, 56px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(24px, 3.5vw, 56px), env(safe-area-inset-right, 0px));
}
.nowrap { white-space: nowrap; }
.eyebrow {
  font-family: var(--f-type); font-size: .95rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red-ink);
}
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 34em; }
.head { display: flex; flex-direction: column; gap: .6rem; }
.on-desk { color: var(--desk-ink); max-width: 38em; }
.nw { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em;
  color: var(--envelope); background: var(--ink); padding: .85rem 1.4rem; border-radius: 999px; border: 0;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red, .btn-lg { background: var(--air-red); }
.btn-lg { font-size: 1.2rem; padding: 1rem 2.1rem; }
.btn-paper { background: var(--envelope); color: var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--air-blue); outline-offset: 3px;
}

/* ---------- Bits of stationery ---------- */
.tape {
  position: absolute; z-index: 3; width: 110px; height: 30px;
  background: rgba(229, 216, 182, .78);
  box-shadow: 0 1px 2px rgba(31, 45, 72, .14);
  -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px);
}
.tape-l { top: -12px; left: -22px; transform: rotate(-32deg); }
.tape-r { top: -12px; right: -22px; transform: rotate(32deg); }
.tape-c { top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

/* Tilted paper, level words.
   Each piece of paper is drawn on its own ::before layer, and only that layer
   tilts (by --tilt). The words sit on top of it and stay perfectly straight.
   --paper is the paper's fill, --paper-shadow its shadow. */
.envelope-front, .airmail-label, .hand-note, .slip, .packing-slip, .gift-tag, .notebook,
.memo, .note, .notice, .schedule, .card, .label, .about-letter, .return-label {
  position: relative; isolation: isolate;
}
.envelope-front::before, .airmail-label::before, .hand-note::before, .slip::before, .packing-slip::before,
.gift-tag::before, .notebook::before, .memo::before, .note::before, .notice::before, .schedule::before,
.card::before, .label::before, .about-letter::before, .return-label::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--paper, var(--sheet)); box-shadow: var(--paper-shadow, var(--shadow-paper));
  border-radius: inherit; transform: rotate(var(--tilt, 0deg));
}

/* Postage-stamp perforations (holes cut along every edge) */
.perf {
  --r: 5px;
  display: block;
  background: #fff;
  padding: calc(var(--r) * 2.2);
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
          mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}

.postmark { color: var(--ink); opacity: .78; overflow: visible; }
.postmark text { fill: currentColor; font-family: var(--f-type); }
.pm-ring { font-size: 10.5px; letter-spacing: 1.2px; }
.pm-mid { font-size: 13px; letter-spacing: 1px; }
.pm-big { font-size: 22px; }

/* ---------- Hero: the front of the envelope ---------- */
.hero {
  max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(1rem, 4vw, 2.75rem); padding-bottom: 1rem;
}
.envelope-front {
  --env-b: 14px; --tilt: -.7deg;
  width: 100%; max-width: 780px; margin: 0 auto;
  border: var(--env-b) solid transparent;
}
.envelope-front::before {
  inset: calc(-1 * var(--env-b));
  border: var(--env-b) solid transparent;
  background:
    linear-gradient(var(--envelope), var(--envelope)) padding-box,
    repeating-linear-gradient(-45deg,
      var(--air-red) 0 18px, var(--envelope) 18px 28px,
      var(--air-blue) 28px 46px, var(--envelope) 46px 56px) border-box;
  box-shadow: 0 2px 2px rgba(31, 45, 72, .16), 0 34px 50px -28px rgba(31, 45, 72, .7);
}
.env-grid {
  --pm: 106px; --pm-tuck: 12px; /* postmark size, and how far it tucks onto the stamp's edge */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "from post"
    "logo logo"
    "note to";
  align-items: start;
  gap: .25rem 1rem;
  padding: clamp(.9rem, 2.4vw, 1.6rem) clamp(.9rem, 2.6vw, 2rem) clamp(1rem, 2.6vw, 1.8rem);
}
.from-col { grid-area: from; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.from {
  display: flex; flex-direction: column; font-family: var(--f-type); font-size: .8rem; line-height: 1.45;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
}
/* stamp in the top-right corner, lined up with the To: address; the padding saves room for the postmark beside it */
.postage { grid-area: post; position: relative; justify-self: end; padding-left: calc(var(--pm) - var(--pm-tuck)); }
.airmail-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  --paper: var(--air-blue); --paper-shadow: 0 1px 1px rgba(0, 0, 0, .2); --tilt: -1.5deg;
  color: #fff; padding: .45rem .8rem; border-radius: 3px; text-align: center;
}
.airmail-label b { font-family: var(--f-body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.airmail-label small { font-family: var(--f-body); font-style: italic; font-size: .66rem; letter-spacing: .06em; opacity: .9; }
.stamp-wrap { display: block; filter: drop-shadow(0 2px 2px rgba(31, 45, 72, .3)); transform: rotate(3deg); }
.hero-stamp { --r: 4px; width: 104px; }
.stamp-face {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  border: 2px solid var(--clay-pink); background: var(--logo-paper); padding: .35rem .35rem .3rem;
}
.hero-stamp img { width: 100%; height: auto; }
.stamp-country { font-family: var(--f-type); font-size: .7rem; letter-spacing: .14em; color: var(--clay-pink); line-height: 1; transform: rotate(-3deg); } /* level, inside the tilted stamp */
/* the postmark sits just left of the stamp, centred on it, and only touches its perforated edge (--pm-tuck) */
.hero-postmark {
  position: absolute; width: var(--pm); pointer-events: none;
  left: 0; top: calc(50% - var(--pm) / 2);
}

.hero-logo {
  grid-area: logo; justify-self: center; width: 100%; max-width: 660px;
  margin: .25rem 0 .4rem;
}
.hand-note {
  grid-area: note; align-self: end; justify-self: start;
  font-family: var(--f-hand); font-weight: 700; font-size: 1.45rem; line-height: 1.1;
  --paper: var(--note-yellow); --paper-shadow: 0 10px 14px -10px rgba(31, 45, 72, .55); --tilt: -4deg;
  color: var(--ink); padding: .8rem .9rem 1rem; max-width: 12.5em;
  margin-bottom: -2.4rem; margin-left: -1rem; position: relative; z-index: 2;
}
.address {
  grid-area: to; display: flex; flex-direction: column; justify-self: end; min-width: min(20rem, 100%);
  font-family: var(--f-hand); font-weight: 500; font-size: 1.75rem; line-height: 1.25; color: var(--air-blue);
}
.address span { border-bottom: 1.5px solid var(--line-blue); padding: 0 .3rem .1rem; }
.address em { font-style: normal; font-family: var(--f-type); font-size: .9rem; color: var(--ink-soft); margin-right: .3rem; }

.hero-copy {
  max-width: 780px; margin: clamp(2.5rem, 6vw, 3.75rem) auto 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(2.5rem, 4vw, 4.5rem); }
  .envelope-front { max-width: none; }
  .hero-copy { margin: 0; text-align: left; align-items: flex-start; }
  .hero-copy .cta-row { align-items: flex-start; }
  .hero h1 { font-size: clamp(2.3rem, 3.4vw, 3.5rem); }
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; }
.belief-line { font-size: 1.15rem; line-height: 1.5; max-width: 32em; color: var(--ink); }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: .4rem; }
.cta-sub { font-family: var(--f-type); font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; color: var(--desk-ink); }
.cta-price { display: block; }
.cutoff-line { color: var(--red-ink); text-wrap: balance; }
.gift-link {
  font-family: var(--f-hand); font-weight: 700; font-size: 1.45rem; color: var(--ink); margin-top: .1rem;
  text-decoration-color: var(--air-red); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.gift-link::after { content: " \2192"; }

/* ---------- Page body ---------- */
.wrap { --gap: 5.5rem; max-width: 1480px; margin: 0 auto; padding-block: 4rem 4rem; display: flex; flex-direction: column; gap: var(--gap); }
.section { display: flex; flex-direction: column; gap: 1.6rem; }

/* What arrives: a taped photo print and four kinds of paper */
.print {
  position: relative; margin: 0 auto; width: 100%; max-width: 820px;
  background: #fff; padding: 12px; box-shadow: var(--shadow-paper); transform: rotate(.8deg);
}
.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
.slip {
  min-width: 0; padding: 1.4rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.slip p { color: var(--ink-soft); }
.slip:nth-child(1) { --tilt: -1.2deg; }
.slip:nth-child(2) { --tilt: 1deg; }
.slip:nth-child(3) { --tilt: .6deg; }
.slip:nth-child(4) { --tilt: -.8deg; }

.lined { --u: 1.7rem; --margin-x: 2.1rem; --pt: var(--u); --paper: var(--sheet); }
/* The ruled lines stay level with the writing, so they get their own straight layer,
   kept a few px inside the edges so they never poke past the tilted sheet. */
.lined::after {
  content: ""; position: absolute; inset: 3px 5px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--margin-red), var(--margin-red)) calc(var(--margin-x) - 5px) 0 / 1.5px 100% no-repeat,
    linear-gradient(transparent calc(var(--u) - 1px), var(--line-blue) 0) 0 calc(var(--pt) - 3px) / 100% var(--u) repeat-y;
}
/* every line of text snaps to the ruled lines */
.lined h3, .lined p, .lined .eyebrow { line-height: var(--u); }
.lined h2 { line-height: calc(var(--u) * 2); }
.slip.lined { padding: var(--u) 1.4rem var(--u) 3rem; gap: 0; }
.graph {
  --paper: linear-gradient(var(--graph) 1px, transparent 1px) 0 0 / 17px 17px,
           linear-gradient(90deg, var(--graph) 1px, transparent 1px) 0 0 / 17px 17px, #FCFEFF;
}
.sticker-sheet { --paper: #FFF6F7; padding-right: 6rem; }
.sticker {
  position: absolute; top: 1rem; right: 1rem; width: 66px; height: 66px; border-radius: 50%;
  background: var(--clay-yellow); border: 5px solid #fff; display: grid; place-items: center;
  box-shadow: 0 3px 6px rgba(31, 45, 72, .25); transform: rotate(-12deg);
  color: var(--ink); font-size: 1.6rem; line-height: 1;
}
.museum { --paper: #fff; padding: 1.6rem 1.6rem 1.7rem; }
.museum::before { outline: 1.5px solid var(--ink); outline-offset: -9px; }
.museum h3 { font-family: var(--f-type); font-weight: 400; font-variation-settings: normal; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; }
.scribble {
  font-family: var(--f-hand); font-weight: 700; font-size: 1.5rem; line-height: 1.25;
  color: var(--ink); max-width: 30em;
}
.scribble a { text-underline-offset: 4px; }

/* Plans: the pickers, then two postage stamps */
.pickers { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend {
  padding: 0; margin-bottom: .5rem; font-family: var(--f-type); font-size: .9rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--desk-ink);
}
.seg {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem;
  background: var(--sheet); border-radius: 999px; box-shadow: var(--shadow-paper);
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.seg label {
  cursor: pointer; padding: .5rem 1.05rem; border-radius: 999px; line-height: 1.2;
  font-weight: 700; font-size: 1rem; color: var(--ink-soft); transition: background .15s ease, color .15s ease;
}
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: var(--ink); color: var(--envelope); }
.seg input:focus-visible + label { outline: 3px solid var(--air-blue); outline-offset: 2px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: stretch; }
.plan { position: relative; min-width: 0; display: flex; filter: drop-shadow(0 3px 3px rgba(31, 45, 72, .28)) drop-shadow(0 16px 18px rgba(31, 45, 72, .22)); }
.plan:first-child { --tilt: -1deg; }
.plan-feature { --tilt: 1deg; }
.plan-perf { --r: 7px; width: 100%; display: flex; transform: rotate(var(--tilt, 0deg)); }
.plan-face {
  --face: #EEF3FA; --frame: var(--air-blue);
  position: relative; isolation: isolate; transform: rotate(calc(-1 * var(--tilt, 0deg)));
  width: 100%; align-items: stretch; gap: .65rem; padding: 1.3rem 1.4rem 1.5rem;
  border: 3px solid transparent; background: none;
}
.plan-face::before {
  content: ""; position: absolute; inset: -3px; z-index: -1;
  border: 3px solid var(--frame); background: var(--face); transform: rotate(var(--tilt, 0deg));
}
.plan-feature .plan-face { --face: #FFF6DB; --frame: var(--clay-yellow); }
.stamp-top {
  display: flex; justify-content: space-between; font-family: var(--f-type); font-size: .82rem;
  letter-spacing: .16em; color: var(--air-blue);
}
.plan-feature .stamp-top { color: #9A6B00; }
.plan h3 { font-size: 1.6rem; font-weight: 800; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; }
.price b {
  font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 900;
  font-size: 3.2rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums;
}
.price .cur { font-family: var(--f-type); font-size: .9rem; letter-spacing: .08em; color: var(--ink-soft); }
.price .was {
  font-weight: 500; font-size: 1.1rem; color: var(--ink-soft); white-space: nowrap;
  text-decoration-color: var(--air-red); text-decoration-thickness: 2px;
}
.per { font-family: var(--f-type); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.equiv { font-weight: 700; font-size: .98rem; }
.plan-note { color: var(--ink-soft); flex: 1; }
.plan .btn { margin-top: .4rem; }
.plan-postmark { position: absolute; width: 118px; right: -30px; top: -48px; color: var(--air-red); opacity: .9; pointer-events: none; }
.handoff { color: var(--desk-ink); font-size: .98rem; max-width: 42em; }
.plans-row, .plans-main { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.pair { display: flex; flex-direction: column; gap: var(--gap); }

.packing-slip {
  --paper: var(--slip-green); --tilt: -.4deg; padding: 1.3rem 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.slip-head {
  display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 2px solid var(--ink);
  font-family: var(--f-type); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
}
.includes-h { font-weight: 700; }
.packing-slip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.packing-slip li { display: flex; gap: .6rem; align-items: baseline; }
.packing-slip li::before { content: "\2611"; font-size: 1.1rem; color: var(--air-blue); }
.cutoff { padding-top: .7rem; border-top: 1.5px dashed rgba(30, 42, 58, .45); }

/* Gift tag */
.gift-tag {
  --paper: var(--tag-pink); --paper-shadow: none; --tilt: -.6deg;
  --tag-shape: polygon(2.8rem 0, 100% 0, 100% 100%, 2.8rem 100%, 0 calc(100% - 2.8rem), 0 2.8rem);
  padding: 2.4rem 2.4rem 2.4rem 5.2rem; display: flex; flex-direction: column; gap: 1.6rem;
}
.gift-tag::before { clip-path: var(--tag-shape); }
.tag-hole {
  position: absolute; left: 1.35rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--desk); box-shadow: inset 0 2px 3px rgba(31, 45, 72, .45), 0 0 0 5px #fff;
}
.gift-head { display: flex; flex-direction: column; gap: .8rem; }
.gift-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gift-points li { display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding-top: .9rem; border-top: 2px dashed rgba(30, 42, 58, .4); }
.gift-points h3 { font-size: 1.15rem; }
.gift-points p { color: var(--ink-soft); font-size: .98rem; }
.gift-tag .btn { align-self: flex-start; }

/* Screens: a sheet of notebook paper with rubber stamps */
.notebook {
  --margin-x: 2.8rem; --pt: calc(var(--u) * 2); --tilt: .4deg;
  padding: calc(var(--u) * 2) 2.2rem calc(var(--u) * 2) 4.4rem;
  display: flex; flex-direction: column; gap: var(--u);
}
.notebook .head { gap: 0; }
.notebook .lede { color: var(--ink-soft); font-size: 1.15rem; }
.notebook h2 { font-size: clamp(2.3rem, 6vw, 3.2rem); max-width: 12em; }
.rubber-stamps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--u) 1rem; }
.rubber-stamps li {
  font-family: var(--f-type); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--air-red);
  border: 3px solid currentColor; border-radius: 6px; padding: 0 .75rem; line-height: calc(var(--u) - 6px); filter: url(#ink);
}
.swap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u) 2.2rem; }
.swap div { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.swap p { color: var(--ink-soft); }

/* Department memo */
.memo {
  --paper: var(--sheet); --tilt: -.5deg;
  padding: 2.4rem 2.4rem 2.6rem; display: flex; flex-direction: column; gap: 1.25rem;
  max-width: 760px; width: 100%; align-self: center;
}
.paperclip { position: absolute; top: -34px; left: 2.2rem; width: 30px; height: auto; z-index: 2; }
.letterhead { display: flex; flex-direction: column; gap: .2rem; padding-bottom: 1rem; border-bottom: 3px double var(--ink); }
.letterhead strong { font-family: var(--f-display); font-variation-settings: "SOFT" 0; font-weight: 800; font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; }
.letterhead span { font-family: var(--f-type); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.memo-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1rem; margin: 0; font-family: var(--f-type); font-size: 1rem; }
.memo-fields dd { margin: 0; }
.memo-body { display: flex; flex-direction: column; gap: .9rem; font-family: var(--f-type); font-size: 1.05rem; line-height: 1.65; max-width: 36em; }
.memo-body .sign { font-family: var(--f-hand); font-weight: 700; font-size: 1.9rem; line-height: 1.1; color: var(--air-blue); }
.approved {
  position: absolute; right: 1.6rem; bottom: 1.8rem; border: 4px solid var(--air-red); color: var(--air-red);
  border-radius: 8px; padding: .35rem .9rem; font-family: var(--f-type); letter-spacing: .14em; font-size: 1.3rem;
  text-transform: uppercase; text-align: center; line-height: 1.1; filter: url(#ink); opacity: .9;
}
.approved small { display: block; font-size: .62rem; letter-spacing: .14em; }

/* Beliefs: sticky notes */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; align-items: start; }
.note {
  position: relative; min-width: 0; padding: 1.4rem 1.3rem 1.8rem; min-height: 12rem;
  font-family: var(--f-hand); font-weight: 700; font-size: 1.6rem; line-height: 1.2;
  --paper-shadow: 0 14px 16px -12px rgba(31, 45, 72, .6);
}
.note-yellow { --paper: var(--note-yellow); --tilt: -2.5deg; }
.note-pink { --paper: var(--note-pink); --tilt: 1.8deg; margin-top: 1rem; }
.note-blue { --paper: var(--note-blue); --tilt: -1deg; }

/* Club rules: a notice pinned up */
.notice {
  --paper: var(--clay-yellow); --tilt: .6deg;
  color: var(--ink); padding: 2.2rem 2.2rem 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  max-width: 760px; width: 100%; align-self: center;
}
.notice::before { outline: 2px solid var(--ink); outline-offset: -12px; }
.tack {
  position: absolute; top: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--air-red) 32%, #8E2316 100%);
  box-shadow: 0 3px 3px rgba(0, 0, 0, .3);
}
.tack-l { left: 22px; } .tack-r { right: 22px; }
.notice h2 { text-align: center; text-transform: uppercase; font-size: clamp(1.8rem, 4.6vw, 2.3rem); letter-spacing: .05em; }
.notice .sub { text-align: center; font-family: var(--f-type); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.rules { list-style: none; margin: 0; padding: 0 .4rem; display: flex; flex-direction: column; gap: .85rem; }
.rules li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding-top: .85rem; border-top: 1.5px solid rgba(30, 42, 58, .35); }
.rules li:first-child { border-top: 0; padding-top: 0; }
.rules b { font-family: var(--f-type); font-weight: 400; font-size: .95rem; letter-spacing: .04em; }
.rules span { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.rules li:first-child span { font-size: 1.55rem; }

/* How it works: a mail schedule with postmark numbers */
.schedule { --paper: var(--sheet); --tilt: -.3deg; padding: 1.4rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 1.4rem; }
.route { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; position: relative; }
.route li { position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.6rem; }
.route li:last-child { padding-bottom: 0; }
.route li:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.7rem - 1px); top: 3.4rem; bottom: .1rem;
  border-left: 2px dashed rgba(30, 42, 58, .4);
}
.route-mark {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  border: 2.5px solid var(--air-red); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5.5px var(--air-red);
  font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; color: var(--air-red); filter: url(#ink);
}
.when { font-family: var(--f-type); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.route h3 { margin: .1rem 0 .25rem; }
.route p:last-child { color: var(--ink-soft); max-width: 36em; }
.business { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; align-items: center; }

/* Member card */
.card {
  --tilt: -2deg;
  --paper: radial-gradient(circle 75px at calc(100% - 41px) calc(100% - 31px), var(--clay-pink) 98%, transparent 100%), var(--clay-green);
  --paper-shadow: 0 20px 30px -18px rgba(25, 35, 60, .7);
  aspect-ratio: 1.586; max-width: 100%; border-radius: 16px; color: var(--envelope);
  padding: 1.2rem 1.35rem; display: flex; flex-direction: column; justify-content: space-between;
}
.card .seal {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 62px; height: 62px; border-radius: 50%;
  border: 2px dashed var(--envelope); display: grid; place-items: center; text-align: center;
  font-family: var(--f-type); font-size: .5rem; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase;
}
.card .top { display: flex; flex-direction: column; gap: .1rem; position: relative; z-index: 1; }
.card .top strong { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: 1.05rem; }
.card .top small { font-family: var(--f-type); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.card .fields { display: flex; flex-direction: column; gap: .5rem; position: relative; z-index: 1; max-width: 68%; }
.field { display: flex; flex-direction: column; gap: .05rem; }
.field span { font-family: var(--f-type); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.field i { font-family: var(--f-hand); font-style: normal; font-weight: 700; font-size: 1.25rem; border-bottom: 1.5px solid rgba(251, 247, 238, .5); min-height: 1.6rem; line-height: 1.3; }

/* Museum card */
.label {
  --paper: #fff; --tilt: 1.5deg;
  padding: 1.5rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0;
}
.label .no { font-family: var(--f-type); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: flex; justify-content: space-between; gap: .5rem; }
.label .title { font-family: var(--f-hand); font-weight: 700; font-size: 1.8rem; line-height: 1.1; }
.label dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .9rem; }
.label dt { font-family: var(--f-type); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .35rem; }
.label dd { margin: 0; font-family: var(--f-hand); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.example { color: var(--air-red); }

/* About: a polaroid and a letter */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.6rem; align-items: start; }
.polaroid {
  position: sticky; top: 2rem; margin: 0; background: #fff; padding: 12px 12px 3.4rem;
  box-shadow: var(--shadow-paper); transform: rotate(-2.5deg);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 51% 30%; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: .55rem; text-align: center;
  font-family: var(--f-hand); font-weight: 700; font-size: 1.6rem; color: var(--ink);
  transform: rotate(2.5deg); /* level, under the tilted photo */
}
.about-letter {
  --paper: var(--sheet); --tilt: .5deg; padding: 2.2rem 2.2rem 2.4rem;
  display: flex; flex-direction: column; gap: 1rem; min-width: 0;
}
.about-letter p:not(.eyebrow) { color: var(--ink-soft); }
.about-letter em { font-family: var(--f-hand); font-style: normal; font-weight: 700; font-size: 1.3em; line-height: 1; color: var(--ink); }
.signoff { font-family: var(--f-hand); font-weight: 700; font-size: 2.1rem !important; color: var(--air-blue) !important; line-height: 1; }

/* FAQ: a plain white sheet */
.faq-sheet { background: var(--sheet); box-shadow: var(--shadow-paper); padding: 2.2rem 2.2rem 1.4rem; display: flex; flex-direction: column; gap: 1.4rem; }
.faq { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1.5px dashed rgba(30, 42, 58, .35); padding: 1rem 0; }
.faq summary {
  cursor: pointer; font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.2rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-body); font-weight: 500; color: var(--air-red); flex: none; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--ink-soft); max-width: 40em; padding-top: .5rem; }

/* Closing: the back of the envelope */
.envelope-back {
  position: relative; overflow: hidden; text-align: center;
  background: var(--air-red); color: var(--envelope);
  --flap: clamp(5rem, 11vw, 9.5rem);
  padding: calc(var(--flap) + 3rem) 2rem clamp(2.6rem, 4vw, 3.6rem);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-paper);
}
.flap {
  position: absolute; inset: 0 0 auto 0; height: var(--flap);
  background: #C2341F; clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15));
}
.wax {
  position: absolute; left: 50%; top: calc(var(--flap) - 2.1rem); transform: translateX(-50%);
  width: 4.4rem; height: 4.2rem; display: grid; place-items: center;
  border-radius: 42% 58% 51% 49% / 55% 43% 57% 45%;
  background: radial-gradient(circle at 35% 30%, #F6CF63, var(--clay-yellow) 45%, #D29A12);
  box-shadow: 0 4px 6px rgba(60, 20, 5, .35), inset 0 0 0 7px rgba(255, 255, 255, .14), inset 0 0 0 9px rgba(120, 70, 0, .22), inset -3px -4px 0 rgba(120, 70, 0, .2);
  font-family: var(--f-display); font-weight: 900; font-size: 1.2rem; color: #8A5A00; letter-spacing: -.04em;
}
.envelope-back .eyebrow { color: var(--envelope); opacity: .9; }
.envelope-back p { max-width: 34em; font-size: 1.08rem; }

/* Footer: a return-address label */
footer { display: flex; justify-content: center; }
.return-label {
  --paper: var(--sheet); --tilt: -.8deg; padding: 1.1rem 1.6rem; text-align: center;
  display: flex; flex-direction: column; gap: .35rem; max-width: 34rem;
}
.return-label::before { outline: 1.5px solid var(--air-blue); outline-offset: -7px; }
.return-label .dept { font-family: var(--f-type); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.return-label p { color: var(--ink-soft); font-size: .95rem; }
.footer-links a { text-underline-offset: 3px; }

/* ---------- Wide screens: pieces side by side ---------- */
@media (min-width: 1100px) {
  /* what arrives: the photo on the left, the four papers stacked on the right */
  .arrives {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas: "head head" "print contents" "print scribble"; grid-template-rows: auto auto 1fr;
    column-gap: clamp(2.5rem, 4vw, 4rem); row-gap: 1.6rem; align-items: start;
  }
  .arrives > .head { grid-area: head; }
  .arrives .print { grid-area: print; max-width: none; margin-top: .6rem; }
  .arrives .contents { grid-area: contents; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .arrives .scribble { grid-area: scribble; }

  /* screens: heading and stamps on the left, the four points on the right */
  .notebook {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "head swap" "stamps swap"; grid-template-rows: auto 1fr;
    column-gap: clamp(2.5rem, 4vw, 4.5rem); row-gap: var(--u); align-items: start;
    padding-right: 3rem;
  }
  .notebook .head { grid-area: head; }
  .notebook h2 { font-size: clamp(2.2rem, 2.9vw, 2.9rem); }
  .rubber-stamps { grid-area: stamps; align-content: start; }
  .swap { grid-area: swap; }

  /* the memo and the club rules, side by side */
  .pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4.5rem); align-items: center; }
  .pair .memo, .pair .notice { max-width: none; }
  .pair .memo { align-self: start; }

  /* how it works: the schedule on the left, the two cards on the right */
  .month {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "head head" "sched note" "sched biz"; grid-template-rows: auto auto 1fr;
    column-gap: clamp(2.5rem, 4vw, 4.5rem); row-gap: 1.6rem; align-items: start;
  }
  .month > .head { grid-area: head; }
  .month .schedule { grid-area: sched; }
  .month > .on-desk { grid-area: note; padding-top: .4rem; }
  .month .business { grid-area: biz; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2.8rem; padding-top: 1rem; }
  .month .card { width: min(100%, 430px); }
  .month .label { width: min(100%, 470px); }

  /* about: photo and letter in equal halves */
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4.5rem); }
  .polaroid { width: 100%; max-width: 540px; justify-self: center; }
  .about-letter { padding: 2.8rem 3rem 3rem; }

  /* FAQ: heading on the left, questions on the right */
  .faq-sheet {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(2.5rem, 4vw, 4.5rem); padding: 3rem 3rem 2.2rem; align-items: start;
  }
  .faq-sheet .head { position: sticky; top: 2rem; }

  /* gift tag: the pitch on the left, the three answers in a column on the right */
  .gift-tag {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head points" "btn points"; grid-template-rows: auto 1fr;
    column-gap: clamp(2.5rem, 4vw, 4.5rem); row-gap: 1.8rem; align-items: start;
    padding: 3rem 3rem 3rem 6rem;
  }
  .gift-head { grid-area: head; }
  .gift-points { grid-area: points; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .gift-tag .btn { grid-area: btn; justify-self: start; }
}
@media (min-width: 1180px) {
  /* plans: both stamps, then the packing list beside them */
  .plans-row { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 3.5vw, 3.5rem); align-items: start; }
  .plans-row .packing-slip { margin-top: .4rem; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 820px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .polaroid { position: relative; top: 0; max-width: 420px; justify-self: center; width: 100%; }
  .polaroid img { aspect-ratio: 4 / 3; }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .note { min-height: 0; }
  .note-pink { margin-top: 0; }
}
@media (max-width: 680px) {
  .envelope-front { --env-b: 9px; --tilt: -.5deg; }
  .env-grid { gap: .2rem .6rem; --pm: 69px; --pm-tuck: 8px; }
  .from { font-size: .62rem; }
  .postage { gap: .4rem; }
  .airmail-label { display: none; }
  .from-3 { display: none; }
  .hero-stamp { --r: 3px; width: 70px; }
  .stamp-country { font-size: .55rem; }
  .hand-note { font-size: 1.08rem; padding: .55rem .6rem .7rem; max-width: 9.5em; margin-left: -.5rem; margin-bottom: -1.6rem; }
  .address { font-size: 1.15rem; min-width: 0; }
  .address em { font-size: .7rem; }
  .hero-copy { margin-top: 1.9rem; gap: .75rem; }
  .hero h1 { font-size: 1.8rem; }
  .belief-line { font-size: 1.02rem; text-wrap: balance; }
  /* on phones the Join button comes straight after the headline */
  .hero-copy .cta-row { order: 1; margin-top: .2rem; }
  .hero-copy .belief-line { order: 2; margin-top: .3rem; }
  .hero-copy .cutoff-line { order: 3; }
  .hero-copy .gift-link { order: 4; }

  .wrap { --gap: 4rem; padding-block: 3rem; }
  .lede { font-size: 1.1rem; }
  .contents, .plans, .gift-points, .swap, .business { grid-template-columns: minmax(0, 1fr); }
  /* a little more desk between stacked papers */
  .contents, .notes { gap: 1.75rem; }
  /* tall papers tilt half as much on phones, so their corners don't drift toward the screen edge */
  .packing-slip { --tilt: -.2deg; }
  .gift-tag { --tilt: -.3deg; }
  .memo { --tilt: -.25deg; }
  .notice { --tilt: .3deg; }
  .schedule { --tilt: -.15deg; }
  .about-letter { --tilt: .25deg; }
  .plans { gap: 2.6rem; }
  .plan-postmark { width: 96px; right: -6px; top: -36px; }
  .slip.lined { padding-left: 2.8rem; }
  .gift-tag {
    padding: 4.2rem 1.4rem 1.8rem;
    --tag-shape: polygon(0 2.4rem, 2.4rem 0, calc(100% - 2.4rem) 0, 100% 2.4rem, 100% 100%, 0 100%);
  }
  .tag-hole { left: 50%; top: 1.5rem; margin: 0 0 0 -11px; }
  .gift-tag .btn { align-self: stretch; }
  .notebook { --margin-x: 1.9rem; --tilt: .15deg; padding: calc(var(--u) * 2) 1.2rem calc(var(--u) * 2) 2.9rem; }
  .memo { padding: 3.2rem 1.3rem 6rem; } /* room for the paperclip above the letterhead */
  .approved { right: 1.2rem; bottom: 1.4rem; }
  .notice { padding: 2.2rem 1.4rem 1.8rem; }
  .rules li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .schedule { padding: 1.2rem 1.1rem 1.5rem; }
  .route li { grid-template-columns: 2.8rem minmax(0, 1fr); gap: .8rem; }
  .route-mark { width: 2.8rem; height: 2.8rem; font-size: 1.1rem; }
  .route li:not(:last-child)::before { left: calc(1.4rem - 1px); top: 2.8rem; }
  .card { max-width: 340px; }
  .about-letter, .faq-sheet { padding: 1.6rem 1.3rem 1.8rem; }
  .envelope-back { padding-left: 1.3rem; padding-right: 1.3rem; }
}
@media (max-width: 380px) {
  .hand-note { display: none; }
  /* with the sticky note gone, the To: address can use its space, which leaves the return address room for three lines */
  .address { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .card::before { transition: transform .35s ease; }
  .card:hover { transform: translateY(-4px); }
  .card:hover::before { transform: rotate(0deg); }
}
