/* Shauna on the go — the ONE stylesheet for the whole site.
   Palette + type derived from the original site (not guessed). */

:root{
  --teal:#0E6E6E; --teal-deep:#0B3B39; --teal-soft:#eaf3f1;
  /* --mag is the brand magenta, reserved for LARGE text, fills and rules
     (3.49:1 on cream — fails AA at body size). --mag-text is the same hue
     darkened to 5.20:1 and is what small text uses. Both are hers already. */
  --mag:#9B72C9;  --mag-deep:#7E54B0; --mag-text:#7E54B0;
  --ink:#2A251F;  --ink-soft:#6E6456; --muted:#6E6456;
  --ground:#FBF7F1; --sand:#F1E8DB; --card:#fff; --line:#E7DDCC;
  --fd:Optima,Candara,"Gill Sans","Segoe UI",system-ui,sans-serif;      /* display */
  --fb:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;    /* body */
  --wrap:min(100% - 2.4rem, 68rem);
  --wrap-narrow:min(100% - 2.4rem, 42rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ground); color:var(--ink);
  font-family:var(--fb); font-size:clamp(1rem,0.96rem + 0.2vw,1.125rem); line-height:1.7;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal)}
a:hover{color:var(--mag)}

h1,h2,h3,h4{font-family:var(--fd);font-weight:500;line-height:1.15;color:var(--ink);margin:0 0 .5em}
h1{font-size:clamp(2rem,1.5rem + 2.2vw,3rem)}
h2{font-size:clamp(1.5rem,1.2rem + 1.2vw,2.1rem)}
h3{font-size:clamp(1.2rem,1.05rem + .6vw,1.5rem)}
p{margin:0 0 1.15em}
blockquote{margin:1.6em 0;padding:.2em 0 .2em 1.2em;border-left:3px solid var(--mag);color:var(--ink-soft);font-style:italic}

.wrap{width:var(--wrap);margin-inline:auto}
.wrap-narrow{width:var(--wrap-narrow);margin-inline:auto}
.center{text-align:center}
.eyebrow{font-family:var(--fd);color:var(--mag-text);font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;font-size:.75rem;margin:0 0 .6em}

/* ---------- header ---------- */
.site-header{background:var(--ground);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.7rem 0;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;
  font-family:var(--fd);color:var(--teal);font-size:1.25rem}
.brand img{width:32px;height:32px;border-radius:8px}
.site-nav{display:flex;gap:.2rem;flex-wrap:wrap}
.site-nav a{font-family:var(--fd);color:var(--ink-soft);text-decoration:none;
  font-size:.9rem;padding:.35rem .6rem;border-radius:6px}
.site-nav a:hover,.site-nav a[aria-current=page]{color:var(--teal);background:var(--teal-soft)}

