:root {
  --bg: #fbfaf6;
  --text: #202937;
  --muted: #5d6875;
  --accent: #6c4f96;
  --accent-dark: #44305f;
  --accent-soft: rgba(108, 79, 150, 0.1);
  --card: #ffffff;
  --soft: #f1eee8;
  --border: #e4ded3;
  --footer: #272036;
  --spectrum: linear-gradient(90deg, #d5534f 0 16.66%, #e58b3a 16.66% 33.32%, #e7c84f 33.32% 49.98%, #6da66f 49.98% 66.64%, #5487b9 66.64% 83.3%, #735c9f 83.3% 100%);

  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --shadow-soft: 0 10px 30px rgba(60, 45, 20, 0.07);
  --shadow-menu: 0 18px 40px rgba(60, 45, 20, 0.14);

  --radius-card: 22px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 95% 14%, rgba(84, 135, 185, 0.08), transparent 24rem),
    radial-gradient(circle at 4% 44%, rgba(229, 139, 58, 0.06), transparent 28rem),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: #ffffff;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  transform: translateY(0);
}

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

.narrow {
  max-width: 760px;
}

/* Header and grouped navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.97);
  border-bottom: 1px solid var(--border);
}
.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { color: var(--accent-dark); }
.site-header nav { min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-dropdown > summary,
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: 700 0.95rem/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-list a:hover,
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary,
.mobile-menu-toggle:hover { color: var(--accent-dark); background: var(--accent-soft); }
.nav-list a:focus-visible,
.nav-dropdown > summary:focus-visible,
.mobile-menu-toggle:focus-visible,
.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.nav-dropdown > summary { list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: "⌄"; font-size: 0.85em; opacity: 0.7; }
.nav-dropdown[open] > summary::after { transform: rotate(180deg); }
.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  width: 300px;
  max-height: min(65vh, 540px);
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-menu);
}
.nav-submenu a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.nav-submenu .nav-overview { color: var(--accent-dark); border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 4px; }
.mobile-menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; min-height: 72px; padding: 14px 0; }
  .logo { font-size: 1.1rem; max-width: 240px; }
  .mobile-menu-toggle:not([hidden]) { display: inline-flex; }
  .menu-icon { font-size: 1.2rem; }
  .site-header nav { grid-column: 1 / -1; width: 100%; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); max-height: 70vh; overflow-y: auto; }
  .site-header[data-menu-ready="true"]:not([data-menu-open]) nav { display: none; }
  .nav-list { display: block; }
  .nav-list > li > a, .nav-dropdown > summary { width: 100%; justify-content: flex-start; border-radius: 8px; font-size: 1rem; min-height: 46px; }
  .nav-dropdown > summary { justify-content: space-between; }
  .nav-submenu { position: static; width: auto; max-height: none; margin: 4px 0 8px 12px; padding: 0 0 0 10px; border: 0; border-left: 2px solid var(--accent-soft); border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
}

/* Hero */

.page-intro {
  position: relative;
  overflow: hidden;
  padding: 70px 0 56px;
  border-bottom: 1px solid rgba(108, 79, 150, 0.1);
  background:
    radial-gradient(circle at 82% 45%, rgba(231, 200, 79, 0.18), transparent 18rem),
    radial-gradient(circle at 72% 0%, rgba(84, 135, 185, 0.16), transparent 25rem),
    linear-gradient(135deg, #fbfaf6, #f6f2fa);
}

.page-intro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--spectrum);
}

.page-intro::after {
  content: "";
  position: absolute;
  right: clamp(-90px, -5vw, -20px);
  top: 50%;
  width: clamp(190px, 27vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(108, 79, 150, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(84, 135, 185, 0.035),
    0 0 0 58px rgba(108, 79, 150, 0.025);
  transform: translateY(-50%);
}

.page-intro .container {
  position: relative;
  z-index: 1;
}

.page-intro .seo-page-title {
  width: auto;
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.02;
}

.intro-lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.55;
}

.hero {
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
}

.hero p {
  margin: 0 0 1.2em;
}

.hero blockquote {
  position: relative;
  margin: 38px 0;
  padding: 26px 28px 26px 34px;
  border: 1px solid rgba(108, 79, 150, 0.14);
  border-left: 5px solid var(--accent);
  border-radius: 0 18px 18px 0;
  color: #4d4560;
  background: rgba(108, 79, 150, 0.055);
  font-style: italic;
}

/* Typography */

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.18;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
}

p,
li {
  font-size: 1rem;
  line-height: 1.7;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  background: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(95, 75, 38, 0.18);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  color: #ffffff;
  background: #4e3d1f;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(95, 75, 38, 0.24);
}

/* Sections */

.section {
  padding: 48px 0;
}

.muted {
  position: relative;
  background: linear-gradient(180deg, #f0ece5, #f6f3ed);
}

.muted::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--spectrum);
}

/* Cards */

.cards,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card-grid .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--card-accent, var(--accent));
}

