/* ─── Self-hosted fonts ─────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter.woff2') format('woff2-variations'),
       url('/assets/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond.woff2') format('woff2-variations'),
       url('/assets/fonts/eb-garamond.woff2') format('woff2');
}

/* ─── Reset / base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: #2f3e4f; }
a:hover { opacity: 0.75; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.container.narrow > * { max-width: 650px; }
.container.narrow > .divider { max-width: 1020px; }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}
.logo-img {
  display: block;
  height: 60px;
  width: auto;
}

.primary-nav {
  display: flex;
  gap: 32px;
}
.primary-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #2f3e4f;
  text-decoration: none;
}

/* hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2f3e4f;
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 60px;
}
.hero h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  color: #2f3e4f;
  margin: 0 0 28px;
}
.hero p { margin: 0 0 16px; }

/* ─── Positioning ───────────────────────────────────────────── */
.positioning {
  padding: 40px 0 60px;
}
.positioning p { margin: 0 0 16px; }

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 40px auto;
  max-width: 1020px;
}

/* ─── Two-column ────────────────────────────────────────────── */
.two-col {
  padding: 40px 0 20px;
}
.two-col .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.two-col h2,
.placeholder h2,
.hero h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2f3e4f;
  margin: 32px 0 16px;
}
.hero ul { padding-left: 22px; margin: 0 0 16px; }
.hero ul li { margin-bottom: 8px; }
.two-col ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}
.two-col li { margin-bottom: 12px; }
.boundary {
  font-size: 14px;
  color: #666;
  margin: 40px 0 0;
}

/* ─── Anchor sections (with constrained top divider) ────────── */
.placeholder {
  padding: 60px 0;
}
.placeholder > .container::before {
  content: '';
  display: block;
  border-top: 1px solid #e5e5e5;
  margin: 0 0 60px;
}
.cta + .placeholder > .container::before { display: none; }
.placeholder p { margin: 0 0 16px; }
.placeholder h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2f3e4f;
  margin: 40px 0 10px;
}
.placeholder ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 16px;
}
.placeholder li { margin-bottom: 8px; }

/* ─── CTA block ─────────────────────────────────────────────── */
.cta {
  background: #f4f1ec;
  padding: 48px 0;
  text-align: center;
  margin-top: 20px;
}
.cta p {
  font-size: 22px;
  font-weight: 500;
  color: #2f3e4f;
  margin: 0;
  line-height: 1.4;
}
.cta a {
  color: #2f3e4f;
  font-weight: 600;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #f7f7f7;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 30px;
}
.site-footer a {
  text-decoration: none;
  color: #2f3e4f;
}
.footer-nav { display: flex; gap: 24px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .container { padding: 0 32px; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 767px) {
  .container { padding: 0 24px; }

  .header-inner { height: 72px; }
  .logo-img { height: 48px; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.open { max-height: 400px; }
  .primary-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
  }
  .primary-nav a:last-child { border-bottom: 0; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 32px; }
  .positioning { padding: 24px 0 40px; }

  .two-col .cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .placeholder { padding: 40px 0; }
  .placeholder:first-of-type { margin-top: 40px; }

  .cta { padding: 36px 0; }
  .cta p { font-size: 18px; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
