:root {
  --bg: #f6efe3;
  --paper: rgba(255, 251, 244, 0.86);
  --paper-strong: #fff9ee;
  --paper-soft: rgba(255, 248, 236, 0.72);
  --ink: #1d2430;
  --muted: #5f6673;
  --line: rgba(29, 36, 48, 0.12);
  --gold: #a36f2d;
  --accent: #1f3048;
  --shadow: 0 22px 55px rgba(61, 47, 29, 0.16);
  --grid-line: rgba(255, 255, 255, 0.12);
  --body-bg:
    radial-gradient(circle at top left, rgba(247, 213, 154, 0.68), transparent 28%),
    radial-gradient(circle at right 20%, rgba(117, 145, 199, 0.2), transparent 24%),
    linear-gradient(135deg, #f8f4ea 0%, #efe0c7 52%, #e7d3b4 100%);
  --button-text: #fffdf9;
  --button-bg: linear-gradient(135deg, #172131 0%, #364259 100%);
  --button-shadow: 0 14px 30px rgba(23, 32, 46, 0.18);
  --visual-fallback: #d9cfbe;
}

body[data-theme="dark"] {
  --bg: #0b1220;
  --paper: rgba(14, 21, 34, 0.84);
  --paper-strong: #131c2d;
  --paper-soft: rgba(18, 27, 42, 0.76);
  --ink: #f1eadc;
  --muted: #b5bdcb;
  --line: rgba(237, 227, 208, 0.12);
  --gold: #f1bf72;
  --accent: #f0d8a6;
  --shadow: 0 28px 72px rgba(3, 8, 16, 0.42);
  --grid-line: rgba(255, 255, 255, 0.06);
  --body-bg:
    radial-gradient(circle at top left, rgba(237, 179, 95, 0.16), transparent 28%),
    radial-gradient(circle at right 18%, rgba(63, 102, 158, 0.22), transparent 26%),
    linear-gradient(135deg, #08101a 0%, #101b2b 48%, #172538 100%);
  --button-text: #121926;
  --button-bg: linear-gradient(135deg, #f1dcb0 0%, #e8b260 100%);
  --button-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  --visual-fallback: #152234;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--body-bg);
  transition: background 220ms ease, color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header__inner {
  padding: 14px 0;
}

.brand,
.footer-title {
  font-weight: 800;
  text-decoration: none;
}

.brand {
  font-size: 1.02rem;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.theme-toggle,
.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease;
}

.theme-toggle {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid var(--line);
  box-shadow: none;
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
}

.button:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--button-text);
  background: var(--button-bg);
  box-shadow: var(--button-shadow);
}

.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 48px 0 34px;
}

.hero-copy,
.hero-panel,
.quote-card,
.visual-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 34px;
}

.hero-panel {
  padding: 28px;
  background: var(--paper-soft);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1,
.section-heading h2 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 600;
  max-width: 12ch;
}

.lead,
.section-copy,
.content-card p,
.footer-copy,
.hint,
#quoteInsight,
.speaker-detail,
.visual-caption,
.check-list,
.prose-page p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 64ch;
  margin: 18px 0 0;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.panel-label {
  margin: 0 0 12px;
  font-weight: 800;
}

.check-list {
  margin: 0;
  padding-left: 20px;
}

.check-list li + li {
  margin-top: 10px;
}

.feature,
.principles,
.archive,
.faq,
.prose-page {
  padding-bottom: 34px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
}

.quote-card,
.content-card {
  padding: 30px;
}

.quote-card {
  position: relative;
  overflow: hidden;
}

.quote-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 111, 45, 0.13), transparent 70%);
}

.quote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.quote-meta p,
.speaker-name,
.speaker-detail,
.hint,
.visual-title,
.visual-caption,
.footer-title,
.footer-copy {
  margin: 0;
}

.divider {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 24%, transparent);
}

.quote-text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.06;
}

.speaker-block,
.insight-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.speaker-name {
  font-size: 1.16rem;
  font-weight: 800;
}

.insight-block h2 {
  font-size: 1.45rem;
  font-weight: 600;
}

#quoteInsight {
  margin-top: 12px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

.hint {
  max-width: 38ch;
  font-size: 0.93rem;
}

.visual-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: var(--visual-fallback);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  color: #fffef9;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.82), rgba(15, 17, 21, 0.08));
}

.visual-title {
  font-size: 1rem;
  font-weight: 800;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading--page {
  padding-top: 42px;
}

.section-heading h2,
.prose-page h1 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 600;
}

.section-copy {
  margin: 12px 0 0;
}

.principles-grid,
.faq-grid,
.prose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card h3,
.content-card h2 {
  font-size: 1.28rem;
  font-weight: 800;
}

.content-card p {
  margin: 12px 0 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.archive-item {
  display: grid;
  gap: 14px;
}

.archive-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.archive-item blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  line-height: 1.1;
}

.archive-item__person {
  margin: 0;
  font-weight: 800;
}

.archive-item__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}

.footer-copy {
  max-width: 48ch;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .hero,
  .feature,
  .principles-grid,
  .faq-grid,
  .prose-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .visual-card {
    min-height: 380px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1160px);
  }

  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .hero-panel,
  .quote-card,
  .content-card,
  .visual-card {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-panel,
  .quote-card,
  .content-card {
    padding: 22px;
  }

  .controls {
    align-items: flex-start;
  }
}
