/* Postie. The front page: the card is the object, the page is the app's table (2026-11-20; 2026-11-26 rebuilt on the
   app's own pieces). Paper ground, navy ink, one red action, serif titles, system body. On the table a thing is either a
   paper object or ink (v33), and they move differently: paper lands and settles with the app's springs, ink only fades
   up a few pixels. site.css carries the tokens (the curves too), the bar, the counter and the skip link every page
   shares; this file is the front page's sections only. */
body.home{display:block;padding:0;font:var(--t-body)/1.5 var(--sans);color:var(--navy);background:var(--paper);min-height:100svh;-webkit-font-smoothing:antialiased}
.home h1,.home h2,.home h3{font-family:var(--serif);font-weight:600;margin:0;text-wrap:balance}
.home p{margin:0;text-wrap:pretty}
.home img{display:block;max-width:100%;height:auto}
.home a{color:inherit}
.lands :focus-visible{outline-color:var(--navy)}   /* blue vanishes on turquoise (FINDING-009) */

/* Paper at rest: its own small turn, if it has one. */
[data-paper]{transform:rotate(var(--r,0deg))}

/* The first screen and How it works: one section and one card (2026-11-26). On the left the headline, then the steps;
   on the right the card, which stays in view from the first screen to the last step and is made as the steps pass. */
.intro{padding-bottom:calc(var(--section)/2)}
.intro .words{grid-column:1/6;grid-row:1;min-height:calc(100svh - 92px);display:flex;flex-direction:column;justify-content:center;
              padding-block:clamp(24px,4vw,56px) clamp(48px,6vw,96px)}
.intro h1{font-size:var(--t-display);line-height:.98;letter-spacing:-.02em}
.intro .lede{font-size:var(--t-lead);line-height:1.4;max-width:30ch;margin-top:clamp(20px,2.4vw,32px)}
.intro .act{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:clamp(28px,3vw,40px)}
/* Buttons: flat, one fill, fully round; pressed they give the way the app's do (0.97, uiSnap). */
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 28px;border-radius:999px;border:0;cursor:pointer;
        background:var(--navy);color:var(--paper);font:600 var(--t-body)/1 var(--sans);text-decoration:none;white-space:nowrap;
        transition:transform var(--t-press) var(--ease-out),opacity var(--t-hover) ease}
.button:hover{opacity:.92}
.button:active{transform:scale(.97)}
.button svg{width:22px;height:22px;transition:transform var(--turn-t) var(--turn)}
.button.red{background:var(--red);color:#fefcf8}
.button.red:focus-visible{outline-color:var(--navy)}
.button.over svg{transform:rotate(180deg)}   /* the label says which way; no pressed state on top */

.section{padding-block:calc(var(--section)/2)}
/* The coloured fields share one inset, a step more than the paper sections' gap so their contents sit well inside. */
.home{--band:clamp(72px,8vw,120px)}
.home h2{font-size:var(--t-h2);line-height:1.02;letter-spacing:-.015em}
.home :target{scroll-margin-top:24px}
.intro .lead{grid-column:1/6;grid-row:2;padding-top:calc(var(--section)/4)}
.intro .lead p{font-size:var(--t-lead);line-height:1.4;max-width:34ch;margin-top:20px}
/* The steps (2026-11-27, Ian: tighten the hierarchy): the Questions pair, a serif heading over body text, 12 px apart,
   so the section's lead line stays the larger voice. One gap between steps (--step-gap), set by the steps themselves,
   not by heights. The step the card is showing is in full ink; the others are in quiet ink, heading and text
   together (Ink.quiet, never lighter). Without script every step is in full ink. */
.intro{--step-gap:clamp(120px,30svh,280px)}
.intro .steps{grid-column:1/6;grid-row:3;list-style:none;margin:clamp(40px,4vw,56px) 0 0;padding:0}
.intro .step{position:relative;padding:0 0 var(--step-gap) 40px}
.intro .step:last-child{padding-bottom:calc(var(--step-gap) / 2)}
.intro .step h3{font-size:var(--t-h3);line-height:1.2}
.intro .step p{margin-top:12px;max-width:38ch;font-size:var(--t-body);line-height:1.5}
.intro .step :is(h3,p){transition:opacity var(--t-ui) ease}
.js .intro .step:not(.is-on) :is(h3,p){opacity:.72}
/* The trail (2026-11-27, Ian): the four steps are one road, drawn as the card's own airmail route, a line of dots in
   airmail red (Ink.red: the stamp's frame, VIA AIR MAIL on the back). A marker sits level with each heading and dots
   run on to the next. The road travelled, up to the step the card is showing, is red; the way ahead is faint ink.
   Without script the whole road is red. */
.intro{--trail-ahead:rgba(30,42,68,.22);--mark:12px;--mark-y:calc(var(--t-h3) * .6)}
.intro .step::before{content:"";position:absolute;left:0;top:calc(var(--mark-y) - var(--mark) / 2);width:var(--mark);height:var(--mark);border-radius:50%;
  background:var(--airmail);transition:background-color var(--t-ui) ease,transform var(--settle-t) var(--settle)}
.intro .step:not(:last-child)::after{content:"";position:absolute;left:calc(var(--mark) / 2 - 3px);width:6px;
  top:calc(var(--mark-y) + var(--mark) / 2 + 8px);bottom:calc(-1 * (var(--mark-y) - var(--mark) / 2 - 8px));
  background:var(--airmail);transition:background-color var(--t-ui) ease;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='14'%3E%3Ccircle cx='3' cy='3' r='2.5'/%3E%3C/svg%3E") repeat-y;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='14'%3E%3Ccircle cx='3' cy='3' r='2.5'/%3E%3C/svg%3E") repeat-y}
