:root {
  --color-bg: #f8f4ee;
  --color-surface: #fcf9f4;
  --color-surface-alt: #f4ede5;
  --color-surface-soft: #efe6dc;
  --color-card: #fffdf9;
  --color-ink: #302722;
  --color-ink-normal: #1e1512;
  --color-ink-soft: rgba(48, 39, 34, 0.76);
  --color-muted: #85776d;
  --color-line: #d8c7bc;
  --color-accent: #67271d;
  --color-accent-deep: #843d32;
  --color-footer: #3b3836;
  --color-white: #ffffff;
  --shadow-card: 0 0 32px rgba(48, 39, 34, 0.05);
  --radius-sm: 3px;
  --radius-md: 6px;
  --container: 72rem;
  --container-wide: 88rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --font-serif: "Newsreader", serif;
  --font-sans: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

p,
ul,
ol,
h1,
h2,
h3,
h4 {
  margin: 0;
}

ul {
  padding-left: 1.1rem;
}

.page {
  min-height: 100vh;
}

.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;
}

.container,
.container-wide,
.container-narrow {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.container-wide {
  width: min(100%, var(--container-wide));
}

.container-narrow {
  width: min(100% - 2rem, 52rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(216, 199, 188, 0.15);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(48, 39, 34, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 1rem 0;
}

.site-logo img {
  height: 1.6rem;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 1.1rem;
  color: rgba(48, 39, 34, 0.84);
}


/* ─── Nav link hover animation & active-page indicator ──────────────── */
.site-nav a { transition: color 180ms ease; }

.site-nav a:not(.button-primary) {
  position: relative;
  padding-bottom: 3px;
}

/* Underline — collapsed at centre by default */
.site-nav a:not(.button-primary)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--color-accent);
  transition: left 240ms ease, right 240ms ease;
}

/* Hover: expand outward from centre */
.site-nav a:not(.button-primary):hover { color: var(--color-ink); }
.site-nav a:not(.button-primary):hover::after {
  left: 0;
  right: 0;
}

/* Active page: underline always present, slightly heavier and deeper */
.site-nav a:not(.button-primary)[aria-current="page"] { color: var(--color-ink); }
.site-nav a:not(.button-primary)[aria-current="page"]::after {
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--color-accent-deep);
}

.site-nav__cta-mobile {
  display: inline-flex;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-accent-deep);
}

.button-secondary {
  border-color: var(--color-line);
  background: #fff;
  color: var(--color-ink);
}

.button-secondary:hover {
  background: var(--color-surface-alt);
}

.hero {
  background: #f1e7dd;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-content,
.hero-media {
  min-width: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  padding: var(--space-14) var(--space-5);
  background: transparent;
}

.hero-content__inner {
  max-width: 32rem;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 21rem;
  object-fit: cover;
}

.eyebrow {
  color: var(--color-accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--muted {
  color: var(--color-ink-soft);
}

.hero-title,
.section-title,
.display-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #4b3d37;
}

.hero-title {
  margin-top: var(--space-4);
  font-size: clamp(2.1rem, 4.2vw, 3.36rem);
  line-height: 0.9;
}

.body-knowjo,
.hero-copy,
.section-copy,
.body-copy {
  color: var(--color-ink-normal);
  font-size: 0.97rem;
  line-height: 1.95;
}

.hero-copy {
  max-width: 26rem;
  margin-top: var(--space-5);
}

.section {
  padding: var(--space-14) 0;
}

.section-alt {
  padding: var(--space-14) 0;
  background: var(--color-surface-alt);
}

.section-soft {
  padding: var(--space-14) 0;
  background: var(--color-surface);
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.2;
}

.section-title--spaced,
.hero-title--spaced {
  margin-top: var(--space-8);
}

.block-line {
  display: block;
}

.section-subtitle {
  margin-top: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-ink-soft);
}

.section-kicker {
  margin-bottom: var(--space-4);
}

.section-rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.section-rule::before,
.section-rule::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--color-accent);
}

.section-rule span {
  color: var(--color-accent);
  font-size: 1.156rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.grid-2,
.grid-3,
.split-grid {
  display: grid;
  gap: var(--space-6);
}

.split-grid {
  align-items: start;
}

.card {
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px rgba(48, 39, 34, 0.08);
}

.card--plain {
  box-shadow: none;
}

.card__media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

.card__body {
  padding: var(--space-6);
}

.card__icon {
  width: 5rem;
  height: 5rem;
  padding: 0;
  margin: -5.4rem auto 0;
  border-radius: 999px;
  background: var(--color-accent);
}

.card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 1.8rem);
  line-height: 1;
  color: #4b3d37;
}

