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

:root {
  --navy:   #1a1a2e;
  --red:    #c4162a;
  --blue:   #0f3460;
  --gold:   #f5a623;
  --bg:     #f7f6f3;
  --white:  #ffffff;
  --border: #ddd;
  --text:   #222;
  --muted:  #666;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
}

html { font-size: 16px; scroll-behavior: smooth; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.70);
  font-family: sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.65rem 2rem;
  flex-shrink: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-left { flex: 1; }
.footer-right { text-align: right; flex-shrink: 0; }
#site-footer p { margin: 0.1rem 0; }
#site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
#site-footer a:hover { text-decoration: underline; }
#site-footer em { font-style: italic; }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 0.3rem; }
  .footer-right { text-align: left; }
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3 { font-family: Georgia, serif; line-height: 1.2; }
a { color: var(--blue); }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
header {
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 { font-size: 1.2rem; font-weight: normal; letter-spacing: 0.02em; line-height: 1; }
header h1 span { color: var(--gold); }

.byline {
  font-size: 0.8rem;
  font-family: sans-serif;
  color: #ccc;
  line-height: 1;
  margin: 0;
}
.byline a { color: #fff; text-decoration: none; }
.byline a:hover { text-decoration: underline; }

/* ── Header layout ────────────────────────────────────────────────────────── */
.hdr-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-back,
.header-tutorial {
  font-size: 0.8rem;
  font-family: sans-serif;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.header-back:hover,
.header-tutorial:hover { text-decoration: underline; }
