/* Kalos: cream autumn theme, shared by every page */
:root {
  --cream: #F3ECDF;
  --paper: #F8F2E7;
  --ink: #2B1F17;
  --ink-soft: rgba(43, 31, 23, 0.78);
  --ink-line: rgba(43, 31, 23, 0.35);
  --ember: #C2571A;
  --display: "Redaction 35", Georgia, serif;
  --text: "Redaction", Georgia, serif;
}

html, body { margin: 0; padding: 0; width: 100%; min-height: 100%; }
html, body {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(120, 84, 52, 0.10) 1px, transparent 1.2px);
  background-size: 10px 10px;
}
body { color: var(--ink); font-family: var(--text); }
body.home { height: 100%; overflow: hidden; }
#stars { position: fixed; inset: 0; display: block; pointer-events: none; }

/* Top bar: FAQ top-left, Staff top-right; the current page's slot becomes Home */
.nav {
  position: fixed; top: 24px; left: 24px; right: 24px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start;
  margin: 0; padding: 0; list-style: none;
}
.nav a, .block {
  display: block; width: 132px; padding: 11px 0 10px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 80ms steps(2), box-shadow 80ms steps(2), background-color 80ms steps(2), color 80ms steps(2);
}
.nav a:hover, .nav a:focus-visible, .block:hover, .block:focus-visible {
  background: var(--ember); color: var(--paper); outline: none;
  transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink);
}

/* Home */
.hero {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 16px 9vh; pointer-events: none;
}
.wordmark { margin: 0; font-size: clamp(64px, 16vw, 220px); line-height: 1; }
.tagline {
  margin: clamp(14px, 2.2vw, 28px) 0 0; text-align: center;
  font-family: var(--text); font-weight: 400; font-size: clamp(15px, 1.7vw, 22px);
  letter-spacing: 0.08em; color: rgba(43, 31, 23, 0.62);
}
.wordmark img { display: block; width: 3.605em; max-width: 100%; height: auto; image-rendering: pixelated; }
.contact {
  position: fixed; left: 0; right: 0; bottom: 32px; z-index: 1;
  margin: 0; padding: 0 16px; text-align: center;
  font-family: var(--display); font-size: 16.8px; letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.contact a, .panel a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.contact a:hover, .panel a:hover { border-bottom-color: var(--ink); }

/* Inner pages */
.page { position: relative; z-index: 1; padding: 128px 24px 64px; }
.panel {
  max-width: 680px; margin: 0 auto; padding: 36px 40px 32px;
  background: rgba(248, 242, 231, 0.94); border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.panel h1 {
  margin: 0 0 28px; font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 8vw, 64px); line-height: 1; letter-spacing: 0.06em; text-transform: uppercase;
}
.panel h2 { margin: 28px 0 8px; font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: 0.02em; }
.panel p { margin: 0 0 12px; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.panel .rule { height: 2px; margin: 28px 0 0; background: var(--ink); opacity: 0.15; border: 0; }
.panel .foot { margin: 20px 0 0; font-family: var(--display); font-size: 16px; }

/* 404 */
.panel-404 { max-width: 420px; text-align: center; }
.panel-404 h1 { font-size: clamp(64px, 16vw, 120px); margin-bottom: 12px; }
.panel-404 .actions { margin: 28px 0 4px; }
.panel .block { display: inline-block; border-bottom: 2px solid var(--ink); }

@media (max-width: 520px) {
  .nav { top: 16px; left: 16px; right: 16px; }
  .nav a { width: 112px; font-size: 12px; letter-spacing: 0.12em; padding: 9px 0 8px; box-shadow: 3px 3px 0 var(--ink); }
  .page { padding: 96px 16px 48px; }
  .panel { padding: 28px 22px 24px; box-shadow: 4px 4px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .nav a, .block { transition: none; }
}
