/* Hallmark · shape: Narrative Workflow · genre: editorial · theme: Specimen (deal 3/3, seed bespoke-fitted-wardrobes-alcove-e958·979cd78d·2026-12-03·r0) · job: hire · draw: e79cb4
 * hero: Ledge (a field of three of Lee's photographs and his maker's mark, the head resting on paper beneath) · nav: edge-aligned · footer: letter close · imagery: photographs (the business's own) · signature: room by room, the scroll walks the house and each room's built-in opens upward over the last
 * axes: light/high-contrast-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a carpenter page could be any trade; led with his own rooms, his mark and his coverage towns instead of stock timber */
/* Hallmark · dismissed 58 · the reviews screen holds three customer quotes kept word for word from Checkatrade */
/* Hallmark · dismissed F25 · on a phone the room names and notes move from the index into each room's caption, nothing is lost */
@import url("./tokens.css");
@import url("./base.css");

/* Brand: the ink and the signal come from Lee's own roundel (navy ink, red rim), oat paper stays. Photographs print in true colour: Adil wants these pages colourful, not duotone. */
:root {
  --color-ink: oklch(23% 0.045 283);
  --color-ink-2: oklch(31% 0.05 283);
  --color-muted: oklch(46% 0.03 283);
  --color-accent: oklch(36% 0.11 283);
  --color-accent-ink: oklch(97% 0.012 82);
  --color-focus: oklch(48% 0.16 270);
  --color-guide: oklch(45% 0.13 283 / 0.45);
  --color-band: oklch(26% 0.07 283);
  --color-band-ink: oklch(95% 0.018 82);
  --color-band-muted: oklch(80% 0.03 283);
  --color-band-rule: oklch(42% 0.06 283);
  --color-mark: oklch(40% 0.12 22);
  --color-scrim-dialog: oklch(23% 0.045 283 / 0.55);
  --bar-h: 52px;
  --nav-h: 64px;
}

/* Photographs in true colour (overrides the theme's duotone; flat, no depth). */
[data-slot] > img, figure img { filter: none; mix-blend-mode: normal; }

figure { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-card);
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-accent); border-color: var(--color-accent); }
.btn--primary:active { background: var(--color-ink-2); }
.btn--secondary { background: transparent; color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn--secondary:active { background: var(--color-paper-3); }
.btn:focus-visible, .link:focus-visible, a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
}
.link span { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.link:hover span { text-decoration-thickness: 2px; }
.link:active span { text-decoration-color: var(--color-ink); }

.acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- concept bar ---------- */
.concept { background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.concept__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 52px; padding-block: var(--space-2xs); }
.concept__note { color: var(--color-ink-2); }
.concept__note strong { font-weight: 500; color: var(--color-ink); }
.concept__acts { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; justify-content: flex-end; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: -0.01em; }
.wordmark img { width: 48px; height: auto; }
.nav__links { display: flex; gap: var(--space-xl); font-size: var(--text-sm); font-weight: 500; }
.nav__links a { text-decoration: none; padding-block: var(--space-xs); }
.nav__links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }

/* ---------- hero: Ledge ---------- */
.hero { padding-block: var(--space-lg) var(--section-gap-s); }
.hero__in { display: grid; grid-template-rows: auto auto; gap: var(--space-xl); min-height: calc(100svh - var(--bar-h) - var(--nav-h) - var(--space-lg) - var(--section-gap-s)); align-content: space-between; }
.field { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3.4fr); gap: var(--gap-columns); align-items: end; height: clamp(17rem, 44svh, 30rem); isolation: isolate; }
.plane { position: relative; min-width: 0; height: 100%; overflow: hidden; will-change: transform; }
.plane img { width: 100%; height: 100%; object-fit: cover; }
.plane--a { height: 92%; align-self: start; z-index: 1; }
.plane--b { z-index: 2; }
.plane--b img { object-position: 50% 60%; }
.plane--c { height: 84%; z-index: 3; margin-bottom: calc(var(--space-xl) * -1); }
.plane--mark { position: absolute; z-index: 4; width: clamp(7.5rem, 11vw, 10.5rem); height: auto; left: calc(40% / 1.34 - 3.75rem); top: 58%; overflow: visible; }
.hero__copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; }
.hero h1 { max-width: 13ch; font-size: clamp(3rem, 6.2vw + 0.5rem, 7rem); line-height: 0.98; font-variation-settings: "opsz" 96; }
.hero__side { display: grid; gap: var(--space-lg); padding-bottom: var(--space-xs); }
.hero .lead { color: var(--color-ink-2); max-width: 34ch; }

