/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #faf8f5;
  --text: #3d3832;
  --text-muted: #6b6359;
  --text-subtle: #8a8078;
  --heading: #2a241f;
  --border: #e8e3dd;
  --accent: #b85c38;
  --accent-hover: #9a4a2d;
  --surface: #f5f2ed;
  --surface-hover: #ede9e2;
  --placeholder: #ebe6df;
  --placeholder-text: #a39a8f;
  --thumb: #e0dbd3;
  --scrollbar: #d4cec5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --text: #d4cec5;
    --text-muted: #9a938a;
    --text-subtle: #7a746b;
    --heading: #e8e3dd;
    --border: #2d2925;
    --accent: #d4825f;
    --accent-hover: #e99f7c;
    --surface: #221f1c;
    --surface-hover: #2a2622;
    --placeholder: #2d2925;
    --placeholder-text: #5a534c;
    --thumb: #3d3832;
    --scrollbar: #3d3832;
  }
}

body.light-mode {
  --bg: #faf8f5;
  --text: #3d3832;
  --text-muted: #6b6359;
  --text-subtle: #8a8078;
  --heading: #2a241f;
  --border: #e8e3dd;
  --accent: #b85c38;
  --accent-hover: #9a4a2d;
  --surface: #f5f2ed;
  --surface-hover: #ede9e2;
  --placeholder: #ebe6df;
  --placeholder-text: #a39a8f;
  --thumb: #e0dbd3;
  --scrollbar: #d4cec5;
}

body.dark-mode {
  --bg: #1a1714;
  --text: #d4cec5;
  --text-muted: #9a938a;
  --text-subtle: #7a746b;
  --heading: #e8e3dd;
  --border: #2d2925;
  --accent: #d4825f;
  --accent-hover: #e99f7c;
  --surface: #221f1c;
  --surface-hover: #2a2622;
  --placeholder: #2d2925;
  --placeholder-text: #5a534c;
  --thumb: #3d3832;
  --scrollbar: #3d3832;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding: 0 20px;
  max-width: 680px;
  margin: 0 auto;
  transition: background 0.3s, color 0.3s;
}

/* Header */
header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.theme-toggle {
  position: absolute;
  top: 48px;
  right: 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
}

.disclosure {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-subtle);
}

/* Main content */
main {
  padding: 48px 0;
}

section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

section.placeholder {
  opacity: 0.4;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* Hero image */
.hero {
  margin: 20px 0;
}

.placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder-text);
  font-size: 14px;
  border-radius: 4px;
}

/* Stance paragraph */
.stance {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin: 24px 0;
}

/* Primary recommendation - the ONE loud element */
.primary {
  margin: 32px 0;
}

.primary-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  line-height: 1.3;
  transition: all 0.2s;
}

.primary-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.primary-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Extras - horizontally scrollable, visually de-emphasized */
.extras-container {
  position: relative;
  margin: 28px 0;
}

.extras {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.extras::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.extras-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--scrollbar);
  color: var(--text-muted);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.extras-arrow:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.extras-arrow-left {
  left: -12px;
}

.extras-arrow-right {
  right: -12px;
}

.extra {
  flex: 0 0 auto;
  width: 220px;
  display: flex;
  gap: 10px;
  text-decoration: none;
  padding: 12px;
  border-radius: 4px;
  background: var(--surface);
  transition: background 0.2s;
}

.extra:hover {
  background: var(--surface-hover);
}

.extra-thumb {
  width: 48px;
  height: 48px;
  background: var(--thumb);
  border-radius: 3px;
  flex-shrink: 0;
}

.extra-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.extra-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Skip note */
.skip {
  font-size: 14px;
  color: var(--text-subtle);
  margin-top: 28px;
}

/* Footer */
footer {
  padding: 32px 0 64px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

footer p {
  margin-bottom: 8px;
}

.muted {
  color: var(--text-subtle);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  body {
    padding: 0 16px;
  }

  header {
    padding: 32px 0 24px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .primary-link {
    font-size: 18px;
  }

  main {
    padding: 32px 0;
  }

  section {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .extras-arrow {
    display: none; /* Hide arrows on mobile, use swipe */
  }
}
