/* Berrydoku website. Colours are the game's palette (lib/fx/tokens.dart):
   Canopy Teal #2E8C7A, Orchard Jade #1F5E4B, Berry Red #E2344B,
   Apricot #FFB25B, Cream #FFF3DC, Plum #2A1B3D, Gold #FFCB45.
   Fonts are the game's own (OFL, served from /fonts, no CDN). */
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --teal: #2E8C7A; --teal-deep: #1D6356; --jade: #1F5E4B; --jade-deep: #123B2F;
  --berry: #E2344B; --berry-deep: #A81F35; --apricot: #FFB25B; --gold: #FFCB45;
  --cream: #FFF3DC; --cream-shade: #F2DDB8; --plum: #2A1B3D; --plum-soft: #5A4A6E;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--jade); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--plum);
  background: radial-gradient(ellipse 120% 900px at 40% 0%, #4FB39C 0%, var(--teal) 45%, var(--jade) 100%) no-repeat var(--jade);
}
a { color: var(--teal-deep); text-underline-offset: 2px; }
a:hover { color: var(--berry-deep); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.site-header { padding: 14px 20px; }
.site-header a.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none;
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 0.3px;
}
.site-header img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px rgba(11,46,37,0.45); }

main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 8px 16px 32px; }
.card {
  background: var(--cream); border-radius: 22px; padding: 28px clamp(18px, 4vw, 44px);
  box-shadow: 0 10px 0 var(--cream-shade), 0 18px 40px rgba(11,46,37,0.35);
}
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; line-height: 1.2; color: var(--jade); }
h1 { font-size: 34px; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 30px 0 8px; }
h3 { font-size: 19px; margin: 22px 0 6px; color: var(--teal-deep); }
ul { padding-left: 1.3em; }
li { margin: 4px 0; }
strong { color: var(--jade-deep); }
code { background: var(--cream-shade); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--plum-soft); font-size: 15px; }

/* Landing */
.hero { text-align: center; padding-top: 18px; }
.hero img.icon { width: 168px; height: 168px; border-radius: 38px; box-shadow: 0 8px 0 rgba(18,59,47,0.55), 0 16px 34px rgba(11,46,37,0.45); }
.hero h1 { font-size: 54px; color: var(--cream); margin: 22px 0 4px; text-shadow: 0 3px 0 var(--jade-deep); }
.hero p.tagline { color: var(--cream); font-size: 20px; margin: 0 auto 22px; max-width: 520px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.badge {
  display: inline-block; padding: 12px 20px; border-radius: 14px; background: var(--plum); color: #fff;
  text-decoration: none; font-weight: 700; box-shadow: 0 4px 0 #000;
}
.badge:hover { color: var(--gold); }
.badge[hidden] { display: none; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.links a {
  display: block; text-align: center; padding: 14px; border-radius: 16px; background: #fff;
  border: 2px solid var(--cream-shade); font-weight: 700; text-decoration: none; color: var(--jade);
}
.links a:hover { border-color: var(--apricot); color: var(--berry-deep); }

.site-footer { text-align: center; color: var(--cream); font-size: 14px; padding: 18px 16px 28px; }
.site-footer a { color: var(--cream); }
.site-footer nav a { margin: 0 8px; display: inline-block; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 44px; }
}
