@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Pixelify+Sans:wght@400..700&display=swap');

:root {
  --ink: #f8f0d9;
  --muted: #aebce0;
  --bg: #07091b;
  --panel: rgba(8, 15, 43, .9);
  --panel-2: rgba(15, 26, 64, .72);
  --line: rgba(142, 212, 255, .24);
  --line-bright: rgba(148, 223, 255, .64);
  --gold: #ffca54;
  --gold-2: #ff8d32;
  --blue: #8ee9ff;
  --violet: #c297ff;
  --pixel: "DotGothic16", "MS Gothic", monospace;
  --display: "Pixelify Sans", "DotGothic16", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(47, 102, 218, .22), transparent 24rem),
    radial-gradient(circle at 96% 34%, rgba(164, 59, 217, .16), transparent 31rem),
    linear-gradient(180deg, #0a0d26 0%, #07091b 55%, #060818 100%);
  font-family: var(--pixel);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .025em;
}
a { color: inherit; text-decoration: none; }
.starfield {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(1px 1px at 8% 12%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 26% 72%, #9edcff 50%, transparent 52%),
    radial-gradient(1px 1px at 61% 8%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 91% 30%, #ffd987 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 76% 85%, #d2b3ff 50%, transparent 52%),
    radial-gradient(1px 1px at 42% 48%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 57% 67%, #97d9ff 50%, transparent 52%);
}
.scanlines {
  position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .11;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(177, 223, 255, .23) 2px 3px);
  mix-blend-mode: screen;
}

.site-header, main, .site-footer { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); font-size: .75rem;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); }
.brand-mark { color: var(--gold); font-size: 1.12rem; text-shadow: 0 0 14px rgba(255,202,84,.95); }
nav { display: flex; gap: 22px; color: var(--muted); font-size: .72rem; }
nav a:hover, .text-link:hover { color: var(--gold); }

