/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg-deep: #0a0e14;
  --bg-surface: #121820;
  --bg-elevated: #1a2230;
  --bg-glass: rgba(18, 24, 32, 0.72);

  --text-primary: #ede8df;
  --text-secondary: #a8a29a;
  --text-muted: #6b7280;

  --accent-emerald: #2d8a62;
  --accent-emerald-bright: #3cb87d;
  --accent-gold: #c9a84c;
  --accent-gold-soft: #d4b86a;
  --accent-copper: #b8734a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(45, 138, 98, 0.35);

  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(45, 138, 98, 0.12);

  --nav-height: 72px;
  --max-width: 1120px;
  --content-width: 720px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(45, 138, 98, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(26, 34, 48, 0.9) 0%, var(--bg-deep) 70%),
    var(--bg-deep);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-emerald-bright);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-gold-soft);
}

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent-emerald);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

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

/* ── Header & navigation ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--text-primary);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #1a5c42 100%);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 12px rgba(45, 138, 98, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  font-weight: 500;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-emerald-bright);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

/* ── Main layout ───────────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Hero (homepage) ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.hero-eyebrow::after {
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-gold-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-emerald-bright);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Page header (inner pages) ─────────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  color: var(--text-primary);
}

.page-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent-gold-soft);
  margin: 0;
}

.page-meta {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: var(--content-width);
}

/* ── Content sections ────────────────────────────────────────── */
.content-section {
  max-width: var(--content-width);
  margin: 0 auto 2.5rem;
}

.content-section p {
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  text-align: left;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-emerald);
  padding-left: 1.25rem;
  margin-bottom: 2rem !important;
}

/* Drop cap — modern treatment */
.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 0.85;
  padding: 0.05em 0.15em 0 0;
  color: var(--accent-gold);
  font-weight: 600;
}

/* ── Timeline cards (homepage history) ─────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem 0;
}

.timeline-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  padding-top: 0.15rem;
  min-width: 4rem;
}

.timeline-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ── Explore grid (homepage links) ─────────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.section-intro {
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 520px;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.explore-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.explore-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.explore-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}

.explore-card:hover::before {
  opacity: 1;
}

.explore-card-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-emerald-bright);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.explore-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.explore-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  flex-grow: 1;
}

.explore-card-arrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-emerald-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Motto block ─────────────────────────────────────────────── */
.motto-block {
  text-align: center;
  padding: 3rem 2rem;
  margin: 0 auto 2.5rem;
  max-width: var(--content-width);
  background: linear-gradient(135deg, rgba(45, 138, 98, 0.12) 0%, rgba(201, 168, 76, 0.08) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  position: relative;
}

.motto-block::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-emerald);
  opacity: 0.25;
}

.motto-latin {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.motto-english {
  font-size: 1rem;
  color: var(--accent-gold-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Source / attribution ────────────────────────────────────── */
.source,
.attribution {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.attribution a {
  color: var(--accent-emerald-bright);
}

/* ── Contact page ────────────────────────────────────────────── */
.contact-panel {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-panel p {
  color: var(--text-secondary);
  margin: 0 0 2rem;
  font-size: 1.0625rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #1f6b4a 100%);
  color: #fff !important;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(45, 138, 98, 0.35);
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(45, 138, 98, 0.45);
  color: #fff !important;
}

.contact-email svg {
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 20, 0.6);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
}

.footer-motto em {
  color: var(--accent-gold-soft);
  font-style: normal;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.125rem;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
  }

  .logo-subtitle {
    display: none;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .timeline-year {
    font-size: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .dropcap::first-letter {
    font-size: 3rem;
  }
}
