/* The homepage, built from Ciaran's picks on 17 Nov 2026 out of the five-ways design samples:
   header C "Two tiers" (style.css), the hero of homepage E "Refined bands", the counter of homepage B "Editorial split"
   (choose.css), the middle of homepage A "Bento cards", the questions and closing call of homepage D "One night", and the
   footer (style.css). Only this page loads this file.
   Round 2 (17 Nov 2026, "nothing flows, the weight and the spacing are not the same"): everything here reads the one system
   in style.css's :root (--wrap the one content width, --sec-gap the one gap between sections, --card-* the one card,
   --h1/--h2/--h3 the one heading scale).
   Round 3 (18 Nov 2026): the content width is 1400 px on this page; every section is separated from the next by exactly one
   --sec-gap, measured from the last thing in one to the first thing in the next, and each cards group uses one --card-gap
   (the sections do it with padding on the side that needs it, never twice); How it works is a full-width night band;
   the questions are separate boxes beside their heading; the closing call and the footer are one ending on the night.
   Round 4 (18 Nov 2026): the night bands have straight edges (no fade): a band keeps half a gap of paper outside it and pads its own
   content by one whole gap inside; the questions are laid out like the FAQ on wcag.ie; the closing call is a white card; no text block
   is capped narrower than the box it sits in.
   Round 5 (18 Nov 2026): the step titles in How it works are bigger and bold; What your child finds is tighter (its picture sits in
   the corner like the stamp on Posting dates) and has a line under its heading; the questions are the whole of wcag.ie's FAQ (three
   filter tabs on the left with a call box under them, the questions of the picked tab on the right); the closing call is boxed like the
   other cards with a main and an outline button.
   Contrast (WCAG formula). Night cards: snow on night 14.4:1, snow-2 11.0:1, gold 8.8:1; on the price card (#17382b)
   snow 11.3:1, snow-2 8.4:1, gold 7.2:1. Paper cards: ink 14.4:1, ink-2 7.7:1, holly 9.1:1; on the parchment card
   (#f1e2bf) ink 12.3:1, ink-2 6.6:1, holly 7.8:1, deep wax 8.1:1. Lines and rings are only lines. Nothing moves. */

/* buttons in the page are pills, like the header's and the counter's (the header's small one and the phone bar keep their own size) */
.home main .btn,.sample__go .btn{border-radius:999px;min-height:52px;padding:10px 28px;font-size:18px}
.home main .btn--ghost{padding-left:26px;padding-right:26px}
.home main .btn-row{margin:28px 0 0}

/* the one content width: every section's content starts and ends on the same two lines */
.bento,.faq{max-width:calc(var(--wrap) + 2 * var(--gutter));margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}

/* ---------- the hero: its own markup and layout from style.css, the soft drift onto the parchment below it ---------- */
.hero-join{position:absolute;z-index:1;left:0;bottom:-1px;width:100%;height:var(--join);display:block;pointer-events:none}

/* ---------- How it works: a night band from edge to edge, straight edges top and bottom (Ciaran, 18 Nov 2026: "not faded, just
   straight", "a bit more padding to the top and bottom") ----------
   The band pads its content by one whole --sec-gap inside it, and keeps half a gap of the counter's parchment above it and of the
   paper below it, so the heading sits one and a half gaps from the card above and the cards sit one and a half gaps below the steps. */
