/* Wonder Builder static site (ticket 014). Colours follow the app's Palette (sky, hard hat, earth). */
:root {
  --sky: #cfe8f5;
  --paper: #fffaf0;
  --ink: #3b2900;
  --muted: #6b5a3a;
  --accent: #f2b632;
  --line: #e6dcc6;
}
@media (prefers-color-scheme: dark) {
  :root { --sky: #18242c; --paper: #1f1b14; --ink: #f3ead6; --muted: #c2b394; --accent: #f2b632; --line: #3a3326; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.card { background: var(--paper); border-radius: 20px; padding: 28px 24px; box-shadow: 0 2px 0 var(--line); }
header.site { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
header.site a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; }
nav { margin-left: auto; display: flex; gap: 16px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
p, li { max-width: 65ch; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.summary { background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 14px; padding: 14px 18px; }
.summary ul { margin: 0; padding-left: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
.table-wrap { overflow-x: auto; }
.button { display: inline-block; background: var(--accent); color: #3b2900; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; }
footer { color: var(--muted); font-size: 14px; text-align: center; margin-top: 24px; }
footer a { color: var(--muted); }

/* Home page (developer website). */
header.site a.brand { display: inline-flex; align-items: center; gap: 10px; }
header.site a.brand img { border-radius: 8px; }
.hero { display: grid; gap: 20px; overflow: hidden; }
.hero-text { min-width: 0; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px; }
.lede { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.hero-art { width: 100%; height: auto; border-radius: 14px; display: block; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border-radius: 10px; padding: 8px 16px 8px 12px; margin-top: 8px; line-height: 1.1; font-size: 20px; font-weight: 600; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; }
.features { display: grid; gap: 16px; margin: 16px 0; }
.features .card { padding: 22px 20px; }
.features h2, .wonders h2 { margin-top: 0; }
.features p { margin-bottom: 0; }
.wonders { margin-bottom: 16px; }
.wonder-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wonder-grid figure { margin: 0; text-align: center; }
.wonder-grid img { width: 100%; height: auto; display: block; }
.wonder-grid figcaption { font-size: 15px; font-weight: 700; margin-top: 4px; }
@media (min-width: 640px) {
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .wonder-grid { grid-template-columns: repeat(4, 1fr); }
}
main.wide { max-width: 960px; }