.js .intro .step:not(.is-on):not(.is-done)::before,.js .intro .step:not(.is-done)::after{background-color:var(--trail-ahead)}
.js .intro .step.is-on::before{transform:scale(1.34)}

/* The card: a paper object on the table, tilted a touch (v33). It sits in the middle of the first screen (half the
   card's height is --half) and stays in the middle of the screen while the steps pass. */
.build{--half:18.3vw;grid-column:6/13;grid-row:1/4;align-self:start;position:sticky;margin:0;
       top:max(24px,calc(50svh - var(--half)));margin-top:max(0px,calc(50svh - var(--half) - 46px))}
.bstage{--r:-1.5deg;position:relative;perspective:1600px}
.card{position:relative;width:100%;transition:transform var(--turn-t) var(--turn);transform-style:preserve-3d;cursor:pointer}
.face{position:relative;overflow:hidden;width:100%;display:block;border-radius:6px;box-shadow:0 14px 34px rgba(30,42,68,.22),0 2px 6px rgba(30,42,68,.12);backface-visibility:hidden;-webkit-backface-visibility:hidden} /* taste-skill-ignore: a card lying on the table */
.face img{width:100%;height:auto}
.back{position:absolute;inset:0;transform:rotateY(180deg)}
.back>img:first-child{height:100%;object-fit:contain}
.build .l{position:absolute;inset:0;width:100%;height:100%}
.build.at-2 .card{transform:rotateY(180deg)}
.build figcaption{font-size:var(--t-small);line-height:1.45;color:var(--quiet);margin:22px 0 0 clamp(0px,2vw,24px);max-width:44ch}
/* The play disc and its window, for the demo card's voice; the card page's, kept in step (card.html). */
.kb{position:absolute;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.card.playing{transform:scale(1.012)}
.card.playing .face{box-shadow:0 22px 44px rgba(30,42,68,.28),0 4px 10px rgba(30,42,68,.14)} /* taste-skill-ignore */
.play{position:absolute;right:12px;bottom:12px;width:64px;height:64px;border-radius:50%;background:var(--navy);display:grid;place-items:center;
      backface-visibility:hidden;-webkit-backface-visibility:hidden;border:0;padding:0;cursor:pointer}
.play[hidden]{display:none}
.play svg.ring{position:absolute;inset:0;width:64px;height:64px;transform:rotate(-90deg)}
.play svg.ring circle{fill:none;stroke-width:3}
.play .track{stroke:rgba(255,255,255,.4)} .play .prog{stroke:#fff;stroke-linecap:round}
.play .glyph{width:0;height:0;border-left:20px solid #fff;border-top:12px solid transparent;border-bottom:12px solid transparent;margin-left:5px}
.play.playing .glyph{border:0;margin:0;width:18px;height:20px;background:#fff;clip-path:polygon(0 0,35% 0,35% 100%,0 100%,65% 100%,65% 0,100% 0,100% 100%,0 100%)}
/* The demo card is whole: its own front and back, no layers. */
.build.demo .l,.build.demo .ln{display:none}

/* The place prints on the front once the card has landed. */
.build .title{opacity:0;transition:opacity 200ms var(--fade)}
.build.printed .title{opacity:1;transition:opacity 500ms var(--ink-in)}
/* Handwriting: each line is uncovered left to right, the pen's pace, one line after the other. Transforms only: the
   outer box slides right with its window while the inner one slides left by the same amount, so the ink holds still.
   Going back, it lifts away in a quick fade and resets once gone. */
.build .ln{position:absolute;opacity:0;transition:opacity 200ms var(--fade)}
.build .ln>span{position:absolute;inset:0;overflow:hidden;transform:translateX(-100%);transition:transform 0s linear 200ms}
.build .ln>span>span{position:absolute;inset:0;transform:translateX(100%);transition:transform 0s linear 200ms}
.build .ln img{position:absolute;max-width:none}
.build.at-2 .adr,.build.at-3 .msg{opacity:1;transition:opacity 0s linear var(--d)}
.build.at-2 .adr>span,.build.at-2 .adr>span>span,.build.at-3 .msg>span,.build.at-3 .msg>span>span{transform:none;transition:transform var(--dur) linear var(--d)}
/* The stamp lands in its corner (paper.settle), after the card has most of the way turned (Motion.turnThenPlay). */
.build .stamp{opacity:0;transform-origin:87.5% 19.9%;transform:translate(-1.5%,-4%) rotate(9deg) scale(1.18);transition:opacity 200ms var(--fade),transform 0s linear 200ms}
.build.at-2 .stamp{opacity:1;transform:none;transition:opacity 150ms var(--fade) 450ms,transform var(--settle-t) var(--settle) 450ms}
/* Sent: the route prints, then the postmark strikes like a rubber stamp (StruckPostmark: from 1.3 and a turn, settling). */
.build .journey{opacity:0;transition:opacity 200ms var(--fade)}
.build.at-4 .journey{opacity:1;transition:opacity var(--fade-t) var(--fade)}
.build .postmark{opacity:0;transform-origin:70.8% 24%;transform:rotate(-8deg) scale(1.3);transition:opacity 200ms var(--fade),transform 0s linear 200ms}
.build.at-4 .postmark{opacity:1;transform:none;transition:opacity 120ms var(--fade) 350ms,transform var(--settle-t) var(--settle) 350ms}

/* In the app: four screens from the iPhone app on a field of sunset coral (Ground.palette), in one row on one
   baseline, each with its name and one line. The screens are the product's own, at the phone's own corner radius. */
.screens{background:var(--coral);color:var(--navy);padding-block:var(--band)}
.screens .head{grid-column:1/7}
.shots{grid-column:1/13;list-style:none;margin:clamp(40px,5vw,72px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(28px,3vw,48px) var(--gutter)}
.shots img{width:100%;height:auto;border-radius:13.7% / 6.3%}
.shots h3{font-size:var(--t-h3);line-height:1.2;margin-top:clamp(16px,1.6vw,24px)}
.shots p{margin-top:6px;max-width:30ch}

/* It lands in Messages: one field of chrome turquoise (measured from the Fort Bragg card), the image Messages shows
   on the left, the words on the right. */
.lands{background:var(--turquoise);color:var(--navy);padding-block:var(--band)}
.lands .plate{grid-column:1/7;align-self:center}
.lands .plate img{width:100%;height:auto}
.lands .words{grid-column:8/13;align-self:center}
.lands p{margin-top:20px;max-width:38ch;font-size:var(--t-lead);line-height:1.4}
.lands p+p{margin-top:16px;font-size:var(--t-body);line-height:1.5}

/* Questions: a plain list in ink on the table (2026-11-20, Ian: no tiles). Beside it, the app's stamps lying loose,
   paper objects with their own small shadow. */
.faq .side{grid-column:1/6;align-self:start;position:sticky;top:32px}
.faq .qa{grid-column:7/13;margin:0}
.faq .qa div{margin-top:clamp(28px,3vw,40px)}
.faq .qa div:first-child{margin-top:8px}
.faq dt{font-family:var(--serif);font-weight:600;font-size:var(--t-h3);line-height:1.2}
.faq dd{margin:10px 0 0;max-width:50ch;font-size:var(--t-body);line-height:1.5}
.faq dd a{text-underline-offset:.2em;text-decoration-thickness:1.5px}
.stamps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.8vw,26px) clamp(16px,2vw,30px);max-width:400px;margin:clamp(32px,3.4vw,52px) 0 0}
.stamps img{width:100%;height:auto;filter:drop-shadow(0 3px 4px rgba(30,42,68,.16))} /* taste-skill-ignore: stamps lying on the table */
.stamps figcaption{grid-column:1/-1;margin-top:clamp(8px,1vw,14px);font-size:var(--t-small);line-height:1.45;color:var(--quiet);max-width:36ch}

/* Getting Postie: the app's splash. Its ground is the palette colour nearest the top card's own colour (the script
   sets it per visit, as Ground.launch does per launch), with that ground's ink. The pile is a button: tap or fling
   the top card off and the next settles on top, as in the app. */
.now{background:var(--ground);color:var(--ground-ink);padding-block:var(--band);overflow:hidden}
.now .inner{grid-column:1/6;align-self:center}
.now .status{font-size:var(--t-lead);line-height:1.4;max-width:30ch;margin-top:20px}
.now .status a{color:inherit;font-weight:600;text-underline-offset:.2em;text-decoration-thickness:2px}
.pile{grid-column:7/13;position:relative;width:82%;justify-self:center;aspect-ratio:1.45;container-type:inline-size;
      border:0;padding:0;background:none;cursor:grab;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.pile:active{cursor:grabbing}
/* The focus ring takes the field's ink: the blue ring vanishes on the blue ground and the red one on red. */
.now :focus-visible{outline-color:var(--ground-ink)}
.pile:focus-visible{outline-color:var(--ground-ink);outline-offset:12px}
.pile img{position:absolute;left:0;top:50%;width:100%;height:auto;margin-top:-31.28%;border-radius:2px;user-select:none;-webkit-user-drag:none;pointer-events:none;
          transform:translate(calc(var(--x) * 100cqw / 900),calc(var(--y) * 100cqw / 900)) rotate(calc(var(--a) * 1deg));
          box-shadow:0 2px 8px rgba(0,0,0,.22)} /* taste-skill-ignore: cards lying in a pile */
.pile img:last-child,.pile img.top{box-shadow:0 6px 20px rgba(0,0,0,.22)} /* taste-skill-ignore */
.pile.ready img{transition:transform var(--settle-t) var(--settle)}
.pile.waiting img{opacity:0}

/* Entrances. Ink fades up a few pixels (the welcome's title: 0.4 s, 6 pt). Paper lands: it comes down from a little
   above the table, a touch bigger and turned, and settles with paper.settle. Everything is visible by default; the
   script adds motion-ready only once its observer exists, so a crawler, print, a reader mode or a failed script sees
   the page whole (FINDING-002). */
@media (prefers-reduced-motion:no-preference){
  .motion-ready [data-ink]{transition:opacity var(--ink-in-t) var(--ink-in),transform var(--ink-in-t) var(--ink-in);transition-delay:calc(var(--i,0) * 80ms)}
  .motion-ready [data-ink]:not(.is-in){opacity:0;transform:translateY(var(--ink-rise))}
  .motion-ready [data-paper]{transition:opacity 180ms var(--fade),transform var(--settle-t) var(--settle);transition-delay:calc(var(--i,0) * 70ms)}
  .motion-ready [data-paper]:not(.is-in){opacity:0;transform:translateY(-26px) rotate(calc(var(--r,0deg) + var(--a,3deg))) scale(1.04)}
  /* A card coming down is further from the table than one lying flat: its shade is wider and softer. */
  .bstage::before{content:"";position:absolute;inset:0;border-radius:6px;box-shadow:0 30px 60px rgba(30,42,68,.22);opacity:0;transition:opacity var(--settle-t) var(--fade)} /* taste-skill-ignore */
  .motion-ready .bstage:not(.is-in)::before{opacity:1}
  .build:not(.at-2) .bstage.is-in:hover .card:not(.playing){transform:translateY(-4px)}
}
@media (prefers-reduced-motion:reduce){
  /* Movement becomes a fade (Motion.reduced): nothing travels, writes or turns in space. */
  .card,.button,.button svg,.bar nav a,.pile.ready img{transition:none}
  .build .ln>span,.build .ln>span>span,.build .stamp,.build .postmark{transform:none!important}
  .build .ln,.build .stamp,.build .postmark,.build .journey{transition:opacity var(--fade-t) var(--fade)!important}
}
@media print{
  [data-ink],[data-paper]{opacity:1!important;transform:none!important;transition:none!important}
  .build,.faq .side{position:static}
}

/* Below 1440px the headline needs six columns to stay on two lines (FINDING-001); the card takes the other six. */
@media (min-width:900px) and (max-width:1439px){
  .intro .words,.intro .lead,.intro .steps{grid-column:1/7}
  .build{grid-column:7/13;--half:15.6vw}
}

/* The phone and small tablet: its own composition. The headline at full width, then the steps on the left with the
   card beside them. */
@media (max-width:899px){
  .intro .words{grid-column:1/13;min-height:0;padding-top:28px;padding-bottom:0}
  .intro .act{margin-top:28px}
  .intro .lead,.intro .steps{grid-column:1/7}
  .intro .lead{padding-top:clamp(48px,8vw,72px)}
  .build{grid-column:7/13;grid-row:2/4;--half:15vw;margin-top:clamp(48px,8vw,72px);top:max(24px,calc(50svh - var(--half)))}
  .bstage{--r:-1deg}
  .build figcaption{margin-left:0}
  .screens .head{grid-column:1/13}
  .shots{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lands .plate,.lands .words{grid-column:1/13}
  .lands .words{margin-top:36px}
  .faq .side,.faq .qa{grid-column:1/13}
  .faq .side{position:static}
  .stamps{max-width:330px}
  .faq .qa{margin-top:24px}
  .faq .qa div:first-child{margin-top:clamp(28px,3vw,40px)}
  .now .inner,.pile{grid-column:1/13}
  .pile{width:84%;margin-top:clamp(48px,10vw,72px)}
}

/* A phone: the headline, then the card, which rides at the top of the screen while How it works passes under it. */
@media (max-width:639px){
  .intro .act .button{width:100%}
  /* One column in source order, not the grid: a pinned item stays pinned only inside its containing box, and a grid
     row of its own height would hold the card still (Safari keeps to that; Chrome is lenient). In plain flow the
     card's box is the whole section, so it rides along while How it works passes. */
  .intro{display:block}
  .build{top:0;z-index:1;background:var(--paper);padding:14px var(--margin) 18px;margin:28px calc(-1 * var(--margin)) 0}
  .intro .lead{padding-top:28px}
  /* The nav's How it works link lands below the pinned card: its height is the card (two thirds of the width) plus
     its caption and padding. */
  .intro .lead{scroll-margin-top:calc(66.7vw + 96px)}
  .intro{--step-gap:clamp(96px,26svh,200px)}
  .intro .steps{margin-top:32px}
  .shots p{font-size:var(--t-small)}
}
