:root {
  color-scheme: dark;
  --bg: #070b16;
  --bg-raised: #0d1426;
  --card: rgba(16, 24, 44, 0.84);
  --card-hover: rgba(20, 30, 54, 0.95);
  --line: rgba(159, 178, 214, 0.17);
  --line-strong: rgba(159, 178, 214, 0.31);
  --text: #f5f7fb;
  --muted: #a7b1c6;
  --muted-2: #7f8ba3;
  --gold: #f4b860;
  --gold-soft: rgba(244, 184, 96, 0.14);
  --blue: #79b8ff;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(121, 184, 255, 0.78);
  outline-offset: 3px;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

.page-glow--one {
  top: -280px;
  right: -180px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(45, 102, 181, 0.17), transparent 68%);
}

.page-glow--two {
  top: 560px;
  left: -340px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(244, 184, 96, 0.075), transparent 68%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #6fa9ed;
  filter: drop-shadow(0 8px 18px rgba(23, 82, 158, 0.25));
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-copy strong {
  font-size: 1.22rem;
  font-weight: 900;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.edition {
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding: 72px 0 42px;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  font-weight: 870;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.date-panel {
  min-width: 288px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 19, 35, 0.74);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
}

.date-panel__label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.date-control {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 8px;
}

.icon-button,
.date-input-wrap {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.icon-button {
  display: grid;
  cursor: pointer;
  place-items: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button:hover:not(:disabled) {
  border-color: rgba(244, 184, 96, 0.54);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.icon-button svg,
.date-input-wrap svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--gold);
}

.date-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.date-input-wrap input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 0.62;
}

.date-strip {
  display: flex;
  gap: 9px;
  padding: 0 0 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.date-chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.date-chip[aria-current="date"] {
  border-color: rgba(244, 184, 96, 0.48);
  background: var(--gold-soft);
  color: #ffd79a;
}

.edition-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 31px 0 25px;
  border-top: 1px solid var(--line);
}

.edition-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.edition-weekday {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.story-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 680;
}

.story-count #story-count {
  display: inline-grid;
  width: 31px;
  height: 31px;
  margin-right: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-weight: 900;
}

.story-count #story-count-label {
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
}

.stories {
  position: relative;
  display: grid;
  gap: 16px;
}

.stories::before {
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 35px;
  width: 1px;
  background: linear-gradient(transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
  content: "";
}

.story-card {
  --accent: var(--gold);
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 38%), var(--card);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.11);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%);
  pointer-events: none;
  content: "";
}

.story-card:hover {
  border-color: var(--line-strong);
  background-color: var(--card-hover);
  transform: translateY(-2px);
}

.story-number {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.story-number span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--accent);
  box-shadow: 0 0 0 7px var(--bg-raised);
  font-size: 0.85rem;
  font-weight: 900;
}

.story-content {
  position: relative;
  z-index: 1;
  padding: 29px 32px 30px 12px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 11px;
}

.category {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-name {
  color: var(--muted-2);
  font-size: 0.77rem;
}

.source-name::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: var(--muted-2);
  content: "";
}

.story-content h3 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -0.026em;
  line-height: 1.19;
}

.summary {
  max-width: 820px;
  margin-bottom: 19px;
  color: #c6cede;
  line-height: 1.68;
}

.impact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.impact {
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: #dce2ee;
  font-size: 0.92rem;
  line-height: 1.52;
}

.impact strong {
  color: var(--accent);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 330px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.source-link:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
}

.source-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading-state,
.empty-state {
  padding: 72px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
}

.empty-state__globe {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 3.4rem;
  line-height: 1;
}

.empty-state h2 {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 1.4rem;
}

.empty-state p {
  margin-bottom: 22px;
}

.primary-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--gold);
  color: #161109;
  cursor: pointer;
  font-weight: 850;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 48px 0 38px;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    padding-top: 18px;
  }

  .edition {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 52px 0 28px;
  }

  .date-panel {
    min-width: 0;
  }

  .date-strip {
    padding-bottom: 25px;
  }

  .edition-heading {
    padding-top: 25px;
  }

  .story-card {
    grid-template-columns: 54px minmax(0, 1fr);
    border-radius: 18px;
  }

  .stories::before {
    left: 27px;
  }

  .story-number {
    padding-top: 24px;
  }

  .story-number span {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 5px var(--bg-raised);
    font-size: 0.77rem;
  }

  .story-content {
    padding: 23px 18px 24px 6px;
  }

  .impact-row {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .source-link {
    justify-self: start;
  }

  .source-links {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .eyebrow {
    font-size: 0.73rem;
  }

  h1 {
    font-size: 2.58rem;
  }

  .intro-copy {
    font-size: 1rem;
  }

  .story-count {
    display: none;
  }

  .story-card {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .stories::before {
    left: 22px;
  }

  .story-number span {
    width: 29px;
    height: 29px;
  }

  .story-content {
    padding-left: 4px;
  }

  .source-name {
    flex-basis: 100%;
  }

  .source-name::before {
    display: none;
  }

  footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