/* ---------- hero ---------- */
.hero{background:var(--teal);color:#fff;padding:clamp(2.5rem,6vw,4.5rem) 0}
.hero h1{color:#fff}
.hero .lede{color:#dff0ee;font-size:1.12em;max-width:38ch}
.hero .eyebrow{color:#EFE8FA}
.hero-grid{display:grid;gap:clamp(1.5rem,4vw,2.5rem);align-items:center;
  grid-template-columns:1fr}
@media(min-width:48rem){.hero-grid{grid-template-columns:1.1fr .9fr}}
.hero img{border-radius:16px}

.btn{display:inline-block;font-family:var(--fd);font-size:.95rem;padding:.75em 1.5em;
  border-radius:999px;text-decoration:none;border:1px solid transparent}
.btn-solid{background:var(--mag);color:#fff}
.btn-solid:hover{background:var(--mag-deep);color:#fff}
.btn-ghost{border-color:rgba(255,255,255,.55);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff}
.btn-row{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.2rem}

/* ---------- article: reading column + marginal rail ---------- */
.article{padding:clamp(2rem,5vw,3.5rem) 0}
.article-grid{display:grid;grid-template-columns:1fr;gap:.5rem clamp(1.5rem,4vw,3rem);
  width:var(--wrap);margin-inline:auto}
@media(min-width:56rem){
  .article-grid{grid-template-columns:9rem minmax(0,42rem);justify-content:center}
  .rail{position:sticky;top:5.2rem;align-self:start;text-align:right;padding-top:.6rem}
}
.rail{font-family:var(--fd);font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--mag-text);line-height:1.7}
.rail .rail-year{display:block;color:var(--teal);opacity:.4;font-size:1.5rem;
  letter-spacing:0;text-transform:none;margin-bottom:.2rem;
  font-variant-numeric:lining-nums tabular-nums}
.article h1{font-size:clamp(1.9rem,1.4rem + 2.2vw,2.9rem);margin:0 0 .8em;text-wrap:balance}
.article .body > p:first-of-type{font-size:1.1em;color:var(--ink)}
.article img{border-radius:10px;margin:1.8em 0}
.article .back{margin-top:3rem;padding-top:1.2rem;border-top:1px solid var(--line);
  font-family:var(--fd);font-size:.9rem}

/* index header — teal band, matching About / Teaching */
  margin:0 0 .5rem}
  text-transform:uppercase;font-size:.95rem;line-height:1.4;margin:0 0 .8rem;
  color:#F1E8DB;display:flex;align-items:center;gap:.6rem}
  background:currentColor;flex:none;opacity:.8}
  margin:0 0 .4em;max-width:18ch;text-wrap:balance}

/* ---------- the reading list (signature) ----------
   Essays grouped by year. The year lives in a marginal rail — chronology is
   real information about her road, not decoration. */
.reading{padding:clamp(1.5rem,4vw,2.5rem) 0;
  width:min(100% - 2.4rem,54rem);margin-inline:auto}
.year{display:grid;grid-template-columns:1fr;gap:0 clamp(1.5rem,4vw,3rem);
  border-top:1px solid var(--line);padding-top:1.2rem;margin-top:2.4rem}
.year:first-of-type{margin-top:.8rem}
.year > .year-label{font-family:var(--fd);font-size:clamp(1.6rem,1.1rem + 2vw,2.6rem);
  color:var(--teal);opacity:.55;line-height:1;margin:0 0 .8rem;font-weight:500;
  font-variant-numeric:lining-nums tabular-nums}
@media(min-width:52rem){
  .year{grid-template-columns:7rem 1fr}
  .year > .year-label{position:sticky;top:5.2rem;margin:0}
}
.entry{display:block;text-decoration:none;color:inherit;padding:1.35rem 0;
  border-bottom:1px solid var(--line);transition:padding-left .18s ease}
.entry:last-child{border-bottom:0}
.entry:hover,.entry:focus-visible{padding-left:.6rem}
.entry h3{font-family:var(--fd);font-weight:500;color:var(--ink);
  font-size:clamp(1.15rem,1rem + .7vw,1.5rem);margin:0 0 .25em;transition:color .18s ease}
.entry:hover h3{color:var(--teal)}
.entry .excerpt{color:var(--ink-soft);font-size:.95rem;line-height:1.6;margin:0;
  max-width:58ch}
.entry .date{font-family:var(--fd);font-size:.72rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--mag-text);margin:0 0 .35em}

/* ---------- footer ---------- */
.site-footer{background:var(--teal-deep);color:#cfe6e3;text-align:center;
  padding:clamp(2rem,5vw,3rem) 0;margin-top:clamp(2rem,6vw,4rem)}
.site-footer .brand-line{font-family:var(--fd);color:#fff;font-size:1.2rem;margin:0 0 .1em}
.site-footer .tag{color:#a9c6c2;font-style:italic;margin:0 0 1.2em}
.site-footer a{color:#bfe0dc;text-decoration:none;font-family:var(--fd);font-size:.9rem;
  margin:0 .5rem;display:inline-block}
.site-footer a:hover{color:#fff}
.site-footer .fine{color:#7aa39d;font-size:.8rem;margin-top:1.2em}

/* ---------- utilities ---------- */
.section{padding:clamp(2rem,5vw,3.5rem) 0}
.band{background:var(--sand)}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:1rem;top:1rem;background:#fff;padding:.6em 1em;z-index:100;border-radius:6px}

/* ---------- quality floor ---------- */
:where(a,button,input,textarea,summary):focus-visible{
  outline:2px solid var(--mag);outline-offset:3px;border-radius:3px}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print{
  .site-header,.site-footer,.rail,.back{display:none}
  body{background:#fff;color:#000}
}

/* closing CTA on the writing index */
.writing-cta{background:var(--teal);color:#eaf5f3;border-radius:14px;
  padding:clamp(1.4rem,4vw,2.2rem);margin:2rem 0 0}
.writing-cta h2{font-family:var(--fd);font-weight:500;color:#fff;margin:0 0 .5rem;
  font-size:clamp(1.3rem,1.1rem + .9vw,1.8rem)}
.writing-cta p{color:#cfe6e3;margin:0 0 1rem;max-width:48ch}
.writing-cta p:last-child{margin:0}
.writing-cta .cta-btn{display:inline-block;font-family:var(--fd);font-size:1rem;
  background:var(--mag);color:#fff;text-decoration:none;border-radius:999px;padding:.75em 1.7em}
.writing-cta .cta-btn:hover{background:var(--mag-deep)}



/* ================= ESSAY PAGE ==================
   Same teal band as every other page, a real reading column, and a proper
   ending (who wrote it / what to read next) instead of a lone back link. */
.essay-head{background:var(--teal);color:#fff;
  padding:clamp(2.6rem,6vw,4rem) 0 clamp(2rem,4vw,2.6rem)}
.essay-head .eyebrow{display:flex;align-items:center;gap:.6rem;
  font-family:var(--fd);font-size:.95rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:#EFE8FA;margin:0 0 .8rem}
.essay-head .eyebrow::before{content:"";width:1.8rem;height:2px;
  background:currentColor;opacity:.8;flex:none}
.essay-head h1{font-family:var(--fd);font-weight:500;color:#fff;line-height:1.08;
  font-size:clamp(1.9rem,1.4rem + 2.4vw,3rem);text-wrap:balance;
  margin:0 0 .3rem;max-width:20ch}
.essay-lede{color:#dff0ee;font-size:clamp(1.02rem,.98rem + .3vw,1.18rem);
  line-height:1.5;max-width:40ch;margin:.6rem 0 0;font-style:italic}
.essay-meta{font-family:var(--fd);font-size:.85rem;letter-spacing:.1em;
  text-transform:uppercase;color:#bfe0dc;margin:1.3rem 0 0}
.essay-meta span{opacity:.6;margin:0 .1rem}

/* the reading column */
.essay-body{max-width:38rem;margin-inline:auto;
  padding:clamp(2.2rem,5vw,3.4rem) 1.2rem clamp(1.6rem,3vw,2.4rem)}
.essay-body p{font-family:var(--fb);font-size:1.14rem;line-height:1.75;
  color:var(--ink);margin:0 0 1.35em}
.essay-body p.lead-in{font-size:1.28rem;line-height:1.62;color:#3a332b}
.essay-body p.lead-in::first-letter{initial-letter:2;font-weight:600;
  color:var(--teal);margin-right:.06em}
.essay-body h2{font-family:var(--fd);font-weight:500;color:var(--teal);
  font-size:clamp(1.35rem,1.15rem + .8vw,1.75rem);line-height:1.25;
  margin:2.4em 0 .6em;letter-spacing:-.005em}
.essay-body h3{font-family:var(--fd);font-weight:600;color:var(--ink);
  font-size:1.12rem;letter-spacing:.02em;margin:2em 0 .5em}
.essay-body ul,.essay-body ol{font-family:var(--fb);font-size:1.1rem;
  line-height:1.7;color:var(--ink);margin:0 0 1.35em;padding-left:1.2em}
.essay-body li{margin:0 0 .5em}
.essay-body a{color:var(--mag-text);font-weight:600;text-decoration:none}
.essay-body a:hover,.essay-body a:focus-visible{color:var(--teal);
  text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.essay-body blockquote{margin:2em 0;padding:0 0 0 1.4rem;
  border-left:3px solid var(--mag)}
.essay-body blockquote p{font-family:var(--fd);font-size:1.22rem;line-height:1.45;
  color:var(--teal-deep);font-style:normal;margin:0}
.essay-body img{width:100%;height:auto;border-radius:10px;display:block;margin:2em 0}
.essay-body hr{border:0;height:1px;background:var(--line);margin:2.6em 0}
.essay-body strong{color:var(--ink);font-weight:700}

/* the ending */
.essay-foot{max-width:38rem;margin-inline:auto;
  padding:0 1.2rem clamp(3rem,6vw,4.5rem)}
.byline{display:flex;gap:1.1rem;align-items:flex-start;
  background:var(--sand);border-radius:14px;padding:1.3rem;
  border-left:3px solid var(--teal)}
.byline img{width:78px;height:78px;flex:none;border-radius:14px;
  object-fit:cover;object-position:center 18%}
.by-name{font-family:var(--fd);font-weight:600;color:var(--teal-deep);
  font-size:1.05rem;margin:0 0 .35rem;letter-spacing:.01em}
.by-bio{font-family:var(--fb);font-size:.98rem;line-height:1.55;
  color:var(--ink);margin:0 0 .6rem}
.by-more{font-family:var(--fd);font-weight:600;font-size:.92rem;
  color:var(--mag-text);text-decoration:none}
.by-more:hover{color:var(--teal)}

.essay-nav{display:grid;gap:.9rem;grid-template-columns:1fr;margin:1.6rem 0 0}
@media(min-width:44rem){.essay-nav{grid-template-columns:1fr 1fr}}
.essay-jump{display:flex;flex-direction:column;gap:.4rem;text-decoration:none;
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:.95rem 1.1rem;transition:border-color .15s,transform .15s}
.essay-jump:hover{border-color:var(--teal);transform:translateY(-2px)}
.essay-jump .dir{font-family:var(--fd);font-size:.78rem;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;color:var(--mag-text)}
.essay-jump .t{font-family:var(--fd);font-size:1.02rem;line-height:1.3;
  color:var(--teal-deep)}
.essay-jump.next{text-align:right;align-items:flex-end}

.essay-foot .back{margin:1.6rem 0 0;text-align:center}
.essay-foot .back a{font-family:var(--fd);font-weight:600;font-size:.95rem;
  color:var(--ink-soft);text-decoration:none}
.essay-foot .back a:hover{color:var(--teal)}
@media(prefers-reduced-motion:reduce){.essay-jump{transition:none}
  .essay-jump:hover{transform:none}}

/* ---- one measure across the site ----
   About/Teaching/Come-along run on an 820px column (#pg .wrap). The Writing
   index and the essays were running on the 1088px site wrap, which is why
   Writing read wider and "off" next to About. Same measure everywhere. */
.reading,
.writing-cta-wrap,
.essay-head .wrap{width:min(100% - 2.4rem, 820px);margin-inline:auto}
.essay-body,.essay-foot{max-width:39rem}

/* Plain-prose pages (layout_page's non-designed path, e.g. /privacy-policy/)
   sit outside the #pg / #sog scopes — same link treatment applies here. */
.article .body a{color:var(--mag-deep);font-weight:600;text-decoration:none}
.article .body a:hover,.article .body a:focus-visible{color:var(--teal);
  text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
