:root {
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #080808;
  --muted: #5c5c5c;
  --hairline: #111111;
  --line: #d9d9d4;
  --soft: #f1f1ee;
  --red: #d30d1f;
  --red-soft: #fff1f1;
  --amber: #8a5a00;
  --amber-soft: #fff7dc;
  --green: #17664b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: end;
  border-bottom: 3px solid var(--hairline);
  padding-bottom: 16px;
  margin-bottom: 26px;
}

.brand {
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-weight: 300;
}

.masthead-rule {
  height: 10px;
  border-top: 8px solid var(--hairline);
  align-self: center;
}

.issue-meta {
  text-align: right;
  min-width: 160px;
}

.issue-meta strong {
  display: block;
  font-size: 58px;
  line-height: 0.86;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.issue-meta span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.issue-meta em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.front-lede {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  background: #eeeeeb;
  padding: 36px 34px;
  margin-bottom: 28px;
}

.red-rule {
  width: 5px;
  background: var(--red);
}

.section-label,
.story-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.front-lede h1 {
  margin: 8px 0 4px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(58px, 12vw, 145px);
  line-height: 0.82;
  letter-spacing: -0.05em;
}

.front-lede p {
  margin: 14px 0 0;
  font-size: 18px;
  color: #2d2d2d;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--hairline);
  padding-bottom: 28px;
}

.lead-primary {
  grid-row: span 2;
  background: var(--paper);
  border-left: 5px solid var(--red);
  padding-left: 22px;
}

.paper-grid {
  column-count: 3;
  column-gap: 28px;
}

.news-card {
  break-inside: avoid;
  background: var(--paper);
  border-top: 2px solid var(--hairline);
  padding: 14px 0 18px;
  margin-bottom: 24px;
}

.lead.news-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--hairline);
  padding: 22px;
}

.story-kicker {
  margin-bottom: 8px;
}

.news-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.paper-grid .news-card h2 {
  font-size: 31px;
}

.news-card h2 a {
  text-decoration: none;
}

.news-card h2 a:hover,
.read-more:hover,
.source-link:hover,
.back-nav a:hover {
  color: var(--red);
}

.news-card p {
  margin: 12px 0;
  color: #222;
  font-size: 14px;
}

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

.deadline-date {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.countdown {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 2px 9px;
  background: #edf8f3;
  color: var(--green);
  font-weight: 900;
  font-size: 13px;
}

.countdown.is-urgent {
  background: var(--red-soft);
  color: var(--red);
}

.countdown.is-closed {
  background: var(--soft);
  color: var(--muted);
}

.estimate-mark,
.meta-warn {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #deb95a;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.story-tags,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 1px 7px;
  background: #f8f8f5;
  color: #333;
  font-size: 12px;
}

.tag-warn {
  border-color: #deb95a;
  background: var(--amber-soft);
  color: var(--amber);
}

.read-more,
.source-link,
.back-nav a {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.site-footer {
  border-top: 2px solid var(--hairline);
  margin-top: 36px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer span {
  display: block;
  margin-top: 4px;
}

.detail-shell {
  max-width: 980px;
}

.back-nav {
  margin: 0 0 18px;
}

.detail-page {
  background: var(--paper);
  border-top: 4px solid var(--hairline);
  padding: 30px 34px 38px;
}

.detail-header {
  border-bottom: 2px solid var(--hairline);
  padding-bottom: 22px;
  margin-bottom: 8px;
}

.detail-header h1 {
  margin: 8px 0 12px;
  max-width: 860px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.detail-header p {
  max-width: 780px;
  margin: 0;
  color: #242424;
  font-size: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  padding: 3px 9px;
  background: #f8f8f5;
  font-size: 13px;
  font-weight: 700;
}

.notice-block {
  margin: 20px 0 6px;
  padding: 15px 16px;
  border: 2px solid var(--red);
  color: var(--ink);
  background: #fffafa;
  font-weight: 700;
}

.content-section {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.content-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.content-section ul {
  margin: 0;
  padding-left: 18px;
}

.content-section li {
  margin: 7px 0;
}

.content-section a {
  color: var(--red);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.muted {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .masthead,
  .lead-grid,
  .content-section {
    grid-template-columns: 1fr;
  }

  .masthead-rule {
    display: none;
  }

  .issue-meta {
    text-align: left;
  }

  .paper-grid {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .brand {
    font-size: 42px;
  }

  .front-lede {
    grid-template-columns: 5px 1fr;
    gap: 14px;
    padding: 24px 18px;
  }

  .front-lede h1 {
    font-size: 58px;
  }

  .paper-grid {
    column-count: 1;
  }

  .lead.news-card,
  .detail-page {
    padding: 18px;
  }
}
