:root {
  color-scheme: dark;
  --calm: #1e6fff;
  --calm-deep: #144fc2;
  --friction: #ff5a1f;
  --friction-deep: #d43f0f;
  --paper: #262b35;
  --paper-deep: #1b1f27;
  --ink: #eef1f6;
  --ink-soft: #aab2c0;
  --ink-invert: #1b1e26;
  --offwhite: #f3f5f8;
  --line: #3a4150;
  --sheet: #2c313c;
  --shadow: 0 18px 45px rgba(4, 6, 10, 0.45);
  --radius: 18px;
  --container: 1080px;
  --font-display: "Cormorant Garamond", "Bricolage Grotesque", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-quote: "Lora", Georgia, serif;

  /* Fixed, non-theme-flipping token: text that always sits on a dark
     video backdrop (hero) or a solid brand-color surface (buttons) —
     must stay light in both themes so it never goes dark-on-dark. */
  --on-dark-surface: #f3f5f8;

  /* Theme-flipping tokens. The hero stays fixed dark chrome (it has a
     video backdrop, so its text can't flip) — everything else,
     including the header and footer, flips with the theme. */
  --bg-top: #1c2029;
  --bg-mid: #14171e;
  --bg-bottom: #101318;
  --body-sheen-1: rgba(255,255,255,0.05);
  --body-sheen-2: rgba(0,0,0,0.08);
  --surface-tint-1: rgba(255,255,255,0.03);
  --surface-tint-2: rgba(255,255,255,0.01);
  --card-bg: rgba(44,49,60,0.85);
  --card-border: rgba(255,255,255,0.08);
  --btn-inverse-border: rgba(255,255,255,0.28);

  --offwhite: #f3f5f8;
  --header-bg: rgba(15,17,22,0.65);
  --header-border: rgba(255,255,255,0.1);
  --pill-border-strong: rgba(255,255,255,0.24);
  --pill-bg-strong: rgba(255,255,255,0.08);
  --nav-mobile-bg: rgba(20,23,29,0.98);
  --nav-link-border: rgba(255,255,255,0.09);
  --link-hover-accent: #ffb98a;
  --chrome-text-92: rgba(243,245,248,0.92);
  --chrome-text-86: rgba(243,245,248,0.86);
  --chrome-text-82: rgba(243,245,248,0.82);
  --chrome-text-68: rgba(243,245,248,0.68);
  --footer-bg-top: #171a21;
  --footer-bg-bottom: #0e1015;
  --hairline: rgba(255,255,255,0.12);
  --hairline-strong: rgba(255,255,255,0.16);
  --input-bg: #f3f5f8;
  --input-text: #1b1e26;
}

:root[data-theme="light"] {
  color-scheme: light;
  /* Soft near-white per the light-theme article — pure #fff is avoided
     to reduce glare; text/borders get a warm-neutral tint. */
  --bg-top: #f8f9fb;
  --bg-mid: #f4f6f8;
  --bg-bottom: #eef1f4;
  --body-sheen-1: rgba(20,24,32,0.02);
  --body-sheen-2: rgba(20,24,32,0.05);
  --paper: #ffffff;
  --paper-deep: #f4f6f8;
  --surface-tint-1: rgba(20,24,32,0.025);
  --surface-tint-2: rgba(20,24,32,0.008);
  --card-bg: #ffffff;
  --card-border: rgba(20,24,32,0.09);
  --btn-inverse-border: rgba(20,24,32,0.2);
  --ink: #1c2029;
  --ink-soft: #5b6472;
  --shadow: 0 12px 32px rgba(20,24,32,0.08), 0 2px 8px rgba(20,24,32,0.05);

  --offwhite: #1c2029;
  --header-bg: rgba(255,255,255,0.75);
  --header-border: rgba(20,24,32,0.08);
  --pill-border-strong: rgba(20,24,32,0.18);
  --pill-bg-strong: rgba(20,24,32,0.05);
  --nav-mobile-bg: rgba(255,255,255,0.98);
  --nav-link-border: rgba(20,24,32,0.08);
  --link-hover-accent: #c2450f;
  --chrome-text-92: rgba(28,32,41,0.88);
  --chrome-text-86: rgba(28,32,41,0.8);
  --chrome-text-82: rgba(28,32,41,0.72);
  --chrome-text-68: rgba(28,32,41,0.58);
  --footer-bg-top: #eef1f4;
  --footer-bg-bottom: #e4e8ec;
  --hairline: rgba(20,24,32,0.1);
  --hairline-strong: rgba(20,24,32,0.14);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at top, var(--body-sheen-1), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(var(--body-sheen-1), var(--body-sheen-2));
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.65;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--calm-deep); text-decoration: none; }
a:hover { color: var(--friction-deep); }

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

