/* ---------- Tokens ---------- */
:root {
  --bg: #F0E6D0;
  --bg-alt: #E4D6B8;
  --ink: #2D2015;
  --ink-soft: #6B5A44;
  --forest: #7A2E27;      /* barn red — primary accent (variable name kept for continuity) */
  --sea: #2B3A5F;         /* dusty denim — secondary accent */
  --berry: #5C201B;       /* deep oxblood — CTA hover / dark accent */
  --wheat: #C9A961;       /* harvest gold — highlight */
  --umber: #3A2C1E;       /* deep sepia — dark section backgrounds */
  --rule: rgba(45, 32, 21, 0.16);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 62ch;
  --container: 72rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--berry); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 500;
  margin: 0 0 1rem;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 6.5rem 0; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(240, 230, 208, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.brand span { color: var(--forest); }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--forest); color: var(--forest); }
.nav-cta {
  background: var(--forest);
  color: #F0E6D0 !important;
  padding: 0.55rem 1.1rem !important;
  border: none !important;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--berry); }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--ink);
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 0.5rem 1.5rem 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .nav-links a:last-child { border-bottom: none; }
  .menu-toggle { display: block; }
  .nav-cta { display: inline-block; margin-top: 0.6rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #F0E6D0;
  padding: 0;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(45,32,21,0.55) 0%, rgba(45,32,21,0.15) 25%, rgba(45,32,21,0.4) 55%, rgba(45,32,21,0.85) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.hero h1 {
  color: #F0E6D0;
  max-width: 20ch;
  margin-bottom: 1.2rem;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero .lede {
  color: #E5D9BE;
  max-width: 42ch;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F0E6D0;
  font-weight: 500;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(240,230,208,0.35);
  display: inline-block;
  text-shadow: 0 1px 16px rgba(0,0,0,0.65);
}
.hero h1, .hero .lede { text-shadow: 0 1px 24px rgba(0,0,0,0.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--forest); color: #F0E6D0; }
.btn-primary:hover { background: var(--berry); color: #F0E6D0; }
.btn-ghost { border-color: rgba(240,230,208,0.5); color: #F0E6D0; }
.btn-ghost:hover { background: rgba(240,230,208,0.12); border-color: #F0E6D0; color: #F0E6D0; }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--bg); }

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

/* ---------- Sections ---------- */
.section-divider {
  border: 0;
  height: 1px;
  background: var(--rule);
  max-width: 5rem;
  margin: 0 0 2.5rem;
}
.divider-center { margin-left: auto; margin-right: auto; }

.pillars {
  background: var(--bg-alt);
}
.pillars-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 780px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.pillar {
  border-top: 2px solid var(--forest);
  padding-top: 1.5rem;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--forest);
  margin-bottom: 0.8rem;
}
.pillar p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Meet Mark preview ---------- */
.meet {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 800px) {
  .meet { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
}
.meet-photo {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.meet h2 { margin-top: 0; }

/* ---------- Gallery band ---------- */
.gallery {
  background: var(--umber);
  color: #EBE0C9;
  padding: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.gallery-tile {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-tile { aspect-ratio: 16/10; }
}

/* ---------- Quote / CTA ---------- */
.cta-band {
  text-align: center;
  padding: 6rem 1.5rem;
}
.cta-band h2 {
  max-width: 22ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.cta-band .lede { margin: 0 auto 2rem; }

/* ---------- About page ---------- */
.about-hero {
  padding-top: 5rem;
  padding-bottom: 3rem;
}
.about-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 800px) {
  .about-hero-grid { grid-template-columns: 5fr 6fr; }
}
.about-portrait {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center top;
  border-radius: 2px;
}
.about-body {
  background: var(--bg-alt);
}
.about-body .container-narrow { padding-top: 4rem; padding-bottom: 4rem; }
.about-body h2 { margin-top: 2.5rem; }
.about-body h2:first-child { margin-top: 0; }

/* ---------- Priorities page ---------- */
.priority-hero { padding-top: 5rem; padding-bottom: 3rem; }
.priority-block {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (min-width: 800px) {
  .priority-block { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .priority-block.reverse .priority-image { order: 2; }
}
.priority-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.priority-block h2 {
  font-family: var(--font-display);
  color: var(--forest);
  margin-bottom: 1rem;
}
.priority-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--wheat);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Mystique block ---------- */
.mystique {
  background: var(--umber);
  color: #EBE0C9;
  text-align: center;
}
.mystique h2 { color: #F0E6D0; }
.mystique .lede { color: #D6C9A7; margin-left: auto; margin-right: auto; }
.mystique .eyebrow { color: var(--wheat); }

/* ---------- Footer ---------- */
.footer {
  background: var(--umber);
  color: #C6B99F;
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer a { color: var(--wheat); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(198,185,159,0.2);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wheat);
  font-weight: 500;
  margin: 0 0 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #F0E6D0;
  margin: 0 0 0.5rem;
}
.footer-fine {
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #8F826A;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }
