/* generated by fetch_fonts.py: self-hosted, SIL Open Font License */
@font-face {
  font-family: 'Dela Gothic One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dela-latin-400.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: 'DotGothic16';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dotgothic-latin-400.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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-latin-400.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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/atkinson-latin-700.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;
}
@layer base, components;

:root {
  --cobalt: #1437d9;
  --deep: #0f1f96;
  --night: #0a1150;
  --paper: #f3f6ff;
  --mist: #c9d4ff;
  --yolk: #ffd43b;
  --coral: #ff6b5e;
  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --dot: "DotGothic16", ui-monospace, monospace;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --horizon: clamp(190px, 34svh, 380px);
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { background: var(--night); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    background: var(--cobalt);
    color: var(--paper);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  main { flex: 1; }
  h1, h2, p, ul, dl, dd { margin: 0; }
  h1, h2 { overflow-wrap: break-word; }
  ul { padding: 0; list-style: none; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; }
  ::selection { background: var(--yolk); color: var(--night); }
}

@layer components {
  .wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 16px; }
  .label { font-family: var(--dot); font-size: .875rem; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
  .skip { position: fixed; top: 10px; left: 10px; z-index: 60; padding: 10px 16px; background: var(--yolk); color: var(--night); transform: translateY(-200%); }
  .skip:focus { transform: none; }

  .masthead { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
  .logo { color: var(--paper); font-family: var(--display); font-size: 1.2rem; line-height: 1; text-decoration: none; }
  .logo span { color: var(--yolk); }
  .logo--small { font-size: 1rem; line-height: 1.3; white-space: nowrap; }
  .nav-link { color: var(--mist); text-decoration: none; text-underline-offset: 4px; }
  .nav-link:hover { color: var(--yolk); text-decoration: underline; }

  .stepped {
    --s: 8px;
    clip-path: polygon(0 var(--s), var(--s) var(--s), var(--s) 0, calc(100% - var(--s)) 0, calc(100% - var(--s)) var(--s), 100% var(--s), 100% calc(100% - var(--s)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s)) 100%, var(--s) 100%, var(--s) calc(100% - var(--s)), 0 calc(100% - var(--s)));
  }
  .hard-shadow { filter: drop-shadow(7px 7px 0 var(--night)); }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: var(--yolk);
    color: var(--night);
    font-family: var(--dot);
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: translate 120ms steps(2), background-color 120ms steps(2);
  }
  .btn:hover { background: var(--paper); translate: 3px 3px; }
  .btn:focus-visible, .post-card:focus-visible { outline-color: var(--night); outline-offset: -9px; }

  .hero { position: relative; display: flex; min-height: calc(100svh - 72px); overflow: hidden; }
  .hero__canvas { position: absolute; inset: auto 0 0; width: 100%; height: var(--horizon); pointer-events: none; }
  .hero__copy { position: relative; z-index: 1; padding-top: clamp(24px, 6vh, 64px); padding-bottom: calc(var(--horizon) + 16px); }
  .hero__eyebrow { color: var(--yolk); }
  .hero h1, .missing h1 { max-width: 56rem; margin-top: 14px; font-family: var(--display); font-size: clamp(2.45rem, 8vw, 5.6rem); font-weight: 400; line-height: 1.05; }
  .hero__intro { max-width: 36rem; margin-top: 18px; color: var(--mist); font-size: 1.125rem; }
  .hero__cta { display: inline-block; margin-top: 28px; }

  .posts { padding-block: clamp(56px, 8vw, 96px); background: var(--deep); scroll-margin-top: 16px; }
  .posts__grid { display: grid; gap: 40px; }
  .posts h2#posts-title { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 400; line-height: 1.2; }
  .posts__card { margin-top: 26px; }
  .post-card { display: block; padding: clamp(24px, 4vw, 36px); background: var(--paper); color: var(--night); text-decoration: none; transition: translate 120ms steps(2); }
  .post-card:hover { translate: 3px 3px; }
  .post-card > span, .post-card > time { display: block; }
  .post-card .post-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--cobalt); }
  .post-card__title { margin-top: 14px; font-family: var(--display); font-size: clamp(1.55rem, 4vw, 2.55rem); line-height: 1.15; }
  .post-card:hover .post-card__title { color: var(--cobalt); }
  .post-card__dek { max-width: 42rem; margin-top: 14px; }
  .post-card__date { margin-top: 22px; color: #2c3576; }

  .memory__title { color: var(--yolk); font-weight: 400; }
  .memory { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 17rem; margin-top: 16px; }
  .block { aspect-ratio: 1; background: rgb(10 17 80 / .55); box-shadow: inset 0 0 0 2px rgb(201 212 255 / .28); }
  .block--used { background: var(--yolk); box-shadow: inset -4px -4px 0 var(--coral); }
  .memory__note { max-width: 17rem; margin-top: 14px; color: var(--mist); font-size: .9rem; }

  .post-head { padding-block: 32px 56px; }
  .post-head__tag { margin-top: 32px; color: var(--yolk); }
  .post-head h1 { max-width: 64rem; margin-top: 12px; font-family: var(--display); font-size: clamp(2.05rem, 6.2vw, 4.5rem); font-weight: 400; line-height: 1.09; }
  .post-head__dek { max-width: 42rem; margin-top: 20px; color: var(--mist); font-size: clamp(1.125rem, 2.2vw, 1.3rem); }
  .post-head__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 24px; color: var(--mist); }

  .post-body { background: var(--paper); color: var(--night); }
  .post-body__grid { display: grid; gap: 40px; padding-block: clamp(44px, 6vw, 64px); }
  .prose { min-width: 0; max-width: 42rem; }
  .prose > p { margin-top: 1.25rem; }
  .prose > .lead { margin-top: 0; font-size: 1.25rem; line-height: 1.6; }
  .prose > h2 { margin-top: 2.75rem; color: var(--cobalt); font-family: var(--display); font-size: clamp(1.45rem, 3.4vw, 1.9rem); font-weight: 400; line-height: 1.2; }
  .sources { margin-top: 48px; padding-top: 24px; border-top: 4px solid var(--night); }
  .sources h2 { font-weight: 400; }
  .sources ul { display: grid; gap: 8px; margin-top: 12px; font-size: 1rem; }
  .sources a { color: var(--cobalt); text-underline-offset: 4px; }
  .sources a:hover { color: var(--night); }
  .sources p { margin-top: 16px; color: #2c3576; font-size: .875rem; }

  .facts { padding: 24px; background: var(--cobalt); color: var(--paper); }
  .facts h2 { color: var(--yolk); font-weight: 400; }
  .facts dl { display: grid; gap: 12px; margin-top: 16px; }
  .facts dt { color: var(--mist); font-size: .75rem; }
  .facts dd { line-height: 1.35; }
  .scores { display: grid; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 2px solid rgb(201 212 255 / .4); }
  .score__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--mist); }
  .score__row strong { color: var(--paper); font-family: var(--display); font-size: 1.85rem; font-weight: 400; line-height: 1; }
  .score__track { height: 16px; margin-top: 8px; background: var(--night); }
  .score__fill { height: 100%; }
  .score__fill--coral { background: var(--coral); }
  .score__fill--yolk { background: var(--yolk); }

  .missing { padding-block: clamp(48px, 12vh, 120px); }

  .footer { background: var(--night); color: var(--mist); font-size: .9rem; }
  .footer__inner { display: flex; flex-direction: column; gap: 12px; padding-block: 32px; }

  .read-progress { position: fixed; inset: 0 0 auto; z-index: 50; height: 5px; background: var(--yolk); transform-origin: 0 50%; scale: 0 1; animation: read-grow linear both; animation-timeline: scroll(root); }
  @supports not (animation-timeline: scroll()) { .read-progress { display: none; } }
  @keyframes read-grow { to { scale: 1 1; } }

  @media (min-width: 640px) {
    .wrap { padding-inline: 24px; }
    .logo { font-size: 1.3rem; }
    .logo--small { font-size: 1rem; }
  }
  @media (min-width: 768px) {
    .footer__inner { flex-direction: row; justify-content: space-between; gap: 40px; }
    .footer__inner p:last-child { max-width: 42rem; }
  }
  @media (min-width: 1024px) {
    .posts__grid { grid-template-columns: minmax(0, 1fr) 17rem; gap: 56px; }
    .post-body__grid { grid-template-columns: minmax(0, 42rem) 19rem; justify-content: space-between; }
    .facts-wrap { position: sticky; top: 24px; align-self: start; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .post-card { transition: none; }
    .btn:hover, .post-card:hover { translate: none; }
    .read-progress { display: none; }
  }
}
