/* Sirâ — illuminated restraint: parchment, purple, gold, night-sky ink */
:root {
  --parchment: #f0e6d2;
  --parchment-deep: #e4d5b8;
  --ivory: #f7f1e6;
  --ink: #1a1028;
  --ink-soft: #2c1f3d;
  --purple: #1e0f33;
  --purple-mid: #2a1745;
  --purple-deep: #12081f;
  --gold: #c9a45c;
  --gold-bright: #e0c078;
  --gold-dim: #8a6e3a;
  --night: #0b0614;
  --line: rgba(138, 110, 58, 0.35);
  --focus: #c9a45c;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 42rem;
  --wide: 64rem;
  --space: clamp(1rem, 3vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201, 164, 92, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(42, 23, 69, 0.06), transparent 45%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--purple-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--gold-dim); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: var(--ivory);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  background: var(--purple-deep);
  color: var(--ivory);
  border-bottom: 1px solid var(--gold-dim);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.65rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--gold-bright); }
.brand img {
  width: 2.4rem;
  height: auto;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  justify-content: flex-end;
}
.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  opacity: 0.88;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--purple);
    border-bottom: 1px solid var(--gold-dim);
    padding: 0.75rem var(--space) 1.1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }
  .site-nav a { font-size: 0.95rem; padding: 0.4rem 0; }
}

main { display: block; flex: 1; }

.hero {
  background: linear-gradient(165deg, var(--purple-deep) 0%, var(--purple) 55%, var(--purple-mid) 100%);
  color: var(--ivory);
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--space) clamp(2.8rem, 7vw, 4rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 120%, rgba(201, 164, 92, 0.12), transparent 55%),
    radial-gradient(1px 1px at 12% 20%, rgba(247, 241, 230, 0.35), transparent),
    radial-gradient(1px 1px at 78% 30%, rgba(247, 241, 230, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(224, 192, 120, 0.4), transparent),
    radial-gradient(1px 1px at 88% 70%, rgba(247, 241, 230, 0.2), transparent),
    radial-gradient(1px 1px at 22% 75%, rgba(247, 241, 230, 0.2), transparent);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-mark {
  width: min(9rem, 36vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 18px rgba(201, 164, 92, 0.25));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--gold-bright);
}

.pull-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.4;
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  color: var(--ivory);
}
.pull-quote .source {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.lede {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  font-size: 1.15rem;
  opacity: 0.92;
}

.hero-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
  max-width: 32rem;
  margin: 0 auto;
}

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) var(--space);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.section h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.75rem 0 0.6rem;
}

.section p { margin: 0 0 1rem; }
.section p:last-child { margin-bottom: 0; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
  color: var(--gold-dim);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}
.ornament::before,
.ornament::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--line);
}

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.door {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 1.25rem 1.15rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: block;
}
.door:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(26, 16, 40, 0.08);
  transform: translateY(-2px);
  color: inherit;
}
.door h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: var(--purple);
  border: none;
  padding: 0;
}
.door p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.door .door-mark {
  width: 2.2rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.band-night {
  background: var(--purple-deep);
  color: var(--ivory);
  padding: clamp(2rem, 5vw, 3rem) var(--space);
}
.band-night .inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.band-night blockquote {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.5;
  color: var(--ivory);
}
.band-night .attribution {
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.band-parchment {
  background: var(--parchment-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.formula {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.formula li {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
}

.road {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: road;
}
.road li {
  counter-increment: road;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.road li::before {
  content: counter(road, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold-dim);
  padding-top: 0.15rem;
}
.road .title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0;
  line-height: 1.4;
}

.note-box {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  font-size: 1.05rem;
}
.note-box strong {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold-dim);
}

.callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--purple-deep);
  color: var(--ivory);
  border-left: 3px solid var(--gold);
}
.callout p { margin: 0; font-style: italic; font-size: 1.2rem; }
.callout.warning {
  background: var(--ink);
  border-left-color: #a85a5a;
}

.practice-focus {
  text-align: center;
  padding: 2rem 1rem;
}
.practice-focus img {
  width: min(11rem, 42vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 2px 12px rgba(26, 16, 40, 0.15));
}

.page-hero {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) var(--space) 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero .mark {
  width: 4.5rem;
  margin: 0 auto 1rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 0.75rem;
}
.page-hero .subtitle {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin: 0;
}

.prose {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space) clamp(2.5rem, 5vw, 3.5rem);
}
.prose > *:first-child { margin-top: 0; }

.quote-stack {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.quote-stack blockquote {
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.3);
  font-style: italic;
  font-size: 1.2rem;
}

ul.plain {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
ul.plain li { margin-bottom: 0.4rem; }

dl.lexicon {
  margin: 1rem 0 0;
}
dl.lexicon dt {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-top: 1rem;
}
dl.lexicon dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--night);
  color: rgba(247, 241, 230, 0.75);
  padding: 2rem var(--space);
  margin-top: auto;
  border-top: 1px solid var(--gold-dim);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-brand img { width: 1.8rem; opacity: 0.9; }
.footer-brand span {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-links a {
  color: rgba(247, 241, 230, 0.8);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-note {
  width: 100%;
  margin: 0;
  opacity: 0.65;
  font-size: 0.8rem;
  max-width: 36rem;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

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


/* Prose article headings */
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.prose blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.3);
  font-style: italic;
  font-size: 1.2rem;
}

.section > .prose { padding-left: 0; padding-right: 0; }
