:root {
  --cream: #F2EADE;
  --cream-deep: #E8DCC6;
  --paper: #FAF5EC;
  --ink: #1F1B16;
  --ink-soft: #4A4239;
  --forest: #2E4A3A;
  --forest-deep: #1F3527;
  --terracotta: #B8593E;
  --terracotta-soft: #D78A72;
  --rule: rgba(31, 27, 22, 0.12);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(48px, 8vw, 128px); }
h2 { font-size: clamp(36px, 5.5vw, 80px); }
h3 { font-size: clamp(24px, 2.6vw, 36px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-variation-settings: 'opsz' 36; }

p { margin: 0 0 1em; max-width: 60ch; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-soft);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 250ms ease, transform 250ms ease, color 250ms ease;
  cursor: pointer;
  border: none;
}
.btn::after {
  content: "→";
  font-size: 16px;
  transition: transform 250ms ease;
}
.btn:hover {
  background: var(--forest-deep);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn:hover::after { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: transparent;
  transition: background 350ms ease, backdrop-filter 350ms ease,
              transform 350ms cubic-bezier(0.7, 0, 0.3, 1),
              opacity 350ms ease;
}

.nav__logo { display: flex; align-items: center; }
.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 6px 2px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 250ms ease;
}
.nav__links a:hover::after { width: 100%; }

.nav.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.nav.is-solid {
  background: rgba(242, 234, 222, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}

/* On inner pages, nav is solid by default */
.nav--inner {
  background: rgba(242, 234, 222, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}

/* ---------- Post-hero wrapper ---------- */
/* Sits z-above the fixed video so when scroll passes the hero,
   home content covers the video without modifying hero markup. */
.post-hero {
  position: relative;
  z-index: 5;
  background: var(--cream);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 5;
  background: var(--ink);
  color: var(--cream);
  padding: 80px var(--gutter) 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.01em;
}
.footer__brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin-top: 8px;
}
.footer h4 {
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer a:hover { color: var(--terracotta-soft); }
.footer__base {
  max-width: var(--max-w);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 234, 222, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(242, 234, 222, 0.6);
}

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__base { flex-direction: column; gap: 8px; }
  .nav { padding: 16px 20px; }
  .nav__logo img { height: 28px; }
  .nav__links { gap: 18px; font-size: 12px; }
}

/* ---------- Page-level layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.divider {
  height: 1px;
  background: var(--rule);
  margin: 0;
}
