/* ================================================================
   wisdom.css — editorial styles for /wisdom essay
   Builds on styles.css (lapis palette, Cinzel/Fraunces fonts)
   ================================================================ */

.wisdom-page {
  background: #0a1a33;
  color: #F2E6C8;
  min-height: 100vh;
}
.wisdom-page .papyrus-bg { display: none; }

.wisdom-page .site-header {
  background: linear-gradient(180deg, rgba(10,26,51,0.95) 0%, rgba(10,26,51,0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 185, 74, 0.18);
  color: #F2E6C8;
  position: sticky;
  top: 0;
  z-index: 100;
}
.wisdom-page .site-header .logo { color: #FFD76A; }
.wisdom-page .site-header .logo-primary { color: #F6EBCE; }
.wisdom-page .site-header .logo-num { color: #FFD76A; }
.wisdom-page .site-header .logo-sub { color: #b9c8df; }
.wisdom-page .site-nav a {
  color: #DCCDA3;
  transition: color 0.18s ease;
}
.wisdom-page .site-nav a:hover { color: #FFD76A; }
.wisdom-page .site-nav .nav-current {
  color: #FFD76A;
  border-bottom: 1px solid #FFD76A;
}
.wisdom-page .theme-toggle { color: #DCCDA3; }

/* =============== ARTICLE SHELL =============== */

.wisdom-main {
  padding: 0 0 clamp(3rem, 8vw, 6rem);
}

.essay {
  max-width: 100%;
}

/* =============== HERO FIGURE =============== */

.essay-hero {
  position: relative;
  width: 100%;
  min-height: clamp(460px, 68vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.essay-hero__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.essay-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.essay-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,26,51,0.15) 0%, rgba(10,26,51,0.45) 55%, rgba(10,26,51,0.92) 100%),
    linear-gradient(90deg, rgba(10,26,51,0.55) 0%, rgba(10,26,51,0.15) 45%, rgba(10,26,51,0.0) 100%);
  z-index: 1;
}
.essay-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
  max-width: 920px;
}
.essay-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFD76A;
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.essay-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 20px rgba(10,26,51,0.65);
  letter-spacing: 0.01em;
}
.essay-title em {
  color: #FFD76A;
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}
.essay-deck {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.45;
  color: #F5EEDB;
  font-weight: 400;
  max-width: 46ch;
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 8px rgba(10,26,51,0.55);
}
.essay-byline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9c8df;
  margin: 0;
}
.essay-byline span:first-child {
  color: #FFD76A;
  font-weight: 600;
}

/* =============== ESSAY BODY =============== */

.essay-section {
  max-width: 68ch;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}

.essay-section + .essay-section {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.essay-lede {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: #F6EBCE;
  font-weight: 400;
  margin: 0 0 1.5rem;
  font-style: italic;
}
.essay-lede::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.8rem;
  float: left;
  line-height: 0.9;
  padding: 0.3rem 0.55rem 0 0;
  color: #FFD76A;
  font-weight: 700;
  font-style: normal;
}

.essay-section p {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.02rem, 1.25vw, 1.13rem);
  line-height: 1.72;
  color: #E8DEC4;
  margin: 0 0 1.35rem;
  font-weight: 400;
}

.essay-section p em {
  font-style: italic;
  color: #F6EBCE;
}

.essay-section a {
  color: #FFD76A;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 215, 106, 0.35);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.essay-section a:hover {
  color: #FFE089;
  border-bottom-color: #FFE089;
}

.essay-h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: #FFFFFF;
  line-height: 1.15;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
  letter-spacing: 0.01em;
}
.essay-h2 em {
  color: #FFD76A;
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

/* =============== DIVIDERS =============== */

.essay-divider {
  text-align: center;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  position: relative;
}
.essay-divider::before,
.essay-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(80px, 18vw, 160px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 106, 0.45), transparent);
}
.essay-divider::before {
  right: calc(50% + 28px);
}
.essay-divider::after {
  left: calc(50% + 28px);
}
.essay-divider__glyph {
  display: inline-block;
  font-size: 1.8rem;
  color: #FFD76A;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 215, 106, 0.45));
}

