/* Wildwood — colours lifted straight from the game's "moss" grove palette
   (Woodland/Design/Palette.swift), so the site and the app feel like one thing. */

:root {
  --bg-top: #ecfce7;
  --bg-bottom: #d0edc8;
  --surface: #faf7d9;
  --ink: #22331e;
  --ink-soft: #556b4f;
  --accent: #b89d3e;
  --accent-soft: #f0e0a7;
  --found: #719e66;
  --treasure: #cc962d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #0f2410;
    --bg-bottom: #071206;
    --surface: #1c2e18;
    --ink: #eef5ec;
    --ink-soft: #b3c4ae;
    --accent: #e8cf72;
    --accent-soft: #3a3016;
    --found: #7fb173;
    --treasure: #e5b855;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 0 20px 80px;
}

.wrap { max-width: 44rem; margin: 0 auto; }

header {
  text-align: center;
  padding: 72px 0 40px;
}

.leaf {
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
  color: var(--accent);
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.tagline {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 30rem;
}

h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.5rem;
  margin: 40px 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 26px 0 6px;
}

a { color: var(--treasure); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 32px;
  margin: 24px 0;
  box-shadow: 0 2px 14px rgba(34, 51, 30, 0.09);
}

.lede {
  font-size: 1.08rem;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  color: var(--ink-soft);
}

ul { padding-left: 1.2rem; }
li { margin: 6px 0; }

.meta { color: var(--ink-soft); font-size: 0.92rem; }

table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.96rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(85, 107, 79, 0.2); vertical-align: top; }
th { color: var(--ink-soft); font-weight: 600; }

nav { text-align: center; margin: 34px 0 0; }
nav a {
  display: inline-block;
  margin: 0 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
nav a:hover { color: var(--accent); text-decoration: underline; }

footer {
  text-align: center;
  margin-top: 56px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .card { padding: 22px 20px; border-radius: 16px; }
  header { padding: 48px 0 28px; }
}
