@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --bg: #000;
  --fg: #e8e4dc;
  --muted: #aaa;
  --dim: #777;
  --accent: #ff4444;
  --white: #fff;
  --link: #e8e4dc;
  --link-visited: #c0b8b0;
  --panel-bg: rgba(0, 0, 0, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
}

html { min-height: 100%; }

body {
  background-color: #111;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: none;
}

a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--white); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

hr {
  border: none;
  border-top: 1px solid var(--panel-border);
  margin: 20px 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  text-decoration: none;
  z-index: 9999;
  border: 1px solid #fff;
}
.skip-link:focus {
  top: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.panel {
  background: var(--panel-bg);
  border-left: 1px solid var(--panel-border);
  border-right: 1px solid var(--panel-border);
  padding: 40px 28px;
}

.site-header { margin-bottom: 28px; }

.site-counter {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}
.site-title:hover { color: var(--white); }

.site-subtitle {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
}

nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--muted);
  padding-right: 16px;
  padding-top: 4px;
  padding-bottom: 4px;
}
nav a:hover { color: var(--white); }
nav a.active { color: var(--fg); }
nav a[aria-current="page"] { color: var(--fg); }

.sec-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.warning {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 12px;
  margin-bottom: 28px;
  line-height: 1.8;
  background: rgba(0,0,0,0.3);
}

.blink {
  animation: blink 1.1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; opacity: 1; }
}

.site-footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--dim);
}

@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}

@media (max-width: 480px) {
  .panel { padding: 28px 16px; }
  .site-title { font-size: 18px; }
}
