/* Fallout 3: phosphor-green terminal and HUD brackets. */
:root { color-scheme: dark; --green: #a4ff87; --muted: #91b98a; --line: #42673b; --dark: #080f09; font-family: Consolas, 'Lucida Console', monospace; color: var(--green); background: var(--dark); line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 35% 0, #1b2e19 0, transparent 65%), var(--dark); }
body::before { position: fixed; inset: 0; z-index: 2; pointer-events: none; content: ''; background: repeating-linear-gradient(0deg, transparent 0 3px, #00000012 3px 4px); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: #e0ffd3; }
a:focus-visible { outline: 2px solid #e0ffd3; outline-offset: 5px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 5; padding: .7rem 1rem; background: var(--green); color: var(--dark); }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 1400px; margin: auto; display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 2rem; border-bottom: 1px solid var(--line); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.brand { text-decoration: none; font-weight: bold; }
.site-header > span { color: var(--muted); }
.page-shell { width: min(1320px, calc(100% - 4rem)); margin: 3rem auto 0; }
.terminal-heading { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.hud-tabs { display: flex; gap: .5rem; border-bottom: 2px solid var(--green); }
.hud-tabs a { min-width: 160px; padding: .65rem 1.5rem; text-align: center; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .12em; text-decoration: none; border: 1px solid transparent; border-bottom: 0; }
.hud-tabs a[aria-current] { color: var(--dark); background: var(--green); font-weight: bold; box-shadow: 0 0 24px #a4ff8715; }
.hud-tabs a:hover { border-color: var(--green); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .7rem; padding: 1rem 0 2rem; color: var(--muted); font-size: .78rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
aside { align-self: stretch; }
.article { min-width: 0; position: relative; border-left: 2px solid var(--line); padding: 1.5rem 2rem 2rem; background: #0d180db3; }
.article::before { content: ''; position: absolute; left: -2px; top: 0; width: 60px; height: 14px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
h1 { font-family: 'Arial Narrow', 'Segoe UI', sans-serif; font-size: clamp(3rem, 7vw, 5.7rem); font-weight: 700; line-height: 1; letter-spacing: -.045em; text-transform: uppercase; margin: 0 0 2rem; text-shadow: 0 0 22px #a4ff8730; }
h2 { font-weight: normal; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.3; margin: 3.5rem 0 1rem; padding: .5rem 0 .5rem 1rem; border-left: 5px solid var(--green); scroll-margin-top: 1.5rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.map-hint { margin: 0 0 1.25rem; font-size: .8rem; color: var(--muted); }
figure { margin: 0; }
figure a { display: block; width: fit-content; max-width: 100%; border: 1px solid var(--line); padding: 6px; background: #040804; }
figure a:hover { border-color: var(--green); }
img { display: block; max-width: 100%; height: auto; }
.section-nav { position: sticky; top: 1.5rem; border-top: 2px solid var(--green); border-bottom: 1px solid var(--line); }
.section-nav p { display: flex; justify-content: space-between; margin: 0; padding: .85rem .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.section-nav p span { color: var(--muted); }
.section-nav ol { list-style: none; padding: 0; margin: 0 0 .75rem; max-height: calc(100vh - 9rem); overflow: auto; scrollbar-color: var(--line) var(--dark); }
.section-nav a { display: flex; gap: .8rem; padding: .55rem .5rem; font-size: .8rem; line-height: 1.4; text-decoration: none; }
.section-nav a:hover, .section-nav a:focus-visible { background: var(--green); color: var(--dark); }
.map-number { opacity: .6; flex: 0 0 2ch; }
.overview-page .article > ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.overview-page .article > ul a { display: inline-block; border: 1px solid var(--green); padding: .55rem 2rem; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.overview-page .article > ul a:hover { background: var(--green); color: var(--dark); }
.overview-map { display: block; border: 1px solid var(--line); text-decoration: none; }
.overview-map img { width: 100%; max-height: 430px; object-fit: cover; object-position: center; }
.overview-map > span { display: flex; justify-content: space-between; padding: .9rem 1rem; background: #152311; font-size: .85rem; }
.overview-map:hover { border-color: var(--green); }
.hud-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1rem 0 2rem; border-top: 2px solid var(--green); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 900px) {
  .page-shell { width: calc(100% - 2rem); margin-top: 1.5rem; }
  .content-layout { grid-template-columns: 1fr; gap: 2rem; }
  aside { grid-row: 1; }
  .section-nav { position: static; }
  .section-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 210px; }
  .article { padding: 1.5rem; }
}
@media (max-width: 520px) {
  .site-header { padding: 1rem; flex-wrap: wrap; font-size: .7rem; }
  .terminal-heading { font-size: .65rem; letter-spacing: .03em; }
  .hud-tabs a { min-width: 0; flex: 1; font-size: 1rem; padding: .6rem; }
  .article { padding: 1.25rem .75rem; }
  .section-nav ol { grid-template-columns: 1fr; }
  .hud-footer { flex-wrap: wrap; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) { body::before { display: none; } }
@media print {
  :root { color: #000; background: #fff; }
  body, .article { background: #fff; }
  body::before, aside, .site-header, .hud-tabs, .hud-footer, .skip-link { display: none; }
  .content-layout { display: block; }
  .page-shell { width: 100%; margin: 0; }
  h1 { text-shadow: none; }
  figure { break-inside: avoid; }
}
