/* ============================================================
   bitter-cup-meditation-base.css — bitter-cup-meditation's own styles, moved out of the <style>
   block at the top of its <head>, ahead of styles.css in bitter-cup-meditation.html.
   Linked from the same place in the page, so the order is unchanged.
   ============================================================ */

:root{
  --night:#17110f;
  --night-2:#221813;
  --night-3:#2c2019;
  --parchment:#fff; /* white reading ground, as on every essay (body.article-white) */
  --parchment-2:#ece4d4;
  --ink:#241d18;
  --ink-soft:#574b40;
  --claret:#6e2230;
  --claret-deep:#4c1620;
  --gold:#a9802f;
  --gold-soft:#c6a25c;
  --olive:#5f6749;
  --pale-ray:#ece4d2;
  --rule:rgba(36,29,24,.16);
  --rule-strong:rgba(36,29,24,.32);
  --maxw:39rem;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--parchment);
  color:var(--ink);
  font-family:"Spectral",Georgia,serif;
  font-size:1.18rem;
  line-height:1.5;
  font-weight:400;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

/* ---------- HERO : the night of the agony ---------- */
.hero{
  position:relative;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(169,128,47,.10), transparent 55%),
    linear-gradient(180deg, var(--night-2) 0%, var(--night) 60%, var(--night) 100%);
  color:#e9ddcb;
  padding:5.5rem 1.5rem 4.5rem;
  text-align:center;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;left:0;right:0;bottom:-1px;height:8rem;
  background:linear-gradient(180deg, transparent, var(--parchment));
  pointer-events:none;
}
.hero__inner{position:relative;z-index:2;max-width:46rem;margin:0 auto;}
.eyebrow{
  font-family:"Cormorant Garamond",serif;
  text-transform:uppercase;
  letter-spacing:.34em;
  font-size:.82rem;
  font-weight:600;
  color:var(--gold-soft);
  margin:0 0 2.2rem;
}
.eyebrow .sep{opacity:.5;padding:0 .35em;}

.chalice-img{
  display:block;margin:0 auto 1.5rem;
  width:clamp(115px,32vw,180px);height:auto;
  filter:drop-shadow(0 0 34px rgba(169,128,47,.10));
}

.hero h1{
  font-family:"Cormorant Garamond",serif;
  font-weight:500;
  font-size:clamp(3rem,9vw,5.4rem);
  line-height:.96;
  letter-spacing:.005em;
  margin:.2rem 0 .1rem;
  color:#f1e6d3;
}
.hero h1 .sub{
  display:block;
  font-style:italic;
  font-weight:400;
  font-size:clamp(1.3rem,4vw,1.9rem);
  letter-spacing:.02em;
  color:var(--gold-soft);
  margin-top:.7rem;
}
.hero .dek{
  max-width:34rem;margin:1.8rem auto 0;
  font-size:1.12rem;line-height:1.66;
  color:#cdbfab;
}
.epigraph{
  margin:2.6rem auto 0;max-width:30rem;
  font-family:"Cormorant Garamond",serif;
  font-style:italic;font-size:1.34rem;line-height:1.4;
  color:#e2d4bd;
}
.epigraph .attrib{
  display:block;font-style:normal;
  font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;
  color:#f1e6d3;margin-top:.9rem;
}

/* ---------- ARTICLE BODY ---------- */
.article-shell{
  display:grid;
  grid-template-columns:minmax(0,var(--maxw)) minmax(18rem,26.4rem);
  gap:clamp(2rem,5vw,5rem);
  align-items:start;
  max-width:76rem;
  margin:0 auto;
  padding:1rem 1.5rem 5rem;
}

.article{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0;
}

.topic-return{
  position:absolute;
  left:1.25rem;
  top:1.25rem;
  z-index:3;
  font-family:"Spectral",Georgia,serif;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#e9ddcb;
  border-bottom-color:rgba(198,162,92,.45);
}

