/* matthijsgoes.nl · navy-designtaal, compositie "split stage" (taste-skill) */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
  --navy: #1E3A8A;      /* koppen, namen, navy vlakken */
  --accent: #DC2626;    /* streepjes, stippen */
  --ink: #111827;       /* sterke tekst */
  --body: #374151;      /* lopende tekst */
  --muted: #6B7280;     /* bijzaken */
  --rail: #E5E7EB;
  --headtext: #E0E7FF;  /* secundaire tekst op navy */
  --white: #FFFFFF;

  --margin: 1.25rem;
  --measure: 46ch;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "liga" 0;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease); }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: var(--margin); top: 0.75rem; width: auto; height: auto; clip-path: none; background: var(--white); color: var(--navy); padding: 0.5rem 0.75rem; z-index: 10; }

.bar { flex: none; display: inline-block; width: 3rem; height: 0.25rem; background: var(--accent); }

/* ---------------------------------------------------------- het navy paneel */
.panel {
  background: var(--navy);
  color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  padding: 5rem var(--margin) 2rem;
}
.panel a { color: var(--white); text-decoration-color: rgba(224, 231, 255, 0.55); }
.panel a:hover { text-decoration-color: var(--white); }
.panel :focus-visible, .contact :focus-visible { outline-color: var(--white); }

.panel-id { margin-top: auto; }
.name { font-weight: 700; font-size: clamp(2.75rem, 1.4rem + 6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.03em; color: var(--white); }
.role { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.3; color: var(--white); }

.panel-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.9375rem; color: var(--headtext); }

/* ---------------------------------------------------------- de leeskolom */
.reading { padding: 4rem var(--margin) 5rem; }
.reading > * { max-width: var(--measure); }
.intro p + p { margin-top: 1em; }
.lead { font-weight: 500; font-size: 1.375rem; line-height: 1.35; color: var(--ink); }

.block { margin-top: 5.5rem; }
.heading { font-weight: 500; font-size: 1.75rem; line-height: 1.2; color: var(--navy); margin-bottom: 1.75rem; }
.heading::after { content: ""; display: block; width: 2.25rem; height: 3px; margin-top: 0.625rem; background: var(--accent); }

.work li { position: relative; padding-left: 1.5rem; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.work li + li { margin-top: 0.875rem; }
.work li::before { content: ""; position: absolute; left: 0.125rem; top: 0.5em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

/* ---------------------------------------------------------- contact: de split breekt open */
.contact { background: var(--navy); color: var(--white); }
.contact-inner {
  min-height: 56svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  padding: 3rem var(--margin) 2rem;
}
.contact-heading { display: flex; align-items: center; gap: 1rem; font-weight: 500; font-size: 1.375rem; color: var(--white); }
.contact-mail {
  display: inline-block; align-self: flex-start;
  font-weight: 600; font-size: clamp(2.25rem, 0.9rem + 6.4vw, 6.5rem); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--white);
  text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.14em;
  text-decoration-color: rgba(224, 231, 255, 0.35);
}
.contact-mail:hover, .contact-mail:focus-visible { text-decoration-color: var(--accent); }
.contact-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.9375rem; color: var(--headtext); }
.contact-foot a { color: var(--white); text-decoration-color: rgba(224, 231, 255, 0.55); }

/* ---------------------------------------------------------- footer: één rustige regel */
.footer {
  display: grid; gap: 0.5rem;
  padding: 4rem var(--margin) 1.75rem;
  font-size: 0.875rem; color: var(--muted);
}
.footer-mid { display: flex; gap: 1.5rem; }
.footer a { color: var(--ink); }

/* ---------------------------------------------------------- menu in het paneel */
.nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 1.0625rem; }
.nav a { color: var(--white); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: border-color 0.2s var(--ease); }
.nav a:hover { border-bottom-color: rgba(224, 231, 255, 0.55); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* subpagina's: hetzelfde paneel, compacter */
.panel--sub { padding: 1.75rem var(--margin) 1.5rem; gap: 1.5rem; }
.panel--sub .panel-id { margin-top: 0; }
.name--sub { font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.025em; }
.name--sub a { color: var(--white); text-decoration: none; }
.panel--sub .role { margin-top: 0.75rem; font-size: 1.0625rem; gap: 0.75rem; }
.panel--sub .bar { width: 2rem; height: 3px; }
.panel--sub .panel-contact { display: none; }

/* ---------------------------------------------------------- inhoud van subpagina's */
.page-title { font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--navy); }
.page-title::after { content: ""; display: block; width: 2.25rem; height: 3px; margin-top: 0.875rem; background: var(--accent); }
.page-lead { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
.prose p + p { margin-top: 1em; }
.section { margin-top: 4rem; }
.section > h2 { font-weight: 500; font-size: 1.375rem; line-height: 1.25; color: var(--navy); margin-bottom: 1.25rem; }

.note { margin-top: 2rem; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--accent); color: var(--body); }
.note strong { color: var(--ink); font-weight: 600; }

