:root {
  --trim: #33383d;
  --trim-2: #464c52;
  --orange: #ff6a13;
  --ink: #c4520e;
  --paper: #f4f3f0;
  --card: #ffffff;
  --line: #e6e1d7;
  --text: #1a1a1a;
  --muted: #5f5f5f;
  --chord: #f3ecdc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1f22;
    --card: #262a2e;
    --line: #363b40;
    --text: #ecebe8;
    --muted: #a7a6a2;
    --ink: #ff8a45;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--ink); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }

/* Header */
.site-header { background: var(--trim); border-bottom: 4px solid var(--orange); }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 22px; padding-bottom: 0; }
.brand { display: flex; align-items: center; gap: clamp(12px, 3vw, 22px); text-decoration: none; color: #fff; }
.brand svg { height: clamp(44px, 11vw, 80px); width: auto; flex: none; }
.brand-words { font-weight: 800; letter-spacing: clamp(3px, 1.2vw, 8px); line-height: 1.05; font-size: clamp(24px, 6.5vw, 46px); }
.brand-words span { display: block; color: var(--orange); }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 5vw, 40px); flex-wrap: wrap; align-self: stretch; border-top: 1px solid var(--trim-2); padding: 12px 0; }
.site-nav a { color: #e8e6e1; text-decoration: none; font-weight: 600; font-size: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main { padding-bottom: 56px; }

/* Hero */
.hero { background: var(--trim); color: #fff; padding: 44px 0 52px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 12px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { color: #d9d7d2; font-size: 18px; max-width: 640px; margin: 0 0 24px; }

.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 700; padding: 11px 20px; border-radius: 8px; border: 2px solid var(--orange);
}
.btn:hover { background: #e85d0c; border-color: #e85d0c; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { color: var(--orange); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding-top: 40px; }
h2 { font-size: 24px; margin: 0 0 6px; }
h2.bar { border-left: 4px solid var(--orange); padding-left: 10px; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 680px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card .btn-row { margin-top: auto; padding-top: 8px; }
.card.featured { border-top: 4px solid var(--orange); }
.card-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; }
.grid:has(.card-video) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid .card.featured:has(.card-video) { grid-column: span 2; }
@media (max-width: 700px) { .grid .card.featured:has(.card-video) { grid-column: auto; } }
.card.soon { border-style: dashed; background: transparent; }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 2px 10px;
}
.tag.live { background: #e6f4ea; border-color: #b9dfc4; color: #1d6b35; }
@media (prefers-color-scheme: dark) { .tag.live { background: #1f3a28; border-color: #2e5a3b; color: #9fdcb2; } }

.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 0; list-style: none; margin: 0; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.features b { display: block; margin-bottom: 2px; }
.features span { color: var(--muted); font-size: 15px; }

.prose { max-width: 760px; }
.prose h1 { font-size: 30px; margin: 32px 0 4px; }
.prose h2 { font-size: 19px; margin: 30px 0 6px; border-left: 4px solid var(--orange); padding-left: 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.date { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

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