/* Not Half Bad Games — brand board implementation
   Palette: off-white #F5F5F2, near black #0E0E0E, signal red #FF3B30
   Type: Anton (display), IBM Plex Mono (everything else) */

:root {
  --off-white: #F5F5F2;
  --near-black: #0E0E0E;
  --signal-red: #FF3B30;
  --hairline: rgba(14, 14, 14, 0.2);
  --hairline-invert: rgba(245, 245, 242, 0.2);
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --display: 'Anton', 'Arial Narrow', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--off-white);
  color: var(--near-black);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal-red);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--hairline);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.topbar .brand { text-decoration: none; white-space: nowrap; }
.topbar .brand strong { color: var(--signal-red); font-weight: 600; }
.topbar .tagline { text-align: right; color: var(--near-black); }
.topbar .tagline .cursor { color: var(--signal-red); }

.topnav {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.topnav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.topnav a:hover, .topnav a[aria-current="page"] {
  border-bottom-color: var(--signal-red);
}

/* ---------- section labels (brand board style) ---------- */

.label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--near-black);
  padding: 28px 0 20px;
}

.label.red { color: var(--signal-red); }

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 72px;
}

.hero-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero .equation {
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 34px);
  white-space: nowrap;
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
}

.hero .equation .bang { color: var(--signal-red); font-weight: 700; }

.hero-itch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.hero-itch .icon-itch {
  flex-shrink: 0;
}

.hero-itch:hover,
.hero-itch:focus-visible {
  color: var(--signal-red);
  border-bottom-color: var(--signal-red);
}

.hero .intro {
  max-width: 620px;
  margin-top: 48px;
  font-size: 15px;
}

.hero .intro p + p { margin-top: 16px; }

.hero .creed {
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.9;
}

.hero .creed .red { color: var(--signal-red); }

.prompt {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
}

.prompt::after {
  content: "_";
  color: var(--signal-red);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- in development ---------- */

.dev {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 72px;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.game {
  padding: 32px 40px 32px 0;
}

.game + .game {
  border-left: 1px solid var(--hairline);
  padding-left: 40px;
  padding-right: 0;
}

.game .meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-red);
  margin-bottom: 16px;
}

.game h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.game p + p { margin-top: 14px; }
.game .logline { font-size: 15px; }
.game .body { font-size: 14px; color: rgba(14,14,14,0.78); }

/* ---------- feed ---------- */

.feed-section { padding-bottom: 72px; }

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.feed-head .all {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 2px solid var(--signal-red);
  padding-bottom: 2px;
  white-space: nowrap;
}

.feed { list-style: none; }

.feed li {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
}

.feed li:last-child { border-bottom: 1px solid var(--hairline); }

.feed .stamp {
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 2;
}

.feed .stamp .date { display: block; }

.feed .stamp .tag {
  display: inline-block;
  color: var(--signal-red);
  text-transform: lowercase;
}

.feed .stamp .tag::before { content: "// "; }

.feed .entry h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.feed .entry p { font-size: 14px; max-width: 720px; }
.feed .entry p + p { margin-top: 10px; }

.feed .entry a.more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--signal-red);
  text-decoration: none;
}

.feed .entry a.more:hover { text-decoration: underline; }

.feed-empty {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 40px 0;
  font-size: 14px;
}

.feed-empty .bang { color: var(--signal-red); }

/* ---------- dark band (about / footer) ---------- */

.band {
  background: var(--near-black);
  color: var(--off-white);
}

.band .label { color: var(--signal-red); }

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.band-col { font-size: 13px; line-height: 1.8; }
.band-col p + p { margin-top: 14px; }
.band-col .red { color: var(--signal-red); }
.band-col a { color: var(--off-white); }

.band-col .swatches { list-style: none; }
.band-col .swatches li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.swatch {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.swatch.white { background: var(--off-white); }
.swatch.black { background: var(--near-black); border: 1px solid var(--hairline-invert); }
.swatch.red { background: var(--signal-red); }

.footer-bar {
  border-top: 1px solid var(--hairline-invert);
}

.footer-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bar .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border: 1px solid var(--hairline-invert);
  color: var(--signal-red);
  font-size: 11px;
  margin-right: 14px;
}

.footer-bar .site { color: var(--off-white); text-decoration: none; }
.footer-bar .site .cursor { color: var(--signal-red); }

/* ---------- feed page ---------- */

.page-title {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 48px;
}

.page-title h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.95;
  text-transform: uppercase;
  padding-top: 16px;
}

.page-title .sub {
  margin-top: 20px;
  font-size: 14px;
  max-width: 620px;
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .dev-grid { grid-template-columns: 1fr; }
  .game { padding-right: 0; }
  .game + .game {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding-left: 0;
  }
  .band-grid { grid-template-columns: 1fr; gap: 8px; }
  .feed li { grid-template-columns: 1fr; gap: 8px; }
  .hero .equation { border-left: 0; padding-left: 0; }
  .topbar .wrap { flex-wrap: wrap; }
  .topbar .tagline { text-align: left; }
}
