/* Indroam shared design system — tokens, nav, buttons, section headers, footer.
   Used by index.html and every page built from templates/artifact-template.html.
   Page-specific layout (hero, cards, content sections) stays in each page's own <style> block. */

:root {
  --ivory: #FDFAF6;
  --warm: #F7F2EB;
  --espresso: #1A1209;
  --gold: #C4955A;
  --muted: #8A7968;
  --border: #E8E0D5;
  --text-secondary: #6B5F52;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ivory); color: var(--espresso); font-family: 'DM Sans', sans-serif; margin: 0; }
.serif { font-family: 'Playfair Display', serif; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.75s ease forwards; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.28s; }
.d3 { animation-delay: 0.46s; }
.d4 { animation-delay: 0.62s; }
.d5 { animation-delay: 0.78s; }

/* Nav */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(253,250,246,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
#nav.scrolled { box-shadow: 0 4px 24px rgba(26,18,9,0.07); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--espresso); text-decoration: none; }
.logo-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; margin-left: 6px; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--espresso); }
.nav-cta { font-size: 13px; background: var(--espresso); color: var(--ivory); padding: 9px 20px; border-radius: 999px; text-decoration: none; transition: background 0.3s; white-space: nowrap; }
.nav-cta:hover { background: var(--gold); }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--espresso); padding: 4px; }
.mobile-menu { display: none; flex-direction: column; gap: 16px; padding: 16px 24px 20px; background: var(--ivory); border-top: 1px solid var(--border); }
.mobile-menu a { font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.mobile-menu.open { display: flex; }

/* Buttons */
.btn-dark { display: inline-block; padding: 13px 28px; border-radius: 999px; background: var(--espresso); color: var(--ivory); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: none; transition: background 0.3s, transform 0.2s; box-shadow: 0 8px 24px rgba(26,18,9,0.18); }
.btn-dark:hover { background: var(--gold); transform: translateY(-1px); }
.btn-outline { display: inline-block; padding: 13px 28px; border-radius: 999px; border: 1.5px solid var(--espresso); color: var(--espresso); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; background: none; transition: background 0.3s, color 0.3s; }
.btn-outline:hover { background: var(--espresso); color: var(--ivory); }

/* Section headers */
.section-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(30px, 4vw, 48px); font-weight: 600; color: var(--espresso); margin: 0 0 16px; }
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 480px; margin: 0 auto; }

/* Resource cards — used by the homepage Guides section and artifact-page Related section */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; gap: 24px; }
.resource-card { display: block; background: #fff; border-radius: 16px; border: 1px solid var(--border); padding: 24px; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; }
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,18,9,0.08); }
.resource-card h3 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; color: var(--espresso); margin: 0 0 6px; }
.resource-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* Footer */
footer { background: var(--espresso); padding: 48px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--ivory); }
.footer-tagline { font-size: 12px; color: #4A3F32; margin-top: 4px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: #6B5F52; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; color: #4A3F32; }

/* Responsive (shared chrome only — page-specific breakpoints live in each page) */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .resource-grid { grid-template-columns: 1fr; }
}
