/* Hallmark · shape: Ledger and call sheet · genre: editorial · theme: custom · job: book · idea: "An independent advisor's page that proves its one claim: who pays whom, and a shopping day run to a call sheet." · vibe: "private salon, bottle green, brass"
 * paper: oklch(96.5% 0.012 110) · accent: oklch(78% 0.12 85) · display: Gambetta · body: Hanken Grotesk · hero: Poster, a toned photograph with the head low left under a field-colour scrim · nav: edge-aligned over the photograph · footer: letter close on the deep field · imagery: library stand-ins, two (tailor's table, hangers) in swappable slots · signature: the ledger of who pays whom, its last line a band of the field colour
 * axes: light/roman-serif/chromatic-yellow · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, the photographs are stand-ins of a tailor's table and hangers, not her Paris; the ledger and the call sheet carry the specificity until her own pictures replace them */
/* Hallmark · dismissed 58 · the static count adds the English and French copy together, so each language shows well under the budget; the English headline is seven words and the lead is twelve */
/* Hallmark · dismissed 49 · the FAQ questions are full-width rows that wrap by design, and the reported label joins the English and French questions */
@import url("./tokens.css");
@import url("./base.css");

/* Fonts are self-hosted: no request leaves for a third-party font server. */
@font-face { font-family: "Gambetta"; src: url("assets/fonts/gambetta-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("assets/fonts/gambetta-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

body { font-synthesis: none; color: var(--color-ink-2); line-height: 1.6; }
h1, h2, h3 { color: var(--color-ink); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); }
h1 { max-width: 20ch; font-size: var(--text-display); line-height: 1.02; }
h2 { max-width: 30ch; font-size: var(--text-section); line-height: 1.05; }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }

/* Language: both languages sit in the markup, one is shown. English is the no-script default. */
html[lang="en"] [lang="fr"], html[lang="fr"] [lang="en"] { display: none; }
html[lang="fr"] [data-set-lang="en"], html[lang="en"] [data-set-lang="fr"] { display: inline-flex; }

/* The field: the bottle-green ground, carried by the hero, the call sheet, the close and the ledger's last line */
.field { background: var(--color-field); color: var(--color-on-field-2); }
.field--deep { background: var(--color-field-2); }
.field h1, .field h2, .field h3, .field .wordmark { color: var(--color-on-field); }
.field :focus-visible, .field .btn:focus-visible { outline-color: var(--color-focus-field); }

.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-toast); padding: var(--space-sm) var(--space-md); background: var(--color-paper); color: var(--color-ink); border: var(--rule-hair) solid var(--color-ink); transform: translateY(-300%); }
.skip:focus-visible { transform: none; }

/* Controls: one brass recipe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 400 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent-deep); text-decoration-thickness: 1px; text-underline-offset: 0.22em; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent-deep); }
.link:active { color: var(--color-ink-2); }
.field .link { color: var(--color-on-field); text-decoration-color: var(--color-accent); }
.field .link:hover { color: var(--color-accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: var(--space-3xs); color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.field .fill { border-color: color-mix(in oklch, var(--color-on-field-2) 70%, transparent); color: var(--color-on-field-2); }

/* Nav and hero: a Poster. A toned photograph, the head low left under a scrim of the field colour. */
.hero { position: relative; isolation: isolate; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo > img { object-position: 72% 58%; filter: saturate(0.66) brightness(0.92); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--color-field) 12%, color-mix(in oklch, var(--color-field) 74%, transparent) 52%, color-mix(in oklch, var(--color-field) 18%, transparent) 100%); pointer-events: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-lg); }
.nav__end { display: flex; align-items: center; gap: var(--space-lg); }
.wordmark { font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; margin: 0; }
.lang { display: flex; align-items: center; }
.lang button { min-width: 44px; min-height: 44px; padding: 0 var(--space-xs); border: 0; background: none; color: var(--color-on-field-2); font: 400 var(--text-sm)/1 var(--font-body); cursor: pointer; align-items: center; justify-content: center; transition: color var(--dur-short) var(--ease-out); }
.lang button:hover { color: var(--color-on-field); }
.lang button:active { color: var(--color-accent); }
.lang button:focus-visible { outline-offset: -2px; }
.lang button[aria-pressed="true"] { color: var(--color-on-field); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.hero__wrap { display: grid; align-items: end; }
.hero__body { display: grid; justify-items: start; gap: var(--space-lg); padding-block: var(--space-xl) var(--space-3xl); max-width: 46rem; animation: settle var(--dur-long) var(--ease-out) backwards; }
.hero__body h1 { max-width: 15ch; }
.hero__body .lead { color: var(--color-on-field); }
@keyframes settle { from { opacity: 0; transform: translateY(var(--space-sm)); } }

/* Sections */
.section { padding-block: var(--section-gap); }
.section--well { background: var(--color-paper-2); }
.section > .container > h2 { margin-bottom: var(--space-2xl); }

/* The ledger: who pays whom, set as type */
.ledger { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.ledger li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.ledger li:first-child { border-top: 0; }
.ledger__line { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-section); line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-ink); overflow-wrap: break-word; min-width: 0; }
.ledger__note { font-size: var(--text-lg); line-height: 1.45; max-width: 36ch; }
.ledger .ledger__last { padding-inline: var(--space-xl); border-top: 0; }
.ledger__last .ledger__line { color: var(--color-on-field); }

