@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka/Fredoka[wdth,wght].woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito/Nunito[wght].woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --stage: #5B3FE4;
  --tile: #4A2FCF;
  --tile-edge: #33209E;
  --soft: #E4DEFF;
  --deep-ink: #2A1A7A;
  --card-muted: #5C4D9E;
  --pink: #FF6B9A;
  --pink-ink: #4A0A24;
  --mint: #4BE3C1;
  --mint-ink: #083B30;
  --sun: #FFD23F;
  --sky: #9EDBFF;
  --sky-ink: #0F3550;
  --cream: #FFFDF8;
  --white: #FFFFFF;
  --card-shadow: 0 6px 0 rgba(51, 32, 158, 0.55), 0 18px 40px rgba(26, 12, 90, 0.35);
  --radius: 28px;
  --wrap: 1120px;
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stage);
  color: var(--white);
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 12px;
}

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--sun); color: var(--deep-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 800;
  text-decoration: none; z-index: 100; transition: top 150ms ease;
}
.skip-link:focus { top: 12px; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(91, 63, 228, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.topbar-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 var(--tile-edge); }
.brand-name {
  font-family: var(--head); font-weight: 600; font-size: 20px; letter-spacing: 0.08em;
}
.topnav {
  display: flex; gap: 4px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  white-space: nowrap; text-decoration: none; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; color: var(--soft);
  transition: background-color 150ms ease, color 150ms ease;
}
.topnav a:hover, .topnav a:focus-visible { background: var(--tile); color: var(--white); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.pill-quiet { background: var(--tile); color: var(--soft); }
.pill-pink { background: var(--pink); color: var(--pink-ink); }
.pill-mint { background: var(--mint); color: var(--mint-ink); }
.pill-sun { background: var(--sun); color: var(--deep-ink); }
.pill-sky { background: var(--sky); color: var(--sky-ink); }

/* ── Type helpers ────────────────────────────────────────── */
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 14px;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.45rem; margin-bottom: 8px; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--soft); margin-top: 20px; max-width: 34ch; }
.section-lede { color: var(--soft); max-width: 60ch; margin-top: 14px; font-size: 1.1rem; }
.fineprint { color: var(--soft); font-size: 0.95rem; margin-top: 18px; max-width: 70ch; }
.fineprint a { color: var(--white); }

/* ── Buttons: raised candy ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 26px; border-radius: 27px; border: 0;
  font-family: var(--body); font-weight: 900; font-size: 17px;
  text-decoration: none; cursor: pointer; position: relative;
  box-shadow: 0 4px 0 rgba(51, 32, 158, 0.9);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 150ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(51, 32, 158, 0.9); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(51, 32, 158, 0.9); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-sun { background: var(--sun); color: var(--deep-ink); }
.btn-pink { background: var(--pink); color: var(--pink-ink); }
.btn-mint { background: var(--mint); color: var(--mint-ink); }
.btn-quiet { background: var(--tile); color: var(--white); box-shadow: none; }
.btn-quiet:hover { box-shadow: none; background: var(--tile-edge); }
.btn-wide { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--soft); font-size: 0.95rem; }

/* ── Tiles and shapes (mirrors RaisedTile + TokenGlyph) ─── */
.tile {
  --size: 84px;
  width: var(--size); height: var(--size);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tile); border-radius: 18px;
  box-shadow: 0 4px 0 var(--tile-edge);
  position: relative; flex: 0 0 auto;
}
.tile-sm { --size: 64px; border-radius: 16px; }
.tile-lifted { background: var(--tile-edge); transform: translateY(4px); box-shadow: 0 0 0 var(--tile-edge); }
.shape { display: block; width: 44%; height: 44%; }
.tile-sm .shape { width: 46%; height: 46%; }
.shape-circle { background: var(--pink); border-radius: 50%; }
.shape-square { background: var(--mint); border-radius: 14%; }
.shape-diamond { background: var(--white); border-radius: 14%; transform: rotate(45deg) scale(0.86); }
.shape-triangle {
  background: var(--sun);
  clip-path: polygon(50% 4%, 100% 100%, 0 100%);
}
.shape-cross {
  background: var(--sky);
  clip-path: polygon(38% 0, 62% 0, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0 62%, 0 38%, 38% 38%);
}

