/* Brian Louden — Shared Design System for Subpages */
/* Typography: Playfair Display (display), Source Serif 4 (body), JetBrains Mono (labels) */

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

:root {
  --navy:       #162667;
  --navy-deep:  #0e1a47;
  --gold:       #F4C53D;
  --gold-dim:   #d4a82e;
  --blue:       #0081C6;
  --crimson:    #A60032;
  --cream:      #FAF7F0;
  --cream-dark: #F0EBE0;
  --ink:        #1a1a1a;
  --ink-soft:   #3d3d3d;
  --ink-light:  #6b6b6b;
  --white:      #ffffff;
  --rule:       rgba(22, 38, 103, 0.12);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* Layout */
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-wide {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  background: var(--navy);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.site-brand:hover { color: var(--gold); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════
   PAGE CONTENT (Terms, Privacy)
   ═══════════════════════════════════════════ */
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin: 3rem 0 0.5rem;
  color: var(--navy);
}
.page-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 2rem;
}
.page-content {
  padding-bottom: 3rem;
}
.page-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
}
.page-content p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.page-content ul, .page-content ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--ink-soft);
}
.page-content li { margin-bottom: 0.5rem; }

/* ═══════════════════════════════════════════
   404 ERROR PAGE
   ═══════════════════════════════════════════ */
.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
}
.error-code {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-message {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.error-page a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.error-page a:hover { color: var(--navy); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding: 1.75rem 0;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  margin-top: 3rem;
}
.site-footer .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-links a:hover { color: var(--gold); }
.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  width: 100%;
  margin-top: 0.35rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .page-title { font-size: 1.5rem; margin-top: 2rem; }
  .site-footer .wrap-wide { flex-direction: column; text-align: center; }
}
