/* Wander Around — site styles. Matches the existing wanderaround.io Toon Town
   aesthetic: cream + paper + ink palette, Cinzel/Fredoka/Garamond fonts,
   chunky 3px ink borders with offset hard shadows, pastel-tile cards. */

:root {
  --cream: #fdf3d8;
  --paper: #fff7e0;
  --paper-shadow: #f0e2b8;
  --ink: #3a2818;
  --ink-soft: #5a4530;
  --ink-dim: #8a7050;
  --brass: #c89540;
  --brass-deep: #a87520;
  --orange: #e87a3a;
  --pink: #d860a0;
  --teal: #50b0a0;
  --green: #a0c068;
  --purple: #c870c0;
  --blue: #7aa9d8;
  --gold: #ffd980;
  --red: #cc6048;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Fredoka', system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(255,217,128,0.4), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(80,176,160,0.25), transparent 55%),
    var(--cream);
  min-height: 100vh;
  padding: 0 0 6rem 0;
}

a { color: var(--brass-deep); }
a:hover { color: var(--orange); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ── Top nav ─────────────────────────────────────────────────────── */

nav.top {
  padding: 1.2rem 1.5rem 0;
  max-width: 1080px;
  margin: 0 auto;
  display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
  font-size: 0.95rem;
}
nav.top .brand {
  font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.04em;
  font-size: 1.15rem; color: var(--ink);
  text-decoration: none;
}
nav.top a { color: var(--ink-soft); text-decoration: none; padding-bottom: 0.15rem; border-bottom: 2px solid transparent; }
nav.top a:hover, nav.top a.active { color: var(--ink); border-bottom-color: var(--brass); }
nav.top .spacer { flex: 1; }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero { padding: 3.5rem 0 2.5rem; text-align: center; position: relative; }
.hero h1 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(3rem, 8.5vw, 6rem);
  letter-spacing: 0.02em; line-height: 1; color: var(--ink);
  text-shadow: 3px 3px 0 var(--gold), 6px 6px 0 rgba(58, 40, 24, 0.18);
  margin-bottom: 0.7rem;
}
.hero .tag {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  color: var(--brass-deep);
  margin-bottom: 1.5rem;
}
.hero .lede {
  max-width: 680px; margin: 0 auto;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--ink-soft); line-height: 1.7;
}
.hero-cta {
  display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
}
.hero .pulse {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); margin-right: 0.5rem; vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.hero .label {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 14px;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: inline-block;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.9rem;
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600;
  font-size: 1.05rem; padding: 0.95rem 1.7rem; border-radius: 18px;
  text-decoration: none; cursor: pointer;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 80ms ease, box-shadow 80ms ease;
  background: var(--gold); color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.primary { background: var(--orange); color: white; }
.btn.secondary { background: var(--teal); color: white; }
.btn.donate { background: var(--pink); color: white; }
.btn.small { font-size: 0.92rem; padding: 0.7rem 1.3rem; border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }

/* ── Section card ────────────────────────────────────────────────── */

.section {
  margin: 3rem 0; padding: 2rem; border-radius: 24px;
  background: var(--paper); border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--paper-shadow), 6px 6px 0 1.5px var(--ink);
}
.section h2 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink); margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
}
.section h2 .badge {
  display: inline-block; font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: 0.78rem; padding: 0.25rem 0.7rem; border-radius: 12px;
  background: var(--brass); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1.2rem; letter-spacing: 0.03em; color: var(--ink);
  margin-top: 1.6rem; margin-bottom: 0.5rem;
}
.section .sub {
  font-family: 'EB Garamond', serif; font-style: italic;
  color: var(--brass-deep); margin-bottom: 1.2rem; font-size: 1.1rem;
}
.section p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; margin-bottom: 0.9rem; }
.section p:last-child { margin-bottom: 0; }
.section ul, .section ol { color: var(--ink-soft); padding-left: 1.4rem; margin-bottom: 1rem; }
.section li { margin-bottom: 0.45rem; line-height: 1.65; }
.section code {
  background: var(--cream); padding: 0.1rem 0.45rem; border-radius: 4px;
  font-family: 'Fredoka', monospace; font-size: 0.92em;
  color: var(--brass-deep); border: 1.5px solid var(--paper-shadow);
}
.section pre {
  background: var(--cream); padding: 1rem; border-radius: 12px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--paper-shadow);
  overflow-x: auto; font-size: 0.86rem; color: var(--ink); line-height: 1.55;
}

