/* AceBuddy — built on the OVERWORLD design pack from the wardrobe.
   Tokens copied verbatim from `cell ui show overworld`.

   No webfont is loaded. OVERWORLD calls for Pixelify Sans and VT323, but this
   site's whole claim is that it does not send anything anywhere, and pulling
   fonts from a third-party CDN would hand every visitor's IP address to that
   CDN. The pack's character survives without them: it lives in the zero corner
   radius, the 2px ink borders, the hard offset block shadows and the pixel art
   itself, not in the typeface. */

:root {
  --parchment: #F2EAD6;
  --bone: #FFFAEF;
  --ink: #161310;
  --ink-soft: #3A332A;
  --border-tan: #D9CDB3;
  --cobalt: #2E5DD6;
  --cobalt-dark: #1F47B0;
  --vermillion: #E2522E;
  --moss: #2F6E4F;

  --shadow-card: 6px 6px 0 0 var(--ink);
  --shadow-card-lg: 10px 10px 0 0 var(--ink);
  --shadow-button: 4px 4px 0 0 var(--ink);

  --page-max: 1280px;
  --gutter: 32px;

  --display: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- masthead ---- */

.masthead {
  border-bottom: 3px solid var(--ink);
  background: var(--bone);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.wordmark span { color: var(--cobalt); }
.masthead nav { display: flex; gap: 18px; flex-wrap: wrap; }
.masthead nav a {
  font-family: var(--display);
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.masthead nav a:hover, .masthead nav a:focus { border-bottom-color: var(--vermillion); }

/* ---- hero ---- */

.hero { padding: 56px 0 8px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero p.lede { font-size: clamp(18px, 2.4vw, 23px); max-width: 30em; margin: 0 0 28px; }
.hero-art {
  display: block; width: 100%; height: auto;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-card-lg);
  image-rendering: pixelated;
}

/* ---- badges ---- */

.badge {
  display: inline-block;
  font-family: var(--display);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 11px; border: 2px solid var(--ink); color: var(--bone);
  background: var(--cobalt); transform: rotate(-2deg); margin-bottom: 18px;
}
.badge.vermillion { background: var(--vermillion); transform: rotate(1deg); }
.badge.moss { background: var(--moss); transform: rotate(-1deg); }

/* ---- sections ---- */

section { padding: 52px 0; }
section > .wrap > h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 44px);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 10px;
}
.section-note { color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--bone);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.card h3 { font-family: var(--display); font-size: 20px; text-transform: uppercase; margin: 0 0 8px; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card img.tile {
  width: 72px; height: 72px; display: block; margin-bottom: 14px;
  border: 2px solid var(--ink); image-rendering: pixelated;
}

.card.feature { background: var(--parchment); }

/* ---- buttons ---- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 22px; border: 2px solid var(--ink);
  background: var(--cobalt); color: var(--bone);
  text-decoration: none; box-shadow: var(--shadow-button);
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.btn:hover, .btn:focus { background: var(--cobalt-dark); transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--ink); }
.btn.secondary { background: var(--bone); color: var(--ink); }
.btn.secondary:hover, .btn.secondary:focus { background: var(--parchment); }

/* ---- prose (the policy page) ---- */

.prose { max-width: 44em; }
.prose h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: 24px; margin: 34px 0 10px; line-height: 1.1;
}
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose a { color: var(--cobalt); }
.prose .updated {
  font-family: var(--display); font-size: 14px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft);
  border-left: 4px solid var(--vermillion); padding-left: 12px; margin-bottom: 28px;
}
.callout {
  background: var(--bone); border: 2px solid var(--ink);
  box-shadow: var(--shadow-card); padding: 20px 22px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- footer ---- */

footer {
  border-top: 3px solid var(--ink);
  background: var(--bone);
  padding: 28px 0 40px;
  margin-top: 40px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink); }
footer .small { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .hero { padding-top: 34px; }
  .card { padding: 18px; }
}
