/* giodegraauw.nl — one stylesheet, no build step.
   Layout follows the Stitch "Editorial Monograph" export: a white sheet on a
   light canvas, hairlines instead of boxes, Hanken Grotesk only. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour tokens */
  --canvas: #f3f4f6;       /* outer canvas on wide screens */
  --paper: #ffffff;
  --ink: #1c222b;          /* oklch(0.24 0.02 250) */
  --muted: #5a6069;        /* oklch(0.47 0.015 250) */
  --rule: #dfe1e4;         /* oklch(0.9 0.006 250) */
  --accent: #006a75;       /* oklch(0.47 0.09 205) */
  --accent-hover: #00555e;
  --accent-tint: #eaf5f6;  /* oklch(0.965 0.015 205) */
  --accent-on-dark: #7fc9d3; /* oklch(0.8 0.08 205) */
  --label-on-dark: #97a1a5;  /* accent tint at 60% on ink */
  --text-on-dark: #d1d5db;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout tokens */
  --sheet: 896px;
  --pad: 48px;             /* sheet side padding */
  --section-gap: 64px;
  --radius-block: 12px;
}

@media (max-width: 767px) {
  :root { --pad: 24px; --section-gap: 56px; }
}
@media (max-width: 380px) {
  :root { --pad: 16px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-tint); color: var(--accent); }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.sep { color: var(--rule); margin-inline: 0.35em; }

/* ---------- Sheet ---------- */

.sheet {
  display: flex;
  flex-direction: column;
  max-width: var(--sheet);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
}

@media (min-width: 768px) {
  .sheet {
    min-height: 0;
    margin-block: 32px;
    border: 1px solid var(--rule);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 14px/1.2 var(--font);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }

.btn--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--secondary svg { color: var(--muted); }
.btn--secondary:hover svg { color: #fff; }

.btn--small {
  min-height: 32px;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.btn--large { min-height: 46px; padding: 12px 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--rule);
  padding: 16px 40px;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  margin-right: auto;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }

.nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav__list a:hover { color: var(--ink); }
.nav__list li + li::before {
  content: "·";
  margin-inline: 12px;
  color: var(--rule);
}
.nav__list .nav__extra { display: none; }

.lang {
  display: flex;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang [aria-current="true"] { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-cv { gap: 0; }
.cv-long { white-space: pre; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.menu-toggle:hover { color: var(--ink); }
.menu-toggle svg { display: block; margin: auto; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 861px) {
  .nav { display: flex; align-items: center; gap: 32px; }
}

@media (max-width: 860px) {
  .site-header { padding: 14px var(--pad); }
  .site-header__bar { flex-wrap: wrap; gap: 12px; }
  .menu-toggle { display: block; }
  .header-actions { gap: 8px; }

  /* The menu drops down inside the header, under a hairline (Stitch mobile). */
  .nav {
    order: 3;
    flex-basis: 100%;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
  }
  .js .nav:not(.is-open) { display: none; }

  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list li + li::before { content: none; }
  .nav__list .nav__extra { display: list-item; }
  .nav__list a { display: block; padding: 8px 0; font-size: 15px; }
  .nav .lang { padding: 10px 0 4px; font-size: 14px; }
}

@media (max-width: 479px) {
  .cv-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-cv { min-height: 36px; padding-inline: 14px; }
}

/* ---------- Main ---------- */

main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding: 56px var(--pad);
}
@media (max-width: 767px) { main { padding-block: 32px 40px; } }

/* Section label + hairline running to the right edge */
.label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}
.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.field-label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero__grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.hero__photo {
  flex-shrink: 0;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--rule);
  background: var(--canvas);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__text { flex: 1; min-width: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__headline {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}

.hero__profile {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.55;
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 32px;
  padding: 18px 8px;
  border-block: 1px solid var(--rule);
}
.contact-row dd {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-row a { color: var(--ink); text-decoration: none; }
.contact-row a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 767px) {
  .hero__grid { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .hero__photo { width: 144px; height: 144px; }
  .hero h1 { font-size: 38px; line-height: 1.1; }
  .hero__headline { font-size: 16px; }
  .hero__profile { font-size: 16px; text-align: left; }
  .hero__actions { justify-content: center; }
  .contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
}

@media (max-width: 400px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Value items ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 48px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--accent);
}
.value h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.value p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 767px) {
  .values { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Experience ---------- */

.entries > * + * { border-top: 1px solid var(--rule); }
.entries > * { padding-block: 20px; }
.entries > :first-child { padding-top: 0; }
.entries > :last-child { padding-bottom: 0; }

.entry__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.entry__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.entry__org {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.entry__date {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.bullets {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-width: 68ch;
}
.bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.55;
}
.bullets li + li { margin-top: 5px; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 767px) {
  .entry__head { flex-direction: column; }
}

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 8px;
  border-bottom: 1px solid var(--rule);
}
.timeline__label {
  flex-shrink: 0;
  width: 112px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline__text { font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.timeline__sub { color: var(--muted); font-weight: 400; }

@media (max-width: 767px) {
  .timeline__label { width: 96px; }
  .timeline__text { font-size: 15px; }
}

/* ---------- Education & skills ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.edu + .edu {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.edu__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.edu__title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.edu--minor .edu__title { font-size: 15px; font-weight: 600; }
.edu__meta { margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--muted); }
.edu--minor .edu__meta { font-size: 14px; font-weight: 400; }
.edu__text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.edu__text strong { font-weight: 500; color: var(--ink); }

.badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.details { display: grid; gap: 10px; font-size: 14px; }
.details > div { display: flex; align-items: baseline; }
.details dt {
  flex-shrink: 0;
  width: 112px;
  font-weight: 600;
  color: var(--muted);
}
.details dd { min-width: 0; }
.details .muted { color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .details dt { width: 104px; }
}

/* ---------- Contact block ---------- */

.contact-block {
  padding: 48px;
  border-radius: var(--radius-block);
  background: var(--ink);
  color: #fff;
}
.contact-block h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.contact-block__intro {
  margin-top: 8px;
  max-width: 36rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

.contact-block__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 24px;
  font-size: 14px;
}
.contact-block__list > div { display: flex; align-items: baseline; gap: 8px; }
.contact-block__list dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-on-dark);
}
.contact-block__list a {
  color: #fff;
  font-weight: 500;
  text-decoration-color: var(--accent);
  overflow-wrap: anywhere;
}
.contact-block__list a:hover { color: var(--accent-on-dark); }

.contact-block__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-block :focus-visible { outline-color: var(--accent-on-dark); }

.cv-links { font-size: 14px; font-weight: 500; color: var(--text-on-dark); }
.cv-links a { color: var(--text-on-dark); }
.cv-links a:hover { color: #fff; }

@media (max-width: 767px) {
  .contact-block { padding: 32px 24px; }
  .contact-block h2 { font-size: 24px; }
  .contact-block__list { flex-direction: column; }
  .contact-block__actions .btn { flex: 1 1 100%; }
  .cv-links { flex: 1 1 100%; text-align: center; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 24px var(--pad);
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 479px) {
  .site-footer__inner { flex-direction: column; align-items: center; }
}

/* ---------- 404 ---------- */

.notfound { padding-block: 16vh; }
.notfound h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.notfound p { margin-top: 16px; color: var(--muted); }
.notfound .btn { margin-top: 28px; }

@media print {
  body { background: #fff; }
  .sheet { border: 0; margin: 0; }
  .site-header, .skip-link, .hero__actions, .contact-block__actions { display: none; }
  .contact-block { background: none; color: var(--ink); padding: 0; }
  .contact-block__list a, .contact-block__intro { color: var(--ink); }
}