.how{position:relative;padding:var(--sec-gap) 0}
.how .wrap{position:relative;z-index:1}
.how__head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:6px 32px;margin-bottom:var(--card-gap)}
.how h2{margin:0;font:italic 400 var(--h2)/1.15 var(--serif);letter-spacing:-.01em;color:var(--gold)}
.how__lead{margin:0;font-size:18px;color:var(--snow-2)}
.how-steps{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--card-gap);margin:0;padding:0;list-style:none}
.how-step{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;align-content:start;padding:var(--card-pad);border-radius:var(--card-r);background:rgba(244,239,228,.06);border:1px solid var(--line-soft)}
.how-step__num{grid-row:1;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:2px solid var(--gold);color:var(--gold);font:400 22px/1 var(--serif)}
.how-step .stop-icons{grid-row:1;grid-column:2;justify-self:end;color:var(--gold)}
.how-step .stop-icons .ico{width:30px;height:30px}
.how-step .journey .hop{width:14px;opacity:.7;background:radial-gradient(circle,var(--gold) 1.1px,transparent 1.6px) center/7px 3px repeat-x}
.how-step__tx{grid-column:1/-1;margin-top:12px}
/* the step titles jump out (round 5): bigger, bold and bright, but still smaller than the gold H2 above them (34 px at most) */
.how-step h3{margin:0 0 8px;font:700 var(--h3-step)/1.2 var(--serif);letter-spacing:-.005em;color:var(--snow)}
.how-step p{margin:0;font-size:17px;line-height:1.6;color:var(--snow-2)}
@media (min-width:1100px){.how-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){
  .how-step{padding:20px;gap:6px 12px}
  .how-step .stop-icons .ico{width:26px;height:26px}
  .how-step .journey .hop{width:10px;margin:0 1px}
}
@media (max-width:359px){
  .how-step .stop-icons .ico{width:22px;height:22px}
  .how-step .journey .hop{width:6px;margin:0}
}

/* ---------- the middle: rounded cards of different widths on the paper ----------
   The group's own gap is --card-gap. It keeps half a gap of paper above (under How it works) and below (over the questions). */
.bento{padding-top:var(--sec-y);padding-bottom:var(--sec-y);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--card-gap)}
.tile{position:relative;grid-column:1/-1;min-width:0;padding:var(--card-pad);border-radius:var(--card-r);overflow:hidden}
.tile h2{margin:0;font:italic 400 var(--h2)/1.15 var(--serif);letter-spacing:-.01em}
.tile h3{margin:0 0 4px;font:italic 400 var(--h3)/1.25 var(--serif);color:var(--holly)}
@media (min-width:1100px){
  .tile--finds{grid-column:span 7}
  .tile--dates{grid-column:span 5}
  .tile--price{grid-column:span 5}
  .tile--trust{grid-column:span 7}
}

/* What your child finds in the post: the white card, a line under its heading and three notes. Round 5 (18 Nov 2026: "just a little bit too much
   space in between everything"): the envelope picture no longer sits in the heading row, where it made the row tall; it sits in the corner
   like the stamp on Posting dates, so the first note starts right under the line, and the notes are closer together. */
.tile--finds{display:flex;flex-direction:column;background:var(--card);box-shadow:var(--card-shadow)}
.tile--finds h2{padding-right:104px;color:var(--holly)}
.tile--finds .tile__intro{margin:10px 0 20px;padding-right:104px;color:var(--ink);font-size:17px;line-height:1.6}
.tile__art{position:absolute;right:calc(var(--card-pad) - 6px);top:calc(var(--card-pad) - 10px);width:92px;height:auto}
.find-list{flex:1;display:grid;gap:10px;align-content:space-between;margin:0;padding:0;list-style:none}
.find-list li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start;padding:14px 18px;border-radius:var(--card-r-in);background:var(--paper)}
.find-list .arrives__icon{width:46px;height:46px;margin:0;padding:6px;border-radius:12px;background:var(--parch)}
.find-list h3{margin:0 0 2px}
.find-list p{margin:0;font-size:16.5px;line-height:1.55;color:var(--ink-2)}

