/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #F7F4EF;
  --warm-white: #FDFCFA;
  --charcoal: #1C1917;
  --stone:    #6B6560;
  --rule:     #E2DDD8;
  --amber:    #C47C2B;
  --amber-lt: #F0E4CE;
  --sage:     #8FAF8C;
  --sage-lt:  #EBF2EA;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--charcoal);
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--sm { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section--sage  { background: var(--sage-lt); }
.section--amber { background: var(--amber-lt); }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--amber); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  text-decoration: none;
  color: var(--stone);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--charcoal); background: var(--cream); }
.nav-links a.active { color: var(--charcoal); font-weight: 600; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  line-height: 1;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary   { background: var(--amber); color: #fff; }
.btn-outline   { background: transparent; color: var(--charcoal); border: 1.5px solid var(--rule); }
.btn-portal    { background: var(--charcoal); color: #fff; font-size: 13px; padding: 9px 18px; border-radius: 8px; }

/* ── Chapter divider ─────────────────────────────────────── */
/* Signature element: a large italic serif phrase that breaks sections */
.chapter {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.chapter-phrase {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--charcoal);
  letter-spacing: -0.02em;
  opacity: 0.18;
  user-select: none;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: #9a9490;
  padding: 48px 0 32px;
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { text-decoration: none; font-size: 14px; color: #9a9490; transition: color 0.15s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  max-width: 1060px;
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid #2e2b28;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--amber); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