.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 0.98;
  letter-spacing: -0.018em;
  margin: 0 0 0.7em;
}

h1 { font-size: clamp(3rem, 7vw, 5.25rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }

p { margin: 0 0 1em; }

.calm-word { color: var(--calm); }
.friction-word { color: var(--friction); }
.eyebrow {
  display: inline-block;
  color: var(--friction-deep);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--header-border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--offwhite);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}
.brand-mark {
  width: 3.4rem;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}

.book-title {
  display: inline-flex;
  gap: 0.2rem;
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--pill-border-strong);
  background: transparent;
  color: var(--offwhite);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border: 1px solid var(--pill-border-strong);
  background: transparent;
  color: var(--offwhite);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.25s ease;
}
.theme-toggle:hover { border-color: var(--offwhite); transform: translateY(-1px); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nav-mobile-bg);
  display: none;
}
.site-nav.open { display: block; }
.site-nav ul {
  margin: 0;
  padding: 0.6rem 1rem 1rem;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.15rem;
  color: var(--offwhite);
  border-bottom: 1px solid var(--nav-link-border);
  font-weight: 700;
}
.site-nav a:hover { color: var(--link-hover-accent); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(circle at top right, rgba(255,90,31,0.22), transparent 32%),
    radial-gradient(circle at bottom left, rgba(30,111,255,0.18), transparent 40%),
    linear-gradient(135deg, #1b1e26 0%, #14161c 72%, #1b1e26 100%);
  color: var(--on-dark-surface);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  pointer-events: none;
}
.hero-full {
  --hero-bleed: 6rem;
  min-height: calc(100svh + var(--hero-bleed));
  background: linear-gradient(135deg, #1b1e26 0%, #14161c 72%, #1b1e26 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 12, 16, 0.78), rgba(10, 12, 16, 0.4));
}
.hero-viewport {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.hero-copy {
  max-width: 38rem;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: #ffb98a;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.hero-copy h1 .line {
  display: block;
}

.hero-article {
  max-width: 35rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.6;
  color: rgba(243,245,248,0.92);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--on-dark-surface);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

/* Hero buttons get a "liquid glass" press state: frosted blur + specular
   highlight + a soft organic squish, so tapping them feels tactile against
   the video behind. Scoped to the hero so it doesn't reshape buttons that
   sit on light backgrounds elsewhere. */
.hero-actions .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.28s ease;
}
.hero-actions .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.12) 35%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: 1;
}
.hero-actions .btn > * { position: relative; z-index: 2; }

.hero-actions .btn:active {
  transform: translateY(0) scale(0.93);
  border-radius: 46% 54% 58% 42% / 56% 44% 56% 44%;
  color: var(--on-dark-surface);
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.08));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-color: rgba(255,255,255,0.65);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.7),
    inset 0 -8px 14px rgba(0,0,0,0.18),
    0 6px 18px rgba(0,0,0,0.28);
}
.hero-actions .btn:active::before { opacity: 1; }