/* Posting dates: the parchment card with the December stamp */
.tile--dates{display:flex;flex-direction:column;background:var(--parch);box-shadow:var(--card-shadow)}
.tile--dates h2{color:var(--holly)}
.tile--dates .tile__intro{max-width:calc(100% - 110px);margin:10px 0 14px;color:var(--ink);font-size:17px;line-height:1.6}
.tile__stamp{position:absolute;right:var(--card-pad);top:calc(var(--card-pad) - 6px);width:92px;height:auto;transform:rotate(7deg)}
.tile--dates .ledger{flex:1;margin-top:4px}
.tile--dates .ledger caption{font-size:16.5px;padding-bottom:6px}
.tile--dates .ledger th{padding-bottom:8px;font-size:16px}
.tile--dates .ledger td{padding:9px 0;border-bottom:1px dotted var(--rule-ink);vertical-align:middle}
.tile--dates .ledger tbody tr:last-child td{border-bottom:0;vertical-align:baseline}
.tile--dates .ledger td:first-child{width:48%;font:italic 400 21px/1.3 var(--serif)}
.tile--dates .ledger td:last-child,.tile--dates .ledger th:last-child{padding-left:14px}
.tile--dates .ledger__note{display:inline-block;margin-top:4px;padding:2px 12px;border-radius:999px;border:1px solid var(--rule);background:var(--card);color:var(--wax-hover);font-size:15px;font-weight:650}

/* the price and the Republic-only line: a calm slim box on the same card style, its own row under the two cards above it */
.price-line{grid-column:1/-1;margin:0;padding:20px var(--card-pad);border-radius:var(--card-r);border:1px solid var(--rule);background:rgba(255,250,240,.7);
  text-align:center;font:italic 400 clamp(18px,1.55vw,22px)/1.45 var(--serif);color:var(--ink)}
.price-line strong{font-style:normal;font-weight:700;color:var(--wax-hover)}