/* =============== PULL QUOTES =============== */

.pull-quote {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  border-left: 3px solid #FFD76A;
  background: linear-gradient(90deg, rgba(255, 215, 106, 0.06) 0%, rgba(255, 215, 106, 0) 100%);
  border-radius: 0 4px 4px 0;
}
.pull-quote p {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: #F6EBCE;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 0.9rem;
}
.pull-quote cite {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #b9c8df;
  font-style: normal;
  display: block;
}
.pull-quote cite a {
  color: #DCCDA3;
  border-bottom-color: rgba(220, 205, 163, 0.3);
}
.pull-quote cite a:hover { color: #FFD76A; border-bottom-color: #FFD76A; }

.essay-pull-major {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 60ch;
  border: 1px solid rgba(255, 215, 106, 0.3);
  border-left-width: 3px;
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.08) 0%, rgba(255, 215, 106, 0) 100%);
  text-align: left;
}
.essay-pull-major p {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  color: #FFFFFF;
  line-height: 1.45;
  font-style: normal;
  margin: 0;
}
.essay-pull-major p em { color: #FFD76A; font-style: italic; }

/* =============== CODA & SIGNOFF =============== */

.essay-coda { margin-top: clamp(2rem, 4vw, 3rem); }
.essay-close {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem) !important;
  color: #F6EBCE !important;
  font-style: italic;
  margin-top: 2rem !important;
}
.essay-signoff {
  font-size: 0.9rem !important;
  color: #DCCDA3 !important;
  letter-spacing: 0.06em;
  margin-top: 2rem !important;
  text-align: right;
}

/* =============== REFERENCES =============== */

.essay-references {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 215, 106, 0.18);
}
.references-intro {
  font-size: 0.95rem !important;
  color: #b9c8df !important;
  font-style: italic;
}
.references-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.references-list li {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #C9C0A7;
  padding-left: 1.25rem;
  position: relative;
}
.references-list li::before {
  content: '𓇳';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 215, 106, 0.55);
  font-size: 0.9rem;
}
.references-list a {
  color: #FFD76A;
  border-bottom-color: rgba(255, 215, 106, 0.3);
}
.references-list em { color: #F6EBCE; font-style: italic; }

/* =============== FOOTER CTA =============== */

.essay-footer {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 68ch;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 5vw, 2rem);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid rgba(255, 215, 106, 0.18);
}
.essay-footer .btn {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.essay-footer .btn-primary {
  background: linear-gradient(135deg, #F4CB68 0%, #E8B54A 60%, #C89548 100%);
  color: #1a1410;
  box-shadow: 0 4px 18px rgba(232, 181, 74, 0.35);
}
.essay-footer .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(232, 181, 74, 0.5);
}
.essay-footer .btn-ghost {
  color: #F2E6C8;
  border-color: rgba(255, 215, 106, 0.5);
  background: transparent;
}
.essay-footer .btn-ghost:hover {
  background: rgba(255, 215, 106, 0.1);
  border-color: #FFD76A;
}

/* =============== SITE FOOTER OVERRIDE =============== */

.wisdom-page .site-footer {
  background: #070f1f;
  color: #93a4c0;
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 215, 106, 0.12);
}
.wisdom-page .site-footer a {
  color: #FFD76A;
  text-decoration: none;
}
.wisdom-page .site-footer a:hover { text-decoration: underline; }

/* =============== RESPONSIVE =============== */

@media (max-width: 640px) {
  .essay-hero { min-height: 420px; }
  .essay-hero__content { padding: 1.5rem 1.25rem 2rem; }
  .essay-lede::first-letter {
    font-size: 3rem;
    padding: 0.25rem 0.4rem 0 0;
  }
  .essay-divider::before,
  .essay-divider::after { width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .essay-footer .btn { transition: none; }
}
