/* css/style.css — base, layout, chrome. Components live in components.css. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* The filter script hides cards with the hidden attribute; author display
   rules must never win over it. */
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--arakku-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 640;
  letter-spacing: var(--track-head);
  line-height: var(--lh-head);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); line-height: var(--lh-tight); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--arakku); color: var(--paper); }

/* ---- layout ------------------------------------------------------------ */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.narrow { max-width: var(--wrap-narrow); }

.band       { padding: var(--s-9) 0; }
.band-tight { padding: var(--s-7) 0; }
.band-wash  { background: var(--wash); }

/* The ledger band: the rate board's home. Paper ground, held between two
   heavy arakku rules — a page from a rate register, not a "section". */
.band-ledger {
  background: var(--paper);
  border-top: 3px solid var(--arakku);
  border-bottom: 1px solid var(--rule-strong);
  padding: var(--s-8) 0;
}

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Card grids that carry photographs flow as columns instead, so plates of
   different heights pack like a pinboard rather than stretching to rows. */
.masonry { columns: 4 240px; column-gap: var(--s-5); }
.masonry > * { break-inside: avoid; margin: 0 0 var(--s-5); }
.masonry-3 { columns: 3 260px; }

/* ---- voice ---------------------------------------------------------------
   The eyebrow is Archivo caps, wide-tracked, with a short arakku dash before
   it. It marks every section the way a survey mark is cut into granite. */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
}
.eyebrow::before { content: ''; width: 1.4rem; height: 2px; background: var(--accent); flex: none; }

.lede {
  font-size: var(--t-md);
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.section-head h2 { margin-bottom: 0; }
@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* Numbers and facts are always mono. */
.data, .facts, .planner-facts span, .filter-count, .card-meta {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

/* ---- header -------------------------------------------------------------- */

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--arakku); color: var(--paper); padding: var(--s-3) var(--s-5);
}
.skip:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
  display: flex; align-items: baseline; gap: var(--s-2);
  white-space: nowrap;
}
.brand b { font-weight: 700; }
.brand span {
  font-family: var(--font-data);
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a {
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current='page'] { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.nav-toggle {
  display: none;
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 600;
  background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  color: var(--fg); padding: var(--s-2) var(--s-4); cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: var(--s-4) clamp(1rem, 4vw, 2.5rem) var(--s-6);
  }
  .nav[data-open='true'] { display: flex; }
  .nav a { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current='page'] { border-bottom: 1px solid var(--accent); }
}

/* ---- photographs -------------------------------------------------------------
   Every photograph on this site is an archival plate from the studio's own
   library: shown whole (never cropped — c_limit at the CDN, natural ratio in
   the layout), sitting on a sand mat with a rule beneath, the way a print is
   taped into a venue file. aspect-ratio boxes are avoided on purpose; width
   and height attributes reserve the space instead. */
.plate {
  background: var(--wash-deep);
  border: 1px solid var(--rule);
  border-bottom: 3px solid var(--arakku);
  padding: var(--s-2);
}
.plate img { width: 100%; height: auto; }

/* ---- hero ------------------------------------------------------------------
   The claim on the left; on the right, two plates from the venue file, hung
   offset like prints pinned to a board. */
.hero { padding: var(--s-8) 0 var(--s-8); border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: var(--s-7);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }

.hero-plates { display: grid; gap: var(--s-5); }
.hero-plates .plate:first-child { width: 88%; justify-self: start; transform: rotate(-0.4deg); }
.hero-plates .plate:last-child  { width: 88%; justify-self: end;   transform: rotate(0.5deg); }

.hero-ledger {
  font-family: var(--font-data);
  font-size: var(--t-sm);
  border-top: 2px solid var(--fg);
  margin-top: var(--s-6);
  max-width: 34rem;
}
.hero-ledger div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-4); padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.hero-ledger b { font-size: var(--t-lg); font-weight: 500; }
.hero-ledger span { color: var(--muted); text-align: right; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-plates { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-plates .plate { width: 100% !important; transform: none !important; }
}

/* ---- the film strip -----------------------------------------------------------
   A single row from the venue file, scrolled sideways. Images keep their own
   ratios at a shared height — no cropping — and are never lazy-loaded here,
   because lazy loading dies inside horizontal strips. */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--wash); }
.strip-track {
  display: flex; gap: var(--s-4);
  overflow-x: auto;
  padding: var(--s-5) clamp(1rem, 4vw, 2.5rem);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.strip-track a { flex: none; scroll-snap-align: start; display: block; }
.strip-track img {
  height: clamp(11rem, 24vw, 17rem);
  width: auto; max-width: none;
  display: block;
  border: 1px solid var(--rule);
  background: var(--wash-deep);
}
.strip-track a:hover img { border-color: var(--arakku); }

/* ---- footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--wash);
  color: var(--ink-2);
  border-top: 3px solid var(--arakku);
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-8);
}
.site-footer a { color: var(--arakku); text-decoration: none; }
.site-footer a:hover { color: var(--arakku-deep); text-decoration: underline; }
.site-footer h3 {
  color: var(--fg);
  font-size: var(--t-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--s-2); font-size: var(--t-sm); }
.footer-base {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-strong);
  font-size: var(--t-sm);
  color: var(--muted);
}
.footer-owner { max-width: 74ch; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- prose ------------------------------------------------------------------ */

.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose > :first-child { margin-top: 0; }

.crumbs {
  font-family: var(--font-data);
  font-size: var(--t-xs);
  color: var(--muted);
  margin-bottom: var(--s-5);
  overflow-x: auto; white-space: nowrap;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--fg); }

/* ---- reveal ------------------------------------------------------------------ */

[data-reveal] > * { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
[data-reveal].is-in > * { opacity: 1; transform: none; }
[data-reveal].is-in > :nth-child(2) { transition-delay: 0.06s; }
[data-reveal].is-in > :nth-child(3) { transition-delay: 0.12s; }
[data-reveal].is-in > :nth-child(4) { transition-delay: 0.18s; }

/* ---- call bar (phone only) --------------------------------------------------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--rule-strong);
}
.callbar .btn { flex: 1; text-align: center; }
@media (max-width: 700px) {
  .callbar { display: flex; }
  body { padding-bottom: 4.5rem; }
}