.deeper-dive{
  margin:2.4rem 0 0;
  padding:1.25rem 1.35rem;
  border:1px solid var(--rule-strong);
  background:rgba(169,128,47,.08);
}
.deeper-dive h2{
  margin:0 0 .45rem;
  font-family:"Cormorant Garamond",serif;
  font-size:1.45rem;
  line-height:1.1;
}
.deeper-dive p{
  margin:0 0 .75rem;
  font-size:1rem;
  line-height:1.55;
  color:var(--ink-soft);
}

section{margin-top:3.4rem;}
section:first-of-type{margin-top:2.4rem;}

.sec-head{
  display:flex;align-items:baseline;gap:1rem;
  margin:0 0 1.4rem;
}
.sec-num{
  font-family:"Cormorant Garamond",serif;
  font-weight:600;
  font-size:1rem;
  letter-spacing:.16em;
  color:var(--gold);
  flex:0 0 auto;
  padding-top:.35rem;
  min-width:2.4rem;
}
.sec-head h2{
  font-family:"Cormorant Garamond",serif;
  font-weight:600;
  font-size:clamp(1.8rem,5vw,2.4rem);
  line-height:1.05;
  margin:0;
  color:var(--ink);
}

:where(main, footer) p{margin:0 0 .85em;}
.article > section > p:first-of-type{margin-top:0;}

/* drop cap on the opening paragraph */
.lead::first-letter{
  font-family:"Cormorant Garamond",serif;
  font-weight:600;
  float:left;
  font-size:4.3rem;
  line-height:.78;
  padding:.35rem .6rem 0 0;
  color:var(--claret);
}

.latin{font-style:italic;color:var(--ink-soft);}
em{color:inherit;}
strong{font-weight:600;}

:where(main, footer) a{color:var(--claret);text-decoration:none;border-bottom:1px solid rgba(110,34,48,.3);}
:where(main, footer) a:hover{border-bottom-color:var(--claret);}

/* standard pull-quote */
blockquote{
  margin:2rem 0;
  padding:.2rem 0 .2rem 1.5rem;
  border-left:2px solid var(--claret);
  font-family:"Cormorant Garamond",serif;
  font-style:italic;
  font-size:1.4rem;
  line-height:1.42;
  color:#3a2c25;
}
blockquote .attrib{
  display:block;
  margin-top:.9rem;
  font-family:"Spectral",serif;
  font-style:normal;
  font-size:.82rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-soft);
}

/* THE INSCRIPTION — central revelation */
.inscription{
  margin:3rem -0.5rem;
  padding:2.6rem 1.6rem;
  text-align:center;
  background:
    linear-gradient(180deg, rgba(76,22,32,.04), rgba(76,22,32,.04)),
    var(--parchment-2);
  border-top:1px solid var(--gold);
  border-bottom:1px solid var(--gold);
  position:relative;
}
.inscription::before,
.inscription::after{
  content:"";
  position:absolute;left:50%;transform:translateX(-50%);
  width:5px;height:5px;border-radius:50%;
  background:var(--gold);
}
.inscription::before{top:-3px;}
.inscription::after{bottom:-3px;}
.inscription .mark{
  font-family:"Cormorant Garamond",serif;
  font-size:2.4rem;color:var(--gold);line-height:0;
  display:block;height:1rem;
}
.inscription p{
  font-family:"Cormorant Garamond",serif;
  font-style:italic;
  font-size:clamp(1.5rem,4.4vw,2rem);
  line-height:1.34;
  color:var(--claret-deep);
  max-width:30rem;margin:1.2rem auto 0;
}
.inscription .src{
  display:block;margin-top:1.4rem;
  font-family:"Spectral",serif;font-style:normal;
  font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--ink-soft);
}

.scripture{
  font-family:"Cormorant Garamond",serif;
  font-style:italic;
  font-size:1.18rem;
  color:#3a2c25;
}

