* {
  box-sizing: border-box;
}

:root {
  --bg: #080b0d;
  --case: #101419;
  --case-light: #20272f;
  --case-edge: #303842;
  --lcd: #aeb4a3;
  --lcd-light: #c2c8b8;
  --lcd-dark: #707867;
  --text: #10140f;
  --muted: #394036;
  --white: #e8eae4;
  --shadow: rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(174, 180, 163, 0.11), transparent 30rem),
    linear-gradient(135deg, #050607, #0d1113 48%, #050607);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.018),
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.45;
}

.page {
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 32px;
}

.hero,
.panel,
.nav-panel {
  background: var(--lcd);
  border: 10px solid var(--case);
  outline: 2px solid var(--case-edge);
  box-shadow:
    inset 0 0 0 2px var(--lcd-dark),
    inset 0 0 22px rgba(0, 0, 0, 0.1),
    0 22px 60px var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  margin-bottom: 22px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(16, 20, 15, 0.16);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(16, 20, 15, 0.25) 49%, rgba(16, 20, 15, 0.25) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(16, 20, 15, 0.25) 49%, rgba(16, 20, 15, 0.25) 51%, transparent 52%),
    radial-gradient(circle, transparent 42%, rgba(16, 20, 15, 0.18) 43%, transparent 44%);
  opacity: 0.8;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  font-family: "Courier New", monospace;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.1em;
  text-transform: uppercase;
}

.subtitle {
  position: relative;
  z-index: 1;
  margin: 7px 0;
  font-family: "Courier New", monospace;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.nav-panel {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-bottom: 22px;
}

.nav-button {
  appearance: none;
  flex: 1;
  border: 2px solid var(--case);
  background: transparent;
  color: var(--text);
  padding: 12px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.nav-button:hover,
.nav-button.active {
  background: var(--case);
  color: var(--white);
}

.nav-button:active {
  transform: translateY(2px);
}

.panel {
  overflow: hidden;
  margin-bottom: 22px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--case);
  color: var(--white);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.entry {
  position: relative;
  padding: 24px;
  border-bottom: 2px solid var(--lcd-dark);
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease, opacity 160ms ease;
}

.entry:last-child {
  border-bottom: 0;
}

.entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13), transparent 30%),
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.2), transparent 13rem);
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.entry:hover::before,
.entry:focus-visible::before {
  opacity: 1;
}

.entry:hover,
.entry:focus-visible,
.entry.selected {
  background: var(--lcd-light);
}

.entry.selected {
  box-shadow: inset 8px 0 0 var(--case);
}

.entry.selected h2::before {
  content: ">";
  display: inline-block;
  margin-right: 8px;
  font-family: "Courier New", monospace;
}

.entry.hidden {
  display: none;
}

.entry-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  max-width: 720px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.entry-top p {
  margin: 0;
  white-space: nowrap;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.entry > p {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
}

.meta-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-row span {
  border: 1px solid rgba(16, 20, 15, 0.55);
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .page {
    padding: 16px;
  }

  .hero,
  .panel,
  .nav-panel {
    border-width: 7px;
  }

  .hero {
    padding: 30px 22px;
  }

  .nav-panel {
    position: static;
  }

  .entry {
    padding: 20px;
  }

  .entry-top {
    display: block;
  }

  .entry-top p {
    margin-top: 8px;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .nav-panel {
    flex-direction: column;
  }

  .section-header {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  h2 {
    font-size: 18px;
  }

  .entry > p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
