*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --ink: #14142B;
  --cream: #FFF1D0;
  --pink: #FF4D8D;
  --teal: #2EC4D6;
  --yellow: #FFE14D;
  --green: #3DDC84;
  --purple: #8B5CF6;
  --orange: #F5A524;
  --muted: rgba(20, 20, 43, 0.68);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --max: 920px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(20, 20, 43, 0.08) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.display {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.pixel {
  font-family: "Press Start 2P", "Lilita One", monospace;
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
}

.nav {
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 241, 208, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.brand-word {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-size: 29px;
  line-height: 1;
}

.brand-word span { color: var(--pink); }

.nav-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 3px solid var(--ink);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  background: var(--yellow);
  text-decoration: none;
  font-family: "Lilita One", "Nunito", sans-serif;
  font-size: 19px;  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link.home {
  background: #fff;
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 24px;
}

.kicker {
  width: fit-content;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  background: var(--yellow);
  margin-bottom: 16px;
}

h1 {
  max-width: 780px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.92;
}

.intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 900;
  margin-top: 18px;
}

.doc {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 76px;
  padding: clamp(22px, 4vw, 38px);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #fff;
}

.note {
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  background: var(--cream);
  padding: 16px;
  margin: 0 0 24px;
}

h2 {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-size: 32px;
  line-height: 1;
  margin: 30px 0 10px;
}

h3 {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  margin: 22px 0 8px;
}

p, li { color: rgba(20, 20, 43, 0.78); }
p + p { margin-top: 10px; }
ul, ol { padding-left: 22px; margin: 10px 0 0; }
li + li { margin-top: 8px; }
strong { color: var(--ink); }

.contact-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 96px;
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.footer-brand {
  color: #fff;
  font-size: 25px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
}

.footer-links a:hover { color: #fff; }

@media (max-width: 700px) {
  .nav-inner { width: min(100% - 22px, 1180px); height: 68px; }
  .brand-word { font-size: 24px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-link { min-height: 42px; padding: 0 12px; font-size: 17px; }
  .nav-actions { gap: 8px; }
  .hero { width: min(100% - 22px, var(--max)); padding-top: 44px; }
  .doc { width: min(100% - 22px, var(--max)); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* Short pages (404) keep the footer at the bottom */
footer { margin-top: auto; }
