:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #090909;
  --panel-soft: #101010;
  --line: #222;
  --text: #f4f4f4;
  --muted: #a7a7a7;
  --red: #d70f1b;
  --deep-red: #75080e;
  --ember: #df6c2d;
  --gold: #c69b55;
  --steel: #60717e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 12%, rgba(184, 24, 31, 0.18), transparent 22rem),
    radial-gradient(circle at 52% 80%, rgba(198, 155, 85, 0.1), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #030303;
  border-right: 1px solid var(--line);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 20;
}

.brand {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
}

.brand span,
.brand strong {
  font-size: clamp(25px, 2.2vw, 38px);
  line-height: 1;
}

.brand strong {
  color: var(--red);
}

.brand em {
  color: #eee;
  font-size: 18px;
  font-style: normal;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  color: #efefef;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 14px;
  text-align: left;
  text-decoration: none;
  font-size: 16px;
}

.nav-item .icon {
  color: #f2f2f2;
  font-size: 22px;
  line-height: 1;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(90deg, rgba(215, 15, 27, 0.55), rgba(117, 8, 14, 0.12));
  color: #ff3944;
  border-color: rgba(215, 15, 27, 0.2);
}

.responsibility {
  margin-top: auto;
  border: 1px solid rgba(215, 15, 27, 0.45);
  border-radius: 6px;
  min-height: 170px;
  padding: 18px;
  background:
    linear-gradient(180deg, transparent, rgba(117, 8, 14, 0.35)),
    url("assets/mobile-reference.jpeg") center bottom / cover;
  position: relative;
  overflow: hidden;
}

.responsibility::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 3, 3, 0.92), rgba(3, 3, 3, 0.42));
}

.responsibility > * {
  position: relative;
}

.responsibility p {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.responsibility span {
  display: block;
  color: #ddd;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  max-width: 150px;
}

.responsibility button {
  margin-top: 16px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #090909;
  padding: 10px 12px;
  font-size: 14px;
}

.main-area {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 70px;
  display: grid;
  grid-template-columns: 36px auto 1fr minmax(180px, 280px) auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(3, 3, 3, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.menu-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 24px;
}

.top-brand {
  display: none;
}

.top-nav {
  display: flex;
  gap: clamp(18px, 2.3vw, 38px);
}

.top-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.top-nav a.active,
.top-nav a:hover {
  color: var(--red);
}

.search-box {
  height: 40px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  padding: 0 12px;
  background: #060606;
  color: #b9b9b9;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-family: Arial, sans-serif;
}

.sign-in {
  min-width: 110px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  font-size: 15px;
}

.hero {
  position: relative;
  min-height: clamp(440px, 45vw, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0.96;
  transition: opacity 220ms ease;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.64) 34%, rgba(5, 5, 5, 0.12) 72%),
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.72) 24%, rgba(5, 5, 5, 0.08) 72%);
}

.hero::after {
  background: linear-gradient(0deg, #050505 0%, transparent 36%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 0 7vw 62px;
  text-shadow: 0 3px 12px #000;
}

.date-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 28px;
  color: #fff;
  background: linear-gradient(90deg, transparent, rgba(215, 15, 27, 0.85), transparent);
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1;
}

.hero h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 0.92;
  color: #f8f2ea;
}

.hero h1::first-line {
  color: #fff;
}

.hero p:not(.date-tag) {
  max-width: 420px;
  margin: 12px 0 18px;
  color: #f0f0f0;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  min-height: 38px;
  border-radius: 6px;
  padding: 0 16px;
  border: 1px solid #454545;
}

.primary {
  background: var(--red);
  border-color: var(--red);
}

.secondary {
  background: rgba(0, 0, 0, 0.55);
}

.hidden {
  display: none !important;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 74px;
  border: 0;
  background: transparent;
  font-size: 58px;
  line-height: 1;
}

.hero-arrow.prev {
  left: 14px;
}

.hero-arrow.next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #777;
}

.hero-dots button.active {
  background: var(--red);
}

.content-section {
  padding: 10px 26px 0;
}

.section-heading,
.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  font-size: 21px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.view-all,
.ticker button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #ff2631;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.link-button {
  text-decoration: none;
}

.story-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding: 12px 0 16px;
  scrollbar-color: #333 transparent;
}

