/* ============================================================
   desiraeterry.com — shared styles for the inner pages
   (about, the book, the Five Perfects, press, speaking audience
   pages, writing). Same tokens and components as index.html and
   speaking/index.html, which still carry their own inline copies.
   ============================================================ */

:root {
  --paper:    #F8F6EF;
  --band:     #E9EBE1;
  --card:     #FCFBF6;
  --ink:      #353A22;
  --ink-soft: #5C6140;
  --taupe:    #8A8C77;
  --accent:   #C8625D;
  --accent-2: #A8473F;
  --accent-strong: #A2443B;
  --gold:     #BD9530;
  --sage:     #929C5F;
  --olive-dark:#3F452B;
  --line:     #DAD8C9;

  --maxw: 1120px;
  --read: 64ch;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent-2); }
p a, li a, dd a, td a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.narrow { max-width: 44rem; margin: 0 auto; }
.narrow p { max-width: none; }
.center { text-align: center; }

section { padding: clamp(3.5rem, 8vw, 6rem) 0; scroll-margin-top: 90px; }
.band { background: var(--band); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 0.5rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.02; margin: 0 0 1.25rem; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.08; margin: 0 0 1.5rem; text-wrap: balance; }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.15; margin: 0 0 0.6rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

p { max-width: var(--read); }
.lede { font-size: 1.18rem; color: var(--ink-soft); }
.subtitle {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.25;
  color: var(--ink-soft);
  margin: -0.5rem 0 1.5rem;
}
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  margin: 2rem 0;
}
.pull.accent { color: var(--accent); }
.voice-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  margin: 1.25rem 0;
}

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-logo { display: inline-flex; flex: none; }
.nav-logo img { width: 64px; height: 64px; }
.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .brand { font-size: 1.15rem; }
  .nav-right { gap: 0.6rem; }
  .nav-logo img { width: 44px; height: 44px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
  .nav-toggle .i-close { display: none; }
  header.nav.open .nav-toggle .i-open { display: none; }
  header.nav.open .nav-toggle .i-close { display: block; }
  header.nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(38,31,27,0.45);
    padding: 0.25rem clamp(1.25rem, 5vw, 3rem) 0.75rem;
  }
  header.nav.open .nav-links a { font-size: 0.92rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  header.nav.open .nav-links a:last-child { border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  background: transparent;
  border-radius: 1px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--accent); color: var(--paper); }
.btn.solid { background: var(--accent); color: var(--paper); }
.btn.solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--paper); }
.btn.small { font-size: 0.7rem; padding: 0.45rem 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 1.75rem; }

.more {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
}

/* ---------- page hero (text + framed photo) ---------- */
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-grid.cover { grid-template-columns: 0.7fr 1.3fr; }
@media (max-width: 820px) {
  .hero-grid, .hero-grid.cover { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-grid .framed { order: -1; margin-right: 14px; max-width: 420px; }
  .hero-grid .cover-card { order: -1; max-width: 260px; }
}

/* photo with a quiet sage offset, like a matted print */
.framed { position: relative; margin: 0; }
.framed::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--sage);
  opacity: 0.5;
  z-index: 0;
}
.framed img { position: relative; z-index: 1; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.framed.portrait img { aspect-ratio: 4 / 5; object-position: 50% 18%; }
.framed.wide img { aspect-ratio: 6 / 5; object-position: 55% 30%; }

.cover-card { margin: 0; }
.cover-card img { width: 100%; box-shadow: 0 18px 44px -20px rgba(38,31,27,0.55); }

.pub-status {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--line);
  padding: 0.35rem 0.8rem;
  margin: 0 0 1.25rem;
  background: var(--paper);
}

/* ---------- Five Perfects ---------- */
.perfects-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.perfects-grid a {
  display: block;
  height: 100%;
  border-top: 1px solid var(--accent);
  padding-top: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.perfects-grid a:hover { color: var(--accent-strong); }
.perfects-grid .num {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--taupe);
  margin-bottom: 0.35rem;
}
@media (max-width: 700px) { .perfects-grid { grid-template-columns: 1fr 1fr; } }

