/* =========================
   base
========================= */

* {
  box-sizing: border-box;
}

:root {
  --bg: #07070b;
  --bg-2: #0e0e16;
  --panel: rgba(15, 16, 25, 0.92);
  --panel-2: rgba(22, 23, 35, 0.92);
  --line: #32364a;
  --line-bright: #6d7898;
  --text: #d7d9e8;
  --muted: #8c91aa;
  --accent: #8df0ff;
  --accent-2: #e675ff;
  --accent-3: #caff70;
  --danger: #ff5d7a;
  --shadow: rgba(0, 0, 0, 0.65);
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
}

/* =========================
   background / depth
========================= */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 20% 15%, rgba(141, 240, 255, 0.13), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(230, 117, 255, 0.12), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(202, 255, 112, 0.08), transparent 35%),
    linear-gradient(180deg, #06060a 0%, #0d0d16 48%, #040407 100%);
}

.site-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(141, 240, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 240, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
}

.site-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent 1px);
  background-size: 100% 4px;
  opacity: 0.55;
}

/* =========================
   layout
========================= */

.site {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 40px;
}

.site-header {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 35%),
    rgba(10, 10, 16, 0.9);
  box-shadow:
    0 18px 40px var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.header-image {
  min-height: 180px;
  border: 1px solid var(--line-bright);
  background: #11121b;
  overflow: hidden;
}

.header-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.95);
}

.title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(141, 240, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(230, 117, 255, 0.06), transparent 65%),
    rgba(14, 15, 24, 0.8);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #f5f7ff;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow:
    2px 0 rgba(141, 240, 255, 0.65),
    -2px 0 rgba(230, 117, 255, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.75);
}

.subtitle {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
}

/* =========================
   navigation
========================= */

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(9, 10, 16, 0.9);
  box-shadow: 0 12px 28px var(--shadow);
}

.top-nav a {
  display: inline-block;
  padding: 8px 13px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    #141622;
  font-family: "Courier New", Courier, monospace;
  text-transform: lowercase;
}

.top-nav a:hover {
  color: #050508;
  border-color: var(--accent);
  background: var(--accent);
}

/* =========================
   content grid
========================= */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

.main-content,
.sidebar {
  min-width: 0;
}

.panel {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 35%),
    var(--panel);
  box-shadow:
    0 16px 32px var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(141, 240, 255, 0.16), rgba(230, 117, 255, 0.11)),
    #10121c;
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-transform: lowercase;
}

.panel-heading span::before {
  content: "[";
  color: var(--muted);
}

.panel-heading span::after {
  content: "]";
  color: var(--muted);
}

.panel > h2,
.panel > p,
.panel > ul,
.panel > .section-list,
.panel > .profile-list,
.panel > .button-box,
.panel > .side-image {
  margin-left: 16px;
  margin-right: 16px;
}

.panel h2 {
  margin-top: 16px;
  margin-bottom: 10px;
  color: #f5f7ff;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.45rem;
  font-weight: normal;
  letter-spacing: -0.03em;
}

.panel h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05rem;
}

.panel p {
  color: var(--text);
}

.panel p:last-child {
  margin-bottom: 16px;
}

b,
strong {
  color: #ffffff;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-3);
}

/* =========================
   intro
========================= */

.intro-panel {
  position: relative;
}

.intro-panel::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
  opacity: 0.65;
}

/* =========================
   section cards
========================= */

.section-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.section-card {
  min-width: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel-2);
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.section-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(141, 240, 255, 0.08), transparent),
    var(--panel-2);
}

.section-card a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  min-height: 120px;
  padding: 10px;
  color: var(--text);
  text-decoration: none;
}

.section-card img {
  width: 120px;
  height: 100px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line-bright);
  background: #090a10;
  filter: saturate(0.9) contrast(1.05);
}

.section-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   updates
========================= */

.updates {
  padding: 0;
  list-style: none;
}

.updates li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(109, 120, 152, 0.25);
}

.updates li:last-child {
  border-bottom: 0;
}

.updates time {
  color: var(--accent-2);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.updates span {
  color: var(--text);
}

/* =========================
   sidebar
========================= */

.side-panel {
  background:
    linear-gradient(135deg, rgba(230, 117, 255, 0.055), transparent 40%),
    rgba(13, 14, 22, 0.94);
}

.side-image {
  width: calc(100% - 32px);
  display: block;
  margin-top: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line-bright);
  background: #090a10;
  object-fit: cover;
}

.profile-list {
  margin-top: 12px;
  margin-bottom: 16px;
}

.profile-list p {
  margin: 7px 0;
  color: var(--muted);
}

.profile-list b {
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-weight: normal;
}

.side-links {
  padding-left: 34px;
}

.side-links li {
  margin: 6px 0;
  color: var(--muted);
}

.side-links a {
  text-decoration: none;
}

.side-links a:hover {
  text-decoration: underline;
}

.button-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.button-box img,
.fake-button {
  width: 88px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  background: #11131d;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  image-rendering: pixelated;
}

.small-text p {
  color: var(--muted);
  font-size: 12px;
}

/* =========================
   footer
========================= */

.site-footer {
  margin-top: 16px;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(9, 10, 16, 0.9);
  box-shadow: 0 12px 28px var(--shadow);
}

.site-footer p {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

/* =========================
   image behavior
========================= */

img {
  max-width: 100%;
}

/* Add this class to pixel art images if needed */
.pixel {
  image-rendering: pixelated;
}

/* =========================
   responsive
========================= */

@media screen and (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sidebar .panel {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 700px) {
  .site {
    width: min(100% - 20px, 1120px);
    margin-top: 10px;
  }

  .title-block {
    padding: 18px;
  }

  .top-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .section-list {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: block;
  }

  .sidebar .panel {
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 520px) {
  body {
    font-size: 13px;
  }

  .site-header {
    padding: 10px;
  }

  .header-image,
  .header-image img {
    min-height: 130px;
  }

  .title-block {
    min-height: auto;
  }

  h1 {
    font-size: 2.3rem;
  }

  .section-card a {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .section-card img {
    width: 90px;
    height: 80px;
  }

  .updates li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
