/* Mestor BV — mestor.nl */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  --paper: #f5f6f3;
  --ink: #1b1f24;
  --muted: #59616a;
  --accent: #1e6b52;
  --rule: #d3d8d2;
  --tag: #e9ece7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14171a;
    --ink: #e7e9e5;
    --muted: #a2aaa6;
    --accent: #74c4a3;
    --rule: #2c3236;
    --tag: #1f2428;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Raster: één leeskolom; de kop loopt op brede schermen breder door */
.page { padding: 0 1.25rem; }
.row { max-width: 34rem; margin: 0 auto; }
@media (min-width: 62rem) {
  .row { max-width: none; display: grid; grid-template-columns: 1fr 35rem 15rem 1fr; column-gap: 3rem; }
  .row > * { grid-column: 2; }
  .row > .wide { grid-column: 2 / 4; }
}

.top { padding: 1.5rem 0; }
.word { font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }

/* Kop */
.hero { padding: clamp(4rem, 15vh, 10rem) 0 3rem; }
.hero h1 {
  font-weight: 380;
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 2.25rem;
  max-width: 18ch;
  text-wrap: balance;
}
.line { display: block; width: 100%; height: 90px; margin-top: 1rem; color: var(--accent); }

.btn {
  display: inline-block;
  font: inherit; font-size: 1.05rem; font-weight: 500;
  color: var(--paper); background: var(--ink);
  padding: .7rem 1.25rem; border-radius: 3px; border: 0;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--paper); }

/* Secties */
section { padding: 4.5rem 0; border-top: 1px solid var(--rule); }
h2 { font-style: italic; font-weight: 400; font-size: 1.9rem; line-height: 1.2; margin: 0 0 1.5rem; }
p { margin: 0 0 1.1rem; }
.runin { font-weight: 650; }

.aside { margin-top: 1rem; font-size: 1rem; color: var(--muted); }
#contact { scroll-margin-top: 2rem; }

.tags { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: var(--tag); padding: .3rem .75rem; border-radius: 2px; font-size: 1rem; }

/* Contact */
.mail { font-size: clamp(1.9rem, 7.5vw, 3.6rem); letter-spacing: -.01em; line-height: 1.1; overflow-wrap: anywhere; }
.mail a { color: var(--ink); text-decoration-color: var(--accent); }
.copy {
  margin-top: 1.25rem;
  font: inherit; font-size: 1rem; color: var(--accent);
  background: none; border: 1px solid var(--rule); border-radius: 3px;
  padding: .45rem .9rem; cursor: pointer;
}
.copy:hover { border-color: var(--accent); }

footer { padding: 3rem 0 3.5rem; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--muted); }
footer p { margin: 0 0 .35rem; }

/* Eén beweging: de koerslijn tekent zich bij het laden */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .line path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
