body {
  margin: 0;
  background: #05070a;
  color: #d8dbe2;
  font-family: Arial, sans-serif;

  /* BACKGROUND IMAGE */
  background-image: url("https://i.imgur.com/e1oDGNu.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* DARK OVERLAY so text stays readable */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.75);
  pointer-events: none;
  z-index: 0;
}

/* HUD GRID OVERLAY */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(47, 94, 168, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 94, 168, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

/* MAIN CONTAINER */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #1f3a6d;
  box-shadow: 0 0 20px rgba(47, 94, 168, 0.25);
  background: rgba(11, 18, 32, 0.9);
  position: relative;
  z-index: 2;
}

/* HEADER */
header {
  border: 2px solid #1f3a6d;
  padding: 25px;
  text-align: center;
  background: #0b1220;
}

h1 {
  color: #2f5ea8;
  letter-spacing: 4px;
  margin-bottom: 5px;
}

.subtitle {
  color: #7f9ccf;
}

/* SECTION */
section {
  margin-top: 25px;
  padding: 20px;
  background: #0b1220;
  border-left: 4px solid #2f5ea8;
}

h2 {
  color: #7f9ccf;
}

p {
  color: #d8dbe2;
  line-height: 1.6;
}

/* NORMAL LINKS */
a {
  color: #9db8f2;
  text-decoration: none;
}

a:visited {
  color: #9db8f2;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* BASIC GRID NAV */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.grid a {
  display: block;
  padding: 18px;
  background: #0f1726;
  color: #e6ecff;
  text-decoration: none;
  border: 1px solid #1f3a6d;
  transition: 0.2s;
}

.grid a:visited {
  color: #e6ecff;
}

.grid a::before {
  content: "> ";
  color: #7f9ccf;
}

.grid a:hover {
  background: #2f5ea8;
  color: #000;
  text-decoration: none;
}

/* STORY INDEX WITH HOVER SUMMARIES */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.story-card {
  display: block;
  padding: 18px;
  background: #0f1726;
  color: #e6ecff;
  text-decoration: none;
  border: 1px solid #1f3a6d;
  overflow: hidden;
  transition: 0.25s;
}

.story-card:visited {
  color: #e6ecff;
}

.story-card:hover {
  background: #14213a;
  border-color: #2f5ea8;
  box-shadow: 0 0 15px rgba(47, 94, 168, 0.35);
  text-decoration: none;
}

.story-title {
  display: block;
  color: #e6ecff;
}

.story-title::before {
  content: "> ";
  color: #7f9ccf;
}

.story-summary {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  color: #b9c9ec;
  font-size: 0.9em;
  line-height: 1.5;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.story-card:hover .story-summary {
  max-height: 1200px;
  opacity: 1;
  margin-top: 12px;
}

/* STORY IMAGE */
.story-image {
  text-align: center;
}

.story-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #1f3a6d;
  box-shadow: 0 0 15px rgba(47, 94, 168, 0.25);
}

.story-image p {
  margin-top: 10px;
  color: #7f9ccf;
  font-size: 0.95em;
}

/* PHONE / SMALL SCREEN FIX */
@media (max-width: 700px) {
  .grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .container {
    margin: 20px;
  }
}