/* Split Editorial kit (Draknar Webworks, 2026-10-05). Rewritten from Tooplate 2154 "Split Screen Portfolio".
   Every colour comes from the palette variables (--bg, --surface, --ink, --muted, --accent, --accent-ink,
   --line) that designs/_shared/head.html.j2 writes from the client's intake. Phone first; the split spreads
   start at 960px. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --head: 0px;
  --gutter: 20px;
  --pad: 20px;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Jost", Futura, "Century Gothic", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* room for the phone call bar */
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-style: normal; line-height: 1.1; }
/* Bodoni's display cut (high opsz) has hairlines too fine for mid sizes; pin a sturdier optical size there. */
.mast-name, .cover-headline, .svc-name, .band-big, .visit-address, .hours th, .foot-name { font-variation-settings: "opsz" 18; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: var(--head); }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Preview strip */
.strip {
  background: var(--surface); color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 7px var(--gutter);
  text-align: center; font-size: .75rem; line-height: 1.4; letter-spacing: .04em;
}

/* Masthead */
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mast-name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap; letter-spacing: .01em;
  padding: 8px 0;
}
.mast-nav, .mast .mast-call { display: none; }
.mast-hours, .mast-nav a {
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; color: var(--muted);
  padding: 10px 0;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 85% / 0 1px;
  transition: background-size .3s ease, color .3s ease;
}
.mast-hours:hover, .mast-nav a:hover, .mast-nav a[aria-current] { color: var(--ink); background-size: 100% 1px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--sans); font-size: .8125rem; font-weight: 500; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--accent);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.actions .btn { flex: 1 1 auto; }

/* Shared type */
.eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.title { font-size: clamp(2.6rem, 11vw, 4.25rem); line-height: 1; letter-spacing: -.005em; }
.sprig {
  display: block; width: 156px; height: 40px; margin: 22px 0;
  fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round;
  color: var(--accent);
}
.sprig .leaf { fill: currentColor; fill-opacity: .16; }

/* Spreads: phone = photo above type */
.spread-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.spread-media img { width: 100%; height: 100%; object-fit: cover; }
.spread-media::after, .plate-frame::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid var(--accent); opacity: .75;
}
.media-plate { display: grid; place-items: center; height: 100%; }
.sprig-plate { width: 60%; height: auto; margin: 0; }
.spread-text { padding: 40px var(--gutter) 60px; }

/* Cover */
.cover-copy { max-width: 600px; }
.cover-name {
  font-size: clamp(3.25rem, 15vw, 7.5rem); font-weight: 400; line-height: .92; letter-spacing: -.012em;
}
.cover-headline { font-family: var(--serif); font-size: clamp(1.5rem, 6.4vw, 2.6rem); line-height: 1.12; margin-top: 18px; }
.cover-lead { font-size: 1.125rem; color: var(--muted); max-width: 36ch; }
.cover-note {
  margin-top: 20px; font-size: .9375rem; color: var(--muted);
  padding-left: 16px; border-left: 1px solid var(--accent);
}
.cover-folio {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.cover-folio a { color: var(--accent); white-space: nowrap; text-underline-offset: 4px; padding: 4px 0; }

/* Services */
.svc-copy { width: 100%; max-width: 640px; }
.svc-note { margin-top: 18px; color: var(--muted); }
.svc-note a { color: var(--accent); white-space: nowrap; text-underline-offset: 4px; }
.svc-group { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-top: 36px; }
.svc { list-style: none; margin: 30px 0 0; padding: 0; display: grid; column-gap: 40px; }
.svc-item { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.svc-name { font-size: 1.5rem; line-height: 1.15; }
.svc-desc { margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.svc-price { margin-top: 6px; color: var(--accent); font-size: .9375rem; }

/* Good to Know: the cream interlude */
.band { background: var(--ink); color: var(--bg); padding: 64px var(--gutter) 72px; }
.band-inner { max-width: 1240px; margin: 0 auto; }
.band .sprig { color: var(--bg); margin-bottom: 0; }
.band-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 34px; }
.band-item { border-top: 1px solid var(--bg); padding-top: 18px; }
.band-label { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.band-big { font-family: var(--serif); font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.12; margin-top: 12px; }
.band-small { margin-top: 10px; font-size: 1rem; }

/* Gallery plates */
.plates { padding: 64px var(--gutter) 72px; }
.plates-inner { max-width: 1240px; margin: 0 auto; }
.plates-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 40px; }
.plate { margin: 0; }
.plate-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.plate-frame img { width: 100%; height: 100%; object-fit: cover; }
.plate-frame::after { inset: 12px; }
.plate figcaption { margin-top: 14px; font-size: .9375rem; line-height: 1.5; color: var(--muted); max-width: 46ch; }

/* Visit */
.spread-visit .spread-text { padding-top: 64px; }
.visit-copy { max-width: 560px; }
.visit-lead { margin-top: 18px; color: var(--muted); max-width: 42ch; }
.visit-address { font-family: var(--serif); font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.2; margin-top: 30px; }
.visit-phone { margin-top: 12px; font-size: 1.125rem; }
.visit-phone a { color: var(--accent); text-underline-offset: 5px; white-space: nowrap; }
.spread-panel { background: var(--surface); padding: 56px var(--gutter) 64px; }
.hours-wrap { max-width: 460px; }
.hours-title { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; margin-top: 16px; }
.hours th, .hours td { padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: baseline; }
.hours th { text-align: left; font-family: var(--serif); font-size: 1.25rem; padding-right: 16px; }
.hours td { text-align: right; color: var(--muted); white-space: nowrap; }
.hours .is-closed th, .hours .is-closed td { color: var(--accent); }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 52px var(--gutter) 40px; }
.foot-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 6px; font-size: .9375rem; color: var(--muted); }
.foot-name { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--ink); margin-bottom: 8px; }
.foot-inner a { color: var(--accent); text-underline-offset: 4px; }
.foot-note { margin-top: 16px; max-width: 72ch; font-size: .875rem; }
.foot-credit { margin-top: 8px; font-size: .8125rem; }