.banner-terminal {
  margin-top: 36px;
  border: 1px solid var(--line-bright);
  background: rgba(4, 7, 25, .78);
  box-shadow: 0 0 0 4px rgba(106, 182, 255, .06), 0 25px 80px rgba(0, 0, 0, .4), inset 0 0 42px rgba(62, 113, 255, .12);
}
.terminal-titlebar, .terminal-top {
  min-height: 37px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
  border-bottom: 1px solid var(--line); color: #b8c9ef; font-size: .62rem;
  background: linear-gradient(90deg, rgba(76, 122, 201, .17), rgba(17, 29, 73, .18));
}
.status-lamp, .terminal-top span { width: 7px; height: 7px; border-radius: 0; display: block; }
.red, .terminal-top span:nth-child(1) { background: #f07586; box-shadow: 0 0 8px #f07586; }
.yellow, .terminal-top span:nth-child(2) { background: #f5ce66; box-shadow: 0 0 8px #f5ce66; }
.green, .terminal-top span:nth-child(3) { background: #77e2a2; box-shadow: 0 0 8px #77e2a2; }
.terminal-file { margin-left: 6px; color: #d9e6ff; }
.terminal-mode { margin-left: auto; color: var(--gold); font-size: .56rem; }
.banner-display {
  position: relative; overflow: hidden; min-height: 285px; padding: 16px 22px;
  display: grid; place-items: center;
  background:
    linear-gradient(90deg, rgba(29, 56, 130, .08) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgba(29, 56, 130, .08) 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(circle at 50% 40%, rgba(71, 61, 167, .32), transparent 44%);
}

.banner-display img {
  position: relative; z-index: 1; width: min(100%, 1050px); height: auto; display: block;
  image-rendering: pixelated; filter: drop-shadow(0 9px 17px rgba(0, 0, 0, .48));
}
.banner-readout {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 10px 14px; border-top: 1px solid var(--line); color: #a2bde1; font-size: .61rem;
  background: rgba(5, 13, 35, .82);
}
.banner-readout span:first-child { color: var(--blue); }.banner-readout span:last-child { color: var(--gold); }

.intro-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center;
  padding: 82px 0 72px;
}
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: .68rem; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h2 {
  font-family: var(--display); font-size: clamp(3.15rem, 6.6vw, 6.7rem); line-height: .98;
  letter-spacing: -.045em; margin-bottom: 28px; font-weight: 600;
  text-shadow: 3px 3px 0 rgba(70, 89, 162, .28);
}
h2 span { color: var(--gold); text-shadow: 0 0 18px rgba(255, 198, 73, .22); }
.lede { max-width: 43rem; color: var(--muted); font-size: .95rem; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button {
  display: inline-flex; align-items: center; gap: 13px; border: 1px solid var(--line-bright);
  border-radius: 0; padding: 12px 16px; font-family: var(--pixel); font-size: .69rem;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(96, 199, 255, .28); }
.primary { background: var(--gold); color: #1b1522; border-color: var(--gold); }
.primary span { font-size: 1.05rem; }.quiet { background: rgba(14, 25, 62, .55); color: var(--ink); }

.terminal-card {
  align-self: center; overflow: hidden; border: 1px solid var(--line-bright); background: var(--panel);
  box-shadow: 8px 8px 0 rgba(45, 69, 156, .18), inset 0 0 38px rgba(100, 138, 255, .08);
}
.terminal-top b { font-weight: 400; margin-left: 5px; }.terminal-top em { margin-left: auto; color: var(--gold); font-style: normal; font-size: .53rem; }
pre {
  margin: 0; padding: 25px; color: #d9ecff; white-space: pre-wrap; font-family: var(--pixel);
  font-size: .78rem; line-height: 1.88; letter-spacing: .018em;
}
.compact-status { transform: rotate(.35deg); }

.signal-strip {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 13px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #c5d0f3;
  font-size: .64rem; background: rgba(8, 13, 35, .54);
}
.signal-strip i { color: var(--gold); font-style: normal; }

.section { padding: 92px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
h2 {
  font-family: var(--display); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em;
  line-height: 1.08; margin-bottom: 0;
}
.heading-code { color: var(--gold); font-size: .53em; vertical-align: middle; }
.text-link { color: var(--blue); font-size: .68rem; }
.post-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.post-card {
  min-height: 286px; padding: 27px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(95, 150, 255, .07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgba(95, 150, 255, .07) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--panel-2);
  transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.post-card.featured { background: linear-gradient(145deg, rgba(86, 56, 158, .74), rgba(7, 19, 58, .92)); }
.post-card.featured:after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -86px;
  border: 1px solid rgba(255, 202, 84, .38); border-radius: 50%;
  box-shadow: 0 0 0 21px rgba(122, 107, 244, .08), 0 0 0 42px rgba(122, 107, 244, .05);
}
.post-card-link { position: relative; z-index: 1; display: block; height: 100%; }
.post-meta { color: var(--blue); font-size: .61rem; line-height: 1.6; }
.post-card h3 { font-family: var(--display); font-size: 1.55rem; line-height: 1.32; letter-spacing: -.025em; margin-bottom: 14px; }
.post-card p:not(.post-meta) { color: var(--muted); font-size: .86rem; line-height: 1.9; }
.read-more { position: absolute; left: 0; bottom: 0; color: var(--gold); font-size: .67rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; border-top: 1px solid var(--line); }
.about-copy p:not(.eyebrow) { max-width: 33rem; margin-top: 28px; color: var(--muted); font-size: .92rem; line-height: 2.08; }
.mission-terminal { transform: rotate(-.35deg); }
.site-footer {
  display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 42px;
  border-top: 1px solid var(--line); color: #8997bd; font-size: .6rem;
}

/* The existing article template remains readable but shares the terminal/pixel visual language. */
.article-shell { max-width: 790px; padding: 88px 0 96px; }
.article-shell h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); margin-bottom: 26px; }
.article-deck { color: var(--muted); font-size: 1rem; line-height: 2; }
.article-rule { height: 1px; background: linear-gradient(90deg, var(--gold), var(--blue), transparent); margin: 50px 0; }
.prose { color: #e4e7f7; font-size: .98rem; line-height: 2.15; }.prose p { margin-bottom: 1.5em; }.prose h2 { margin: 2em 0 .8em; font-size: 2rem; }.prose li { margin: .8em 0; color: var(--muted); }.back-link { margin-top: 48px; }

@media (max-width: 820px) {
  .site-header { min-height: 64px; }.intro-grid, .post-grid, .about { grid-template-columns: 1fr; }
  .intro-grid { padding: 60px 0; gap: 34px; }.compact-status, .mission-terminal { transform: none; }
  .section { padding: 66px 0; }.site-footer { flex-direction: column; }.post-card { min-height: 235px; }
  .banner-display { min-height: 215px; padding: 15px 12px; }
}
@media (max-width: 500px) {
  body { font-size: 14px; }.site-header, main, .site-footer { width: min(100% - 28px, 1160px); }
  .site-header nav { display: none; }.banner-terminal { margin-top: 22px; }.terminal-mode { display: none; }
  .banner-readout { font-size: .52rem; gap: 7px; }.banner-display { min-height: 142px; padding: 10px 5px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.post-card { padding: 23px; }
  pre { padding: 20px; font-size: .72rem; }
}
