:root {
  color-scheme: light;
  --canvas: #f3f5f7;
  --surface: #fff;
  --ink: #111c2f;
  --muted: #586579;
  --line: #dbe2ea;
  --accent: #b6263f;
  --hero-accent: #ff8b91;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.page { width: min(100% - 56px, 1240px); margin: 24px auto 0; }
.skip { position: absolute; top: -80px; left: 12px; z-index: 2; padding: 12px; background: var(--surface); }
.skip:focus { top: 12px; }

.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px clamp(20px, 4vw, 52px) 16px;
  border-radius: 14px;
  background: linear-gradient(112deg, #0c1527 20%, #172b4a 76%, #233854);
  color: #f7f9fe;
}
.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -170px -60px -90px 32%;
  background:
    repeating-radial-gradient(ellipse at 74% 49%, transparent 0 26px, #96acd640 27px 28px, transparent 29px 42px),
    repeating-linear-gradient(125deg, transparent 0 52px, #96acd626 53px 54px);
  mask-image: linear-gradient(90deg, transparent, #000 52%);
  transform: rotate(-8deg);
}
.masthead::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 9px;
  height: 9px;
  right: 18%;
  top: 42%;
  border-radius: 50%;
  background: var(--hero-accent);
  box-shadow: 0 0 0 6px #ff8b9130, 0 0 0 13px #ff8b9116;
}
.masthead-top, .masthead-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.masthead-top {
  color: #d4dfef;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.edition-mark { display: inline-flex; align-items: center; gap: 9px; }
.edition-mark::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hero-accent);
}
.masthead-body { padding: 38px 0 30px; }
.brand {
  display: inline-block;
  font-size: clamp(2.25rem, 8vw, 6.55rem);
  font-weight: 850;
  letter-spacing: -.072em;
  line-height: 1;
}
.brand span { color: var(--hero-accent); font-weight: 650; }
.masthead-body p { max-width: 38ch; margin: 14px 0 0; color: #d4dfef; font-size: clamp(.93rem, 1.6vw, 1.16rem); }
.masthead-bottom { padding-top: 15px; border-top: 1px solid #99afd544; }
.masthead :focus-visible { outline-color: var(--hero-accent); }
.update { color: #c4d3e9; font-size: .8rem; }
.filters { display: flex; gap: 4px; padding: 3px; border: 1px solid #a1b4d651; border-radius: 8px; }
.filter {
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #e5ecf7;
  font: inherit;
  font-size: .76rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.filter:hover:not(.active) { background: #ffffff19; }
.filter.active { background: #fff; color: #142039; }
.filter span { margin-left: 4px; font-size: .66rem; }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 15px; }
.section-heading h1, .section-heading h2 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
.section-heading h1 { font-size: clamp(1.65rem, 4vw, 2.55rem); }
.section-heading h2 { font-size: clamp(1.35rem, 3vw, 1.95rem); }
.item-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.message { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.lead-grid, .news-grid { display: grid; gap: 16px; }
.lead-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.news-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.news-photo { margin: 0; min-width: 0; }
.news-photo img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e6ebf1; }
.lead-grid-single img { max-height: 440px; }
.news-photo figcaption { margin: 6px 14px 0; font-size: .67rem; color: var(--muted); overflow-wrap: anywhere; }
.card-details { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 12px 16px 16px; min-width: 0; }
.source { color: var(--accent); font-size: .73rem; font-weight: 750; line-height: 1.2; }
.card-details h2 { margin: 6px 0 12px; font-size: 1.1rem; line-height: 1.28; letter-spacing: -.015em; overflow-wrap: anywhere; }
.feature h2 { font-size: clamp(1.3rem, 2.4vw, 2.05rem); }
.card-details time, .brief-meta time { color: var(--muted); font-size: .73rem; }
.card-details time { margin-top: auto; }
.headline:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.lead-sidebar { min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.lead-sidebar .news-card {
  display: grid;
  grid-template-columns: clamp(82px, 10vw, 120px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
}
.lead-sidebar .news-card + .news-card { border-top: 1px solid var(--line); }
.lead-sidebar img { border-radius: 5px; }
.lead-sidebar figcaption { margin: 3px 0 0; font-size: .625rem; line-height: 1.2; }
.lead-sidebar .card-details { gap: 4px; padding: 0; }
.card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.card-meta time { margin: 0; }
.lead-sidebar h2 { margin: 0; font-size: clamp(.94rem, 1.45vw, 1.06rem); line-height: 1.22; }

.briefs-section { margin-top: 34px; }
.briefs-list { margin: 0; padding: 0 18px; list-style: none; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.brief { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; padding: 13px 0; }
.brief + .brief { border-top: 1px solid var(--line); }
.brief .headline { font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.brief-meta { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 5px 13px; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 34px; border-top: 1px solid var(--line); padding: 22px 0 28px; font-size: .73rem; color: var(--muted); }
.footer-brand { font-size: 1rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.footer-brand span { color: var(--accent); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .lead-grid:not(.lead-grid-single) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .lead-grid-full .feature { align-self: stretch; }
  .lead-grid-full .feature .news-photo { display: flex; flex: 1 0 auto; flex-direction: column; }
  .lead-grid-full .feature-photo-frame { position: relative; flex: 1 0 auto; min-height: clamp(180px, 18vw, 220px); }
  .lead-grid-full .feature img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .lead-grid-full .feature .card-details { flex: none; }
}
@media (max-width: 799px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .page { width: calc(100% - 24px); margin-top: 12px; }
  .masthead { border-radius: 10px; padding: 16px 14px 12px; }
  .masthead-top { font-size: .62rem; letter-spacing: .045em; }
  .masthead-body { padding: 28px 0 22px; }
  .masthead::after { display: none; }
  .masthead-bottom { flex-wrap: wrap; }
  .update { font-size: .72rem; }
  .section-heading { margin-top: 24px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .brief { flex-direction: column; gap: 5px; }
  .brief-meta { justify-content: flex-start; }
}
