@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/poppins-300-latin-ext.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;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/poppins-300-latin.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: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400-latin-ext.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;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400-latin.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
}

:root {
  --h: 212;
  --field: hsl(var(--h) 68% 41%);
  --depth: hsl(var(--h) 62% 22%);
  --abyss: hsl(var(--h) 58% 14%);
  --foam: hsl(var(--h) 72% 74%);
  --mist: hsl(var(--h) 80% 94%);
  --haze: hsl(var(--h) 38% 78%);
  --card: hsl(var(--h) 62% 22% / 0.55);
  --line: hsl(var(--h) 72% 74% / 0.55);
  --pen: #f1e41c;
  --ink: #0a0a0a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--field);
  color: var(--mist);
  font-family: Poppins, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
}
a { color: var(--mist); }
button, input { font: inherit; color: inherit; }

.nav, .foot, .wrap { width: min(74rem, calc(100% - 2.4rem)); margin: 0 auto; }
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 0.4rem;
}
.mark {
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.82rem;
}
.nav a:not(.mark) {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--haze);
}
.nav a:hover, .nav a:focus-visible { color: var(--foam); }

.home { padding: 12vh 0 8vh; max-width: 40rem; }
.kicker, .date, .fact-basket, .toc-label, .studio-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haze);
}
h1 {
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 1rem;
}
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 38rem; }
.go, button.go, .foot a, .back {
  color: var(--foam);
}
.go {
  display: inline-block;
  margin-top: 1.6rem;
  text-decoration: none;
  border-bottom: 1px solid var(--foam);
  padding-bottom: 0.1rem;
}

.wrap { padding-bottom: 4rem; }
.mag-list { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.card {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.05rem;
}
.card h2 {
  margin: 0.25rem 0 0.4rem;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--haze); }

article h1 { max-width: 22ch; }
article .lede { color: var(--mist); }
.byline { color: var(--haze); margin-top: 0; }
.toc { margin: 1.6rem 0 2rem; padding: 0; list-style: none; }
.toc a { text-decoration: none; }
.toc li { margin: 0.25rem 0; }
.toc-label { margin-right: 0.6rem; }
.section { margin: 2.2rem 0; max-width: 40rem; }
.section h2 {
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0.2rem 0 0.7rem;
}
.facts { margin-top: 2.4rem; }
.facts h2 { font-weight: 400; font-size: 1.2rem; }
.fact {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.fact p, .fact .src { margin: 0; }
.fact .src { color: var(--haze); font-size: 0.85rem; margin-top: 0.25rem; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 1.6rem;
  color: var(--haze);
  font-size: 0.85rem;
}
.foot nav { display: flex; gap: 1rem; }
.foot a { text-decoration: none; }

.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-weight: 400; font-size: 1.05rem; margin: 1.6rem 0 0.3rem; }
.legal p { max-width: 38rem; }

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.8rem 0.9rem;
  background: var(--abyss);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cookie p { margin: 0; font-size: 0.88rem; }
.cookie button, .tasks button, .login button, .pen, .studio button {
  appearance: none;
  -webkit-appearance: none;
  background: hsl(var(--h) 58% 26% / 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.cookie button:hover, .tasks button:hover, .login button:hover { border-color: var(--foam); color: var(--foam); }

.login, .panel {
  max-width: 40rem;
  margin-top: 1.6rem;
}
.panel h2, .login label { font-weight: 400; }
.panel h2 { font-size: 1.2rem; margin: 0 0 0.7rem; }
body.has-cookie { padding-bottom: 6.5rem; }
.login input, .tasks input {
  width: 100%;
  margin: 0.4rem 0 0.8rem;
  padding: 0.55rem 0.75rem;
  background: var(--abyss);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.task {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.task form { margin: 0; }
.task span { flex: 1 1 14rem; min-width: 0; }
.task.is-done span { color: var(--haze); text-decoration: line-through; }
.bars { margin-top: 0.6rem; }
.bar { margin: 0.55rem 0 0.8rem; }
.bar b { display: block; font-weight: 400; font-size: 0.92rem; }
.bar i {
  display: block;
  height: 8px;
  margin-top: 0.3rem;
  background: var(--foam);
  border-radius: 999px;
}
.note { color: var(--haze); }

.pen {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--pen);
  color: var(--ink);
  border: 0;
  font-weight: 400;
}
body.has-cookie .pen { bottom: 6.2rem; }
.studio {
  position: fixed;
  right: 1.1rem;
  bottom: 4.6rem;
  z-index: 40;
  width: min(18rem, calc(100% - 2rem));
  padding: 0.8rem 0.9rem;
  background: var(--abyss);
  border: 1px solid var(--pen);
  border-radius: 12px;
  color: var(--mist);
}
body.has-cookie .studio { bottom: 9.6rem; }
.studio p { margin: 0.35rem 0; }
.is-x [data-edit] {
  outline: 1px solid var(--pen);
  outline-offset: 3px;
}
.is-x [data-edit]::selection { background: var(--pen); color: var(--ink); }

@media (max-width: 720px) {
  .home { padding-top: 8vh; }
  .fact { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
}