/* The price: the night-green card with the tag, and the "where it goes" drop-down */
.tile--price{background-color:#17382b;background-image:radial-gradient(120% 80% at 100% 0,rgba(226,184,92,.16),transparent 60%),var(--stars);background-size:auto,520px 520px;box-shadow:0 14px 34px rgba(10,26,21,.30)}
.tile--price h2{margin-bottom:0;padding-right:96px;color:var(--gold)}
.tile--price{display:flex;flex-direction:column;gap:14px}
.tile--price>p{margin:0;color:var(--snow);font-size:17px;line-height:1.6}
.tile--price>p:last-child{color:var(--snow-2)}
.tile__tag{position:absolute;right:-14px;top:12px;width:140px;height:auto;transform:rotate(-6deg)}
.tile--price .whole{margin:auto 0;border:0;border-radius:var(--card-r-in);background:var(--card);box-shadow:0 1px 0 rgba(43,33,24,.1),0 10px 24px rgba(0,0,0,.28);scroll-margin-top:24px}
.tile--price .whole summary{min-height:54px;padding:10px 20px;color:var(--holly);font-size:17px}
.tile--price .cost-why__body{padding:2px 20px 18px;border-top:1px solid var(--rule);color:var(--ink)}
.tile--price .cost-why__body>p{margin:12px 0;color:var(--ink);font-size:16px;line-height:1.55}
.tile--price .cost{font-size:15.5px}

/* So you can order with an easy mind: the white card, four promises */
.tile--trust{background:var(--card);box-shadow:var(--card-shadow)}
.tile--trust h2{margin-bottom:18px;color:var(--holly)}
.trust-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:0;list-style:none}
.trust-list li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;padding:12px 20px;border-radius:var(--card-r-in);background:var(--paper)}
.trust-list .medal{width:52px;height:52px;margin:0;filter:drop-shadow(0 3px 6px rgba(43,33,24,.3))}
.trust-list p{margin:0;font-size:16px;line-height:1.5;color:var(--ink-2)}
@media (min-width:700px) and (max-width:1099px){.trust-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- the questions and the last call to order, on one night with straight edges ----------
   The night starts at a straight edge under the paper (round 4: no fade, no wave): half a gap of paper above it, then one whole gap of
   night above the heading. It carries the questions and the white closing card, one whole gap between them and one whole gap under the
   card, and then the white footer begins at a straight edge (style.css). */
.nightfall{position:relative;padding-bottom:var(--sec-gap);background-color:var(--night);background-image:var(--stars);background-size:520px 520px}
.faq{position:relative;z-index:1;padding-top:var(--sec-gap);padding-bottom:0;scroll-margin-top:calc(8px - var(--sec-gap))}

/* the heading row, as on wcag.ie: a small eyebrow, the heading, and a short line on the right (the same row as How it works) */
.faq__head{display:grid;grid-template-columns:minmax(0,1fr);gap:6px 32px;margin-bottom:var(--card-gap)}
.faq__eyebrow{margin:0;font:700 13.5px/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.faq h2{margin:0;font:italic 400 var(--h2)/1.15 var(--serif);letter-spacing:-.01em;color:var(--gold)}
.faq__lead{margin:0;font-size:18px;color:var(--snow-2)}
@media (min-width:941px){
  .faq__head{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"eyebrow lead" "h2 lead";align-items:end}
  .faq__eyebrow{grid-area:eyebrow}
  .faq h2{grid-area:h2}
  .faq__lead{grid-area:lead;align-self:end}
}

/* the FAQ from wcag.ie (its .faqx, copied for the night): on the left three filter tabs (round pills, the picked one with a coloured edge
   and dot) and under them a call box; on the right the questions of the picked tab only, each its own rounded box with the round chevron.
   The tabs, the call box and the panels are siblings in the order a reader meets them (the tabs, the call box, then the questions), and
   the grid puts the call box under the tabs on a wide screen. The tabs only show once home.js has started them: with no JavaScript every
   question shows, in its three groups, and the tabs are not shown. Their night colours: unpicked, snow on the panel green 11.9:1; picked,
   ink on the card cream 14.4:1, with the gold edge and a holly dot. */
.faqx{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
.faqx__tabs{display:none;gap:8px}
.faqx--tabs .faqx__tabs{display:grid}
.faqx__tab{appearance:none;-webkit-appearance:none;display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:13px 24px;border:1px solid var(--line);border-radius:999px;
  background:var(--panel);color:var(--snow);font:500 17px/1.3 var(--sans);text-align:left;cursor:pointer;transition:background-color .18s,border-color .18s,box-shadow .18s,color .18s}
.faqx__tab::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:rgba(244,239,228,.45);transition:background-color .18s}
.faqx__tab:hover{border-color:var(--gold)}
.faqx__tab.is-on{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold),0 14px 30px -16px rgba(0,0,0,.7);background:var(--card);color:var(--ink);font-weight:650}
.faqx__tab.is-on::before{background:var(--holly)}
.faqx__ask{min-width:0;padding:calc(var(--card-pad) - 8px) var(--card-pad) calc(var(--card-pad) - 4px);border-radius:var(--card-r);background:var(--card);color:var(--ink);box-shadow:0 24px 60px rgba(0,0,0,.4)}
.faqx__ask h3{margin:0;font:italic 400 var(--h3)/1.2 var(--serif);color:var(--holly)}
.faqx__ask p{margin:6px 0 14px;font-size:17px;line-height:1.55;color:var(--ink)}
.faqx__ask p a{color:var(--holly);overflow-wrap:anywhere}
.faqx__ask .btn{width:100%;min-height:48px;margin:0}
.faqx__ask .btn + .btn{margin-top:8px}
.faqx__ask .btn--wax{background:var(--wax);box-shadow:0 8px 20px rgba(154,29,21,.22)}
.faqx__ask .btn--wax:hover{background:var(--wax-hover)}
.faqx__ask :focus-visible{outline-color:var(--holly)}
.faqx__panels{min-width:0}
.faqx__panel{display:grid;gap:16px}
.faqx--tabs .faqx__panel:not(.is-on){display:none}
.faqx__panel[hidden]{display:none}
/* each question: paper with no edge when closed; white with a gold edge and a soft shadow when open */
.faqx__i{border:1px solid transparent;border-radius:18px;background:var(--paper);color:var(--ink);transition:background-color .18s,border-color .18s,box-shadow .18s}
.faqx__i:hover{border-color:var(--rule)}
.faqx__i[open]{background:var(--card);border-color:var(--gold);box-shadow:0 0 0 1px var(--gold),0 18px 40px rgba(0,0,0,.34)}
.faqx__i>summary{display:flex;align-items:center;gap:20px;min-height:84px;padding:24px 26px;border-radius:18px;cursor:pointer;list-style:none}
.faqx__i>summary::-webkit-details-marker{display:none}
.faqx .faqx__q{flex:1 1 auto;min-width:0;margin:0;font:650 19px/1.35 var(--sans);color:var(--ink);text-wrap:wrap}
.faqx__i>summary:hover .faqx__q{color:var(--holly)}
.faqx__ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--rule);background:var(--white);color:var(--holly);transition:background-color .18s,border-color .18s,color .18s}
.faqx__ic::before{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
.faqx__i[open] .faqx__ic{background:var(--holly);border-color:var(--holly);color:var(--white)}
.faqx__i[open] .faqx__ic::before{transform:translateY(2px) rotate(-135deg)}
.nightfall .faqx__i>summary:focus-visible{outline:3px solid var(--holly);outline-offset:-3px}
.faqx__a{padding:0 26px 26px}
.faqx__a p{margin:0;font-size:17.5px;line-height:1.7;color:var(--ink-2)}
.faqx__a a{color:var(--holly)}
@media (min-width:941px){
  /* a wide screen: taller boxes, so the questions end close to where the call box ends on the left (three questions beside the tabs and the box) */
  .faqx__i>summary{min-height:108px}
  .faqx{grid-template-columns:minmax(0,330px) minmax(0,1fr);grid-template-areas:"ask panels";column-gap:32px}
  .faqx--tabs{grid-template-areas:"tabs panels" "ask panels";grid-template-rows:auto 1fr}
  .faqx__tabs{grid-area:tabs}
  .faqx__ask{grid-area:ask}
  .faqx__panels{grid-area:panels}
}

/* ---------- phones and tablets ---------- */
@media (max-width:699px){
  .tile__art{width:72px}
  .tile--finds h2,.tile--finds .tile__intro{padding-right:84px}
  .tile__stamp{right:var(--card-pad);width:70px}
  .tile--dates .tile__intro{max-width:calc(100% - 84px)}
  .tile--dates .ledger td:first-child{width:54%;font-size:19px}
  .tile__tag{right:-8px;top:8px;width:108px}
  .find-list li,.trust-list li{padding:14px 16px}
  .price-line{padding:16px 20px}
  .faqx__i>summary{min-height:72px;padding:18px 16px 18px 18px;gap:14px}
  .faqx .faqx__q{font-size:17.5px}
  .faqx__ic{width:34px;height:34px}
  .faqx__a{padding:0 18px 20px}
  .faqx__a p{font-size:17px}
  .faqx__tab{padding:13px 20px;font-size:16.5px}
}

/* ---------- the sample letter, full screen (25 Nov 2026) ----------
   "Read a sample", "Read a sample letter" and a tap on the hero's letter open it (home.js). The dialog is the order page's own full-screen
   view (full.css); here are only the sheet in it and Start their letter under it. The sheet is shown whole when its words are big enough to
   read that way (14px and up, a sheet 665px wide or more); when fitting it to the window would make them smaller, the sheet stays 665px wide
   and the letter scrolls down inside the dialog, never sideways. A window narrower than that (a phone) shows the same sheet set for reading:
   the words at the reader's own text size (16px unless they changed it), each part of the letter in the same proportion to them as on the
   page, narrower margins, and the parchment as long as the letter. The words, the fonts, the colours and the paper are the letter's own. */
.js .hero-letter{cursor:zoom-in}
.sample .full__scroll{display:block;overscroll-behavior:contain;container:sample / size}
.sample__page{width:min(100%,max(calc((100cqh - 80px) * 210 / 297),665px));margin:0 auto}
.sample__page .lsheet-box{box-shadow:0 18px 40px rgba(0,0,0,.45)}
.sample__go{display:flex;justify-content:center;margin:0;padding:18px 0 6px}
@container sample (max-width:664.98px){
  .sample__page{width:100%}
  .sample .lsheet{aspect-ratio:auto}
  /* each rule is letter-designs.css's own rule with .sample in front (so they win in the same order as there), and each size is that
     rule's cqw figure over 2.108, the letter's own type size in cqw, in rem */
  .sample .lsheet .lsheet-letter{position:relative;inset:auto;padding:2.5rem 1.25rem 2.25rem;font-size:1rem}
  .sample .lsheet p{margin:0 0 calc(1.655rem / 2.108)}
  .sample .lsheet .lsheet-letter:has(.head--ga) p{margin-bottom:calc(1.05rem / 2.108)}
  .sample .lsheet .head{margin:0 0 calc(2.857rem / 2.108)}
  .sample .lsheet .head p{margin:0}
  .sample .lsheet .head .from{font-size:calc(2.02rem / 2.108);-webkit-text-stroke-width:calc(.035rem / 2.108)}
  .sample .lsheet .head .who{font-size:calc(6.3rem / 2.108);margin:calc(.6rem / 2.108) 0 0;-webkit-text-stroke-width:calc(.1rem / 2.108)}
  .sample .lsheet .head .where{font-size:calc(1.95rem / 2.108);margin:calc(.6rem / 2.108) 0 0;-webkit-text-stroke-width:calc(.035rem / 2.108)}
  .sample .lsheet .rule{width:calc(30rem / 2.108);margin:calc(2rem / 2.108) auto 0;border-top-width:calc(.45rem / 2.108)}
  .sample .lsheet .date{font-size:calc(1.97rem / 2.108);margin:0 0 calc(2.5rem / 2.108)}
  .sample .lsheet .greet{font-size:calc(2.462rem / 2.108);margin:0 0 calc(1.9rem / 2.108)}
  .sample .lsheet .close{margin:calc(2.3rem / 2.108) 0 0}
  .sample .lsheet .sig{font-size:calc(6.4rem / 2.108);-webkit-text-stroke-width:calc(.11rem / 2.108);margin:calc(1.2rem / 2.108) 0 calc(-.4rem / 2.108) calc(3.5rem / 2.108);padding:0 0 calc(1.1rem / 2.108)}
  .sample .lsheet .sig::after{bottom:calc(-.2rem / 2.108);height:calc(2rem / 2.108)}
  .sample .lsheet .ps{font-size:calc(1.891rem / 2.108);margin:calc(2.6rem / 2.108) 0 0}
}
/* the counter's heading, moved to by Start their letter: no box round it (a real control keeps its ring) */
#h-choose[tabindex="-1"]:focus{outline:none}

/* small phones: the notes' pictures are a little smaller, so their words keep more of the row */
@media (max-width:420px){
  .find-list li{gap:12px;padding:12px 14px}
  .find-list .arrives__icon{width:38px;height:38px;padding:5px;border-radius:10px}
}

@media (forced-colors:active){
  /* the question's chevron is drawn in the text colour, so in forced colours it stays visible; the picked tab keeps a heavier edge */
  .faqx__ic{border:2px solid CanvasText;background:Canvas;color:CanvasText}
  .faqx__i[open] .faqx__ic{background:Canvas;color:CanvasText}
  .faqx__tab{border:2px solid CanvasText}
  .faqx__tab.is-on{border:3px solid Highlight}
  .hero-join{display:none}
  .tile,.find-list li,.trust-list li,.how-step,.faqx__i,.faqx__ask,.final__card,.final__why li,.price-line{border:1px solid CanvasText}
  .how-step__num{forced-color-adjust:auto}
}
