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

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:          #0B1720;
  --bg-raised:   #101f2e;
  --bg-card:     #142030;
  --bg-card-alt: #0f1c28;
  --navy:        #1B3A5C;
  --navy-light:  #234e7a;

  --gold:        #C5973A;
  --gold-light:  #dbb968;
  --gold-subtle: rgba(197, 151, 58, 0.15);

  --text:        #EDE5D4;
  --text-muted:  #8fa5bb;
  --text-dim:    #567;

  --rule:        rgba(197, 151, 58, 0.25);
  --rule-dim:    rgba(255,255,255,0.07);

  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Menlo', 'Courier New', monospace;

  --radius:  4px;
  --radius-lg: 8px;
  --max-w:   1100px;
  --max-w-prose: 680px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 112.5%; /* 18px base — scales all rem values */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

p { max-width: var(--max-w-prose); }

/* ─── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

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

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin-block: 0;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.875rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0B1720;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(197,151,58,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-subtle);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--rule-dim);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* ─── Section spacing ────────────────────────────────────────── */
.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding-inline: 1.25rem; }
  .section { padding-block: 3.5rem; }
}

/* ─── Nav ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 23, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-dim);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.wordmark .mark {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  transform: translateY(-0.1em);
  user-select: none;
}
.wordmark .name {
  font-family: 'Cinzel', serif;
  font-size: 1.575rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}
.site-nav nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-link {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.15s;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-cta {
  margin-left: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.2s;
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--rule-dim);
    padding: 1rem 1.25rem 1.5rem;
  }
  .site-nav nav.open { display: block; }
  .site-nav nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--rule-dim);
  background: var(--bg-raised);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3rem;
  flex-wrap: wrap;
}
.footer-brand .tagline {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}
.site-footer .wordmark .mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  transform: none;
  user-select: auto;
}
.site-footer .wordmark .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.footer-nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-col ul { list-style: none; margin-top: 0.5rem; }
.footer-col li + li { margin-top: 0.375rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.col-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
}
.footer-meta p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  max-width: none;
}
.quod {
  font-size: 1.25rem;
  color: var(--rule);
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-nav { gap: 2rem; }
}