/* ---------- rooms: the signature ---------- */
.rooms-act { position: relative; }
.rooms { background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl); }
.rooms__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.rooms__index h2 { margin-bottom: var(--space-xl); font-variation-settings: "opsz" 96; }
.rooms__list { counter-reset: room; border-top: var(--rule-hair) solid var(--color-rule-2); }
.rooms__list li { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rooms__name { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.15; font-optical-sizing: auto; color: var(--color-ink); }
.rooms__note { color: var(--color-muted); font-size: var(--text-md); }
.rooms__frame { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.room { aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-paper-3); }
.room img { width: 100%; height: 100%; object-fit: cover; }
.room figcaption { display: none; }

/* Pinned on wide screens with scripting and motion: one frame, rooms opening upward over each other. */
@media (min-width: 60rem) and (prefers-reduced-motion: no-preference) {
  .js .rooms-act .rooms { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-xl); }
  .js .rooms__list li { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-sm); transition: color var(--dur-long) var(--ease-out); }
  .js .rooms__list li .rooms__name { color: var(--color-muted); transition: color var(--dur-long) var(--ease-out); }
  .js .rooms__list li .rooms__note { display: none; }
  .js .rooms__list li.is-on { border-bottom-color: var(--color-ink); }
  .js .rooms__list li.is-on .rooms__name { color: var(--color-ink); }
  .js .rooms__list li.is-on .rooms__note { display: block; color: var(--color-ink-2); }
  .js .rooms__frame { display: block; position: relative; height: min(68svh, 40rem); }
  .js .room { position: absolute; inset: 0; aspect-ratio: auto; clip-path: inset(calc((1 - var(--open, 0)) * 100%) 0 0 0); }
  .js .room img { transform: scale(calc(1.08 - var(--open, 0) * 0.08)); }
  .js .room:first-child { --open: 1; }
}

/* ---------- also ---------- */
.also { padding-block: var(--section-gap-s); }
.also__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.also__head { font-size: var(--text-display-s); font-variation-settings: "opsz" 96; }
.also__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); border-top: var(--rule-hair) solid var(--color-rule-2); }
.also__list li { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); }

/* ---------- Lee: the navy band ---------- */
.lee { background: var(--color-band); color: var(--color-band-ink); padding-block: var(--section-gap); }
.lee__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.lee__photo { aspect-ratio: 662 / 703; overflow: hidden; }
.lee__photo img { width: 100%; height: 100%; object-fit: cover; }
.lee__copy { display: grid; gap: var(--space-xl); }
.lee h2 { color: var(--color-band-ink); font-variation-settings: "opsz" 96; max-width: 16ch; }
.lee__quote { margin: 0; display: grid; gap: var(--space-sm); }
.lee__quote p { font-family: var(--font-display); font-style: italic; font-size: var(--text-xl); line-height: 1.35; max-width: 34ch; }
.lee__quote footer { color: var(--color-band-muted); font-size: var(--text-sm); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); border-top: var(--rule-hair) solid var(--color-band-rule); padding-top: var(--space-lg); }
.facts dt { color: var(--color-band-muted); font-size: var(--text-sm); }
.facts dd { font-family: var(--font-display); font-size: var(--text-xl); margin-top: var(--space-2xs); }
.lee a:focus-visible, .lee .btn:focus-visible { outline-color: var(--color-band-ink); }

