/* THOLE · Wine · page.css
   Page-only CSS for the Wine page, on Kit B's tokens (assets/kit.css) and Home's shared parts (assets/site.css).
   Shared parts first (scoped .wn-), then each direction's signature move (scoped .wn-a- and .wn-b-).
   On promotion: copy this file next to public/wine/index.html as page.css, point the page's link at "page.css",
   and drop the block of the direction that was not picked. No new tokens. */


/* ---------------------------------------------------------------- the page's opening */
.wn-top { padding-top: clamp(28px, 4vw, 64px); }
.wn-top .season-tag { margin-bottom: clamp(18px, 2vw, 28px); }

/* ---------------------------------------------------------------- the shape of the list: a ruled ledger, bins in the money column */
.wn-list__head { display: grid; gap: 22px var(--gap); margin-bottom: clamp(36px, 4.4vw, 64px); }
.wn-list__head .t-lede { color: var(--ink); }
@media (min-width: 900px) {
  .wn-list__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .wn-list__head .t-label { grid-column: 1 / -1; }
}
.wn-ledger { width: 100%; border-collapse: collapse; }
.wn-ledger thead th { padding: 0 16px 12px 0; font-size: var(--fs-label); line-height: 1.3; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line); }
.wn-ledger tbody th, .wn-ledger tbody td, .wn-ledger tfoot th, .wn-ledger tfoot td { padding: 16px 16px 17px 0; border-top: 1px solid var(--hair); text-align: left; vertical-align: baseline; }
.wn-ledger tbody tr:first-child > * { border-top: 0; }
.wn-ledger tbody th { width: 34%; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.012em; }
.wn-ledger__odd th { font-style: normal; }
.wn-ledger__on { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.wn-ledger__on b { color: var(--ink); font-weight: 600; }
.wn-ledger__on span { display: block; }
/* the bins: right-aligned, display face, behind a ledger's double rule, the way prices sit on a list */
.wn-ledger .wn-bins { width: 7.5rem; padding-right: 0; padding-left: 22px; border-left: 3px double var(--line); text-align: right; font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wn-ledger thead .wn-bins { font-family: var(--f-text); font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-align: right; }
.wn-ledger tfoot th, .wn-ledger tfoot td { border-top: 3px double var(--line); border-bottom: 1px solid var(--line); padding-block: 18px 20px; }
.wn-ledger tfoot th { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.012em; }
.wn-ledger tfoot .wn-bins { font-size: clamp(36px, 3.4vw, 52px); }
.wn-ledger tfoot td.wn-ledger__on { color: var(--ink); }
/* by the glass: the line under the total */
.wn-glass { display: grid; gap: 6px 24px; padding-block: 18px 20px; border-bottom: 1px solid var(--line); }
.wn-glass h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.012em; }
.wn-glass p { font-size: var(--fs-small); line-height: 1.55; max-width: 60ch; }
.wn-list__note { margin-top: 16px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: 70ch; }
@media (min-width: 700px) { .wn-glass { grid-template-columns: 34% minmax(0, 1fr); align-items: baseline; } }
@media (max-width: 699px) {
  .wn-ledger, .wn-ledger tbody, .wn-ledger tfoot { display: block; }
  .wn-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wn-ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem; column-gap: 14px; border-top: 1px solid var(--hair); padding-block: 14px 15px; }
  .wn-ledger tbody tr:first-child { border-top: 0; }
  .wn-ledger tbody th, .wn-ledger tbody td, .wn-ledger tfoot th, .wn-ledger tfoot td { display: block; width: auto; padding: 0; border: 0; }
  .wn-ledger tbody th, .wn-ledger tfoot th { grid-column: 1; grid-row: 1; font-size: 20px; }
  .wn-ledger__on { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .wn-ledger .wn-bins { width: auto; grid-column: 2; grid-row: 1 / span 2; align-self: start; padding: 2px 0 0 12px; border-left: 3px double var(--line); height: 100%; font-size: 28px; }
  .wn-ledger tfoot tr { border-top: 3px double var(--line); border-bottom: 1px solid var(--line); padding-block: 16px 18px; }
  .wn-ledger tfoot .wn-bins { font-size: 36px; }
  .wn-ledger tfoot th, .wn-ledger tfoot td { border: 0; }
}

/* ---------------------------------------------------------------- the pairing prices: three heads at one weight */
.wn-prices { display: grid; gap: 0; border-top: 1px solid var(--line); }
.wn-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding-block: 16px 18px; border-bottom: 1px solid var(--hair); }
.wn-price__name { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.012em; }
.wn-price__n { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-price); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wn-price__what { grid-column: 1 / -1; font-size: var(--fs-small); line-height: 1.5; max-width: 40ch; }
.wn-price__lunch { grid-column: 1 / -1; font-size: var(--fs-small); line-height: 1.4; font-weight: 600; }
@media (min-width: 900px) {
  .wn-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 0; }
  .wn-price { border-top: 3px solid var(--line); border-bottom: 0; padding-top: 18px; grid-template-rows: auto auto 1fr; }
}

