/* ═══════════════════════════════════════════════════════════════
   interluud — Shared Stylesheet
   Single source of truth for design tokens and shared components.
   Every page links this file. Page-specific styles live in each
   page's own <style> block.
═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */

:root {
  /* Palette */
  --cream:      oklch(95.5% 0.022 82);   /* page background */
  --parchment:  oklch(94%   0.038 213);  /* sky blue surface: cards, highlights — #caf0f8 */
  --ink:        oklch(22%   0.075 135);  /* dark sections, button/footer backgrounds — #1a4301 deep forest green */
  --ink-soft:   oklch(35%   0.09  65);   /* body text — deep warm brown */
  --ink-faint:  oklch(55%   0.055 70);   /* captions, muted labels */
  --sienna:     oklch(35%   0.09  65);   /* accent labels on light backgrounds */
  --azure:      oklch(68%   0.15  214);  /* heading color — #00b4d8 */
  --sage:       oklch(76%   0.065 143);  /* accent green — #A5BD97 */
  --sky:        oklch(94%   0.038 213);  /* light sky blue — #caf0f8 */
  --coral:      oklch(71%   0.11  22);   /* kept for backward compat */
  --white:      oklch(99%   0.005 88);   /* high-contrast white */
  --border:     oklch(87%   0.018 85);   /* light borders */
  --border-dk:  oklch(32%   0.055 135);  /* borders inside dark sections */

  /* Typography */
  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --pad: clamp(1.5rem, 5.5vw, 6.5rem);
}


/* ── HEADING COLOR ──────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 { color: var(--azure); }


/* ── RESET ──────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* ── NAVIGATION ─────────────────────────────────────────────── */

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.4rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: oklch(95.5% 0.022 82 / 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.65; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.09em !important;
  color: var(--white) !important;
  background: var(--ink);
  padding: 0.6rem 1.4rem;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--sienna) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle-bar,
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s, opacity 0.22s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ── BUTTONS ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: background 0.22s, border-color 0.22s;
}

.btn:hover { background: var(--sienna); border-color: var(--sienna); }

.btn svg { transition: transform 0.22s; }
.btn:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}


/* ── TEXT LINK ──────────────────────────────────────────────── */

.text-link {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sienna);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
  align-self: start;
}

.text-link:hover { border-color: var(--sienna); }


/* ── SECTION TAG ────────────────────────────────────────────── */

.section-tag {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  padding-top: 0.6rem;
}


/* ── FOOTER ─────────────────────────────────────────────────── */

footer {
  background: var(--ink);
  padding: clamp(4rem, 8vw, 8rem) var(--pad) 2.5rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-dk);
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: oklch(91% 0.018 88);
  margin-bottom: 0.85rem;
}

.footer-tagline {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: oklch(62% 0.018 70);
  max-width: 30ch;
}

.footer-col h4 {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(70% 0.018 70);
  margin-bottom: 1.4rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.86rem;
  font-weight: 300;
  color: oklch(62% 0.018 70);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: oklch(85% 0.018 88); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  font-size: 0.76rem;
  font-weight: 300;
  color: oklch(58% 0.016 70);
}

.footer-mark {
  width: 1.4rem;
  height: 1.4rem;
  background: var(--sienna);
}


/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }


/* ── ACCESSIBILITY ──────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--pad);
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 2px solid var(--sienna);
  outline-offset: 3px;
}


/* ── RESPONSIVE: MOBILE NAV ─────────────────────────────────── */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--pad) 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    list-style: none;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.9rem; }

  .footer-main { grid-template-columns: 1fr; gap: 3rem; }
}


/* ── REDUCED MOTION ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
