:root {
  color-scheme: dark;
  --bg: #09090a;
  --text: #f5f5f2;
  --muted: #9b9b95;
  --faint: #6f6f6a;
  --line: #242426;
  --card: #111113;
  --max: 68rem;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
::selection { background: var(--text); color: var(--bg); }

.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.skip {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  transform: translateY(-180%);
  padding: .55rem .8rem;
  background: var(--text);
  color: var(--bg);
  border-radius: .65rem;
}
.skip:focus { transform: none; }

.topbar {
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand, .home { text-decoration: none; }
.brand { font-weight: 760; letter-spacing: -.035em; }
.brand span { color: var(--faint); }
.home { color: var(--muted); font-size: .88rem; }

.hero { padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.kicker {
  margin: 0 0 1rem;
  color: var(--faint);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .15em;
}
h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.07em;
  font-weight: 780;
  text-wrap: balance;
}
.intro {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  line-height: 1.5;
}
.cta {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.8rem;
  padding: .78rem 1.18rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 760;
}
.cta:hover { opacity: .9; }
.note {
  margin: .85rem 0 0;
  color: var(--faint);
  font-size: .82rem;
  line-height: 1.45;
}

.archive {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}
.archive-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.count { margin: 0; color: var(--faint); font-size: .86rem; font-variant-numeric: tabular-nums; }
.word-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: .65rem;
}
.word-card {
  min-width: 0;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.word {
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 730;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.meta { margin-top: 1rem; color: var(--faint); font-size: .72rem; }
.status { margin: 1rem 0 0; color: var(--faint); font-size: .82rem; }
.status:empty { display: none; }

.meaning {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.meaning p { max-width: 43rem; margin: 0; }
.meaning p + p { margin-top: .5rem; }
.meaning .muted { color: var(--faint); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.8rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .78rem;
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 1.25rem), var(--max)); }
  .topbar { height: 4rem; }
  .hero { padding-top: 4rem; }
  .cta { width: 100%; }
  .word-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word-card { min-height: 6.5rem; }
  .footer { flex-direction: column; }
}

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