/* =========================================================
   FirefightingDaily.com — site.css
   Premium manga / firehouse editorial system
   Mobile-first, high contrast, no white-on-white problems
   ========================================================= */

:root {
  --bg: #090b0f;
  --bg-2: #11151d;
  --bg-3: #181e29;
  --ink: #f7f2e8;
  --muted: #c8bdac;
  --soft: #9f9280;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(255,255,255,.28);

  --red: #e22b22;
  --red-2: #a91612;
  --orange: #ff7a18;
  --gold: #f6bd32;
  --yellow: #ffe071;
  --blue: #2aa7ff;
  --green: #49c26b;

  --panel: rgba(17, 21, 29, .88);
  --panel-solid: #121722;
  --paper: #f6ead5;
  --paper-ink: #24160e;

  --shadow: 0 24px 70px rgba(0,0,0,.48);
  --shadow-soft: 0 14px 38px rgba(0,0,0,.32);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;

  --font-head: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(226,43,34,.22), transparent 34rem),
    radial-gradient(circle at 86% 14%, rgba(255,122,24,.14), transparent 30rem),
    linear-gradient(180deg, #07080b 0%, var(--bg) 42%, #07080b 100%);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 80%);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow); }

.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 64px) 0; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--yellow);
  color: #111;
  border-radius: 10px;
  font-weight: 900;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .55em;
  line-height: .96;
  letter-spacing: .01em;
}

h1, .display-title {
  font-family: var(--font-head);
  font-size: clamp(3.1rem, 10vw, 7.7rem);
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 8px 26px rgba(0,0,0,.55);
}

h2, .section-title {
  font-family: var(--font-head);
  font-size: clamp(2.35rem, 6vw, 5.15rem);
  text-transform: uppercase;
  text-wrap: balance;
}

h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
p { margin: 0 0 1.05rem; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.38rem); color: #f4eadb; max-width: 70ch; }
.kicker {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--yellow);
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .84rem;
}
.kicker::before { content: "🔥"; letter-spacing: 0; }
.mark-red { color: var(--red); }
.mark-gold { color: var(--gold); }
.mark-blue { color: var(--blue); }
.muted { color: var(--muted); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,8,11,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 28px rgba(226,43,34,.5);
}
.logo strong { font-family: var(--font-head); font-size: 1.34rem; }
.logo strong span { color: var(--red); }
.logo small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .16em; }

.nav-toggle {
  display: none;
  background: #1b2130;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  color: #eee5d8;
  font-weight: 850;
  font-size: .92rem;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: rgba(226,43,34,.18);
  color: #fff;
}

/* CSS-only mobile menu works with checkbox or .is-open class */
#nav-check { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: var(--shadow-soft);
}
.btn-primary { background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ffe27d); color: #15100a; }
.btn-dark { background: #171d29; color: var(--ink); }
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-gold:hover { color: #15100a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #07080b;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,6,8,.9) 0%, rgba(5,6,8,.58) 44%, rgba(5,6,8,.18) 100%),
    linear-gradient(0deg, rgba(5,6,8,.96) 0%, rgba(5,6,8,.34) 58%, rgba(5,6,8,.26) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 116px 0 72px;
}
.hero-card {
  max-width: 760px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15,18,26,.86), rgba(15,18,26,.56));
  box-shadow: var(--shadow);
}
.hero-title span { color: var(--red); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.4rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff4df;
  background: rgba(255,255,255,.07);
  font-weight: 800;
  font-size: .84rem;
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24,30,41,.94), rgba(13,16,23,.94));
  box-shadow: var(--shadow-soft);
}
.card:hover { border-color: rgba(246,189,50,.42); transform: translateY(-2px); }
.card-img {
  aspect-ratio: 16 / 10;
  background: #1b202a;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 20px; }
.card h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}
.card p { color: var(--muted); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .4rem;
  color: var(--yellow);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card-link::after { content: "→"; }

/* Homepage section cards */
.feature-card { position: relative; min-height: 330px; }
.feature-card .card-img { aspect-ratio: 4 / 3; }
.feature-card .card-body {
  position: absolute;
  inset: auto 14px 14px 14px;
  border-radius: 18px;
  background: rgba(7,8,11,.78);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}

/* ---------- Editorial split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.panel.paper { background: var(--paper); color: var(--paper-ink); }
.panel.paper .muted { color: #604b39; }

/* ---------- Alert / Disclaimer bands ---------- */
.alert-band {
  border-block: 1px solid rgba(246,189,50,.35);
  background:
    linear-gradient(90deg, rgba(226,43,34,.22), rgba(246,189,50,.1), rgba(226,43,34,.18)),
    #11151d;
  padding: 18px 0;
}
.alert-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.alert-inner strong {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}
.alert-inner p { margin: 0; color: #fff1dd; }

/* ---------- Character pages ---------- */
.character-hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.character-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  background: #141923;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
}
.character-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stat-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.stat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}
.stat b { color: var(--yellow); }

