/* ============================================
   AS PUBLISHED — Global Stylesheet
   FROM THE SOURCE · NO SPIN
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Dancing+Script:wght@600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Outfit:wght@300;400;500&display=swap');

/* ---- TOKENS ---- */
:root {
  --cream:      #EEECE8;
  --cream-dark: #E4E2DC;
  --ink:        #1A1A18;
  --ink-mid:    #3A3A36;
  --ink-light:  #6B6B64;
  --rule:       #C8C6BE;
  --white:      #FAF9F7;

  --serif:      'Playfair Display', Georgia, serif;
  --cursive:    'Dancing Script', cursive;
  --body:       'EB Garamond', Georgia, serif;
  --ui:         'Outfit', system-ui, sans-serif;

  --max:        1100px;
  --gap:        2rem;
}

/* ---- 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(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- NAVIGATION ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--gap);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(26,26,24,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-stamp {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
}

.nav-stamp-ap {
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-stamp-ring {
  position: absolute;
  inset: 3px;
  border: 0.5px solid var(--ink);
  border-radius: 50%;
  opacity: 0.4;
}

.nav-wordmark {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}

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

.nav-links a {
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
  position: relative;
}

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

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

.nav-listen {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 7px 18px;
  transition: background 0.2s, color 0.2s;
}

.nav-listen:hover {
  background: var(--ink);
  color: var(--cream);
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--ui);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

/* ---- SHARED PAGE WRAPPER ---- */
.page-body {
  padding-top: 64px;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 4rem var(--gap) 2rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.footer-col h4 {
  font-family: var(--ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink-mid);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--ink); }

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.footer-socials a {
  font-family: var(--ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  transition: all 0.2s;
}

.footer-socials a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
}

/* ---- UTILITIES ---- */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

.section-label {
  font-family: var(--ui);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1rem;
  display: block;
}

.btn-primary {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 32px;
  transition: background 0.2s, color 0.2s;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn-outline {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  padding: 14px 32px;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ============================================
   SCROLL-TRIGGERED FADE-IN SYSTEM
   Add class "fade-up", "fade-left", "fade-right", or "fade-in"
   to any element. They animate in when they enter the viewport.
   Use data-delay="100" through "500" to stagger siblings.
   ============================================ */

.fade-up,
.fade-left,
.fade-right,
.fade-in {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up    { transform: translateY(32px); }
.fade-left  { transform: translateX(-28px); }
.fade-right { transform: translateX(28px); }
.fade-in    { transform: none; }

/* Delay variants */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* Triggered state */
.fade-up.in-view,
.fade-left.in-view,
.fade-right.in-view,
.fade-in.in-view {
  opacity: 1;
  transform: none;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right, .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links, .nav-listen { display: none; }
  .nav-hamburger { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