.perfect-entry { padding: clamp(2rem, 5vw, 3rem) 0; border-top: 1px solid var(--line); }
.perfect-entry:last-of-type { border-bottom: 1px solid var(--line); }
.perfect-entry h2 { margin-bottom: 0.75rem; scroll-margin-top: 100px; }
.perfect-entry .num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); margin: 0 0 0.25rem; }

/* ---------- talk card (speaking audience pages) ---------- */
.talk {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 3px;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}
.talk-sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.3; color: var(--ink-soft); margin: 0 0 1.1rem; }
.perfect-for { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.perfect-for strong, .label {
  display: block;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.2rem;
}
.leave-list { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.leave-list li { margin: 0.4rem 0; }
.leave-list li::marker { color: var(--accent); }
.leave-list ul { margin: 0.4rem 0 0; padding-left: 1.2rem; list-style: circle; }

/* ---------- link cards ---------- */
.link-cards {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.link-cards a {
  display: block; height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem 1.4rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.link-cards a:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-cards strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.25rem; }
.link-cards span { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { margin: 1.5rem 0 0; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0.75rem 0 0; color: var(--ink-soft); }

/* ---------- press ---------- */
.bio { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 1.4rem 1.6rem; margin: 1rem 0; }
.bio-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.bio-head .label { margin: 0; }
.bio p { margin: 0; max-width: none; }
.bio-long p + p { margin-top: 0.8rem; }
.table-wrap { overflow-x: auto; }
table.appearances { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.appearances th, .appearances td { text-align: left; padding: 0.8rem 0.75rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.appearances th { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe); }
.headshots { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.headshots img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.headshots a.btn { margin-top: 0.75rem; }

/* ---------- credentials ---------- */
dl.creds { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 1.25rem 0 0; }
dl.creds dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe); padding-top: 0.3rem; }
dl.creds dd { margin: 0; }
@media (max-width: 560px) { dl.creds { grid-template-columns: 1fr; gap: 0.15rem; } dl.creds dd { margin-bottom: 0.75rem; } }

/* ---------- article (writing) ---------- */
.byline { font-size: 0.92rem; color: var(--taupe); margin: 0 0 1.5rem; }
.summary { font-size: 1.2rem; color: var(--ink-soft); border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.post-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.post-list li { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- placeholder (Desi to fill in) ---------- */
.todo {
  font-style: italic;
  color: var(--taupe);
  border: 1px dashed var(--taupe);
  border-radius: 3px;
  padding: 0.6rem 0.9rem;
}

/* ---------- newsletter band ---------- */
.newsletter { background: var(--olive-dark); color: #EDEBDD; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
@media (max-width: 800px) { .newsletter-inner { grid-template-columns: 1fr; } }
.newsletter .eyebrow { color: var(--gold); }
.newsletter h2 { color: #F4F2E6; margin: 0 0 0.6rem; }
.newsletter p { color: #CFD0BE; margin: 0; }
.newsletter a { color: #F4F2E6; }
.tally-embed { width: 100%; border: 0; display: block; min-height: 120px; }

/* ---------- footer ---------- */
footer.site { padding: clamp(2.5rem, 6vw, 3.5rem) 0; text-align: center; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: center; margin-bottom: 1.25rem; }
.footer-links a { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-logo img { width: 110px; height: 110px; margin: 0 auto 0.75rem; opacity: 0.92; }
.copyright { font-size: 0.82rem; color: var(--taupe); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- endorsements ---------- */
.endorsement { margin: 0 0 2.25rem; }
.endorsement blockquote { margin: 0; border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.endorsement blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.45; margin: 0; }
.endorsement figcaption { margin: 0.6rem 0 0 1.35rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); }
.endorsement figcaption em { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- by the numbers ---------- */
.stats { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem 1.25rem; }
.stats li { border-top: 1px solid var(--accent); padding-top: 0.7rem; }
.stats strong { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 2.8rem); line-height: 1; color: var(--ink); }
.stats span { display: block; margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
