/* ==========================================================================
   base.css — Wedding Dance Brighton (reference: Brand Breeder)
   Putty page cut into cells by 1px rules, serif caps display, uppercase
   grotesk labels, mustard and charcoal cells, monochrome photos. No radius.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --putty: #ECE8E0; --putty-2: #E2DDD3; --paper: #F6F4EF;
  --ink: #232323; --ink-2: #4A4744; --muted: #6B6660; --ink-soft: #3A3835;
  --mustard: #F2D94E; --mustard-2: #E6C93A; --rule: #232323;
  --font-display: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", Times, serif;
  --font-display-caps: "Instrument Serif", "Instrument Serif Caps Fallback", "Times New Roman", Times, serif;
  --font-body: "Inter", "Inter Fallback", Arial, sans-serif;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: 6rem;
  --bar-height: 4.25rem; --cell-pad: clamp(1.25rem, 3vw, 2.5rem);
}
/* Fallback faces measured with tools/font-width-ratio: Instrument Serif vs Times New Roman 0.8282 lowercase, 0.728 in caps (a separate face for the uppercase H1 and wordmark), italic 0.8684; Inter vs Arial 1.0661. Vertical metrics from the woff2 hhea tables. */
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"); size-adjust: 82.8%; ascent-override: 99%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Caps Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"); size-adjust: 71.5%; ascent-override: 99%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"); size-adjust: 86.8%; ascent-override: 99%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-weight: 400 499; src: local("Arial"), local("Helvetica"); size-adjust: 106.6%; ascent-override: 96.9%; descent-override: 24.1%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-weight: 500 700; src: local("Arial"), local("Helvetica"); size-adjust: 106.6%; ascent-override: 96.9%; descent-override: 24.1%; line-gap-override: 0%; }

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-height) + 1rem); }
body { margin: 0; background: var(--putty); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-2); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-family: var(--font-display-caps); font-size: clamp(2.8rem, 1.6rem + 5vw, 6.4rem); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.005em; }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2rem; }
strong { font-weight: 600; }
em, .serif-i { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.small { font-size: .86rem; color: var(--muted); }
.label { display: inline-block; font: 600 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }
.label--muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--putty); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* 3. Sheet, cells, rules ---------------------------------------------------- */
.sheet { max-width: 84rem; margin-inline: auto; }
@media (min-width: 84rem) { .sheet { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); } }
.container { width: 100%; padding-inline: clamp(1rem, 3vw, 2rem); }
.cells { display: grid; gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cells--2 { grid-template-columns: repeat(2, 1fr); }
.cells--3 { grid-template-columns: repeat(3, 1fr); }
.cells--4 { grid-template-columns: repeat(4, 1fr); }
.cells--hero { grid-template-columns: 1.4fr 1fr; }
.cells--form { grid-template-columns: 1fr 1.4fr; }
.cell { background: var(--putty); padding: var(--cell-pad); min-width: 0; }
.cell--paper { background: var(--paper); }
.cell--putty2 { background: var(--putty-2); }
.cell--mustard { background: var(--mustard); }
.cell--ink { background: var(--ink); color: var(--putty); }
.cell--ink h1, .cell--ink h2, .cell--ink h3, .cell--ink a:not(.btn), .cell--ink .label { color: var(--putty); }
/* a:not(.btn): otherwise this rule (0,2,0) beats .btn--primary (0,1,0) and puts putty text on a mustard button */
.cell--ink .lead, .cell--ink p { color: #D9D4CA; }
.cell--ink .small { color: #B9B3A8; }
.cell--photo { padding: 0; overflow: hidden; background: var(--putty-2); }
.cell--photo img { width: 100%; height: 100%; object-fit: cover; }
.cell--span2 { grid-column: span 2; }
.cell--span3 { grid-column: span 3; }
@media (max-width: 64rem) { .cells--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 48rem) { .cells--2, .cells--3, .cells--4, .cells--hero, .cells--form { grid-template-columns: 1fr; } .cell--span2, .cell--span3 { grid-column: auto; } }
.rule-label { display: flex; align-items: center; gap: 1rem; padding: 1.25rem var(--cell-pad) .9rem; }
.rule-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); opacity: .35; }
.section { padding-block: clamp(2rem, 5vw, 4rem); }
.section-head { max-width: 46rem; padding: 0 var(--cell-pad) clamp(1.25rem, 3vw, 2rem); }
.section-head p { color: var(--ink-2); }
.arrow { width: 1em; height: 1em; flex: none; }
.chev { width: .8em; height: .8em; flex: none; }

/* 4. Ticker ---------------------------------------------------------------- */
.ticker { height: 2.3rem; overflow: hidden; border-bottom: 1px solid var(--rule); display: flex; align-items: center; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear 1.5s infinite; }
/* 1.5s delay so the marquee starts after first paint (measured: no LCP gain, but no cost either, and it reads calmer) */
.ticker__track span { padding-inline: 1.6rem; white-space: nowrap; }
.ticker__track span::after { content: "\2726"; margin-left: 3.2rem; font-style: normal; font-size: .7em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* 5. Buttons and pills ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.4rem; font: 600 .78rem/1.1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; border: 1px solid var(--ink); background: var(--mustard-2); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--mustard); color: var(--ink); }
.btn--primary { background: var(--mustard-2); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--putty); }
.btn--dark:hover { background: #3A3835; color: var(--putty); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--putty); }
.btn--light { background: var(--putty); color: var(--ink); }
.btn--light:hover { background: var(--mustard); }
.cell--ink .btn--outline { color: var(--putty); border-color: var(--putty); }
.cell--ink .btn--outline:hover { background: var(--putty); color: var(--ink); }
.btn--sm { padding: .65rem 1rem; font-size: .7rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: .84rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pill { display: inline-block; font: 600 .68rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; padding: .35rem .7rem; border: 1px solid var(--ink); color: var(--ink); }
.pill--mustard { background: var(--mustard); }
.pill--ink { background: var(--ink); color: var(--putty); border-color: var(--ink); }
.cell--ink .pill { color: var(--putty); border-color: var(--putty); }
.cell--ink .pill--mustard { background: var(--mustard); color: var(--ink); border-color: var(--mustard); }

/* 6. Figures, numbers, notes ------------------------------------------------ */
.num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.num--i { font-style: italic; }
.price { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 1.5vw, 3.6rem); line-height: 1; }
.note { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink-2); }
.cell--ink .note { color: #D9D4CA; }
.avatar { width: 3rem; height: 3rem; object-fit: cover; filter: grayscale(1); }

/* 7. Reveal (movement only, scroll-driven) ---------------------------------- */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  @keyframes rise { from { transform: translateY(18px); } to { transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* 8. Form ------------------------------------------------------------------- */
.field { margin-bottom: 1rem; }
.field__label { display: block; font: 600 .7rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.field__req { color: var(--ink); }
.field__input { width: 100%; background: #fff; border: 1px solid var(--ink); border-radius: 0; padding: .8rem .9rem; font: inherit; color: var(--ink); }
.field__input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.field__input::placeholder { color: #8A857D; }
textarea.field__input { min-height: 7rem; resize: vertical; }
select.field__input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232323' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: .9rem; padding-right: 2.4rem; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 40rem) { .form__row--2 { grid-template-columns: 1fr; } }
.enquiry__note { margin-top: .8rem; }
.form-error { border: 1px solid var(--ink); background: var(--mustard); padding: .8rem 1rem; font-weight: 600; margin-bottom: 1rem; }
.promise { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.promise li { display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; align-items: start; padding: .9rem 0; border-top: 1px solid rgba(35,35,35,.35); }
.promise li:last-child { border-bottom: 1px solid rgba(35,35,35,.35); }
.promise .num { font-size: 2rem; font-style: italic; }
.promise strong { display: block; font-weight: 600; }
.promise span { font-size: .92rem; color: var(--ink-2); }

/* 9. FAQ -------------------------------------------------------------------- */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .7rem; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 3rem 1.1rem 0; color: var(--ink-2); }

/* 10. Google map ------------------------------------------------------------ */
.gmap { aspect-ratio: 16 / 7; min-height: 18rem; border: 1px solid var(--rule); overflow: hidden; background: var(--putty-2); }
.gmap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4); }
.gmap__note { margin: .9rem 0 0; }
@media (max-width: 40rem) { .gmap { aspect-ratio: 4 / 5; } }

/* 11. Big CTA and mobile bar ------------------------------------------------ */
.cta-big { text-align: center; padding-block: clamp(3rem, 7vw, 6rem); }
.cta-big h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem); max-width: 22ch; margin-inline: auto; }
.cta-big p { max-width: 36rem; margin: 0 auto 1.6rem; color: var(--ink-2); }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--putty); border-top: 1px solid var(--rule); translate: 0 110%; transition: translate .3s; display: none; }
.cta-bar .btn { width: 100%; }
.cta-bar.is-visible { translate: 0 0; }
@media (max-width: 51.99rem) { .has-cta-bar .cta-bar { display: block; } .has-cta-bar { padding-bottom: 4rem; } }

