﻿@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --bg: #0a0f14;
  --bg-elev: #0f1720;
  --bg-panel: #101b25;
  --grid: rgba(84, 110, 140, 0.10);
  --text: #e4ecf4;
  --muted: #9bb0c3;
  --accent: #2c9bff;
  --accent-2: #5dd1ff;
  --accent-3: #31f0c7;
  --warning: #f0b86a;
  --danger: #e55757;
  --border: rgba(70, 92, 118, 0.4);
  --shadow: rgba(8, 14, 22, 0.6);
  --radius: 10px;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "IBM Plex Sans", "IBM Plex Mono", sans-serif;
  --serif: "Playfair Display", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(44, 155, 255, 0.18), transparent 40%),
    radial-gradient(circle at 100% 10%, rgba(49, 240, 199, 0.14), transparent 45%),
    radial-gradient(circle at 30% 90%, rgba(93, 209, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #0a0f14 0%, #0b131c 100%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(84, 110, 140, 0.12) 31px),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(84, 110, 140, 0.10) 31px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  letter-spacing: 0.005em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

small {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 8px 12px;
  background: var(--accent);
  color: #e4ecf4;
  border-radius: 6px;
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1480px, 94vw);
  margin: 0 auto;
}

.full-bleed {
  width: 100%;
  background: rgba(10, 15, 20, 0.9);
  border-bottom: 1px solid var(--border);
}

.full-bleed .container {
  padding: 18px 0;
}

.top-stories-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

.banner {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(44, 155, 255, 0.18), rgba(49, 240, 199, 0.12), rgba(16, 27, 37, 0.95));
  border: 1px solid rgba(23, 41, 66, 0.4);
  box-shadow: 0 18px 36px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner:hover,
.banner:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(8, 14, 22, 0.55);
}

.banner .post-hero {
  height: 42vh;
  min-height: 360px;
  max-height: 620px;
  width: 100%;
}

.banner h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin: 0;
}

.banner p {
  margin: 0;
}

