:root {
  --bg: #0E100F;
  --bg-raised: #171A18;
  --line: #2A2E2B;
  --text: #F4F4F0;
  --muted: #A3A7A2;
  --lime: #C6F432;
  --lime-ink: #0E100F;
  --accent: #C6F432;
  --max: 1080px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F6F1;
    --bg-raised: #FFFFFF;
    --line: #E1E2DC;
    --text: #141614;
    --muted: #5C615B;
    --accent: #4E7A00;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: auto; }
.wordmark { font: 700 26px/1 "Barlow Condensed", "Inter", sans-serif; letter-spacing: 0.02em; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.eyebrow { font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
h1, h2, h3 { font-family: "Barlow Condensed", "Inter", sans-serif; line-height: 1.05; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 700; text-wrap: balance; }
.lede { font-size: 20px; color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--lime-ink);
  font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 12px;
}
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.note { font-size: 14px; color: var(--muted); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70vw); height: auto; border-radius: 22%; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 14px; }
section .intro { color: var(--muted); max-width: 40em; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .tag { display: inline-block; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; max-width: 640px; }
.week { border-radius: 12px; padding: 16px; background: var(--bg-raised); border: 1px solid var(--line); }
.week b { display: block; font: 700 30px/1 "Barlow Condensed", sans-serif; }
.week span { color: var(--muted); font-size: 14px; }
.week:nth-child(1) { border-bottom: 4px solid #3BAA5C; }
.week:nth-child(2) { border-bottom: 4px solid #D4A017; }
.week:nth-child(3) { border-bottom: 4px solid #E06A2C; }
.week:nth-child(4) { border-bottom: 4px solid #D23B3B; }

/* Documents */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 28px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

details { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art img { width: 120px; }
  .grid { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; font-size: 14px; }
}

@media (max-width: 460px) {
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .site-header nav a.hide-sm { display: none; }
}