/* footnote superscript links */
sup.fn a{
  font-family:"Spectral",serif;
  font-size:.7rem;
  color:var(--gold);
  border-bottom:none;
  text-decoration:none;
  vertical-align:super;
}
sup.fn a:hover{text-decoration:underline;}

/* ---------- SOURCES ---------- */
.notes{
  max-width:var(--maxw);
  margin:0 auto;
  padding:3rem 1.5rem 5rem;
  border-top:1px solid var(--rule-strong);
}
.notes h2{
  font-family:"Cormorant Garamond",serif;
  font-weight:600;font-size:1.5rem;
  letter-spacing:.02em;margin:0 0 .4rem;color:var(--ink);
}
.notes .note-intro{
  font-size:1rem;line-height:1.6;color:var(--ink-soft);
  margin:0 0 1.6rem;
}
.notes ol{
  margin:0;padding:0;list-style:none;counter-reset:n;
  font-size:.96rem;line-height:1.55;color:var(--ink-soft);
}
.notes li{
  counter-increment:n;position:relative;
  padding:0 0 1rem 2.2rem;
}
.notes li#n4b{counter-increment:none;}
.notes li::before{
  content:counter(n);
  position:absolute;left:0;top:0;
  font-family:"Cormorant Garamond",serif;font-weight:600;
  color:var(--gold);font-size:1rem;
}
.notes li#n4b::before{content:"4b";}
.notes cite{font-style:italic;color:var(--ink);}

.colophon{
  text-align:center;padding:2.4rem 1.5rem 4rem;
  border-top:1px solid var(--rule);
  max-width:var(--maxw);margin:0 auto;
}
.colophon .mark{font-family:"Cormorant Garamond",serif;color:var(--gold);font-size:1.4rem;}
.colophon p{
  font-family:"Cormorant Garamond",serif;font-style:italic;
  color:var(--ink-soft);font-size:1.05rem;margin:.6rem 0 0;
}
.colophon .latin{display:block;letter-spacing:.04em;margin-top:.3rem;}

/* page-load grace */
@media (prefers-reduced-motion:no-preference){
  .hero__inner > *{opacity:0;transform:translateY(12px);animation:rise .9s cubic-bezier(.2,.7,.2,1) forwards;}
  .eyebrow{animation-delay:.05s;}
  .chalice-img{animation-delay:.18s;}
  .hero h1{animation-delay:.30s;}
  .hero .dek{animation-delay:.46s;}
  .epigraph{animation-delay:.6s;}
  @keyframes rise{to{opacity:1;transform:none;}}
}

:focus-visible{outline:2px solid var(--gold);outline-offset:3px;}

@media (max-width:900px){
  .article-shell{display:block;padding-bottom:4rem;}
}

@media (max-width:560px){
  body{font-size:1.1rem;}
  .sec-head{gap:.7rem;}
  .sec-num{min-width:1.8rem;}
  .inscription{margin-left:0;margin-right:0;}
}

/* dark-mode variant (with contrast fixes for scripture text, links, and drop cap) */
@media (prefers-color-scheme:dark){
  :root{
    --parchment:#1a1410;
    --parchment-2:#221a14;
    --ink:#e8ddd0;
    --ink-soft:#a8957f;
    --rule:rgba(232,221,208,.12);
    --rule-strong:rgba(232,221,208,.24);
  }
  body{background:var(--parchment);color:var(--ink);}
  .hero::after{background:linear-gradient(180deg,transparent,var(--parchment));}
  blockquote{color:#d4c4b0;}
  .scripture{color:#d3bda1;}
  .lead::first-letter{color:#c47b6a;}
  .sec-head h2{color:var(--ink);}
  .inscription{background:linear-gradient(180deg,rgba(169,128,47,.06),rgba(169,128,47,.06)),var(--parchment-2);}
  .inscription p{color:#c8a080;}
  :where(main, footer) a{color:var(--gold-soft);border-bottom-color:rgba(198,162,92,.32);}
}
