/* ============================================================
   SHARED DESIGN SYSTEM — sienadean.com
   Used by about.html, speaking.html, compass-check.html.
   index.html stays self-contained (single-file homepage) but
   uses matching values, so all pages read as one site.
   ============================================================ */
:root {
  --forest:    #1B4332; /* darkest anchor — fixed brand constraint */
  --forest-2:  #143528; /* darker forest for depth */
  --emerald:   #167A4C; /* confident, saturated mid-green — the bold identity tone */
  --spring:    #8FA35E; /* lighter sage accent — dual light/dark contexts */
  --spring-lt: #A9BB7A; /* lightest sage for subtle fills */
  --amber:     #C08A2E; /* antique gold/brass — the one warm CTA pop */
  --amber-dk:  #A5741F; /* brass hover */
  --coral:     var(--emerald);
  --cream:     #F1F6F0; /* cool mint-tinted base background */
  --cream-2:   #E3EEDF; /* deeper mint tint for alt sections */
  --ink:       #14281D; /* body text (near-black green) */
  --ink-soft:  rgba(20, 40, 29, 0.72);
  --white:     #FFFFFF;

  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px -22px rgba(20, 40, 29, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(20, 40, 29, 0.3);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
header.nav, main, footer.site { position: relative; z-index: 1; }

/* Scroll reveal — hidden state only applies once JS confirms html.js,
   so a JS failure never leaves content permanently invisible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view .reveal-item:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in-view .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view .reveal-item:nth-child(3) { transition-delay: 0.22s; }
.reveal-stagger.in-view .reveal-item:nth-child(4) { transition-delay: 0.32s; }
html.js .reveal-item {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
html.js .reveal-stagger.in-view .reveal-item { opacity: 1; transform: translateY(0); }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 600; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
}
.eyebrow.on-dark { color: var(--spring); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-dk); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(245,239,223,0.6); }
.btn-outline-light:hover { background: var(--cream); color: var(--forest); }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 223, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(20, 40, 29, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--spring); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--spring);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover { color: var(--forest); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--forest);
}

/* Footer */
footer.site {
  background: var(--forest-2); color: rgba(245,239,223,0.75);
  padding: 48px 0 40px; text-align: center;
}
footer.site .brand { color: var(--cream); font-size: 1.4rem; }
footer.site .brand span { color: var(--spring); }
footer.site .tag { margin: 12px 0 20px; font-family: var(--font-display); font-style: italic; color: rgba(245,239,223,0.7); }
footer.site .foot-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
footer.site .foot-links a { color: rgba(245,239,223,0.8); text-decoration: none; font-size: 0.95rem; }
footer.site .foot-links a:hover { color: var(--spring); }
footer.site .copyright { font-size: 0.82rem; color: rgba(245,239,223,0.5); }

/* Section head (shared pattern used on every sub-page) */
.section-head { max-width: 60ch; }
.section-head h1, .section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); color: var(--forest); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 14px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 16px; }

@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(20,40,29,0.1);
    padding: 8px 0; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; }
  .nav-links .nav-cta { margin: 12px 24px; }
  .nav-toggle { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  html.js .reveal, html.js .reveal-item { opacity: 1 !important; transform: none !important; }
}