.page-intro {
  margin: 0 26px 4px;
  padding-top: 28px;
  color: #bbb;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding: 12px 0 32px;
}

.archive-grid .story-card {
  min-width: 0;
}

.story-card {
  min-width: 190px;
  aspect-ratio: 1.78 / 1;
  border: 1px solid #242424;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #111;
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 15, 27, 0.75);
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-image) center / cover;
  filter: saturate(0.92) contrast(1.08);
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.92));
}

.story-card .badge,
.story-card h3,
.story-card p,
.story-card .play {
  position: absolute;
  z-index: 1;
}

.story-card .badge {
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  background: var(--red);
  border-radius: 2px;
  color: #fff;
  font-size: 9px;
  text-transform: uppercase;
}

.story-card h3 {
  left: 10px;
  right: 42px;
  bottom: 28px;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

.story-card p {
  left: 10px;
  right: 12px;
  bottom: 10px;
  margin: 0;
  color: #bbb;
  font-family: Arial, sans-serif;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-card .play {
  right: 8px;
  bottom: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 11px;
}

.ticker {
  min-height: 48px;
  margin: 0 26px 22px;
  border-top: 1px solid #1f1f1f;
  color: #ddd;
  overflow: hidden;
}

.ticker strong {
  font-family: Arial, sans-serif;
  font-size: 19px;
}

.ticker span {
  padding: 5px 9px;
  border-radius: 2px;
  background: var(--red);
  text-transform: uppercase;
  font-size: 11px;
}

.ticker p {
  margin: 0;
  color: #ddd;
  font-family: Arial, sans-serif;
  font-size: 12px;
  white-space: nowrap;
}

.ticker i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ddd;
  flex: 0 0 auto;
}

.story-dialog {
  width: min(840px, calc(100vw - 28px));
  max-height: 90vh;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0;
  color: #fff;
  background: #090909;
  overflow-x: hidden;
  overflow-y: auto;
}

.story-dialog.has-video {
  width: min(380px, calc(100vw - 28px));
}

.story-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.close-dialog {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid #444;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  font-size: 25px;
}

.dialog-art {
  position: relative;
  min-height: 330px;
  background: var(--dialog-image) center / cover;
}

.story-dialog.has-video .dialog-art {
  min-height: 0;
  height: min(65vh, 640px);
}

.dialog-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.dialog-copy {
  padding: 24px;
  font-family: Arial, sans-serif;
}

.dialog-copy span {
  color: #ff303b;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.dialog-copy h3 {
  margin: 8px 0;
  font-size: 28px;
}

.dialog-copy p {
  color: #cfcfcf;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-link {
  display: inline-grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .side-brand,
  .nav-item span + text,
  .nav-item {
    font-size: 0;
  }

  .side-brand {
    display: none;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .nav-item .icon {
    font-size: 24px;
  }

  .responsibility {
    display: none;
  }

  .top-brand {
    display: inline-block;
  }

  .top-nav {
    display: none;
  }

  .topbar {
    grid-template-columns: 36px auto 1fr auto;
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: 250px;
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .side-brand {
    display: inline-block;
  }

  .nav-item {
    grid-template-columns: 30px 1fr;
    justify-items: start;
    padding: 0 14px;
    font-size: 16px;
  }

  .responsibility {
    display: block;
  }

  .topbar {
    height: 64px;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    padding: 0 14px;
  }

  .top-brand .brand span,
  .top-brand strong {
    font-size: 25px;
  }

  .search-box {
    display: none;
  }

  .sign-in {
    min-width: 84px;
    padding: 0 10px;
  }

  .hero {
    min-height: 500px;
    align-items: end;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.88) 48%, #050505 100%);
  }

  .hero-copy {
    padding: 0 24px 68px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .date-tag {
    font-size: 16px;
    padding-inline: 22px;
  }

  .hero-arrow {
    width: 34px;
    font-size: 44px;
  }

  .hero-arrow.prev {
    left: 0;
  }

  .hero-arrow.next {
    right: 0;
  }

  .story-row {
    grid-template-columns: repeat(5, 230px);
  }

  .content-section {
    padding-inline: 16px;
  }

  .ticker {
    margin-inline: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 12px;
  }
}
