@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --bg:       #332C24;
  --bg-card:  #3d352b;
  --ink:      #E8D5A3;
  --ink-mid:  #C4AA80;
  --ink-faded:#9A8468;
  --gold:     #C9A96E;
  --gold-light:#E8D5A3;
  --border:   rgba(184,134,11,0.2);
  --border-strong: rgba(184,134,11,0.35);
  --red:      #B83C3C;
}

html { font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Courier Prime', 'Courier New', monospace;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.page-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
}

/* ── Site header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
  margin-bottom: 40px;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.brand-name .i { color: var(--gold); }

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 13px;
  color: var(--ink-faded);
  letter-spacing: 0.5px;
}

.site-nav a:hover,
.site-nav a.active { color: var(--gold); text-decoration: none; }

/* ── Hero (index only) ── */
.hero {
  text-align: center;
  padding: 48px 0 56px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-glyph {
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero h1 .i { color: var(--gold); }

.hero-tagline {
  font-style: italic;
  color: var(--ink-faded);
  font-size: 15px;
  margin-bottom: 32px;
}

.policy-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.policy-pill {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-mid);
  transition: border-color 0.15s, color 0.15s;
}

.policy-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

/* ── Policy pages ── */
.policy-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.policy-meta {
  font-size: 12px;
  color: var(--ink-faded);
  letter-spacing: 0.5px;
}

article h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 32px 0 10px;
}

article h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mid);
  margin: 20px 0 6px;
}

article p {
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 14px;
  line-height: 1.75;
}

article ul, article ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

article li {
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 6px;
  line-height: 1.7;
}

article a { color: var(--gold); }

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--ink-mid);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 56px;
}

.site-footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 13px;
  color: var(--ink-faded);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--ink-faded);
}

.footer-links a:hover { color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .site-header .inner { flex-direction: column; align-items: flex-start; }
  .site-footer .inner { flex-direction: column; }
}