/* Offers: a menu of three, each a row of name and price */
.offers { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.menu { border-bottom: var(--rule-hair) solid var(--color-rule); }
html:not(.js) .menu { display: none; }
.menu__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-lg); width: 100%; padding: var(--space-lg) 0; border: 0; border-top: var(--rule-hair) solid var(--color-rule); background: none; text-align: start; cursor: pointer; color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
.menu__item::after { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: var(--color-accent-deep); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }
.menu__item[aria-selected="true"] { color: var(--color-ink); }
.menu__item[aria-selected="true"]::after { transform: scaleX(1); }
.menu__item:hover { color: var(--color-ink); }
.menu__item:active { color: var(--color-ink-2); }
.menu__item:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.menu__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-3xl); line-height: 1.05; letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; }
.menu__price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); white-space: nowrap; }
.detail { display: grid; gap: var(--space-3xl); }
html.js .panel[hidden], html.js .panel__title { display: none; }
.panel { display: grid; justify-items: start; gap: var(--space-lg); }
.panel .lead { color: var(--color-ink-2); }
.rows { list-style: none; margin: 0; padding: 0; width: 100%; border-top: var(--rule-hair) solid var(--color-ink); }
.rows li { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.rows li:first-child { border-top: 0; }
.palette-wrap { display: grid; gap: var(--space-xs); width: 100%; margin: 0; }
.palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); height: 4.5rem; }
.palette li { background: var(--c); }
.palette-wrap figcaption { font-size: var(--text-sm); color: var(--color-muted); }

/* The call sheet: a shopping day as a timetable on the field */
.sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.sheet__head { grid-column: 1 / span 7; display: grid; gap: var(--space-lg); }
.sheet__head h2 { margin: 0; max-width: 18ch; }
.sheet__head .lead { color: var(--color-on-field-2); }
.sheet__rows { grid-column: 1 / span 7; list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-top: var(--rule-hair) solid var(--color-field-rule); }
.sheet__rows li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-field-rule); }
.sheet__rows li:first-child { border-top: 0; }
.sheet__when { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); line-height: 1.15; color: var(--color-on-field); }
.sheet__photo { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: stretch; margin: 0; min-height: 28rem; }
.sheet__photo > img { object-position: 52% 38%; filter: saturate(0.85) brightness(0.92); }

/* Questions */
.faq h2 { margin: 0 0 var(--space-2xl); }
.qa { border-top: var(--rule-hair) solid var(--color-ink); }
.qa__item { border-bottom: var(--rule-hair) solid var(--color-rule); }
.qa__item h3 { max-width: none; font-size: var(--text-title); }
.qa__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); width: 100%; min-height: 52px; padding: var(--space-xs) 0; border: 0; background: none; text-align: start; white-space: normal; line-height: 1.2; font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.qa__mark { font-family: var(--font-body); font-size: var(--text-lg); color: var(--color-muted); }
.qa__q:hover { color: var(--color-accent-deep); }
.qa__q:active { color: var(--color-ink-2); }
.qa__q:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.qa__a p { padding-bottom: var(--space-lg); max-width: 56ch; }

/* The booking, on the deep field */
.section--close { padding-block: var(--section-gap); }
.book { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.book h2 { grid-column: 1 / span 7; margin: 0; font-size: var(--text-display-s); }
.book__side { grid-column: 8 / -1; display: grid; gap: var(--space-lg); }
.book__side .lead { color: var(--color-on-field-2); }

/* Letter close */
.close { padding-block: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-field-rule); }
.close__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); }
.close__line { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); color: var(--color-on-field); margin-bottom: var(--space-xs); }
.close__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.close__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-on-field-2); text-decoration-color: var(--color-field-rule); transition: color var(--dur-short) var(--ease-out); }
.close__links a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
.close__credits { flex-basis: 100%; max-width: none; font-size: var(--text-xs); line-height: 1.5; color: var(--color-on-field-2); }
.close__credits a { color: inherit; text-decoration-color: var(--color-field-rule); }
.close__credits a:hover { color: var(--color-accent); }

/* Narrow */
@media (max-width: 60rem) {
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-lg); }
  .ledger .ledger__last { padding-inline: var(--space-lg); }
  .offers { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .menu__name { font-size: var(--text-2xl); }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet__head, .sheet__rows, .sheet__photo { grid-column: 1 / -1; grid-row: auto; }
  .sheet__rows { margin-top: var(--space-xl); }
  .sheet__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .sheet__rows li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .book { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .book h2, .book__side { grid-column: 1 / -1; }
  .section > .container > h2 { margin-bottom: var(--space-xl); }
  .hero::after { background: linear-gradient(180deg, color-mix(in oklch, var(--color-field) 40%, transparent) 0%, var(--color-field) 78%); }
}
@media (max-width: 40rem) {
  .nav { flex-wrap: wrap; }
  .hero__body h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__body { animation: none; }
  .menu__item::after { transition: none; }
}
