/* Acorn Acrobatics — site styles drawn from the game's ForestPalette. */

@font-face {
  font-family: 'Bree Serif';
  src: url('fonts/BreeSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --leaf-outline: #26491b;
  --leaf-deep: #2f6526;
  --leaf-dark: #4a8a2f;
  --leaf-mid: #6db03c;
  --leaf-light: #96ce52;
  --bark-outline: #2f1b10;
  --bark-deep: #3a2216;
  --bark-mid: #8a5835;
  --bark-light: #a86f40;
  --bark-highlight: #d69c62;
  --cream: #fff2d8;
  --cream-dim: #f3e2bf;
  --gold: #f5bd59;
  --gold-deep: #cf782f;
  --sky: #68b2e2;
  --mushroom: #d4532a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 50% -200px, var(--leaf-deep), transparent),
    var(--leaf-outline);
}

h1, h2, h3 {
  font-family: 'Bree Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
}

a { color: var(--gold); }
a:hover { color: var(--cream); }

img { max-width: 100%; height: auto; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  padding: 18px 0;
  background: rgba(47, 27, 16, 0.55);
  border-bottom: 2px solid var(--bark-outline);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bree Serif', Georgia, serif;
  font-size: 1.25rem;
  color: var(--cream);
  text-decoration: none;
}
header.site .brand img { width: 40px; height: 40px; border-radius: 10px; }
header.site nav { margin-left: auto; display: flex; gap: 22px; }
header.site nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 700;
}
header.site nav a:hover, header.site nav a[aria-current] { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--bark-outline);
}
.hero img.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: saturate(1.05);
}
.hero .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 73, 27, 0.25), rgba(38, 73, 27, 0.78));
  z-index: -1;
}
.hero .wrap {
  padding: 96px 24px 72px;
  text-align: center;
}
.hero .wordmark { width: min(440px, 82vw); filter: drop-shadow(0 6px 14px rgba(47, 27, 16, 0.6)); }
.hero p.tagline {
  font-family: 'Bree Serif', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin: 18px auto 30px;
  text-shadow: 0 2px 10px rgba(38, 73, 27, 0.9);
}

.badge {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border: 3px solid var(--bark-outline);
  box-shadow: 0 5px 0 var(--bark-outline);
  color: var(--bark-deep);
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--bark-outline); color: var(--bark-outline); }
.badge.secondary {
  background: var(--bark-deep);
  color: var(--cream);
}
.badge.secondary:hover { color: var(--gold); }
.hero .badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .note { font-size: 0.9rem; opacity: 0.85; margin-top: 16px; }

/* Sections */
section { padding: 64px 0; }
section h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  text-align: center;
  margin: 0 0 12px;
}
section p.lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--cream-dim);
}

/* Screenshot strip */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  border-radius: 26px;
  border: 3px solid var(--bark-outline);
  box-shadow: 0 10px 24px rgba(38, 73, 27, 0.55);
  background: var(--bark-deep);
}
.shots figcaption {
  margin-top: 10px;
  font-weight: 700;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, rgba(58, 34, 22, 0.92), rgba(47, 27, 16, 0.92));
  border: 2px solid var(--bark-outline);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 6px 0 rgba(47, 27, 16, 0.65);
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--gold); }
.card p { margin: 0; color: var(--cream-dim); font-size: 0.98rem; }
.card .emoji { font-size: 1.6rem; display: block; margin-bottom: 10px; }

/* Prose pages (press, privacy) */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 4px; }
.prose .updated { color: var(--cream-dim); margin-top: 0; }
.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.2em;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(213, 156, 98, 0.35);
}
.prose h3 { font-size: 1.15rem; color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(213, 156, 98, 0.25);
  vertical-align: top;
}
.prose th { color: var(--gold); white-space: nowrap; }
.prose ul { padding-left: 1.3em; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(58, 34, 22, 0.6);
  border-radius: 0 14px 14px 0;
}
.prose code {
  background: rgba(47, 27, 16, 0.8);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* Download rows on the press page */
.downloads { display: grid; gap: 14px; margin: 24px 0; }
.downloads a.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(58, 34, 22, 0.85);
  border: 2px solid var(--bark-outline);
  border-radius: 14px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 700;
}
.downloads a.row:hover { border-color: var(--gold); color: var(--gold); }
.downloads a.row span.meta { font-weight: 400; color: var(--cream-dim); font-size: 0.9rem; }

/* Footer */
footer.site {
  border-top: 4px solid var(--bark-outline);
  background: var(--bark-deep);
  padding: 36px 0 44px;
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--cream-dim);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--cream-dim); text-decoration: none; font-weight: 700; }
footer.site a:hover { color: var(--gold); }

@media (max-width: 640px) {
  header.site nav { gap: 14px; font-size: 0.95rem; }
  .hero .wrap { padding: 64px 20px 52px; }
  section { padding: 44px 0; }
}