/* ---------------------------------------------------------------- the two photographs, side by side */
.wn-pics { display: grid; gap: var(--gap); }
.wn-pics figure { margin: 0; display: grid; gap: 0; align-content: start; }
.wn-pics .ph { aspect-ratio: 5 / 4; }
.wn-pics .cap { max-width: 44ch; }
@media (min-width: 700px) { .wn-pics { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- the pairing table (a's three columns, and every phone) */
.wn-pairs { width: 100%; border-collapse: collapse; }
.wn-pairs thead th { padding: 0 16px 12px 0; font-size: var(--fs-label); line-height: 1.3; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-align: left; vertical-align: bottom; border-bottom: 1px solid var(--line); }
.wn-pairs tbody th, .wn-pairs tbody td { padding: 16px 20px 18px 0; border-top: 1px solid var(--hair); text-align: left; vertical-align: top; }
.wn-pairs tbody tr:first-child > * { border-top: 0; }
.wn-pairs tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.wn-course { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 10px; row-gap: 2px; font-weight: 400; }
.wn-course__n { grid-row: span 2; font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.wn-course__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.4vw, 21px); line-height: 1.15; letter-spacing: -0.015em; }
.wn-course__desc { font-size: 15px; line-height: 1.4; color: var(--muted); }
/* a pour: the same two lines, the same sizes, whether it is wine or not */
.wn-pour { display: grid; gap: 3px; }
.wn-pour__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.4vw, 21px); line-height: 1.2; letter-spacing: -0.012em; }
.wn-pour__more { font-size: 15px; line-height: 1.4; }
.wn-pairs td::before { content: none; }
@media (max-width: 699px) {
  /* phones: each course, then its two pours side by side in two equal halves, each under its own label */
  .wn-pairs, .wn-pairs tbody { display: block; }
  .wn-pairs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wn-pairs tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; row-gap: 12px; padding-block: 16px 18px; border-top: 1px solid var(--hair); }
  .wn-pairs tbody tr:first-child { border-top: 0; }
  .wn-pairs tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .wn-pairs tbody th, .wn-pairs tbody td { display: block; padding: 0; border: 0 !important; }
  .wn-pairs tbody th { grid-column: 1 / -1; }
  .wn-pairs td { padding-top: 10px; border-top: 1px solid var(--hair) !important; }
  .wn-pairs td::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: var(--fs-label); line-height: 1.3; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
  .wn-pairs td.wn-cellar { display: none; }
  .wn-pour__name { font-size: 18px; }
}

