/* Shared homepage reset, navigation, and footer. */
:root {
  --bg: #f3efe7;
  --bg-deep: #ece7dc;
  --ink: #26231f;
  --ink-soft: #6b655c;
  --oxblood: #6e1423;
  --signal: #c2452d;
  --steel: #a8a49c;
  --line: #d8d2c6;
  --forest-deep: #101b14;
  --future-deep: #0b0e1a;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:
    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

/* smooth scrolling is applied per-click in JS so browser scroll
   restoration and programmatic jumps stay instant */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--oxblood);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font: 600 0.85rem/1 var(--font-body);
  transition: top 160ms ease;
}
.skip-link:focus-visible {
  top: 0;
}

/* ============ CTAs ============ */

.cta {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font: 600 0.85rem/1 var(--font-body);
  letter-spacing: 0.02em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}
.cta:hover {
  transform: translateY(-1px);
}
.cta:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.cta-primary {
  background: var(--oxblood);
  border-color: var(--oxblood);
}
.cta-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.cta-outline:hover {
  background: rgba(38, 35, 31, 0.06);
}
.cta-quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.cta-quiet:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.cta-outline-light {
  background: transparent;
  color: #e8e6f2;
  border-color: rgba(232, 230, 242, 0.5);
}
.cta-ghost-light {
  background: transparent;
  color: #9a97ad;
  border-color: transparent;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--oxblood);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--oxblood) 35%, transparent);
  padding-bottom: 1px;
}
.text-link:hover {
  border-bottom-color: var(--oxblood);
}

/* ============ Header (solid throughout — the page starts editorial) ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 2rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img {
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--oxblood);
}

.header-cta {
  padding: 0.65rem 1.1rem;
  font-size: 0.78rem;
}

.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  top: 3.6rem;
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.5rem 1.4rem;
  box-shadow: 0 18px 30px rgba(38, 35, 31, 0.12);
}
.mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
}
.mobile-menu .cta {
  justify-content: center;
  margin-top: 0.5rem;
}
.mobile-menu[hidden] {
  display: none;
}

/* ============ Act One layout primitives ============ */

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.1rem;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  margin: 0;
}
.act-one h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 21em;
}

/* Act One sections must be opaque: the fixed forest art lives behind
   the page and may be partially faded in near the threshold. */
.act-one {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.site-footer {
  background: #05070f;
  color: #8f93ad;
  padding: 2.6rem 2rem 2rem;
}
.f-id {
  text-align: center;
  margin-bottom: 1.2rem;
}
.f-id strong {
  display: block;
  color: #e8e6f2;
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.05rem;
}
.f-id span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f93ad;
}
.f-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.f-nav a {
  color: #b9bdd8;
  text-decoration: none;
  font-size: 0.82rem;
}
.f-nav a:hover {
  color: #fff;
}
.f-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
  font-size: 0.62rem;
}
.f-credit a {
  color: inherit;
}
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .f-credit {
    justify-content: center;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
