/* ---------- Font: Inter, self-hosted (SIL OFL — see fonts/OFL-LICENSE.txt) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Newsreader (headline only) — trimmed to weight 430 + basic Latin, keeps the optical-size axis */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 430;
  font-display: swap;
  src: url("fonts/newsreader-430.woff2") format("woff2");
}

/* ---------- Tokens (shared with tommb.com) ---------- */
:root {
  --text-default: #1e1e1e;
  --text-secondary: #757575;
  --text-tertiary: #b3b3b3;
  --divider: #cccccc;
  --border: #d9d9d9;
  --radius: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
}
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 52px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text-default);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Page: header top, statement centred, footer bottom ---------- */
.page {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Header — same breadcrumb as tommb.com */
.site-header { padding: calc(var(--gutter) * 0.77) calc(var(--gutter) - 12px) 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.crumb { display: inline-block; padding: 8px 12px; border-radius: var(--radius); white-space: nowrap; }
.crumb--home { color: var(--text-default); }
.crumb--current { color: var(--text-secondary); }
.crumb-divider { color: var(--divider); }

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: clamp(48px, 10vh, 120px) var(--gutter);
}
.hero__statement {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 430;
  font-size: clamp(36px, 7.4vw, 66px);
  line-height: 1.07;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero__statement .line { display: block; }
.hero__sub {
  max-width: 34em;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.45;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.hero__sub a {
  color: var(--text-default);
  text-decoration: underline;
  text-decoration-color: var(--divider);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .15s;
}
.hero__sub a:hover, .hero__sub a:focus-visible { text-decoration-color: currentColor; }


/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px calc(var(--gutter) - 12px) calc(var(--gutter) * 0.77);
}
.footer-links { display: flex; align-items: center; gap: 8px; }
.icon-button {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-tertiary);
  transition: color .15s;
}
.icon-button:hover, .icon-button:focus-visible { color: var(--text-default); }
.footer-end { display: flex; align-items: center; gap: 20px; padding-inline: 12px; }
.footer-meta { display: flex; gap: 10px; color: var(--text-tertiary); white-space: nowrap; }
.badge { display: block; border-radius: 2px; opacity: .85; transition: opacity .2s; }
.badge:hover { opacity: 1; }
.badge img { display: block; height: 52px; width: auto; }

a:focus-visible { outline: 2px solid var(--text-default); outline-offset: 2px; }

/* ---------- Fade-in on load (kept from the old site) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js.is-loaded .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
