:root {
  --cream: #F5F1E8;
  --cream-soft: #EFEADC;
  --cream-card: #FBF8F0;
  --ink: #1F1F1F;
  --ink-soft: #3A3A38;
  --muted: #888780;
  --muted-soft: #B5B1A6;
  --coral: #F9B298;
  --coral-deep: #EFA08A;
  --coral-rich: #D96048;
  --coral-glow: color-mix(in srgb, var(--coral) 25%, transparent);
  --coral-ring: color-mix(in srgb, var(--coral) 40%, transparent);
  --rule: rgba(31, 31, 31, 0.12);
  --shadow: rgba(31, 31, 31, 0.06);

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 32px;
}
.nav-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--muted);
}
.nav-links a.is-active {
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(transparent 70%, var(--coral) 70%, var(--coral) 95%, transparent 95%);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-cta {
  background: var(--ink);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--coral);
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name actions"
      "menu menu";
    padding: 14px 24px;
    gap: 0;
  }
  .nav-name { grid-area: name; }
  .nav-actions {
    grid-area: actions;
  }
  .nav-toggle { display: flex; }
  .nav-links {
    grid-area: menu;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    padding: 0 0;
  }
  .nav-links a {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    font-size: 16px;
  }
  nav.is-open .nav-links {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px 0 4px;
  }
}

/* ===== Buttons ===== */
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--coral);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-arrow {
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ===== Section dividers ===== */
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--muted);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}
.section-lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 56px;
}

/* ===== Footer ===== */
footer {
  padding: 40px 0 64px;
  border-top: 1px solid var(--rule);
  background: var(--cream);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.footer-coda {
  font-style: italic;
  font-family: var(--serif);
}

/* ===== Password gate ===== */
#password-gate {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: opacity 0.4s ease;
}
.gate-inner {
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.gate-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}
.gate-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gate-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral-deep);
  box-shadow: 0 0 0 4px var(--coral-glow);
}
.gate-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.gate-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 32px;
}
#gate-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
#gate-input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
#gate-input:focus {
  border-color: var(--coral-deep);
  box-shadow: 0 0 0 3px var(--coral-ring);
}
#gate-input:-webkit-autofill,
#gate-input:-webkit-autofill:hover,
#gate-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--cream) inset;
  -webkit-text-fill-color: var(--ink);
}
#gate-submit {
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
#gate-submit:hover {
  background: var(--coral-deep);
  color: var(--ink);
}
#gate-error {
  color: #B73B3B;
  font-size: 14px;
  margin-bottom: 14px;
  min-height: 20px;
}
.gate-help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}
.gate-help a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(transparent 70%, var(--coral) 70%, var(--coral) 95%, transparent 95%);
  padding: 0 2px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.gate-help a:hover {
  background: var(--coral);
}
@media (max-width: 720px) {
  #gate-form {
    flex-direction: column;
    max-width: none;
    width: 100%;
  }
  #gate-submit {
    width: 100%;
  }
}

::selection {
  background: var(--coral);
  color: var(--ink);
}