.card-text {
  margin-top: var(--space-3);
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.9;
}

.card-list,
.body-list {
  margin-top: var(--space-4);
  color: rgba(48, 39, 34, 0.8);
  font-size: 0.92rem;
  line-height: 1.75;
}

.card-list li + li,
.body-list li + li {
  margin-top: 0.35rem;
}

.link-inline {
  display: inline-block;
  margin-top: var(--space-4);
  color: var(--color-accent);
  text-decoration: none;
}

.stack-lg > * + * {
  margin-top: var(--space-5);
}

.stack-md > * + * {
  margin-top: var(--space-4);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.pt-divider {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-line);
}

.intro-note {
  margin-top: 0.5rem;
  color: rgba(48, 39, 34, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.75;
}

.text-italic {
  font-style: italic;
}

.js-loaded .fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pull-quote {
  text-align: center;
}

.pull-quote img {
  height: 1.6rem;
  width: auto;
  margin: 0 auto;
}

.pull-quote p {
  max-width: 48rem;
  margin: var(--space-4) auto 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.9;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-list li {
  display: flex;
  gap: 0.75rem;
}

.pill {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.35rem;
  text-align: center;
}

.cta {
  position: relative;
  overflow: hidden;
  background: #f7f1ea;
}

.cta__leaf {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 9rem;
  opacity: 0.72;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-12) 0;
  text-align: center;
}

.cta__copy {
  max-width: 45rem;
}

.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  color: var(--color-ink);
}

.cta__text {
  margin-top: var(--space-2);
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.85;
}

.cta__note {
  color: var(--color-ink-soft);
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-style: italic;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer {
  min-height: 7.5rem;
  background: var(--color-footer);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__inner--rich {
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-12) 0;
  text-align: center;
  min-height: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.footer-tagline {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.form-panel {
  max-width: 40rem;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.field-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field-input,
.field-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(216, 199, 188, 0.4);
  border-radius: 0;
  background: #fff;
  color: var(--color-ink);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 160ms ease;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: #b9ada3;
}

.field-input:focus,
.field-textarea:focus {
  border-bottom-color: var(--color-accent);
}

.field-textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-input:invalid:not(:placeholder-shown),
.field-textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #c0705e;
}

.centered-note {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

.text-center {
  text-align: center;
}

.serif {
  font-family: var(--font-serif);
}

.muted {
  color: var(--color-muted);
}

.narrow-copy {
  max-width: 38rem;
}

/* ─── Hamburger toggle ─────────────────────────────────────── */

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-ink);
  border-radius: 1px;
  transition: transform 220ms ease, opacity 220ms ease;
}

/* Animated X state */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Mobile nav drawer ────────────────────────────────────── */

@media (max-width: 47.99rem) {
  .site-nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 80vw);
    background: var(--color-surface);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 24px rgba(48, 39, 34, 0.1);
    transform: translateX(100%);
    transition: transform 280ms ease;
    z-index: 200;
    gap: 1.5rem;
    font-size: 1rem;
    align-items: flex-start;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__logo {
    width: 180px;
    margin-bottom: 0.5rem;
  }

  .site-nav__cta-mobile {
    display: inline-flex;
    margin-top: 1rem;
  }

  /* Scrim overlay behind the nav drawer */
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(48, 39, 34, 0.35);
    z-index: 199;
  }

  .nav-scrim.is-open {
    display: block;
  }

  /* Keep header below the scrim and drawer */
  .site-header {
    z-index: 198;
  }

  /* Toggle button must float above nav drawer and scrim so it stays tappable */
  .nav-toggle {
    position: relative;
    z-index: 201;
  }
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .site-nav__cta-mobile {
    display: none;
  }

  .hero__grid {
    grid-template-columns: var(--hero-columns, 0.82fr 1.18fr);
  }

  .hero-content {
    padding: var(--hero-padding, 4rem 2.5rem);
  }

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

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

  .button-row {
    flex-direction: row;
  }
}

@media (min-width: 64rem) {
  .site-header__inner {
    padding: 1rem 0;
  }

  .hero-content {
    padding: var(--hero-padding, 5rem 3rem);
  }

  .section,
  .section-alt,
  .section-soft {
    padding: var(--space-16) 0;
  }

  .split-grid {
    grid-template-columns: var(--split-columns, 1fr 1fr);
  }

  .cta__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