.card-grid .card:nth-child(1) { --card-accent: #e58b3a; }
.card-grid .card:nth-child(2) { --card-accent: #6da66f; }
.card-grid .card:nth-child(3) { --card-accent: #5487b9; }

.card-grid .card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(60, 45, 20, 0.11);
}

.card h2,
.card h3 {
  margin-bottom: 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Symbol / image blocks */

.symbol-card {
  align-self: start;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.visual-rail {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 30px;
}

.portrait-card {
  margin: 0;
}

.portrait-image {
  width: 100%;
  height: auto;
  border-radius: 3px;
  filter: sepia(0.08) contrast(1.04);
  box-shadow: 0 16px 38px rgba(32, 41, 55, 0.13);
}

.symbol-image {
  width: 100%;
  max-width: 250px;
  margin: 0 0 12px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.content-figure {
  margin: 18px 0 24px;
}

.content-image {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.wide-figure {
  margin: 28px 0 32px;
}

.wide-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.image-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Video */

.video-wrapper {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Article pages */

article {
  max-width: 760px;
}

article h1 {
  margin-bottom: 22px;
}

article h2 {
  margin-top: 8px;
  margin-bottom: 22px;
  color: var(--accent-dark);
}

article p {
  margin-bottom: 1.15em;
}

.article-source {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Symbols */

.symbols-intro {
  max-width: 780px;
  margin-bottom: 42px;
}

.symbols-notice {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.94rem;
}

.symbols-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card.symbol-preview {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  gap: 0;
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.symbol-preview-link {
  display: grid;
  grid-template-rows: 300px auto;
  align-content: start;
  text-decoration: none;
  padding: 22px;
  background: #f0ede7;
}

.symbol-preview-image {
  display: block;
  width: 100%;
  height: 300px;
  margin: 0;
  object-fit: contain;
}

.symbol-preview-content {
  padding: 24px;
}

.symbol-preview-content h2 {
  min-height: 3.2em;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.symbol-preview-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.symbol-copyright {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.symbol-copyright span:first-child,
.symbol-copyright span:nth-child(2) {
  color: var(--text);
  font-weight: 700;
}

.symbol-page {
  padding: 58px 0 72px;
}

.symbol-page-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(38px, 7vw, 82px);
  align-items: start;
}

.symbol-full-figure {
  margin: 0;
}

.symbol-full-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(32, 41, 55, 0.15);
}

.symbol-explanation {
  max-width: 680px;
}

.symbol-explanation h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}

.symbol-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.symbol-details {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.symbol-details h2 {
  font-size: 1.25rem;
}

.symbol-details li + li {
  margin-top: 10px;
}

.symbol-longform {
  max-width: 1040px;
  margin: clamp(20px, 3vw, 34px) auto 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(32, 41, 55, 0.08);
}

.symbol-longform::before {
  display: block;
  width: 76px;
  height: 5px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--violet));
  content: "";
}

.symbol-longform h2 {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.symbol-longform p {
  max-width: 82ch;
  font-size: 1.05rem;
  line-height: 1.78;
}

.symbol-longform p + p {
  margin-top: 1.15em;
}

.symbol-navigation {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button.secondary {
  color: var(--accent-dark);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

/* Contact */

.contact-box {
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Footer */

footer {
  padding: 32px 0;
  background: var(--footer);
  color: #f7f3ec;
}

.footer-note {
  margin: 0;
  color: rgba(247, 243, 236, 0.86);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Mobile */

@media (max-width: 860px) {
  html {
    scroll-padding-top: 140px;
  }

  .hero {
    padding: 38px 0;
  }

  .hero-grid,
  .cards,
  .card-grid,
  .symbols-grid,
  .symbol-page-grid {
    grid-template-columns: 1fr;
  }

  .visual-rail {
    position: static;
    max-width: 320px;
  }


}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1100px);
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .card {
    padding: 22px;
    border-radius: 18px;
  }

  .page-intro {
    padding: 52px 0 42px;
  }

  .page-intro::after {
    opacity: 0.55;
  }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}.seo-page-title {
  width: min(1100px, calc(100% - 32px));
  margin: 36px auto 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}@media (min-width: 861px) {
  .nav-list > li:last-child .submenu {
    right: 0;
    left: auto;
  }
}.symbol-image {
  height: auto;
}.muted .eyebrow {
  color: var(--accent-dark);
}/* Reading progress bar */

.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
  height: 5px;
  background: rgba(115, 92, 159, 0.12);
  pointer-events: none;
}

.reading-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--spectrum);
  box-shadow: 0 1px 6px rgba(84, 71, 119, 0.3);
  transition: width 80ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress-bar {
    transition: none;
  }
}

/* Short homepage introduction and comfortable reading measure. */
.home-intro { padding: 36px 0; }
.home-intro h1 { font-size: clamp(2rem, 4vw, 3rem); }
.home-intro .portrait-card { max-width: 220px; margin: 0; }
.reading-copy { max-width: 70ch; }
.independent-note { padding-left: 16px; border-left: 3px solid var(--accent); }
.read-more summary { cursor: pointer; font-size: 1.15rem; font-weight: 700; }
.read-more { margin-bottom: 36px; }
.read-more[open] summary { margin-bottom: 24px; }
footer a { color: inherit; }


.contact-form { display: grid; gap: 12px; margin-top: 28px; }
.contact-form label { font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #81738e; border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.home-intro .intro-text { order: 1; max-width: 70ch; }
.home-intro .portrait-card { order: 2; }
@media(max-width: 860px) {
  .home-intro { padding: 24px 0; }
  .home-intro .hero-grid { display: block; }
  .home-intro .portrait-card { float: right; width: 90px; margin: 36px 0 16px 16px; }
  .home-intro .image-caption { font-size: 12px; line-height: 1.4; }
  .home-intro .hero-grid::after { content: ""; display: block; clear: both; }
}

@media (max-width: 860px) {
  .card.symbol-preview { grid-row: auto; grid-template-rows: auto auto; }
  .symbol-preview-content h2 { min-height: 0; }
}
