:root {
  --bg-void: #09090b;
  --bg-terminal: #11100c;
  --border-terminal: #2d2613;
  --amber-base: #ffb000;
  --amber-dim: #a67300;
  --amber-bright: #ffd466;
  --parchment: #d4cfc4;
  --parchment-muted: #8c877b;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-title: 'Cinzel', serif;
}

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

body {
  background-color: var(--bg-void);
  color: var(--parchment);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

/* Ambient Scanline Overlay - Subtle / High Legibility */
body::before {
  content: " ";
  position: fixed;
  top: 0; 
  left: 0; 
  bottom: 0; 
  right: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 65%, 
    rgba(0, 0, 0, 0.15) 35%
  );
  background-size: 100% 6px;
  pointer-events: none;
  z-index: 100;
}

::selection {
  background: var(--amber-base);
  color: var(--bg-void);
}

.container {
  width: 100%;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

/* Terminal Frame */
.terminal-frame {
  background-color: var(--bg-terminal);
  border: 1px solid var(--border-terminal);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 176, 0, 0.05);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.terminal-header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-dim);
  border-bottom: 1px solid var(--border-terminal);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.08em;
}

.status-active {
  color: var(--amber-bright);
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.6);
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--amber-bright);
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.3);
  font-weight: 700;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-base);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 2px solid var(--amber-base);
  padding-left: 0.75rem;
}

p {
  margin-bottom: 1.4rem;
  color: var(--parchment);
}

/* Terminal Callout */
.terminal-callout {
  border: 1px solid var(--border-terminal);
  background: rgba(0, 0, 0, 0.4);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--parchment);
  position: relative;
}

.terminal-callout::before {
  content: "[GNOSIS_AXIOM]";
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--bg-terminal);
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber-base);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* Codex Links */
.codex-index {
  list-style: none;
  margin-top: 1.5rem;
}

.codex-item {
  border: 1px solid var(--border-terminal);
  margin-bottom: 0.75rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.codex-item:hover {
  border-color: var(--amber-base);
  background: rgba(255, 176, 0, 0.03);
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.15);
}

.codex-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber-base);
  text-decoration: none;
}

.codex-desc {
  font-size: 0.95rem;
  color: var(--parchment-muted);
  line-height: 1.4;
}

/* Footer */
footer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-dim);
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-terminal);
}

footer a {
  color: var(--amber-base);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