/* ---------------------------------------------------------------- the soft pairing, in Theo's words */
.wn-say { display: grid; gap: 14px; max-width: 40ch; }
.wn-say blockquote p { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.012em; text-wrap: pretty; }
.wn-say figcaption { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.wn-say figcaption b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- corkage, and what guests say */
.wn-cork { display: grid; gap: clamp(36px, 4vw, 64px); }
.wn-cork__main { display: grid; gap: 18px; align-content: start; }
.wn-cork__no { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.025em; }
.wn-cork__why { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.012em; max-width: 24ch; }
.wn-cork__more { font-size: var(--fs-body); line-height: 1.55; max-width: 46ch; }
.wn-cork__main .actions { margin-top: 10px; }
.wn-guests { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.wn-guests li { display: grid; gap: 6px; padding-block: 18px 20px; border-bottom: 1px solid var(--hair); }
.wn-guests q { font-size: var(--fs-body); line-height: 1.45; quotes: "\201C" "\201D"; text-wrap: pretty; }
.wn-guests span { font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 900px) { .wn-cork { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }

/* ================================================================================================================
   a · "Theo's list": the page reads like the front of a wine list
   ================================================================================================================ */
.wn-a-front { padding-bottom: var(--pad); }
.wn-a-front__title { padding-bottom: clamp(24px, 3vw, 44px); border-bottom: 3px double var(--line); }
.wn-a-front__body { display: grid; gap: clamp(28px, 3.4vw, 56px); padding-top: clamp(28px, 3.4vw, 52px); }
.wn-a-note { display: grid; gap: 18px; align-content: start; }
.wn-a-note blockquote p { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-quote); line-height: 1.12; letter-spacing: -0.015em; text-wrap: pretty; }
.wn-a-note figcaption { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.wn-a-note figcaption b { color: var(--ink); font-weight: 600; }
.wn-a-who { display: grid; gap: 14px; align-content: start; font-size: var(--fs-body); line-height: 1.55; }
/* the front's contents, set like a printed list: the name, a dotted leader, the answer */
.wn-a-contents { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
.wn-a-contents a { display: flex; align-items: baseline; gap: 10px; padding-block: 12px 13px; border-bottom: 1px solid var(--hair); text-decoration: none; font-size: var(--fs-body); line-height: 1.3; }
.wn-a-contents span { font-weight: 500; }
.wn-a-contents i { flex: 1; min-width: 16px; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 40%, transparent); transform: translateY(-4px); }
.wn-a-contents b { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.4vw, 21px); letter-spacing: -0.012em; white-space: nowrap; }
.wn-a-contents a:hover span { text-decoration: underline; text-underline-offset: .24em; }
@media (min-width: 900px) {
  .wn-a-front__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); }
  .wn-a-who { padding-top: 10px; }
}
.wn-a-pair__head { display: grid; gap: 22px var(--gap); margin-bottom: clamp(32px, 4vw, 56px); }
.wn-a-pair__head .t-lede { color: var(--ink); }
@media (min-width: 900px) {
  .wn-a-pair__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .wn-a-pair__head .t-label { grid-column: 1 / -1; }
}
.wn-a-pair .wn-pics { margin-block: clamp(36px, 4vw, 64px); }
.wn-a-pair .wn-say { margin-top: clamp(36px, 4vw, 64px); }
@media (min-width: 700px) {
  .wn-a-pair .wn-pairs th[scope="row"] { width: 34%; }
  .wn-a-pair .wn-pairs td { width: 33%; }
}
.wn-a-pair__foot { display: grid; gap: clamp(24px, 3vw, 44px); margin-top: clamp(36px, 4vw, 64px); }
.wn-a-pair__foot .wn-say { margin-top: 0; }
@media (min-width: 1100px) {
  .wn-a-pair__foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap); align-items: start; margin-top: clamp(36px, 4vw, 64px); }
  .wn-a-pair__foot .wn-say { margin-top: 0; }
}


/* print: the photographs and the actions stay off the paper */
@media print { .wn-pics, .wn-cork .actions { display: none; } }
