@import url("https://fonts.googleapis.com/css2?family=Archivo+Expanded:wght@700;800&family=Manrope:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,700&display=swap");

:root {
  --bg: #ecf5ff;
  --surface: #f7fbff;
  --surface-strong: #ffffff;
  --ink: #0f1b2d;
  --muted: #4f6178;
  --border: rgba(15, 27, 45, 0.08);
  --shadow: 0 18px 40px rgba(7, 29, 66, 0.08);
  --shadow-soft: 0 10px 24px rgba(7, 29, 66, 0.06);
  --accent: #1485ff;
  --accent-blue: #0063f7;
  --accent-yellow: #b7d8ff;
  --accent-green: #15b4ff;
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 133, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #f6fbff 0%, #eef6ff 48%, #f7fbff 100%);
  font-family: "Manrope", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-chrome {
  position: relative;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1260px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 23, 46, 0.96);
  box-shadow: 0 12px 28px rgba(7, 29, 66, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-family: "Archivo Expanded", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.page-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.hero {
  display: block;
  min-height: 0;
}

.hero-copy,
.filters,
.story-card,
.drop-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: none;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(20, 133, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98));
}

.hero-copy::before {
  content: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Archivo Expanded", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5.7rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-line {
  display: block;
}

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

.hero-line-accent {
  color: var(--accent);
}

.hero-sub {
  max-width: 38rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 420px;
  padding: 24px 20px 20px;
  border: 1px solid rgba(20, 133, 255, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #0f2952 0%, #0a2240 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 133, 255, 0.5), transparent 72%);
}

.hero-mascot {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}

.hero-kicker {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.hero-actions,
.hero-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0a57e8);
  box-shadow: 0 16px 30px rgba(20, 133, 255, 0.28);
}

.button-secondary,
.button-ghost {
  border-color: var(--border);
  background: #f7fbff;
}

.button-x {
  color: #ffffff;
  border-color: rgba(11, 17, 31, 0.92);
  background: linear-gradient(135deg, #13233b, #05080d);
  box-shadow: 0 14px 24px rgba(5, 8, 13, 0.18);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.stat-card {
  padding: 16px 18px;
  border: 1px solid rgba(22, 19, 17, 0.08);
  border-radius: 20px;
  background: #fffdf9;
}

.stat-value {
  font-family: "Archivo Expanded", sans-serif;
  font-size: 1.4rem;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-card-top,
.story-card-top,
.panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-category,
.panel-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(22, 19, 17, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-date,
.panel-date,
.section-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.story-thumb-wrap,
.panel-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 242, 236, 0.92)),
    linear-gradient(90deg, rgba(22, 19, 17, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(22, 19, 17, 0.04) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}

.hero-art-wrap::after,
.panel-image-wrap::after {
  content: none;
}

.story-thumb,
.panel-image {
  max-height: 100%;
  object-fit: contain;
}

.panel-title {
  margin: 0;
  font-family: "Archivo Expanded", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.panel-summary,
.panel-angle {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-source {
  border-style: dashed;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-family: "Archivo Expanded", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  text-transform: uppercase;
}

.today-drop,
.archive-section {
  margin-top: 34px;
}

.drop-rail {
  display: grid;
  grid-template-columns: repeat(10, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.drop-pill {
  display: grid;
  gap: 12px;
  min-width: 220px;
  padding: 16px;
  border-radius: 24px;
}

.drop-pill img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 242, 236, 0.92)),
    linear-gradient(90deg, rgba(22, 19, 17, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(22, 19, 17, 0.04) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
}

.drop-pill-main {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.drop-pill-actions {
  margin-top: auto;
}

.drop-pill-actions .button-card {
  width: 100%;
}

.drop-pill h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.drop-pill p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.filters {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 28px;
}

.search-shell {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.search-shell input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(22, 19, 17, 0.1);
  border-radius: 18px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(22, 19, 17, 0.08);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--muted);
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(22, 19, 17, 0.18);
  transform: translateY(-1px);
}

.archive-layout {
  display: block;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  border-radius: 26px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.story-card.is-selected {
  border-color: rgba(22, 19, 17, 0.2);
  transform: translateY(-2px);
}

.story-card-shell {
  padding: 18px;
}

.story-thumb-wrap {
  min-height: 160px;
  margin-top: 12px;
  border-radius: 22px;
}

.story-copy {
  margin-top: 14px;
}

.story-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.story-topic {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-blurb {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.82rem;
}

.panel-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-quote {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(22, 19, 17, 0.05);
}

.panel-quote-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-quote-text {
  font-family: "Archivo Expanded", sans-serif;
  font-size: 1.3rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.panel-summary {
  font-family: "Newsreader", serif;
  font-size: 1.1rem;
  line-height: 1.72;
  color: #22344b;
}

.panel-angle {
  padding-top: 14px;
  border-top: 1px solid rgba(22, 19, 17, 0.08);
}

.story-detail {
  margin-top: 14px;
  padding: 18px;
  border-top: 1px solid rgba(22, 19, 17, 0.08);
  background: #f5faff;
  border-radius: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 19, 17, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.story-card-actions,
.story-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button-card {
  flex: 1 1 calc(50% - 10px);
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed rgba(22, 19, 17, 0.18);
  border-radius: 28px;
  background: #fffdf9;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1080px) {
  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 24px;
  }

  .nav {
    display: none;
  }

  .page-shell {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .hero-copy,
  .filters,
  .story-card,
  .drop-pill {
    border-radius: 24px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 320px;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-detail {
    padding: 18px;
  }

  .story-thumb-wrap {
    min-height: 140px;
  }

  .drop-rail {
    grid-template-columns: repeat(10, minmax(190px, 1fr));
  }
}

@media (max-width: 560px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}
