/* Coop Troop website. No external fonts, scripts or trackers: everything is local. */

:root {
  --ink: #3b2a20;
  --text: #4a3424;
  --muted: #7a5a3c;
  --accent: #b85a28;
  --link: #9a3f18;
  --paper: #f6e3b4;
  --gold: #ffe070;
  --grass-dark: #2e5a30;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--grass-dark); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 17px/1.55 var(--font);
  background: var(--grass-dark) url("/assets/grass.png") repeat;
  background-size: 192px 192px;
  image-rendering: pixelated;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.wrap { width: min(780px, 100% - 32px); margin: 0 auto; }

/* Header */
.site-header { padding: 28px 0 8px; text-align: center; }
.site-header a { display: inline-block; }
.logo { width: min(360px, 82vw); filter: drop-shadow(0 4px 0 rgba(30, 20, 10, 0.35)); }
.tagline {
  margin: 6px 0 22px;
  text-align: center;
  color: #fff4dc;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #3b2a20, 0 0 6px rgba(30, 20, 10, 0.6);
}

/* Wooden frame + parchment, sliced from the game's own panel art */
.panel {
  border: 20px solid transparent;
  border-image: url("/assets/panel.png") 20 fill / 20px stretch;
  background-clip: padding-box;
  padding: 6px 10px 8px;
  margin: 0 0 22px;
  filter: drop-shadow(0 6px 0 rgba(25, 18, 10, 0.35));
}
.panel.picture { padding: 0; }
.panel.picture img { display: block; width: 100%; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0.3em 0 0.4em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; margin-top: 1.3em; color: var(--accent); }
h3 { font-size: 1.05rem; }
p { margin: 0.5em 0 0.8em; }
.muted { color: var(--muted); }

ul.features { list-style: none; padding: 0; margin: 0.6em 0; }
ul.features li { padding-left: 30px; margin: 0.55em 0; position: relative; }
ul.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 18px;
  height: 21px;
  background: url("/assets/egg.png") no-repeat center / contain;
}

.soon {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  background: #6cc048;
  color: #fff;
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: inset 0 -4px 0 #468a2e, inset 0 2px 0 #9ee070;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.troop { display: block; margin: 4px auto 18px; width: min(656px, 100%); }

/* "Short version" call-out with Hattie */
.callout {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff7dc;
  border: 3px solid #e2c48a;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0 6px;
}
.callout img { flex: none; width: 60px; }
.callout p { margin: 0; }

dl.facts { margin: 0.4em 0 0.8em; }
dl.facts dt { font-weight: 800; color: var(--ink); margin-top: 0.6em; }
dl.facts dd { margin: 0.1em 0 0 0; }

details {
  border-bottom: 2px dashed #e2c48a;
  padding: 10px 0;
}
details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-left: 22px;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "▸";
  position: absolute;
  left: 2px;
  color: var(--accent);
  transition: transform 0.15s;
}
details[open] summary::before { transform: rotate(90deg); }
details[open] summary { color: var(--accent); }
details p { padding-left: 22px; }
details p { margin: 0.5em 0 0.2em; }

/* Footer */
footer {
  text-align: center;
  padding: 6px 0 36px;
  color: #fff4dc;
  font-size: 0.95rem;
  text-shadow: 0 2px 0 #2a1e18;
}
footer a { color: #fff4dc; }
footer a:hover { color: var(--gold); }
footer nav { margin-bottom: 6px; font-weight: 800; }
footer nav a { margin: 0 8px; }

.center { text-align: center; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.4rem; }
  .panel { border-width: 16px; border-image-width: 16px; padding: 4px 4px 6px; }
  .panel.picture { padding: 0; }
  .callout { flex-direction: column; text-align: center; }
}
