:root {
  --fairway: #1a3329;
  --fairway-deep: #0f1f1a;
  --cream: #f4efe6;
  --cream-warm: #ebe3d3;
  --bone: #e8dfc9;
  --ink: #0a0a0a;
  --gold: #b8975a;
  --gold-deep: #8a6e3d;
  --rule: rgba(10,10,10,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Fraunces', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(244,239,230,0.78);
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-style: italic;
  text-decoration: none;
  color: var(--ink);
}
.logo::after {
  content: '·';
  margin-left: 8px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--gold-deep); }

.nav-links a.active {
  color: var(--gold-deep);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--cream) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.3s;
}

/* PAGE HEADERS */
.page-header {
  padding: 160px 48px 80px;
  border-bottom: 1px solid var(--rule);
}

.page-header .mono.eyebrow {
  color: var(--gold-deep);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease-out;
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 1100px;
  margin-bottom: 32px;
  animation: fadeUp 1s ease-out 0.1s both;
}

.page-header h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--fairway);
}

.page-header .deck {
  font-size: 1.3rem;
  line-height: 1.5;
  color: rgba(10,10,10,0.7);
  max-width: 700px;
  animation: fadeUp 1s ease-out 0.25s both;
}

/* SECTION TAG */
.section-tag {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gold-deep);
  margin-bottom: 40px;
}
.section-tag .dash {
  flex: 0 0 80px;
  height: 1px;
  background: var(--gold);
}

/* GENERIC SECTION */
.section {
  padding: 100px 48px;
}

.section.dark {
  background: var(--fairway-deep);
  color: var(--cream);
}

.section.dark .section-tag { color: var(--gold); }
.section.dark .section-tag .dash { background: var(--gold); }

.section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  max-width: 1000px;
}

.section h2 em {
  font-style: italic;
  color: var(--fairway);
  font-weight: 400;
}
.section.dark h2 em { color: var(--gold); }

.section .lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: rgba(10,10,10,0.72);
  max-width: 720px;
  margin-bottom: 60px;
}

.section.dark .lead {
  color: rgba(244,239,230,0.78);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: all 0.25s ease;
  background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--cream); }

.btn.primary { background: var(--fairway); color: var(--cream); border-color: var(--fairway); }
.btn.primary:hover { background: var(--fairway-deep); border-color: var(--fairway-deep); }

.btn.light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn .arr { font-size: 1.1rem; }

/* FOOTER */
footer {
  padding: 60px 48px 40px;
  border-top: 1px solid var(--rule);
  color: rgba(10,10,10,0.55);
  background: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { font-size: 1.6rem; }
.footer-brand p {
  margin-top: 16px;
  color: rgba(10,10,10,0.55);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: rgba(10,10,10,0.6);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-deep); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active::after { display: none; }
  .nav-cta { border: 1px solid var(--ink); margin-top: 8px; padding: 14px 0; text-align: center; }

  .nav-toggle { display: block; }

  .page-header { padding: 120px 24px 60px; }
  .section { padding: 72px 24px; }

  footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
