/* =============================================================
   UMZI — Shared Stylesheet
   Imported by all pages. Page-specific styles remain inline.
   ============================================================= */

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=DM+Sans:wght@300;400;500&display=swap');

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

/* DESIGN TOKENS */
:root {
  --cream: #F5F0E8;
  --ink: #1A1612;
  --terracotta: #C4572A;
  --terracotta-light: #E8745A;
  --gold: #D4A843;
  --sage: #7A9E7E;
  --sage-light: #B8D4BC;
  --warm-grey: #8C7B6E;
  --card-bg: #FDFAF4;
  --border: rgba(26,22,18,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* LINKS */
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,240,232,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo span { color: var(--terracotta); }

/* Nav CTA — filled (index page) */
.nav-cta {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.6rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.nav-cta:hover { background: var(--terracotta); color: var(--cream); transform: translateY(-1px); text-decoration: none; }

/* Nav back — outline (secondary pages) */
.nav-back {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0.6rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.nav-back:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); text-decoration: none; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  gap: 0.75rem;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-logo span { color: var(--terracotta); }

.footer-note {
  font-size: 0.8rem;
  color: var(--warm-grey);
}

/* ACCESSIBILITY */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--terracotta);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; }

*:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* RESPONSIVE — shared breakpoints */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
}

@media (max-width: 600px) {
  nav { padding: 1rem 1.5rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}