/* Tables */
.section table { width: 100%; border-collapse: collapse; margin: 0.8rem 0 1rem; font-size: 0.94rem; }
.section th, .section td {
  text-align: left; padding: 0.55rem 0.8rem;
  border-bottom: 2px solid var(--paper-shadow); vertical-align: top;
}
.section th {
  color: var(--ink); font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 2.5px solid var(--ink);
}

/* ── Surfaces grid (used on landing) ─────────────────────────────── */

.surfaces {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.surface {
  display: block; text-decoration: none; color: var(--ink);
  padding: 1.4rem 1.1rem; border-radius: 18px;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform 80ms ease, box-shadow 80ms ease;
  background: var(--cream);
}
.surface:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.surface .icon { font-size: 2.2rem; line-height: 1; margin-bottom: 0.5rem; }
.surface .name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; }
.surface .desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.3rem; line-height: 1.45; }

/* Pastel tile colors per surface */
.surface.world { background: #fff1c0; }
.surface.oracle { background: #fde0ea; }
.surface.institute { background: #fff5d8; }
.surface.wiki { background: #e8d8f0; }
.surface.library { background: #fce0c0; }
.surface.fourd { background: #d8f0e8; }
.surface.feed { background: #ffd8c0; }
.surface.hub { background: #fff0a8; }
.surface.geom { background: #fff1c0; }
.surface.cog { background: #fde0ea; }
.surface.rules { background: #ffd8c0; }
.surface.items { background: #d8e8f0; }
.surface.percep { background: #e8d8f0; }
.surface.time { background: #d8f0e8; }
.surface.mood { background: #fce0c0; }
.surface.know { background: #fff5d8; }
.surface.mod { background: #f0e8d8; }
.surface.faction { background: #f0d8d8; }
.surface.multi { background: #d8e8d8; }

/* ── Numbers / stat strip ───────────────────────────────────────── */

.numbers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.number {
  padding: 1.2rem; border-radius: 16px;
  border: 3px solid var(--ink); background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink); text-align: center;
}
.number .v { font-family: 'Cinzel', serif; font-weight: 700; font-size: 2rem; color: var(--brass-deep); }
.number .l { font-size: 0.84rem; color: var(--ink-dim); margin-top: 0.3rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Notify form ────────────────────────────────────────────────── */

#notify-form {
  display: flex; gap: 0.5rem; max-width: 32rem;
  margin: 1rem auto 0; flex-wrap: wrap; justify-content: center;
}
#notify-form input {
  flex: 1; min-width: 12rem; background: var(--paper);
  color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--paper-shadow);
  padding: 0.7rem 0.9rem; border-radius: 14px;
  font-family: 'Fredoka', sans-serif; font-size: 0.95rem; outline: none;
}
#notify-form input::placeholder { color: var(--ink-dim); }
#notify-form input:focus { border-color: var(--brass); }
#notify-msg { margin-top: 0.7rem; min-height: 1.2rem; font-size: 0.92rem; color: var(--brass-deep); font-style: italic; font-family: 'EB Garamond', serif; }

/* ── Footer ─────────────────────────────────────────────────────── */

footer {
  border-top: 3px solid var(--paper-shadow);
  margin: 4rem 1.5rem 0; padding-top: 2rem;
  text-align: center; color: var(--ink-dim);
  font-size: 0.92rem; max-width: 1080px; margin-inline: auto;
}
footer a { color: var(--brass-deep); text-decoration: none; padding: 0 0.4rem; }
footer a:hover { color: var(--orange); }

/* ── Inline kbd ─────────────────────────────────────────────────── */

.kbd {
  display: inline-block; background: var(--paper); border: 2px solid var(--ink);
  border-radius: 6px; padding: 0.05rem 0.45rem; font-size: 0.8em;
  font-family: 'Fredoka', monospace; color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

/* ── Small utilities ────────────────────────────────────────────── */

.dim { color: var(--ink-dim); }
.center { text-align: center; }
.row-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