.banner h2 a {
  color: inherit;
  position: relative;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.banner h2 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.banner h2 a:hover,
.banner h2 a:focus-visible {
  color: inherit;
  transform: translateY(-1px);
}

.banner h2 a:hover::after,
.banner h2 a:focus-visible::after {
  transform: scaleX(1);
}

.banner .byline {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.byline {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.post-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 6px 0 12px;
}

.social-card {
  display: grid;
  gap: 8px;
}

.social-card a {
  color: var(--accent-2);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(90deg, rgba(10, 15, 20, 0.98), rgba(16, 27, 37, 0.94));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(44, 155, 255, 0.2), rgba(49, 240, 199, 0.2));
  border: 1px solid rgba(93, 209, 255, 0.35);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-2);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo span {
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.nav-links a {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.nav-links a.active,
.nav-links a:focus-visible,
.nav-links a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  outline: none;
}

.hero {
  padding: 48px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-card {
  background: linear-gradient(135deg, rgba(16, 27, 37, 0.98), rgba(20, 32, 44, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 20px 40px var(--shadow);
  animation: slideIn 0.8s ease both;
}

.masthead {
  display: grid;
  gap: 6px;
}

.masthead .kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead .edition {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.section-title {
  font-family: var(--sans);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.featured-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(16, 27, 37, 0.96);
  border: 1px solid rgba(23, 41, 66, 0.4);
  display: grid;
  gap: 10px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(16, 27, 37, 0.96);
  border: 1px solid rgba(23, 41, 66, 0.4);
}

.news-row h3 {
  margin: 0;
  font-size: 1rem;
}

.hero-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent-2);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.button.secondary {
  background: rgba(44, 155, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(44, 155, 255, 0.3);
}

.button:hover {
  transform: translateY(-2px);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(8, 14, 22, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.7s ease both;
}

.layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: flex-start;
}

.post-body {
  flex: 1 1 80%;
}

.sidebar {
  flex: 0 0 20%;
}

.section {
  padding: 32px 0 48px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(93, 209, 255, 0.25), 0 12px 30px var(--shadow);
}

.card h1,
.card h2,
.card h3,
.card p,
.card label,
.card small,
.card a,
.news-item,
.news-row,
.news-meta,
.post-subtitle,
.byline,
.top-stories-bar,
.section-title,
.badge,
.tag-chip {
  color: var(--text);
}

.card .muted,
.news-meta,
.byline,
.post-subtitle {
  color: var(--muted);
}

.card + .card {
  margin-top: 18px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-2);
}

.tag-chip.active {
  background: rgba(83, 199, 255, 0.15);
  border-color: var(--accent-2);
}

.category-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: rgba(16, 27, 37, 0.92);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.list {
  display: grid;
  gap: 12px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(16, 27, 37, 0.96);
  border: 1px solid rgba(93, 209, 255, 0.25);
}

.post-thumb {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(44, 155, 255, 0.12), rgba(49, 240, 199, 0.06));
  border: 1px solid rgba(23, 41, 66, 0.4);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}

.post-hero {
  height: 45vh;
  min-height: 320px;
  max-height: 520px;
  margin: 12px 0 18px;
  object-fit: contain;
  object-position: center;
  background: #0a0f14;
}

.banner .post-hero {
  object-fit: contain;
  background: rgba(10, 15, 20, 0.8);
}

.post-body {
  padding: 28px;
}

.post-body p {
  font-size: 1.05rem;
}

.post-body h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.post-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.post-body h3 {
  font-size: 1.2rem;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 24, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-image {
  max-width: min(1100px, 95vw);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(8, 14, 22, 0.6);
  background: #0f1720;
}

.news-item,
.news-row,
.featured-card,
.list a,
.category-tile {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover,
.news-row:hover,
.featured-card:hover,
.list a:hover,
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(8, 14, 22, 0.5);
}

.news-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.news-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.divider {
  height: 1px;
  background: rgba(120, 144, 164, 0.25);
  margin: 18px 0;
}

.list a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(16, 27, 37, 0.92);
  box-shadow: 0 0 0 1px rgba(93, 209, 255, 0.18);
}

.list a:hover {
  border-color: var(--accent);
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: inline-block;
}

.label.fouo,
.label.analysis {
  color: var(--warning);
  border-color: rgba(255, 180, 84, 0.4);
}

.label.noforn {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.4);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.85rem;
}

.post-body h2 {
  margin-top: 2rem;
}

.post-body h3 {
  margin-top: 1.4rem;
}

.post-body code {
  background: rgba(49, 240, 199, 0.18);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: var(--mono);
}

pre {
  background: #0c141c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  color: var(--accent-2);
}

.toc {
  border-left: 2px solid var(--accent-2);
  padding-left: 14px;
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.toc a {
  color: var(--text);
}

.toc a:hover {
  color: var(--accent);
}

form {
  display: grid;
  gap: 10px;
}

input, select, textarea {
  background: #0f1923;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--sans);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-status {
  font-size: 0.85rem;
  color: var(--accent);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--text);
}

.table th, .table td {
  border-bottom: 1px solid rgba(70, 92, 118, 0.5);
  padding: 8px 0;
  text-align: left;
  color: var(--text);
}

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.notice {
  background: rgba(44, 155, 255, 0.12);
  border: 1px solid rgba(44, 155, 255, 0.28);
  padding: 16px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .hero-grid,
  .layout {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 1200px) {
  .layout {
    flex-wrap: wrap;
  }

  .post-body,
  .sidebar {
    flex: 1 1 100%;
  }

  .hero-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 8px;
  }

  .banner .post-hero {
    height: 19vh;
    min-height: 180px;
    max-height: 320px;
    object-fit: contain;
    object-position: center;
    background: #0a0f14;
  }

  .post-hero {
    height: 24vh;
    min-height: 200px;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
    background: #0a0f14;
  }

  .layout {
    flex-wrap: wrap;
  }

  .post-body,
  .sidebar {
    flex: 1 1 100%;
  }

  .post-body {
    padding: 20px;
  }

  .post-body h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .post-body p {
    font-size: 1rem;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slide-in,
  .hero-card {
    animation: none;
  }
}

@media (max-width: 700px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    align-self: flex-start;
    justify-content: flex-start;
    margin-right: auto;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-links a {
    padding: 8px 10px;
  }
}

@media (hover: none) {
  .news-item:hover,
  .news-row:hover,
  .featured-card:hover,
  .list a:hover,
  .category-tile:hover,
  .hover-lift:hover {
    transform: none;
    box-shadow: none;
  }
}



