@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
}

/* Colours from logo concept B ("Drie vormen"), accent orange. */
:root {
  --paper: #f5f3ee;
  --surface: #e9e6df;
  --ink: #15161d;
  --muted: #5b5a55;
  --line: rgba(21, 22, 29, 0.14);
  --accent: #ff5b2e;
  /* Header and hero sit on an ink band in both colour schemes. */
  --band: #15161d;
  --on-band: #f5f3ee;
  --on-band-muted: #a3a29c;
  --on-band-line: rgba(245, 243, 238, 0.2);
  --dot: rgba(21, 22, 29, 0.16);
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15161d;
    --surface: #1f2029;
    --ink: #f5f3ee;
    --muted: #a3a29c;
    --line: rgba(245, 243, 238, 0.16);
    --band: #0b0c10; /* the page itself is ink here, so the band goes a step darker */
    --dot: rgba(245, 243, 238, 0.12);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Ink band: header and hero */
.band { background: var(--band); color: var(--on-band); }

/* Dot grid under the band, fading into the paper */
.dots {
  background:
    linear-gradient(to bottom, transparent, var(--paper) 480px),
    radial-gradient(circle, var(--dot) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    var(--paper);
}
.dots > .wrap { padding-top: 56px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.logo { display: block; color: var(--on-band); line-height: 0; }
.logo svg { width: 168px; height: auto; }
.logo .accent, .mark .accent { fill: var(--accent); }
.lang-switch {
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-band-muted);
  padding: 8px 10px;
  border: 1px solid var(--on-band-line);
  border-radius: 6px;
}
.lang-switch:hover { color: var(--on-band); border-color: var(--on-band); }

/* Hero: heading left, the three shapes right */
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 88px;
}
.hero-art { display: block; width: 100%; height: auto; fill: var(--on-band); }
.hero-art .rail {
  fill: none;
  stroke: var(--on-band-line);
  stroke-width: 2;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}
.hero-art .accent { fill: var(--accent); }
.hero h1 {
  margin: 0;
  max-width: 14em;
  font: 500 clamp(2rem, 6vw, 3.4rem)/1.12 var(--mono);
  letter-spacing: -0.03em;
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 32px 0 0;
  font: 500 16px/1 var(--mono);
  letter-spacing: 0.02em;
}
.modes span { display: inline-flex; align-items: center; gap: 10px; }
.modes svg { width: 14px; height: 14px; fill: currentColor; }
.modes .accent { fill: var(--accent); }

/* Section labels */
.label {
  margin: 0 0 20px;
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

section + section { border-top: 1px solid var(--line); padding-top: 40px; }
section { padding-bottom: 56px; }

/* Products */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-2px); }
.product-logo { display: block; width: 44px; height: 44px; margin-bottom: 6px; }
/* A mark without its own background gets a white tile, the size and shape of the Verlofgids block. */
.product-logo.on-tile { padding: 6px; background: #fff; border-radius: 10px; }
.card h3 { margin: 0; font: 500 1.35rem/1.2 var(--mono); letter-spacing: -0.02em; }
.card p { margin: 0; }
.card .url {
  margin-top: auto;
  padding-top: 12px;
  font: 400 14px/1 var(--mono);
  color: var(--muted);
}
.card:hover .url { color: var(--ink); }
.tag {
  align-self: flex-start;
  font: 400 12px/1 var(--mono);
  padding: 6px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.tag.quiet { border-color: var(--line); color: var(--muted); }

/* Company details */
.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 32px;
  margin: 0;
}
.details dt { font: 400 13px/1.9 var(--mono); color: var(--muted); }
.details dd { margin: 0; }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font: 400 13px/1.4 var(--mono);
  color: var(--muted);
}
.mark { width: 22px; height: auto; color: var(--ink); }

/* Contact page: the company details, the address behind a button */
.page .intro { margin: 0 0 40px; max-width: 36em; }
.reveal {
  font: 500 13px/1 var(--mono);
  padding: 7px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.reveal:hover { border-color: var(--ink); }
.reveal:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.details address { font-style: normal; }
.details address:focus { outline: none; }

/* 404 and contact */
.lost, .page { padding-bottom: 96px; }
.lost h1, .page h1 { margin: 0 0 16px; font: 500 clamp(1.8rem, 5vw, 2.6rem)/1.15 var(--mono); letter-spacing: -0.03em; }
.lost p { margin: 0 0 8px; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { padding-top: 20px; padding-bottom: 20px; }
  .logo svg { width: 136px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 56px; }
  .hero-art { width: 150px; order: -1; }
  .dots > .wrap { padding-top: 40px; }
  .cards { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd + dt { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