/* ---------- reviews ---------- */
.reviews { padding-block: var(--section-gap); }
.reviews__top { display: flex; align-items: end; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.reviews h2 { max-width: 18ch; font-variation-settings: "opsz" 96; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); border-top: 3px double var(--color-rule-2); }
.quotes li { display: grid; align-content: space-between; gap: var(--space-lg); padding-top: var(--space-lg); }
.quotes p { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; font-optical-sizing: auto; }
.quotes__who { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- where and contact ---------- */
.where { padding-block: var(--section-gap-s) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.where h2 { font-size: var(--text-display-s); font-variation-settings: "opsz" 96; max-width: 20ch; }
.route { margin-block: var(--space-2xl) var(--space-3xl); }
.route__line { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: var(--space-lg); border-top: 2px solid var(--color-accent); }
.route__line li { position: relative; font-size: var(--text-md); font-weight: 500; padding-right: var(--space-xs); }
.route__line li::before { content: ""; position: absolute; top: calc(var(--space-lg) * -1 - 7px); left: 0; width: 12px; height: 12px; background: var(--color-paper); border: 2px solid var(--color-accent); border-radius: 50%; }
.route__line li:nth-child(2)::before { background: var(--color-accent); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--gap-columns); align-items: start; border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-xl); }
.contact__lead { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.2; font-optical-sizing: auto; max-width: 18ch; grid-row: span 2; }
.contact__lines { display: grid; gap: 0; }
.contact__lines div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.contact__lines dt { color: var(--color-muted); font-size: var(--text-sm); align-self: center; }
.contact__lines dd { font-size: var(--text-lg); overflow-wrap: anywhere; }
.contact__lines a { text-decoration-color: var(--color-accent); }
.contact__lines a:hover { text-decoration-thickness: 2px; }

/* ---------- footer: letter close ---------- */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl) var(--space-2xl); }
.foot__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-md) var(--gap-columns); }
.foot__sign { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.2; grid-row: span 2; font-optical-sizing: auto; }
.foot__sign span { font-style: italic; }
.foot__meta { color: var(--color-muted); font-size: var(--text-sm); align-self: end; }

/* ---------- dialogs ---------- */
dialog { max-width: min(32rem, calc(100% - 2 * var(--gutter))); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); }
dialog::backdrop { background: var(--color-scrim-dialog); }
dialog h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); font-optical-sizing: auto; }
dialog p { margin-bottom: var(--space-lg); }
.dlg-links { display: grid; gap: var(--space-2xs); margin-bottom: var(--space-lg); }

/* ---------- scroll mechanism (ported from Scrollcraft; engine CSS not linked) ---------- */
.js [data-sc-in], .js [data-sc-stagger] > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.js [data-sc-in].sc-in, .js [data-sc-stagger] > .sc-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .nav__links { display: none; }
  .hero__in { min-height: 0; }
  .field { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; gap: var(--space-md); }
  .plane--a { display: none; }
  .plane--b, .plane--c { height: auto; aspect-ratio: 4 / 5; margin: 0; }
  .plane--mark { left: auto; right: var(--space-md); top: auto; bottom: calc(var(--space-lg) * -1); width: 6.5rem; }
  .hero__copy, .rooms__in, .also__in, .lee__in, .contact, .foot__in { grid-template-columns: minmax(0, 1fr); }
  .rooms { padding-block: var(--section-gap-s); }
  .rooms__index h2 { margin-bottom: var(--space-lg); }
  .rooms__list { display: none; }
  .rooms__frame { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .room { display: grid; aspect-ratio: auto; background: none; gap: var(--space-xs); }
  .room img { aspect-ratio: 4 / 3; height: auto; }
  .room figcaption { display: grid; gap: var(--space-2xs); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .route__line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-2xl); }
  .contact__lead, .foot__sign { grid-row: auto; }
  .contact__lines div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .contact__lines dd { font-size: var(--text-md); }
}
@media (max-width: 40rem) {
  .concept__in { flex-direction: column; align-items: flex-start; padding-block: var(--space-sm); }
  .concept__long { display: none; }
  .nav__call { padding: 0 var(--space-sm); }
  .wordmark span { display: none; }
  .also__list { grid-template-columns: minmax(0, 1fr); }
  .route__line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .plane, .plane--mark { transform: none !important; rotate: none !important; }
  .js [data-sc-in], .js [data-sc-stagger] > * { opacity: 1; transform: none; transition: none; }
}
