:root {
  --purple: #4b176f;
  --purple-dark: #351052;
  --purple-light: #f4edf8;
  --gold: #d98a00;
  --gold-dark: #a86400;
  --cream: #fbf7ff;
  --ink: #241c2b;
  --muted: #5f5668;
  --line: #eadff1;
  --shadow: 0 12px 28px rgba(53, 16, 82, 0.12);
  --soft-shadow: 0 8px 20px rgba(53, 16, 82, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(75, 23, 111, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--cream) 55%, #ffffff 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--purple);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-top: 7px solid var(--purple-dark);
  border-bottom: 1px solid rgba(217, 138, 0, 0.45);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-name {
  color: var(--purple-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 38px);
}

.site-nav a {
  color: var(--ink);
  border-bottom: 3px solid transparent;
  padding: 26px 0 21px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--purple);
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--purple);
  color: #ffffff;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fbf7ff 0%, #ffffff 45%, #ffffff 100%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 360px;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(360px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 520px;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.title-main,
.title-accent {
  display: block;
}

.title-main {
  color: var(--purple-dark);
  font-size: clamp(2rem, 3vw, 2.75rem);
  white-space: nowrap;
}

.title-accent {
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.gold-rule,
.short-rule {
  background: var(--gold);
}

.gold-rule {
  width: 74px;
  height: 3px;
  margin: 22px 0;
}

.short-rule {
  width: 42px;
  height: 3px;
  margin: 10px 0 16px;
}

.intro-text {
  max-width: 440px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-feature {
  display: grid;
  gap: 18px;
}

.hero-image-wrap {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero-image-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

.quote-box,
.theory-spotlight {
  background: #ffffff;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
}

.quote-box {
  max-width: 430px;
  margin: 16px 0 0;
  padding: 14px 18px;
}

.quote-box blockquote {
  margin: 0 0 8px;
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
}

.quote-box p {
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy .quote-box+.button {
  margin-top: 16px;
}

.theory-spotlight {
  padding: 18px 20px 20px;
}

.spotlight-label {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theory-spotlight h2 {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 1.18rem;
}

.theory-spotlight p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.spotlight-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--purple);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.spotlight-link:hover {
  color: var(--gold-dark);
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  padding: 12px 22px;
  background: var(--purple);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--purple-dark);
  box-shadow: var(--shadow);
}

.home-cards,
.section,
.about-section,
.article-section,
.page-hero {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.home-cards,
.section,
.about-section,
.article-section {
  padding-bottom: 30px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 18px;
  padding-bottom: 8px;
}

.panel,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--soft-shadow);
}

h1,
h2,
h3 {
  color: var(--purple-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

h2 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

.panel p,
.article-card p,
.page-hero p {
  color: var(--ink);
}

.theory-list {
  list-style: none;
  margin: 12px 0 4px;
  padding: 0;
}

.theory-list li {
  margin: 8px 0;
}

.theory-list a {
  position: relative;
  display: inline-block;
  padding-left: 22px;
  color: var(--purple);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.theory-list a::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 0.75;
}

.theory-list a:hover {
  color: var(--gold-dark);
}

.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 18px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 1.3rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.92rem;
}

.feature-item strong {
  color: var(--purple);
}

.about-card p {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.page-hero {
  padding: 34px 0 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
}

.page-instructions {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.article-card {
  max-width: 900px;
  min-height: 120px;
}

.article-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
}

.source-notes {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.source-notes h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.source-notes h3+p+h3 {
  margin-top: 18px;
}

.source-notes p {
  margin: 0;
  color: var(--muted);
}

.home-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.home-return:hover {
  color: var(--gold-dark);
}

.home-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.theory-grid {
  display: grid;
  gap: 14px;
}

.theory-grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 0;
}

.theory-tile {
  display: block;
  border-radius: 4px;
  background: var(--purple);
  padding: 18px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.theory-tile:hover {
  transform: translateY(-1px);
  background: var(--purple-dark);
  box-shadow: var(--shadow);
}

.theory-tile strong {
  display: block;
  color: #ffffff;
  font-size: 1.02rem;
}

.theory-tile span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.45;
}

.no-results {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.references-section {
  padding-bottom: 54px;
}

.reference-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 28px 28px 28px 52px;
}

.reference-list li {
  margin-bottom: 16px;
  padding-left: 8px;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 4px solid var(--gold);
  background: linear-gradient(90deg, var(--purple-dark), var(--purple));
  color: #ffffff;
  text-align: center;
  padding: 18px;
}

.site-footer p {
  margin: 4px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff1c9;
}

:focus-visible {
  outline: 3px solid rgba(217, 138, 0, 0.7);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 26px 0;
  }

  .hero-feature {
    max-width: 620px;
  }

  .hero-image-wrap img {
    height: auto;
    min-height: 280px;
  }

  .home-cards,
  .theory-grid.wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 62px;
    width: min(var(--max), calc(100% - 28px));
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }

  .site-nav a.active {
    border-bottom-color: var(--line);
    background: var(--purple-light);
  }

  .title-main {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
    white-space: normal;
  }

  .title-accent {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .hero-image-wrap,
  .hero-image-wrap img {
    min-height: 240px;
  }

  .home-cards,
  .section,
  .about-section,
  .article-section,
  .page-hero {
    width: min(var(--max), calc(100% - 28px));
  }

  .panel,
  .article-card,
  .reference-list,
  .theory-spotlight {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
