/* Editorial theme: warm cream paper, espresso ink, a Garamond display serif and Hanken Grotesk body, with tracked uppercase labels and square buttons. Loaded last so it sets the final look across every page. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #fbf9f4;
  --ink: #2f2924;
  --muted: #554a41;
  --line: #e1dbcf;
  --accent: #7a5a2e;
  --accent-ink: #f6f3ec;
  --ridge: #7a5a2e;
  --soft: #efeae0;
  --hero-bg: #f6f3ec;
  --hero-bg2: #f0ebe1;
  --hero-bg3: #f2ece0;
  --hero-fg: #2f2924;
  --hero-muted: #554a41;
  --hero-line: #e1dbcf;
  --mint: #7a5a2e;
  --gold: #2f2924;
  --btn-ink: #f6f3ec;
  --display: "EB Garamond", Garamond, "Times New Roman", serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: .26em;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: light;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* Type */
:root body :is(h1, h2, h3, h4) {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.012em;
  text-transform: none;
  color: var(--ink);
}

:root body h1 .s,
:root body h2 .s,
:root body h3 .s {
  display: inline;
  font: inherit;
  font-style: italic;
  color: var(--ink);
}

:root body .hero h1,
:root body .page-title {
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}

:root body .page-title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
}

:root body .sec-head h2,
:root body h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
}

:root body :is(.session, .why4, .philo, .route, .care, .how, .life-stages, .principles-list, .media-copy) h3,
:root body h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
}

:root body .writing-quotes h4 {
  font: 400 1.6rem/1.2 var(--display);
}

.label,
.stage-l,
.aud,
.principle-number,
.offering-label {
  font: 600 .78rem/1.5 var(--body);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--accent);
}

.hero .label,
.page-intro .label {
  margin-bottom: 4px;
}

.lede,
.hero .lede {
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.6;
  color: var(--muted);
}

.lede b {
  font-weight: 600;
  color: var(--ink);
}

.hero-note,
.page-intro p:not(.label),
.sec-head p,
.care p:not(.label),
.life-stages p:not(.label),
.principles-list p {
  color: var(--muted);
}

/* Header and navigation */
.site-header,
.hero {
  border-bottom: 1px solid var(--line);
}

.hero {
  background: var(--bg);
}

.hero .wave {
  display: none;
}

.site-nav {
  gap: 28px;
  padding-block: 30px 28px;
}

.site-nav .mark {
  justify-items: start;
  gap: 2px;
  color: var(--ink);
}

:root body .site-nav .mark .m1 {
  font: 400 2.75rem/1 var(--display);
  letter-spacing: -.01em;
}

:root body .site-nav .mark .m2 {
  padding-left: .2em;
  font: 500 .72rem/1.2 var(--body);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav ul {
  gap: 8px 40px;
  border-bottom: 0;
}

.site-nav ul a {
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  font: 500 .8rem/1.4 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  background: transparent;
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.site-nav ul a[aria-current="page"] {
  font-weight: 600;
}

.site-nav a:focus-visible,
.site-nav button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* Buttons */
.btn,
.hero .btn {
  padding: 19px 30px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 500 .82rem/1.2 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.btn.primary,
.hero .btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn.ghost,
.hero .btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn:hover {
  transform: none;
  box-shadow: none;
}

.btn.primary:hover {
  background: #4a4039;
  border-color: #4a4039;
}

.btn.ghost:hover,
.hero .btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Cards, panels and imagery: square and quiet */
.care,
.life-stages article,
.principles-list li,
.writing-quotes article,
.media-link,
.chip,
.sq .chip,
form,
.log {
  border-radius: 0;
  box-shadow: none;
}

.care,
.life-stages article,
.principles-list li {
  background: var(--surface);
  border-color: var(--line);
}

.care.psychology,
.care.natural,
.life-stages article:nth-child(2),
.life-stages article:nth-child(3),
.principles-list li:nth-child(1),
.principles-list li:nth-child(6),
.principles-list li:last-child,
.writing-quotes article,
.writing-quotes article:last-child {
  background: var(--soft);
}

.writing-quotes article {
  border-left: 1px solid var(--ink);
}

.care :is(a, button),
.media-action {
  color: var(--ink);
  font: 600 .78rem/1.5 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.sq img,
:root body .sq img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:root body .sq .chip b,
:root body .chip b {
  font: 400 1.35rem/1.1 var(--display);
  letter-spacing: 0;
}

.sq .chip span,
.chip span {
  font: 500 .66rem/1.4 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.creds {
  border-top-color: var(--line);
}

.creds span {
  font: 400 .78rem/1.6 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.creds span b {
  font-weight: 600;
  color: var(--ink);
}

section + section {
  border-top-color: var(--line);
}

/* Forms */
:is(input, select, textarea) {
  border-radius: 0;
  font-family: var(--body);
}

/* Footer */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

:root body footer b {
  font: 400 1.5rem/1 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

footer a {
  color: var(--ink);
  font: 500 .78rem/1.5 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 760px) {
  :root body .site-nav .mark .m1 {
    font-size: 2.2rem;
  }

  :root body .site-nav .mark .m2 {
    font-size: .64rem;
  }

  .site-nav {
    gap: 16px 12px;
    padding-block: 20px;
  }

  .site-nav .menu-toggle,
  .menu-toggle {
    align-self: center;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: 500 .75rem/1.2 var(--body);
    letter-spacing: .2em;
    text-transform: uppercase;
  }

  .site-nav ul {
    gap: 0 16px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
  }

  .site-nav ul a {
    padding: 10px 0;
    border-radius: 0;
    font-size: .74rem;
  }

  .site-nav ul a:hover {
    background: transparent;
  }

  :root body .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .mobile-actions {
    background: var(--bg);
  }

  .mobile-actions > a:not(.btn) {
    color: var(--ink);
  }

  .care {
    border-radius: 0;
  }
}
