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

/* ── VARIABLES ── */
:root {
  --bg:     #FFFFFF;
  --text:   #1B3A52;
  --accent: #D4A853;
  --dark:   #0D2336;
  --steel:  #2E6B8A;
  --muted:  rgba(27,58,82,0.5);
  --rule:   rgba(27,58,82,0.15);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 64px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex; gap: 40px; list-style: none;
}

.nav-links a {
  font-family: 'Source Serif 4', serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--accent); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

nav.scrolled {
  background: rgba(27,58,82,0.97);
  border-bottom-color: rgba(27,58,82,0.2);
}

nav.scrolled .nav-logo,
nav.scrolled .nav-links a { color: rgba(255,255,255,0.85); }

nav.scrolled .nav-links a:hover { color: var(--accent); }

/* ── TYPOGRAPHY UTILITIES ── */
.section-label {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

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

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h2 em { font-style: italic; color: var(--accent); }

.body-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.82;
  margin-bottom: 18px;
}

.pull-quote {
  border-left: 2px solid var(--accent);
  padding-left: 28px;
  margin: 36px 0;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}

.link-primary {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.link-primary:hover { color: var(--accent); }

.link-secondary {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.55;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: opacity 0.2s, border-color 0.2s;
}
.link-secondary:hover { opacity: 1; border-color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--text);
  padding: 40px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}

.footer-links { display: flex; gap: 28px; list-style: none; }

.footer-links a {
  font-family: 'Source Serif 4', serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-motto {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-style: italic;
  color: rgba(255,255,255,0.18);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .section-divider { margin: 0 24px; }
  footer { flex-direction: column; gap: 24px; padding: 40px 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
