/* ==========================================================================
   koenvanlysebetten.com — design system
   Implements design_handoff_koen_site/README.md pixel-for-pixel.
   Single source of tokens: every page links this file. Do not inline styles
   into pages again; that is what produced three different palettes.
   ========================================================================== */

:root {
  /* colour ------------------------------------------------------------- */
  --bg:            #0a0a0a;
  --text:          #ECECE7;
  --muted:         #a3a3a0;   /* secondary text */
  --text-3:        #c9c9c4;   /* paragraph text in some sections */
  --footer-muted:  #7a7a77;
  --accent:        #E8956D;   /* coral: links, kickers, CTAs */
  --accent-hover:  #f2b08f;
  --accent-dark:   #B5522A;   /* on cream one-pager ground only */
  --line:          #1f1f1f;   /* every hairline and grid gap */
  --card-hover:    #111111;
  --on-accent:     #0a0a0a;   /* dark text on coral */
  --btn-2-border:  #3a3a3a;

  /* type ---------------------------------------------------------------- */
  --font-body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Newsreader', Georgia, serif;

  /* spacing ------------------------------------------------------------- */
  --col:      920px;
  --gutter:   32px;
  --rhythm:   64px;

  --dur: 170ms;
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }

/* The handoff is explicit: no border radius anywhere. */
* { border-radius: 0 !important; }

/* keyboard focus must stay visible on a dark ground */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* layout ----------------------------------------------------------------- */
.wrap { max-width: var(--col); margin-inline: auto; padding-inline: var(--gutter); }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-block: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
}
.brand__name { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }

.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14px; transition: color var(--dur) var(--ease); }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--text); }
/* .btn inside .nav must keep its own colours — a bare `.nav a` rule outranks
   `.btn` (0,2,0 vs 0,1,0) and silently repaints the button text. */
.nav a.btn { color: var(--on-accent); text-decoration: none; }

main { display: block; }
main > .wrap { padding-block: 56px 96px; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 40px 56px; font-size: 13px; color: var(--footer-muted); }
.site-footer a { color: var(--footer-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-hover); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }

/* typography -------------------------------------------------------------- */
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
h1 .sub { display: block; color: var(--muted); font-style: italic; }

p { margin: 0 0 18px; max-width: 68ch; }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-3); }
.small { font-size: 14px; color: var(--muted); }

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

hr { border: 0; border-top: 1px solid var(--line); margin: var(--rhythm) 0; }

/* buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 22px; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
  transition: background var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--2 {
  background: transparent; color: var(--text);
  border: 1px solid var(--btn-2-border); padding: 13px 22px;
  transition: border-color var(--dur) var(--ease);
}
.btn--2:hover { border-color: var(--text); background: transparent; color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.cta-sub { font-size: 14px; color: var(--muted); margin: 0; }

/* hairline grid -------------------------------------------------------------
   One background colour showing through 1px gaps makes every cell border
   without doubling up at the seams. */
.grid { display: grid; gap: 1px; }
/* Each cell draws its own 1px ring; adjacent rings meet inside the 1px gap and
   read as a single hairline. Unlike painting the container, an incomplete last
   row leaves empty space unpainted instead of showing a grey block. */
.grid > * { background: var(--bg); padding: 26px; box-shadow: 0 0 0 1px var(--line);
            transition: background var(--dur) var(--ease); }
.grid > a:hover, .grid > .cell:hover { background: var(--card-hover); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.cell { display: block; text-decoration: none; color: inherit; }
.cell h3 { margin-bottom: 8px; }
.cell p { margin: 0; font-size: 14px; color: var(--muted); }

/* proof numerals.
   Scoped through .cell because `.cell p` (0,2,0) outranks a bare `.figure`
   (0,1,0) and would repaint the numeral as muted 14px body text. */
.figure, .cell p.figure {
  font-family: var(--font-display); font-size: 34px; line-height: 1;
  color: var(--text); margin: 0 0 10px;
}
.figure-label, .cell p.figure-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 8px;
}

/* section head ------------------------------------------------------------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-head .more { font-size: 14px; white-space: nowrap; }

/* breadcrumb --------------------------------------------------------------- */
.crumb { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 28px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent-hover); }

/* hero --------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0,1fr) 318px; gap: 48px; align-items: start; }
.hero__portrait { width: 318px; height: 433px; object-fit: cover; object-position: top; filter: grayscale(20%); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero__portrait { width: 100%; max-width: 318px; height: auto; aspect-ratio: 318/433; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --rhythm: 48px; }
  main > .wrap { padding-block: 40px 72px; }
  .grid > * { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* quotes, steps and the seats table ---------------------------------------- */
/* quotes read as pairs, not as an auto-fit row that strands the fourth */
.quotes { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .quotes { grid-template-columns: 1fr; } }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font-family: var(--font-display); font-size: 18px; line-height: 1.4; margin: 0 0 14px; }
.quotes figcaption { color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step; display: grid;
  grid-template-columns: 46px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step__body { display: block; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 20px; color: var(--accent);
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; font-weight: 400; padding: 15px 0; border-top: 1px solid var(--line); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 1px solid var(--line); }
.table td { text-align: right; color: var(--muted); }
@media (max-width: 480px) {
  .table th, .table td { display: block; padding-block: 6px; }
  .table th { padding-top: 15px; }
  .table td { text-align: left; padding-bottom: 15px; }
  .table tr:last-child td { border-bottom: 1px solid var(--line); }
}

/* receipts ----------------------------------------------------------------- */
.receipt {
  display: grid; grid-template-columns: 210px 1fr; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
/* The surrounding <hr> already rules off the list; a border on the first and
   last receipt doubles it 64px apart and reads as an empty box. */
.receipt:first-of-type { border-top: 0; }
.receipt__body h3 { margin-bottom: 10px; }
.receipt__body p { margin-bottom: 10px; }
.receipt__body .small a + a { margin-left: 16px; }
@media (max-width: 680px) {
  .receipt { grid-template-columns: 1fr; gap: 14px; }
}
