/* milankoelling.com — "honest logbook" style
   Fonts are self-hosted (no requests to Google), see assets/fonts. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ground: #F7F7F4;
  --surface: #FFFFFF;
  --ink: #15171C;
  --muted: #555A64;
  --line: #D9D8D2;
  --line-soft: #E3E2DD;
  --placeholder: #ECEBE6;
  --accent: #0E6670;          /* petrol */
  --dark-text: #F2F1EC;
  --dark-muted: #C9CCD2;
  --dark-label: #A9ADB6;

  --font-head: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1120px;
  --pad: 32px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; display: block; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: var(--ground); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

.label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.label--muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 24px; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 12px;
  font-weight: 500; text-decoration: none; line-height: 1.2;
}
.btn--primary { background: var(--ink); color: var(--ground); }
.btn--primary:hover { background: var(--accent); color: var(--ground); }
.btn--outline-light { border: 1.5px solid var(--dark-text); color: var(--dark-text); }
.btn--outline-light:hover { background: var(--dark-text); color: var(--ink); }
.btn--small { min-height: 44px; padding: 10px 18px; border-radius: 10px; font-size: 15px; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand a { font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; }
.brand .label { font-size: 12px; letter-spacing: 0.04em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; padding-block: 72px 96px; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__actions .text-link { font-weight: 500; }
.portrait { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.portrait__frame {
  aspect-ratio: 4 / 5; width: 100%; max-width: 460px;
  background: var(--placeholder); border: 1.5px dashed #B9B8B1; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 32px; font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.portrait__frame--photo { padding: 0; border: 0; background: none; overflow: hidden; border-radius: 20px; }
.portrait__frame--photo img { border-radius: 20px; object-position: center top; display: block; }
.portrait figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Facts */
.facts { padding-bottom: 104px; }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.facts__item { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 6px; }
.facts__item dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.facts__item dd { margin: 0; font-weight: 500; }

/* Section heads */
.section { padding-bottom: 120px; }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 40px; }

/* Story */
.chapters { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.chapter { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.chapter p { color: var(--muted); font-size: 16px; }
.chapter .label { font-size: 12px; letter-spacing: 0.02em; }
.chapter--current { border: 2px solid var(--accent); padding: 27px; }

/* Now */
.now { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 64px; }
.now__head { display: flex; flex-direction: column; gap: 14px; }
.now__list { margin: 0; }
.now__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.now__row:last-child { border-bottom: 1px solid var(--line); }
.now__row dt { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.now__row dd { margin: 0; }
@media (max-width: 480px) { .now__row { grid-template-columns: 1fr; gap: 4px; } }

/* Consulting (dark) */
.consulting { background: var(--ink); color: var(--dark-text); }
.consulting .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px 64px; align-items: end; padding-block: 96px; }
.consulting .label { color: var(--dark-label); }
.consulting h2 { color: var(--dark-text); }
.consulting__body { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.consulting__body p { color: var(--dark-muted); font-size: 18px; }

/* Follow */
.follow .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 120px; }
.follow__line { font-family: var(--font-head); font-weight: 600; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; max-width: 820px; text-wrap: balance; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 720px; padding-block: 48px 120px; display: flex; flex-direction: column; gap: 20px; }
.legal h2 { font-size: 26px; margin-top: 24px; }
.todo { background: var(--placeholder); border: 1.5px dashed #B9B8B1; border-radius: 12px; padding: 16px 20px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* Small screens */
@media (max-width: 600px) {
  :root { --pad: 20px; }
  .site-header .wrap { flex-wrap: nowrap; padding-block: 16px; gap: 12px; }
  .brand a { font-size: 19px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn--small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  h1 { font-size: 40px; }
  .portrait__frame { max-width: none; aspect-ratio: 1 / 1; }
  .now { gap: 24px; }
  body { font-size: 16px; }
  .hero { padding-block: 40px 56px; gap: 32px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .text-link { text-align: center; padding: 10px 0; }
  .facts { padding-bottom: 56px; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
  .section { padding-bottom: 64px; }
  .chapter { padding: 20px; }
  .chapter--current { padding: 19px; }
  .consulting .wrap { padding-block: 56px; }
  .follow .wrap { padding-block: 56px; }
  .follow .btn, .consulting .btn { align-self: stretch; }
}
