:root {
  --bg: #f5f0e7;
  --paper: #fffdf8;
  --ink: #201e1a;
  --muted: #746e65;
  --line: #ddd3c6;
  --accent: #263a33;
  --soft: #e8efeb;
  --shadow: 0 18px 55px rgba(46, 35, 25, 0.09);
  --glow: #fffaf0;
  --surface: rgba(255, 253, 248, 0.9);
  --ghost: rgba(255, 255, 255, 0.55);
  --solid: #fff;
  --subtle: #504a43;
  --accent-contrast: #fff;
  --card-hover-shadow: 0 18px 46px rgba(40, 32, 25, 0.16);
  --gutter: clamp(16px, 4.5vw, 80px);
  --header-fade: rgba(245, 240, 231, 0.92);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101522;
  --paper: #171e2d;
  --ink: #f3f4fa;
  --muted: #aab3c8;
  --line: #354159;
  --accent: #b8c8ff;
  --soft: #242e49;
  --shadow: 0 18px 55px rgba(3, 7, 18, 0.4);
  --glow: #2b3858;
  --surface: rgba(23, 30, 45, 0.9);
  --ghost: rgba(31, 41, 62, 0.74);
  --solid: #202a3d;
  --subtle: #d0d6e4;
  --accent-contrast: #111827;
  --card-hover-shadow: 0 20px 50px rgba(1, 5, 15, 0.52);
  --header-fade: rgba(16, 21, 34, 0.92);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  min-height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 20% 0%, var(--glow) 0, transparent 30%), var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
html[data-theme="dark"] body {
  background: radial-gradient(circle at 20% 0%, #353f54 0, transparent 30%), var(--bg);
}

.shell {
  max-width: none;
  margin: 0 auto;
  padding: 92px var(--gutter) 72px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.shell > main {
  flex: 1 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 var(--gutter);
  z-index: 10;
  user-select: none;
  background: linear-gradient(to bottom, var(--header-fade), transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-wrap > :first-child {
  padding-left: 0;
}

.brand-root,
.brand-section {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  padding: 10px 6px;
}

.brand-section { color: var(--muted); font-weight: 550; }
.brand-root:hover, .brand-section:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--ghost);
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.theme-option {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: var(--muted);
}

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/css/fonts/material-symbols-outlined.woff2") format("woff2");
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  text-transform: none;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

html[data-theme="light"] .theme-light,
html[data-theme="dark"] .theme-dark {
  background: var(--accent);
  color: var(--accent-contrast);
}

html[data-theme="light"] .theme-toggle {
  border: 0;
  background: #3b5bff;
  color: #fff;
}

html[data-theme="light"] .theme-toggle:hover {
  background: #2e4ce8;
}

html[data-theme="light"] .site-header .theme-option {
  background: transparent;
  color: rgb(245 240 231);
}

html[data-theme="light"] .site-header .theme-light {
  background: #f5f0e7;
  color: #2f47ff;
}

.hero {
  padding: 54px 4px 36px;
  max-width: 820px;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  font-size: clamp(43px, 7vw, 76px);
  margin: 12px 0 18px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 8px 0 12px;
}

.lead {
  font-size: 19px;
  color: var(--subtle);
  max-width: 720px;
  margin: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.6vw, 44px);
  margin-top: 12px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px 26px 26px;
  border: 0;
  background: var(--surface);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 32px rgba(46, 35, 25, 0.045);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

.choice-kicker {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 750;
}

.choice-card p {
  color: var(--muted);
  margin: 4px 0 18px;
  flex: 1;
}

.choice-open {
  margin-top: auto;
  font-weight: 750;
  color: var(--accent);
}

.channel-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.channel-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
}

.channel-card.is-soon {
  display: none;
}

.channel-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.channel-meta {
  color: var(--muted);
  font-size: 14px;
}

.channel-status {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.channel-card.is-soon .channel-status {
  color: var(--muted);
}

.legal {
  max-width: 760px;
  padding-bottom: 12px;
}

.legal h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.legal .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: clamp(24px, 3.2vw, 32px);
}

.legal p,
.legal li {
  color: var(--subtle);
  font-size: 17px;
  line-height: 1.65;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: var(--accent);
}

footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 48px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 650px) {
  .site-header {
    height: auto;
    min-height: 76px;
    align-items: flex-start;
    padding: 12px var(--gutter);
  }
  .hero { padding-top: 36px; }
  .choice-card { min-height: 200px; }
}