/* 12. Lists, chips, tables ---------------------------------------------------- */
.chips-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips-row li { border: 1px solid var(--ink); padding: .3rem .7rem; font-size: .8rem; font-weight: 500; }
.chips-row a { text-decoration: none; }
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font: 600 .74rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tick-list li { padding: .55rem 0 .55rem 1.4rem; position: relative; border-top: 1px solid rgba(35,35,35,.25); }
.tick-list li::before { content: "\2726"; position: absolute; left: 0; top: .6rem; font-size: .7rem; }

/* 13. Tile map (home + areas hub) ------------------------------------------- */
.tile-map { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: "hm hm cr cr" "ch bn bn ms" "wo bn bn lw" "wo eb eb hs"; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tile-map a { display: flex; flex-direction: column; justify-content: center; min-height: 5.6rem; padding: .9rem .8rem; background: var(--putty); color: var(--ink); text-decoration: none; }
.tile-map a:hover { background: var(--mustard); }
.tile-map a strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.05; }
.tile-map a span { font-size: .74rem; color: var(--muted); margin-top: .3rem; text-transform: uppercase; letter-spacing: .06em; }
.tile-map .tm-bn { background: var(--mustard); }
.tile-map .tm-bn span { color: var(--ink-2); }
.tile-map .is-current { background: var(--ink); color: var(--putty); }
.tile-map .is-current span { color: #B9B3A8; }
.tile-map .is-current:hover { background: var(--ink); }
.tile-map .here { display: inline-block; margin-top: .4rem; font: 600 .62rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; background: var(--mustard); color: var(--ink); padding: .25rem .5rem; align-self: flex-start; }
.tm-cr { grid-area: cr; } .tm-hm { grid-area: hm; } .tm-hs { grid-area: hs; } .tm-bn { grid-area: bn; } .tm-ms { grid-area: ms; } .tm-ch { grid-area: ch; } .tm-lw { grid-area: lw; } .tm-wo { grid-area: wo; } .tm-eb { grid-area: eb; }
@media (max-width: 40rem) { .tile-map { grid-template-columns: 1fr 1fr; grid-template-areas: "bn bn" "hm cr" "ch ms" "wo lw" "eb hs"; } .tile-map a { min-height: 4.6rem; } }