/* ── Cards: white clue cards ─────────────────────────────── */
.card {
  background: var(--white); color: var(--deep-ink);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--card-shadow);
}
.card p { color: var(--card-muted); }
.card h3 { color: var(--deep-ink); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(48px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
}
.hero-art { position: relative; min-height: 420px; }
.hero-card { position: absolute; }
.hero-card-wordmark {
  background: var(--cream); padding: 22px 26px;
  left: 0; right: 10%; top: 6%; transform: rotate(-3deg);
  animation: float-a 7s ease-in-out infinite;
}
.hero-card-mark {
  background: var(--cream); padding: 16px;
  width: min(300px, 58%); right: 0; bottom: 0; transform: rotate(4deg);
  animation: float-b 8s ease-in-out infinite;
}
.hero-tiles {
  position: absolute; left: 0; bottom: 4%;
  display: flex; gap: 10px;
}
.hero-tiles .tile-sm { --size: 56px; }
@keyframes float-a { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
@keyframes float-b { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-card-wordmark, .hero-card-mark { animation: none; }
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.steps {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  counter-reset: step;
}
.step { display: flex; flex-direction: column; }
.step-num { font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: 0.18em; color: var(--card-muted) !important; margin-bottom: 6px; }
.step-art {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 150px; margin: -8px -8px 18px;
  background: var(--stage); border-radius: 22px; padding: 18px;
}
.step-art .tile { --size: 60px; border-radius: 15px; }
.swap-arrow { color: var(--sun); font-size: 28px; font-weight: 900; }
.step-art-clue { flex-direction: column; align-items: stretch; }
.mini-clue { background: var(--white); border-radius: 16px; padding: 12px 14px; }
.mini-clue-label { display: block; font-size: 11px; font-weight: 900; letter-spacing: 0.16em; color: var(--card-muted); }
.mini-clue-text { display: block; font-family: var(--head); font-size: 15px; line-height: 1.25; color: var(--deep-ink); margin-top: 4px; }
.mini-clue-text s { text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
.mini-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.mini-actions .pill { font-size: 12px; }
.mini-proof { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.step p:last-child { margin-top: auto; }

.grid-3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px;
}
.feature .tile, .feature .pill { margin-bottom: 18px; }

/* ── Stats ───────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin: 32px 0 0;
}
.stat {
  background: var(--tile); border-radius: 22px; padding: 18px 20px;
  box-shadow: 0 4px 0 var(--tile-edge);
}
.stat dt { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.stat dd { margin: 6px 0 0; font-family: var(--head); font-weight: 600; font-size: 2.4rem; line-height: 1; }

/* ── Status ──────────────────────────────────────────────── */
.status-card { margin-top: 28px; }
.status-list { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: var(--card-muted); }
.status-list strong { color: var(--deep-ink); }

/* ── Demo (illustrative preview) ─────────────────────────── */
.card-stage {
  margin-top: 32px; background: var(--tile-edge);
  border-radius: 34px; padding: clamp(18px, 3vw, 34px);
  max-width: 560px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(26, 12, 90, 0.4);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-kicker { font-size: 12px; font-weight: 900; letter-spacing: 0.2em; color: var(--soft); }
.demo-title { font-family: var(--head); font-weight: 500; font-size: 1.6rem; }
.demo-tools { display: flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--tile); color: var(--white); font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 150ms ease, transform 120ms ease;
}
.icon-btn:hover { background: var(--stage); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.45; cursor: default; }
.icon-btn[data-hinted="true"] { background: var(--sun); color: var(--deep-ink); }

.demo-tiles {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 22px;
}
.demo-tile {
  appearance: none; border: 0; padding: 0; cursor: pointer;
  background: var(--tile); border-radius: 18px; aspect-ratio: 1;
  box-shadow: 0 4px 0 var(--tile-edge);
  display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--white);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 120ms ease, background-color 150ms ease;
}
.demo-tile .shape { width: 44%; height: 44%; }
.demo-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--tile-edge); }
.demo-tile[aria-pressed="true"] {
  transform: translateY(-6px);
  box-shadow: 0 10px 0 var(--tile-edge), 0 0 0 3px var(--white);
  background: var(--stage);
}
.demo-tile.is-landing { animation: land 380ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes land { 0% { transform: translateY(-14px) scale(1.08); } 100% { transform: translateY(0) scale(1); } }
.demo-tile .pos {
  position: absolute; bottom: -22px; left: 0; right: 0; text-align: center;
  font-size: 13px; font-weight: 800; color: var(--soft);
}
.demo-tiles { margin-bottom: 26px; }
.demo-help { color: var(--soft); font-size: 0.95rem; min-height: 2.6em; }

.demo-progress { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 12px; }
.demo-sorted { font-size: 13px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.demo-dots { display: flex; gap: 7px; }
.demo-dots i {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--white); display: block;
  transition: background-color 150ms ease, width 150ms ease;
}
.demo-dots i.current { width: 28px; border-radius: 999px; }
.demo-dots i.holds { background: var(--mint); border-color: var(--mint); }
.demo-dots i.suspect { background: var(--pink); border-color: var(--pink); }

.demo-clue { min-height: 190px; display: flex; flex-direction: column; transition: transform 220ms ease, opacity 220ms ease; }
.demo-clue.is-flying-left { transform: translateX(-40px) rotate(-3deg); opacity: 0; }
.demo-clue.is-flying-right { transform: translateX(40px) rotate(3deg); opacity: 0; }
.clue-label { font-size: 12px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; }
.clue-text { font-family: var(--head); font-weight: 500; font-size: clamp(1.35rem, 3.6vw, 1.75rem); line-height: 1.2; color: var(--deep-ink) !important; margin: 18px 0 auto; }
.clue-text.is-hint::after { content: " Confirmed true"; color: var(--mint-ink); background: var(--mint); font-family: var(--body); font-size: 0.8rem; font-weight: 900; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }
.clue-chips { display: flex; gap: 8px; margin-top: 18px; }
.clue-chips .tile { --size: 34px; border-radius: 9px; background: var(--deep-ink); box-shadow: none; }
.clue-chips .tile .shape { width: 50%; height: 50%; }

.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.demo-actions + .btn { margin-top: 12px; }
.demo-feedback { margin-top: 14px; color: var(--soft); font-size: 0.95rem; min-height: 1.5em; }
.demo-feedback.is-bad { color: var(--sun); }

.demo-proof { margin-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 22px; }
.proof-title { font-size: 2.4rem; }
.proof-meta { color: var(--soft); margin-top: 4px; font-weight: 800; }
.proof-intro { margin-top: 10px; }
.proof-list { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 12px; }
.proof-item { background: var(--white); color: var(--deep-ink); border-radius: 20px; padding: 16px 18px; }
.proof-item.is-lie { box-shadow: 0 0 0 3px var(--pink); }
.proof-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.proof-item-head .clue-label { color: var(--card-muted); }
.proof-item .proof-clue { font-family: var(--head); font-size: 1.1rem; margin-top: 8px; }
.proof-item.is-lie .proof-clue { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
.proof-item .proof-why { color: var(--card-muted); margin-top: 6px; font-size: 0.95rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--cream); color: #2D2D2D; margin-top: 60px;
  padding: 56px 0 40px;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-studio { display: flex; gap: 20px; align-items: flex-start; }
.studio-icon { width: 80px; height: 80px; flex: 0 0 80px; }
.footer-title { font-family: var(--head); font-weight: 500; font-size: 1.25rem; margin-bottom: 8px; color: #2D2D2D; }
.footer-text { color: rgba(45, 45, 45, 0.78); font-size: 0.95rem; }
.footer-text + .footer-text { margin-top: 10px; }
.footer-text code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; background: rgba(45, 45, 45, 0.07); padding: 1px 6px; border-radius: 6px; }
.footer-text a { color: #2D2D2D; }
.footer-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.swatch {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
  font-family: ui-monospace, Menlo, monospace; color: #2D2D2D;
}
.swatch::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(45, 45, 45, 0.1); padding-top: 18px; font-size: 0.9rem; color: rgba(45, 45, 45, 0.65); }
.footer :focus-visible { outline-color: var(--stage); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .topbar .pill-quiet { order: 2; margin-left: auto; }
  .topnav { order: 3; margin-left: 0; margin-inline: -16px; padding-inline: 16px; width: calc(100% + 32px); }
}
@media (max-width: 960px) {
  .steps, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 60ch; }
  .hero-art { min-width: 0; min-height: 0; display: grid; gap: 16px; margin-top: 8px; }
  .hero-card { position: static; }
  .hero-card-wordmark { min-width: 0; width: 100%; transform: rotate(-1.5deg); animation: none; max-width: 560px; }
  .hero-card-wordmark img { width: 100%; }
  .hero-card-mark { width: min(260px, 60%); margin-left: auto; transform: rotate(3deg); animation: none; }
  .hero-tiles { position: static; justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .hero { padding-top: 36px; }
  .hero-card-mark { width: min(240px, 70%); }
  .hero-tiles .tile-sm { --size: 50px; border-radius: 13px; }
  .steps, .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px; border-radius: 24px; }
  .card-stage { padding: 16px; border-radius: 26px; }
  .demo-tiles { gap: 6px; }
  .demo-tile { border-radius: 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 400px) {
  .demo-actions { grid-template-columns: 1fr; }
  .stat dd { font-size: 2rem; }
}

/* ── Pilot build screenshots ─────────────────────────────── */
.screens {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;
}
.screen img {
  width: 100%; border-radius: 22px;
  box-shadow: 0 6px 0 var(--tile-edge), 0 18px 40px rgba(26, 12, 90, 0.35);
  background: var(--tile);
}
.screen p { margin-top: 14px; color: var(--soft); font-size: 0.95rem; }
@media (max-width: 960px) {
  .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .screens {
    display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 16px; margin-inline: -16px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .screen { flex: 0 0 68%; scroll-snap-align: start; }
}

/* Consumer page closing note */
.availability-card { max-width: 820px; padding: clamp(28px, 5vw, 52px); }
.availability-card h2 { color: var(--deep-ink); font-size: clamp(2rem, 4vw, 3rem); }
.availability-card p { color: var(--card-muted); font-size: 1.1rem; max-width: 55ch; margin-top: 16px; }
.availability-card .btn { margin-top: 24px; }
.footer .studio-icon { border-radius: 20px; }

/* Clue review stays available so a mistaken mark can be changed. */
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: 90px; }
.topnav a { min-height: 44px; display: inline-flex; align-items: center; }
.hero-note a { text-underline-offset: 3px; }
.clue-navigation { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.clue-navigation .btn { min-height: 44px; padding: 8px 12px; font-size: 0.9rem; }
.demo-title { min-width: 0; }
.demo-head { flex-wrap: wrap; }
.availability-card .price-note { font-size: 0.9rem; margin-top: 8px; }
.screens:focus-visible { outline-offset: 6px; }
@media (max-width: 1100px) { section[id], main[id] { scroll-margin-top: 125px; } }
@media (max-width: 400px) {
  .mini-actions { flex-wrap: wrap; }
  .demo-progress { flex-wrap: wrap; gap: 8px; }
  .hero-tiles { flex-wrap: wrap; }
  .hero-tiles .tile-sm { --size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.brand { min-height: 44px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 400px) {
  .topnav { flex-wrap: wrap; }
  .topnav a { padding-inline: 10px; }
  section[id], main[id] { scroll-margin-top: 170px; }
}
