/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --surface: #f0efed;
  --border: rgba(0,0,0,0.08);
  --text: #1a1a1a;
  --muted: #555550;
  --accent: #8b6914;
  --accent-dim: rgba(139,105,20,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Grain overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.15;
}

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,248,0.9);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---- Mobile nav toggle ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Page header & body (subpages) ---- */
.page-header {
  padding: 180px 60px 80px;
  max-width: 720px;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 20px;
}
.page-title em {
  font-style: italic;
  color: var(--accent);
}

.page-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-body {
  padding: 0 60px 120px;
  max-width: 720px;
}
.page-body p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.85;
  margin-bottom: 20px;
}
.page-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 48px 0 16px;
}
.page-body h2:first-of-type { margin-top: 0; }
.page-body ul {
  list-style: none;
  margin-bottom: 20px;
}
.page-body ul li {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.85;
  padding-left: 20px;
  position: relative;
}
.page-body ul li::before {
  content: '\2014';
  color: var(--accent);
  position: absolute;
  left: 0;
}
.page-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(139,105,20,0.2);
}
.page-body a:hover { border-color: var(--accent); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  opacity: 0.5;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  body::before { display: none; }
  nav { padding: 24px 28px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250,250,248,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 28px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 0.85rem;
  }
  .nav-toggle { display: block; }
  .page-header, .page-body { padding-left: 28px; padding-right: 28px; }
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 28px;
  }
  .footer-links { justify-content: center; }
}
