/* Roster: Swiss poster. White ground, black ink, one signal red. Edit these tokens to re-colour. */
:root {
  --paper: #ffffff;   /* page ground */
  --ink: #0b0b0b;     /* text, rules, solid blocks */
  --signal: #e10600;  /* the one accent: numerals on hover, active nav, quote rule */
  --mute: #4a4a4a;    /* secondary text (4.5:1 or better on white) */
  --font: "Inter Tight", system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
h1, h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 9; }
.skip:focus { left: 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }

/* Header and menu */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.cta, .btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.cta:hover, .btn:hover { background: var(--signal); }
.nav { order: 3; flex-basis: 100%; }
.nav summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.nav summary::-webkit-details-marker { display: none; }
.nav ul { list-style: none; margin: 0; padding: 4px 0 12px; display: grid; }
.nav li a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.nav li a[aria-current="page"] { color: var(--signal); }
@media (min-width: 760px) {
  .nav { order: 0; flex-basis: auto; }
  .nav summary { display: none; }
  .nav ul { display: flex; gap: 28px; padding: 0; }
}

/* Home: intro */
.intro { padding-top: 56px; padding-bottom: 40px; }
.meta { font-size: 1rem; font-weight: 600; color: var(--mute); margin-bottom: 20px; }
.intro h1 { font-size: clamp(2.5rem, 7.5vw, 6.5rem); letter-spacing: -0.045em; max-width: 14ch; margin-bottom: 28px; }
.lede { font-size: 1.25rem; max-width: 44ch; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 20px; }
.text-link { font-weight: 600; }
.price { color: var(--mute); margin: 0; }
.price strong { color: var(--ink); }

/* Work table with hover previews */
.work { padding-top: 48px; padding-bottom: 56px; border-top: 2px solid var(--ink); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 14px; }
.note { color: var(--mute); max-width: 60ch; margin-bottom: 24px; }
.work-list { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.row { position: relative; border-top: 1px solid var(--ink); }
.row:has(a.row-link):hover { background: var(--ink); color: #fff; }
.row-link { display: grid; gap: 4px 16px; padding: 16px 0; color: inherit; text-decoration: none; align-items: center; }
.row:has(a.row-link):hover .row-link { color: #fff; }
.num { font-size: clamp(3.25rem, 12vw, 8.5rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.row:has(a.row-link):hover .num { color: var(--signal); }
.title { font-size: 1.375rem; font-weight: 600; line-height: 1.15; }
.disc, .year { color: var(--mute); }
.row:has(a.row-link):hover .disc, .row:has(a.row-link):hover .year { color: #d6d6d6; }
.preview { position: absolute; right: 24px; top: 50%; width: 300px; margin: 0; transform: translateY(-50%); opacity: 0; pointer-events: none; border: 2px solid var(--ink); background: #fff; transition: opacity 0.15s ease; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.row:hover .preview, .row-link:focus-visible ~ .preview { opacity: 1; }
@media (min-width: 1100px) {
  .row-link { grid-template-columns: 150px minmax(0, 1fr) 300px 80px; gap: 24px; padding: 20px 0; }
  .title { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
  .disc, .year { font-size: 0.9375rem; }
  .num { font-size: clamp(4rem, 9vw, 8.5rem); }
}
@media (max-width: 759px), (hover: none) { .preview { display: none; } }

/* Closing and footer */
.closing { padding-top: 56px; padding-bottom: 56px; border-top: 2px solid var(--ink); }
.closing p { max-width: 50ch; }
.site-foot { border-top: 2px solid var(--ink); padding-top: 40px; padding-bottom: 56px; }
.foot { display: grid; gap: 12px; }
.foot .big { font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; margin: 0; }
.foot p { margin: 0; }

/* Inner pages */
.page { padding-top: 48px; padding-bottom: 56px; }
.page h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -0.045em; margin-bottom: 24px; max-width: 16ch; }
.page h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 48px 0 16px; }
.lede-sm { font-size: 1.25rem; max-width: 46ch; margin-bottom: 32px; }
.prose { max-width: 62ch; }
.two { display: grid; gap: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } }
.photo { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border: 2px solid var(--ink); }
.photo.portrait { aspect-ratio: 9 / 11; }

.stack { display: grid; border-top: 2px solid var(--ink); }
.stack > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.stack dt { font-weight: 600; }
.stack dd { margin: 0; }
@media (max-width: 519px) { .stack > div { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--ink); align-items: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 2.5rem; font-weight: 800; line-height: 0.9; color: var(--signal); letter-spacing: -0.04em; }

.facts { display: grid; border-top: 2px solid var(--ink); margin: 24px 0 32px; }
.facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.stat { font-size: clamp(3.5rem, 10vw, 7rem); font-weight: 800; color: var(--signal); line-height: 0.9; letter-spacing: -0.05em; margin: 8px 0; }

.quote { margin: 40px 0 0; padding: 8px 0 8px 20px; border-left: 6px solid var(--signal); font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.quote cite { display: block; margin-top: 10px; font-size: 1rem; font-style: normal; font-weight: 400; color: var(--mute); }

/* Enquiry slot: forms render only through the Forms plugin */
.slot p { max-width: 60ch; }
.enquiry { display: grid; gap: 20px; max-width: 640px; }
.enquiry label { display: grid; gap: 6px; font-weight: 600; }
.enquiry input, .enquiry select, .enquiry textarea { font: inherit; font-weight: 400; min-height: 44px; width: 100%; padding: 10px 12px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; }
.enquiry textarea { min-height: 140px; }
.enquiry button { justify-self: start; min-height: 44px; padding: 10px 18px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.enquiry button:hover { background: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