/* ---------- Episodes ---------- */
.episode-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.episode-card .card-img { aspect-ratio: 3 / 4; }
.episode-card h3 { color: #fff; }
.episode-number {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
  font-family: var(--font-head);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.panel-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.manga-panel {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  box-shadow: var(--shadow-soft);
}
.manga-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.manga-panel figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 800;
}

/* ---------- Article content ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}
.article-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: clamp(22px, 4vw, 44px);
}
.article-body h2,
.article-body h3 { margin-top: 1.2em; }
.article-body h2:first-child,
.article-body h3:first-child { margin-top: 0; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li { margin-bottom: .55rem; }
.article-body a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.sidebar { position: sticky; top: 92px; display: grid; gap: 18px; }
.sidebar-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}
.sidebar-card h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--gold);
}

.hero-page {
  padding: clamp(54px, 9vw, 120px) 0 clamp(34px, 6vw, 70px);
  background:
    linear-gradient(rgba(7,8,11,.38), rgba(7,8,11,.9)),
    var(--page-hero, none);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}
.hero-page .hero-card { max-width: 820px; }

/* ---------- Image treatment ---------- */
.image-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
  box-shadow: var(--shadow);
}
.image-band img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 55%);
}
.image-band .caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 760px;
}

/* ---------- Utility pages ---------- */
.utility-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(246,234,213,.98), rgba(238,220,188,.98));
  color: var(--paper-ink);
  padding: clamp(22px, 4vw, 46px);
  box-shadow: var(--shadow-soft);
}
.utility-card h2, .utility-card h3 { color: #120b06; }
.utility-card a { color: #8f120e; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.045); }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #111; background: var(--gold); font-weight: 950; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(226,43,34,.14), transparent 34rem),
    #07080b;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr .8fr;
  gap: 26px;
  padding: 48px 0;
}
.footer-main h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--gold);
}
.footer-main ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-main a { color: var(--muted); }
.footer-main a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--soft);
  font-size: .9rem;
}
.abc-block {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  color: var(--muted);
}
.abc-block strong { color: #fff; }

/* ---------- Forms, if ever used ---------- */
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  background: #0f141e;
  color: var(--ink);
  font: inherit;
}
label { display: block; margin-bottom: 6px; font-weight: 850; color: var(--yellow); }
.form-grid { display: grid; gap: 16px; }

/* ---------- Helpers ---------- */
.center { text-align: center; }
.max-text { max-width: 76ch; }
.max-text.center { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.round { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.no-list { list-style: none; padding: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split,
  .character-hero,
  .article-layout,
  .footer-main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero::after {
    background:
      linear-gradient(0deg, rgba(5,6,8,.96) 0%, rgba(5,6,8,.58) 55%, rgba(5,6,8,.36) 100%);
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-wrap { min-height: 66px; }
  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(11,13,19,.98);
    box-shadow: var(--shadow);
  }
  #nav-check:checked ~ .nav-menu,
  .nav-menu.is-open { display: flex; }
  .nav-menu a { justify-content: center; border-radius: 12px; padding: 13px; }

  .hero { min-height: 660px; }
  .hero-content { padding: 96px 0 42px; }
  .hero-card { border-radius: 20px; }
  .alert-inner { display: grid; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-card .card-body { position: static; border-radius: 0; }
  .feature-card { min-height: auto; }
  .display-title, h1 { font-size: clamp(2.9rem, 16vw, 5rem); }
  h2, .section-title { font-size: clamp(2.1rem, 12vw, 3.8rem); }
}

@media (max-width: 440px) {
  .container { width: min(100% - 24px, var(--max)); }
  .logo strong { font-size: 1.1rem; }
  .logo small { display: none; }
  .logo-mark { width: 38px; height: 38px; }
  .btn { width: 100%; }
  .hero-meta { gap: 8px; }
  .pill { font-size: .78rem; }
  .card-body, .panel, .article-body, .utility-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
