/* GameHacksDaily — Floodlight editorial system (2026) */
:root {
  --bg: #eef1f4;
  --bg-ink: #0a1628;
  --surface: #ffffff;
  --line: rgba(10, 22, 40, 0.1);
  --text: #0a1628;
  --muted: #5a6878;
  --accent: #ff4b1a;
  --accent-ink: #fff7f4;
  --mint: #1ec9a0;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --max: 1120px;
  --header: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: min(100% - 2.4rem, var(--max));
  margin-inline: auto;
}

/* Atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 85% -5%, rgba(255, 75, 26, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(30, 201, 160, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f8fa 0%, #e8ecf1 100%);
  pointer-events: none;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(238, 241, 244, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.on {
  color: var(--text);
}

.nav .go {
  background: var(--bg-ink);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

.nav .go:hover {
  background: var(--accent);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Hero — one composition */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: end;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
  color: #fff;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.25) 0%, rgba(10, 22, 40, 0.55) 45%, rgba(10, 22, 40, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 22, 40, 0.75) 0%, rgba(10, 22, 40, 0.2) 60%),
    url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  animation: drift 20s var(--ease) infinite alternate;
  z-index: 0;
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin-bottom: 1.35rem;
  opacity: 0;
  animation: up 0.85s var(--ease) 0.05s forwards;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 0.7rem;
  opacity: 0;
  animation: up 0.85s var(--ease) 0.2s forwards;
}

.hero p {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: up 0.85s var(--ease) 0.35s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: up 0.85s var(--ease) 0.5s forwards;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-fire {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-dark {
  background: var(--bg-ink);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.block {
  padding: 5rem 0;
}

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.block-head {
  max-width: 38rem;
  margin-bottom: 2.4rem;
}

.block-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 0.65rem;
}

.block-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Spotlight (not card-in-hero; editorial feature) */
.spotlight {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.1rem;
}

.spot-main {
  min-height: 440px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 25%, rgba(10, 22, 40, 0.92) 100%),
    url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1400&q=80") center/cover;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s var(--ease);
}

.spot-main:hover {
  transform: translateY(-4px);
}

.spot-side {
  display: grid;
  gap: 1.1rem;
}

.spot-side a {
  min-height: 210px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s var(--ease);
}

.spot-side a:hover {
  transform: translateY(-4px);
}

.spot-side a:nth-child(1) {
  background:
    linear-gradient(180deg, transparent 15%, rgba(10, 22, 40, 0.92) 100%),
    url("https://images.unsplash.com/photo-1556656793-08538906a9f8?auto=format&fit=crop&w=900&q=80") center/cover;
}

.spot-side a:nth-child(2) {
  background:
    linear-gradient(180deg, transparent 15%, rgba(10, 22, 40, 0.92) 100%),
    url("https://images.unsplash.com/photo-1612287230202-1ff1d867d530?auto=format&fit=crop&w=900&q=80") center/cover;
}

.pill {
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 75, 26, 0.9);
  margin-bottom: 0.7rem;
}

.pill.teal {
  background: rgba(30, 201, 160, 0.95);
  color: #04241c;
}

.spot-main h3,
.spot-side h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.spot-main p,
.spot-side p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Guide rows */
.guide-stack {
  border-top: 1px solid var(--line);
}

.guide-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.guide-row:hover {
  background: rgba(255, 75, 26, 0.04);
}

.guide-row .cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-row h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.guide-row p {
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-row .arr {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}

.guide-row:hover .arr {
  transform: translateX(6px);
}

/* Lanes */
.lanes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.lane {
  padding: 1.5rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), border-color 0.2s;
}

.lane:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 75, 26, 0.45);
}

.lane strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.lane span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Voice band */
.voice {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--bg-ink);
  color: #fff;
  border-radius: 22px;
}

.voice h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  margin: 0.5rem 0 0.85rem;
}

.voice p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.4rem;
}

.voice .kicker {
  color: var(--accent);
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.metric {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.metric span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

/* CTA strip */
.invite {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.invite h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.6rem;
}

.invite p {
  color: var(--muted);
  margin-bottom: 1.35rem;
  max-width: 34ch;
  margin-inline: auto;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.75rem;
  margin-top: 1rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.foot-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.foot-brand em {
  font-style: normal;
  color: var(--accent);
}

.foot p {
  color: var(--muted);
  max-width: 30ch;
}

.foot h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.foot-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.foot-col a:hover {
  color: var(--text);
}

.foot-end {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Inner page */
.page-top {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-top h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin-bottom: 0.65rem;
}

.page-top p {
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.08rem;
}

/* Filters + grid */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 1.25rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.chip.on,
.chip:hover {
  background: var(--bg-ink);
  color: #fff;
  border-color: var(--bg-ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding-bottom: 4rem;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.2s;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 75, 26, 0.4);
}

.tile-media {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}

.tile-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tile-body .pill {
  background: rgba(255, 75, 26, 0.12);
  color: var(--accent);
}

.tile-body h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.2;
}

.tile-body p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.tile-body .more {
  margin-top: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.9rem;
}

/* About / contact */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 1.75rem 0 0.65rem;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.side-panel {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header) + 1rem);
}

.side-panel h3 {
  font-family: var(--font-display);
  margin-bottom: 0.6rem;
}

.side-panel p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.form .field {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  outline: none;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.85rem;
}

/* Article */
.story-top {
  padding: 3rem 0 1.5rem;
}

.story-top h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  max-width: 16ch;
  margin: 0.75rem 0 0.75rem;
}

.byline {
  color: var(--muted);
}

.story-cover {
  aspect-ratio: 21/9;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  margin-bottom: 2.25rem;
  border: 1px solid var(--line);
}

.story {
  max-width: 700px;
  margin: 0 auto 4rem;
}

.story h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.7rem;
}

.story p,
.story li {
  color: #3d4a5a;
  margin-bottom: 0.95rem;
}

.story ul,
.story ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.story strong {
  color: var(--text);
}

.pull {
  border-left: 3px solid var(--accent);
  background: rgba(255, 75, 26, 0.08);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
}

.pull p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9a6b);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
}

.author h4 {
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.author p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  background: var(--bg-ink);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(120%);
  opacity: 0;
  transition: 0.35s var(--ease);
  z-index: 80;
}

.toast.show {
  transform: none;
  opacity: 1;
}

@media (max-width: 960px) {
  .spotlight,
  .voice,
  .split,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .lanes,
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .spot-main {
    min-height: 320px;
  }

  .guide-row {
    grid-template-columns: 1fr auto;
  }

  .guide-row .cat {
    display: none;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(238, 241, 244, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s var(--ease);
  }

  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .nav .go {
    text-align: center;
    margin-top: 0.5rem;
  }

  .lanes,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 82svh;
    align-items: center;
  }

  .story-top h1 {
    max-width: none;
  }

  .story-cover {
    aspect-ratio: 16/9;
  }
}
