/* Doodlescape site. Tokens from the Doodlescape Art Direction Guide v1.0:
   warm canvas, ink outlines, pastel surfaces, saturated color only for actions. */
:root {
  --canvas: #FFF9F2;
  --card: #FFFFFF;
  --ink: #2A2233;
  --ink-soft: #5E566A;
  --line: #EDE3D6;
  --mint: #BDEFC4;
  --sky: #BEE8FF;
  --peach: #FFD2B8;
  --lavender: #DCC7FF;
  --butter: #FFE98A;
  --coral: #FFB9C3;
  --blue: #3CA6FF;
  --orange: #FF9A3D;
  --pink: #FF7DB6;
  --green: #54C779;
  --radius: 22px;
  --outline: 3px solid var(--ink);
  --lift: 0 6px 0 rgba(42,34,51,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }

body {
  font-family: "Nunito Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand span, .display { font-family: Fredoka, "Baloo 2", "Nunito Sans", sans-serif; font-weight: 600; letter-spacing: .2px; }

a { color: #1C7FD6; font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,249,242,.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; border: var(--outline); }
.brand span { font-size: 1.35rem; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink); font-weight: 800; font-size: .92rem;
  padding: 8px 14px; border-radius: 999px; border: 2px solid transparent;
}
.nav a:hover { text-decoration: none; background: var(--sky); border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--butter); border-color: var(--ink); }

/* Legal pages */
.page { padding: 44px 0 72px; }
.prose {
  max-width: 820px;
  background: var(--card);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--lift);
  padding: 40px 44px;
}
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.15; margin-bottom: 10px; }
.prose .updated {
  display: inline-block; font-size: .85rem; font-weight: 800;
  background: var(--mint); border: 2px solid var(--ink); border-radius: 999px;
  padding: 3px 12px; margin-bottom: 22px;
}
.prose h2 {
  font-size: 1.4rem; margin: 34px 0 10px;
  display: inline-block; background: var(--sky); border: 2px solid var(--ink);
  border-radius: 14px; padding: 2px 14px;
}
.prose h2:nth-of-type(5n+2) { background: var(--butter); }
.prose h2:nth-of-type(5n+3) { background: var(--coral); }
.prose h2:nth-of-type(5n+4) { background: var(--lavender); }
.prose h2:nth-of-type(5n+5) { background: var(--mint); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--pink); }
.prose strong { font-weight: 800; }

/* Landing */
.hero { text-align: center; padding-top: 64px; padding-bottom: 40px; }
.hero .logo { width: 168px; height: 168px; border-radius: 38px; border: 4px solid var(--ink); box-shadow: var(--lift); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1.05; margin: 22px 0 6px; }
.hero h1.wordmark { line-height: 0; margin: 22px auto 10px; max-width: 520px; }
.hero h1.wordmark img { width: 100%; height: auto; display: block; }
.hero .tagline { font-size: 1.2rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 26px; }
.badge {
  display: inline-block; font-weight: 800; font-size: 1rem;
  background: var(--butter); border: 3px solid var(--ink); border-radius: 999px;
  padding: 10px 22px; box-shadow: var(--lift);
}
.btn {
  display: inline-block; font-family: Fredoka, "Nunito Sans", sans-serif; font-weight: 600; font-size: 1.15rem;
  color: #fff; background: var(--blue); border: var(--outline); border-radius: 999px;
  padding: 12px 30px; min-height: 52px; box-shadow: var(--lift);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding-top: 30px; padding-bottom: 70px; }
.feature { border: var(--outline); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--lift); }
.feature:nth-child(1) { background: var(--mint); }
.feature:nth-child(2) { background: var(--sky); }
.feature:nth-child(3) { background: var(--peach); }
.feature h3 { font-size: 1.3rem; margin-bottom: 6px; }
.feature p { color: var(--ink); }

/* Footer */
.site-footer { border-top: 2px solid var(--line); padding: 26px 0 34px; font-size: .9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .prose { padding: 26px 20px; border-radius: 18px; margin-left: 12px; margin-right: 12px; }
  .brand span { display: none; }
  .nav { flex-wrap: nowrap; gap: 2px; }
  .nav a { padding: 6px 9px; font-size: .85rem; }
  .nav a[href="/doodlescape/"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
