/* Let Ed Play — site styles.
   Plain CSS, no build step. Colour tokens live on :root so the whole
   palette can be changed in one place. Dark mode follows the visitor's
   OS setting automatically. */

:root {
  --bg: #fffaf3;
  --bg-alt: #fff1e0;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #6b5f57;
  --accent: #d9682b;        /* warm ginger-orange */
  --accent-strong: #b8521c;
  --accent-soft: #fbe2cf;
  --line: #eadfd3;
  --shadow: 0 10px 30px rgba(60, 30, 10, 0.08);
  --radius: 18px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120f;
    --bg-alt: #1f1712;
    --surface: #241b16;
    --text: #f6efe8;
    --muted: #bfae9f;
    --accent: #f08a47;
    --accent-strong: #ffa96f;
    --accent-soft: #3a261a;
    --line: #3a2d24;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #17120f;
  --bg-alt: #1f1712;
  --surface: #241b16;
  --text: #f6efe8;
  --muted: #bfae9f;
  --accent: #f08a47;
  --accent-strong: #ffa96f;
  --accent-soft: #3a261a;
  --line: #3a2d24;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
a { color: var(--accent-strong); }
p { margin: 0 0 1em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  max-width: var(--max);
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
}
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 16px 56px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  max-width: 14ch;
}
.subhead {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--accent-strong);
  margin: -4px 0 16px;
}
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 60ch;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }

/* Sections */
/* Side padding grows once the viewport is wider than --max, which keeps
   every child left-aligned inside a centred column without a wrapper div. */
.section { padding: 56px max(16px, calc((100% - var(--max)) / 2)); }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 28px; }
.note { color: var(--muted); font-size: 0.95rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-left: 2px solid var(--accent-soft);
}
.timeline li {
  position: relative;
  padding: 0 0 22px 24px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .when {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.timeline p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 72ch; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.faq-item h3 { font-size: 1.15rem; }
.faq-item p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery figcaption {
  padding: 10px 14px 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1200px);
  max-height: 96vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lightbox img {
  display: block;
  width: min(96vw, 1200px);
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox p {
  color: #fff;
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Share */
.share-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 16px 56px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 40px; }
}