/* Phone call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}
.callbar .btn { padding: 0 8px; letter-spacing: .1em; }

@media (min-width: 560px) {
  .svc { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .actions .btn { flex: 0 0 auto; }
  .band-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 44px; }
  .plates-2, .plates-many { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .plates-3 { grid-template-columns: repeat(3, 1fr); column-gap: 36px; }
  .plates-2 > li:nth-child(2) { margin-top: 120px; }
}

/* Desktop: the split spreads */
@media (min-width: 960px) {
  :root { --head: 68px; --pad: clamp(48px, 6vw, 112px); }
  body { padding-bottom: 0; }
  .mast { position: sticky; top: 0; z-index: 20; height: var(--head); padding: 0 40px; gap: 36px; }
  .mast-nav { display: flex; gap: 36px; margin-left: auto; }
  .mast .mast-call { display: inline-flex; }
  .mast-hours { display: none; }

  .spread { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .spread-media { position: sticky; top: var(--head); height: calc(100vh - var(--head)); aspect-ratio: auto; }
  .spread-media::after { inset: 24px; }
  .spread-flip .spread-media { order: 2; }
  .spread-text {
    min-height: calc(100vh - var(--head));
    display: flex; align-items: center;
    padding: 72px var(--pad);
  }
  .spread-cover .spread-text { flex-direction: column; align-items: stretch; padding-bottom: 40px; }
  .cover-copy { margin-block: auto; }
  .cover-folio { max-width: 600px; }
  .cover-name { font-size: clamp(4rem, 7.4vw, 7.5rem); }
  .cover-headline { font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
  .title { font-size: clamp(3.25rem, 4.6vw, 4.5rem); }

  .band { padding: 96px var(--pad) 104px; }
  .band-head { display: flex; align-items: flex-end; gap: 40px; }
  .band .sprig { margin: 0 0 10px; }
  .band-list { margin-top: 56px; gap: 56px; }

  .plates { padding: 104px var(--pad) 120px; }
  .plates-list { margin-top: 48px; }

  .spread-visit { align-items: stretch; }
  .spread-visit .spread-text { padding-top: 72px; }
  .spread-panel { display: flex; align-items: center; padding: 72px var(--pad); }
  .hours-wrap { width: 100%; }

  .foot { padding: 64px 40px 48px; }
  .callbar { display: none; }
}

/* Motion: photos settle as their spread arrives. Scroll-linked only, and only when the visitor
   has not asked for reduced motion; the cover photo never moves. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .spread:not(.spread-cover) .spread-media img,
    .plate-frame img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}
@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