.btn-primary {
  color: var(--on-dark-surface);
  background: linear-gradient(135deg, var(--friction), #ff8c4d);
  box-shadow: 0 12px 24px rgba(255,90,31,0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, #c2450f, var(--friction-deep)); color: var(--on-dark-surface); }
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--on-dark-surface);
}
.btn-secondary:hover { border-color: var(--on-dark-surface); color: var(--on-dark-surface); }
.btn-inverse {
  border-color: var(--btn-inverse-border);
  color: var(--ink);
}
.btn-inverse:hover { border-color: var(--friction); color: var(--friction); }

.chapter {
  padding: 4.2rem 0;
}
.chapter-ink {
  background-color: var(--paper);
  background-image: linear-gradient(180deg, var(--surface-tint-1), var(--surface-tint-2));
  transition: background-color 0.25s ease;
}

#story {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--hero-bleed, 6rem));
  padding-top: calc(4.2rem + 6rem);
  border-radius: 32px 32px 0 0;
}

.section-head {
  max-width: 45rem;
  margin-bottom: 2rem;
}

.story-grid, .care-grid, .give-grid {
  display: grid;
  gap: 1rem;
}

.story-card, .care-card, .give-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.story-card::before {
  content: "\2014";
  color: var(--friction);
  font-size: 1.3rem;
  font-weight: 900;
}
.story-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--friction-deep);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.care-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(30, 111, 255, 0.15);
  color: var(--calm);
  font-weight: 800;
}

.image-strip {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}
.photo-card {
  margin: 0;
  padding: 0.8rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}
.photo-card figcaption {
  padding-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.post-body {
  max-width: 42rem;
}
.post-quote {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--friction);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  background: linear-gradient(180deg, var(--footer-bg-top) 0%, var(--footer-bg-bottom) 100%);
  color: var(--chrome-text-86);
  padding: 3rem 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.footer-card {
  margin: 2.5rem 1rem 3rem;
  max-width: 1240px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .footer-card { margin-inline: auto; }
}
.bookmark-label {
  margin-bottom: 1.6rem;
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--pill-border-strong);
  background: var(--pill-bg-strong);
  color: var(--offwhite);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.site-footer h3 {
  color: var(--offwhite);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { padding: 0.25rem 0; }
.site-footer a {
  color: var(--chrome-text-82);
}
.site-footer a:hover { color: var(--link-hover-accent); }

.footer-main {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand .brand { flex-shrink: 0; }
.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--chrome-text-68);
  max-width: 24rem;
  margin: 0;
}
@media (min-width: 480px) {
  .footer-brand {
    flex-direction: row;
    align-items: flex-start;
  }
  .footer-tagline {
    padding-left: 1.3rem;
    border-left: 1px solid var(--hairline-strong);
    max-width: 19rem;
  }
}

.footer-links {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-cta {
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.footer-cta h3 {
  color: var(--offwhite);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1.2rem;
}
.footer-subscribe {
  display: flex;
  gap: 0.4rem;
  background: var(--input-bg);
  border-radius: 999px;
  padding: 0.35rem;
  max-width: 22rem;
}
.footer-subscribe input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.6rem 0.9rem;
  font: inherit;
  color: var(--input-text);
  outline: none;
}
.footer-subscribe button {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--friction), #ff8c4d);
  color: var(--on-dark-surface);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}
.footer-subscribe button:hover { transform: translateX(2px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  border-top: 1px solid var(--hairline);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--chrome-text-68);
}
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    background: transparent;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
  }
  .site-nav a {
    padding: 0.3rem 0;
    border-bottom: none;
    color: var(--chrome-text-92);
  }
  .site-nav a:hover { color: var(--link-hover-accent); }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }

  .story-grid,
  .care-grid,
  .give-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .image-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
  }

  .footer-cta {
    padding-top: 0;
    padding-left: 3rem;
    margin-left: 3rem;
    border-top: none;
    border-left: 1px solid var(--hairline);
  }
}

@media (min-width: 1024px) {
  .container { width: min(100% - 4rem, var(--container)); }
  .hero { padding: 5.6rem 0 6.5rem; }
  .chapter { padding: 5.4rem 0; }
}