.items li { padding: 0.875rem 0; }
.items li + li { border-top: 1px solid var(--rail); }
.item-title { font-weight: 500; color: var(--ink); }
.item-meta { display: block; margin-top: 0.125rem; font-size: 0.9375rem; color: var(--muted); }

.features { margin-top: 0.5rem; }
.features li + li { margin-top: 1.75rem; }
.features a { font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--ink); text-decoration-color: var(--accent); }
.features p { margin-top: 0.375rem; }

.facts { margin: 0; }
.facts.section { margin-top: 2.5rem; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.5rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

.numbers { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.numbers th, .numbers td { text-align: left; padding: 0.625rem 0.75rem 0.625rem 0; border-bottom: 1px solid var(--rail); vertical-align: top; }
.numbers th { font-weight: 500; color: var(--muted); }
.numbers td.n, .numbers th.n { text-align: right; padding-right: 0; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

.more { display: inline-block; margin-top: 1.5rem; font-weight: 500; }

/* ---------------------------------------------------------- tablet */
@media (min-width: 48em) {
  :root { --margin: 2.5rem; }
  .panel { padding-top: 7rem; }
  .work li { font-size: 1.375rem; }
  .reading { padding-top: 5rem; }
  .contact-inner { padding-top: 4rem; }
  .footer { grid-template-columns: 1fr auto 1fr; align-items: baseline; }
  .footer-end { text-align: right; }
}

/* ---------------------------------------------------------- desktop: de split stage */
@media (min-width: 64em) {
  :root { --margin: 3.5rem; }
  .stage { display: grid; grid-template-columns: 45fr 55fr; align-items: start; }
  .stage--sub { grid-template-columns: 32fr 68fr; }
  .panel--sub { justify-content: space-between; padding: 3rem var(--margin) 3rem; }
  .panel--sub .panel-contact { display: flex; }
  .panel--sub .nav ul { flex-direction: column; gap: 0.75rem; font-size: 1.125rem; }
  .panel { position: sticky; top: 0; height: 100svh; min-height: 34rem; padding: 3.5rem var(--margin) 3rem; }
  .reading { padding: 7.5rem var(--margin) 9rem 4.5rem; }
  .block { margin-top: 7.5rem; }
  .contact-inner { padding: 3.5rem var(--margin) 3rem; min-height: 64svh; }
  .footer { padding-top: 9rem; }
}

/* ---------------------------------------------------------- beweging, alleen CSS */
@media (prefers-reduced-motion: no-preference) {
  .panel-id, .panel-contact { animation: rise 0.8s var(--ease) both; }
  .panel-contact { animation-delay: 0.15s; }
  .intro p { animation: rise 0.7s var(--ease) both; }
  .intro p:nth-child(2) { animation-delay: 0.25s; }
  .intro p:nth-child(3) { animation-delay: 0.35s; }
  .bar { animation: draw 0.6s var(--ease) 0.35s both; transform-origin: left center; }

  @supports (animation-timeline: view()) {
    .heading, .work li, .block > p, .contact-heading, .contact-mail, .contact-foot {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes lift { from { transform: translateY(1.5rem); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }

/* ---------------------------------------------------------- print */
@media print {
  @page { size: A4; margin: 16mm; }
  * { animation: none !important; }
  :root { --margin: 0; }
  body { font-size: 10.5pt; }
  .skip { display: none; }
  .stage { display: block; }
  .panel, .contact { background: none; color: var(--ink); }
  .panel { position: static; height: auto; min-height: 0; padding: 0 0 6mm; gap: 4mm; border-bottom: 2px solid var(--navy); }
  .nav, .note { display: none; }
  .name--sub a { color: var(--navy); }
  .name { color: var(--navy); font-size: 26pt; }
  .role, .contact-heading, .contact-mail { color: var(--ink); }
  .panel-contact, .contact-foot { color: var(--body); }
  .panel a, .contact a { color: var(--body); text-decoration: none; }
  .reading { padding: 8mm 0 0; }
  .reading > * { max-width: none; }
  .block { margin-top: 8mm; }
  .contact-inner { min-height: 0; padding: 8mm 0 0; gap: 3mm; }
  .contact-mail { font-size: 20pt; text-decoration: none; }
  .footer { display: none; }
}

/* Fallback zonder JavaScript: adres in een voor bots onleesbare vorm */
.contact-fallback { font-size: 1.125rem; color: var(--headtext); }

/* Sociale profielen in het contactblok en de footer */
.social, .footer-mid { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
