:root {
  color-scheme: light;
  --navy: #061a3b;
  --navy-soft: #102b55;
  --paper: #f7edd9;
  --paper-deep: #ead9bc;
  --paper-light: #fff8e9;
  --red: #d82722;
  --red-dark: #b91e1b;
  --ink-muted: #526078;
  --line: rgba(6, 26, 59, 0.28);
  --line-light: rgba(247, 237, 217, 0.34);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --content: 1380px;
  --reading: 680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: var(--sans);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body,
button {
  font-size: 16px;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: -9999px;
  background: var(--paper-light);
  color: var(--navy);
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.site-bar {
  background: var(--navy);
  color: var(--paper);
}

.site-bar__inner {
  width: min(calc(100% - 48px), var(--content));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font: 700 28px/1 var(--serif);
  letter-spacing: 0.08em;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
  font-weight: 700;
}

.archive-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.archive-link--quiet {
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.archive-link--quiet svg {
  color: var(--red);
}

.issue-shell {
  background: var(--paper);
}

.issue-masthead {
  position: relative;
  width: min(calc(100% - 48px), var(--content));
  min-height: 190px;
  margin: 0 auto;
  padding: 28px 0 18px;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 640px) 1fr;
  align-items: end;
  column-gap: 34px;
}

.issue-masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  width: 75%;
  height: 5px;
  background: var(--red);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
}

.issue-masthead h1 {
  margin: 0;
  color: var(--red);
  text-align: center;
  font: 700 clamp(64px, 8vw, 112px) / 0.92 var(--serif);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.masthead-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  padding: 9px 2px 8px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.masthead-meta--issue {
  justify-content: flex-end;
}

.masthead-meta--issue span:first-child {
  display: none;
}

.issue-rule {
  position: relative;
  width: min(calc(100% - 48px), var(--content));
  height: 11px;
  margin: 0 auto;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.issue-rule span {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 44px;
  height: 22px;
  background: var(--navy);
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.lead-story {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 74px) 0 34px;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.45fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
}

.lead-story__copy {
  max-width: 620px;
}

.story-meta {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.lead-story h2,
.section-heading h2,
.story-copy h3,
.night-lead h3,
.fan-story h3,
.knowledge-story h3,
.source-footer h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead-story h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.08;
}

.lead-story h2 > span {
  white-space: nowrap;
}

.lead-story h2 em {
  color: var(--red);
  font-style: normal;
  white-space: nowrap;
}

.deck {
  margin: 20px 0;
  font: 600 clamp(18px, 1.65vw, 23px) / 1.65 var(--serif);
}

.lead-story__copy > p:not(.story-meta):not(.deck),
.story-copy > p:not(.story-meta):not(.deck):not(.reading-warning),
.night-lead__copy > p:not(.story-meta):not(.deck),
.fan-story__copy > p:not(.story-meta):not(.deck),
.knowledge-story__copy > p:not(.story-meta):not(.deck) {
  font: 400 17px / 1.95 var(--serif);
}

.editorial-figure {
  margin: 0;
}

.editorial-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-deep);
}

.editorial-figure figcaption {
  margin-top: 8px;
  border-left: 3px solid var(--red);
  padding-left: 9px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.editorial-figure--lead img {
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 90% 100%, 0 100%, 0 27%);
}

.headline-rail {
  width: min(calc(100% - 48px), var(--content));
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: 2px solid var(--navy);
  border-bottom: 4px solid var(--navy);
}

.headline-rail a {
  min-width: 0;
  min-height: 142px;
  padding: 18px 16px;
  border-right: 1px dotted rgba(6, 26, 59, 0.45);
  text-decoration: none;
  font: 700 16px / 1.55 var(--serif);
}

.headline-rail a:last-child {
  border-right: 0;
}

.headline-rail a:hover {
  background: var(--paper-light);
}

.headline-rail span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font: 700 12px / 1 var(--sans);
  letter-spacing: 0.12em;
}

.section-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  margin-top: 32px;
  background: rgba(247, 237, 217, 0.96);
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  backdrop-filter: blur(10px);
}

.section-nav__inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav__inner::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 1;
  min-width: max-content;
  padding: 12px 22px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-nav a[aria-current="true"] {
  background: var(--navy);
  color: var(--paper);
}

.section {
  padding: clamp(64px, 8vw, 112px) max(24px, calc((100vw - var(--content)) / 2));
  scroll-margin-top: 54px;
}

.section--paper + .section--paper {
  padding-top: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 56px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 16px;
}

.section-heading p {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
}

.story-spread {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: clamp(46px, 7vw, 112px);
  align-items: center;
  padding: 16px 0 84px;
}

.story-spread + .story-spread {
  border-top: 1px solid var(--line);
  padding-top: 84px;
}

.story-spread--reverse .editorial-figure {
  order: 2;
}

.story-copy {
  max-width: var(--reading);
}

.story-copy h3,
.fan-story h3,
.knowledge-story h3 {
  margin: 0;
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: 1.24;
}

.editorial-figure--cut-left img {
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 16%);
}

.editorial-figure--cut-right img {
  clip-path: polygon(0 0, 86% 0, 100% 16%, 100% 100%, 0 100%);
}

.reading-warning {
  margin: 18px 0;
  border-left: 5px solid var(--red);
  padding: 7px 0 7px 13px;
  font-size: 14px;
  font-weight: 700;
}

.source-details {
  margin-top: 28px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.source-details summary {
  position: relative;
  padding: 14px 38px 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.source-details summary::-webkit-details-marker {
  display: none;
}

.source-details summary::after {
  content: "+";
  position: absolute;
  top: 8px;
  right: 3px;
  color: var(--red);
  font: 400 28px / 1 var(--sans);
}

.source-details[open] summary::after {
  content: "−";
}

.source-details summary span {
  margin-left: 8px;
  color: var(--ink-muted);
  font-weight: 400;
}

.source-details blockquote {
  margin: 0;
  padding: 18px 20px 22px;
  border-left: 4px solid var(--red);
  background: rgba(255, 248, 233, 0.58);
  font: 400 16px / 1.95 var(--serif);
}

.editor-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--paper-deep);
  font-size: 13px;
  line-height: 1.7;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.editor-note strong {
  margin-right: 8px;
  color: var(--red-dark);
}

.section--night {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
}

.section--night::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 29vw;
  height: 10px;
  background: var(--red);
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
}

.section-heading--light {
  border-color: var(--paper);
}

.night-lead {
  display: grid;
  grid-template-columns: minmax(380px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}

.night-lead h3 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.14;
}

.editorial-figure--night img {
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 88% 100%, 0 100%, 0 24%);
}

.section--night .story-meta {
  color: #ef6a5f;
}

.section--night .editorial-figure figcaption,
.section--night .source-details summary span {
  color: rgba(247, 237, 217, 0.7);
}

.source-details--dark blockquote {
  background: rgba(247, 237, 217, 0.07);
}

.source-details--dark .editor-note {
  background: rgba(247, 237, 217, 0.12);
}

.source-details--dark .editor-note strong {
  color: #ef6a5f;
}

.fan-story {
  margin-top: 96px;
  padding-top: 64px;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(46px, 7vw, 112px);
  align-items: center;
  border-top: 1px solid var(--line-light);
}

.fan-story h3 {
  color: var(--paper-light);
}

.editorial-figure--fan img {
  clip-path: polygon(0 0, 86% 0, 100% 18%, 100% 100%, 0 100%);
}

.knowledge-story {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 0.9fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.knowledge-story__copy {
  max-width: var(--reading);
}

.law-list {
  margin: 26px 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.law-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font: 600 17px / 1.65 var(--serif);
}

.law-list span {
  color: var(--red);
  font-family: var(--sans);
  font-weight: 700;
}

.editorial-figure--knowledge img {
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
}

.source-footer {
  background: var(--paper-light);
  border-top: 5px solid var(--navy);
  padding: clamp(64px, 7vw, 96px) max(24px, calc((100vw - var(--content)) / 2));
  scroll-margin-top: 54px;
}

.source-footer__title {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 42px;
}

.source-footer__title > p {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.source-footer h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.14;
}

.source-footer__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.source-footer__items > div {
  padding: 30px;
  border-right: 1px solid var(--line);
}

.source-footer__items > div:last-child {
  border-right: 0;
}

.source-footer__items span {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.source-footer__items h3 {
  margin: 9px 0;
  font: 700 26px / 1.2 var(--serif);
}

.source-footer__items p {
  margin: 0;
  font-family: var(--serif);
}

.source-footer__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.archive-link--primary {
  background: var(--red);
  color: white;
  padding: 13px 18px 13px 22px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.copy-link {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--navy);
  padding: 5px 0;
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  width: min(calc(100% - 48px), var(--content));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--paper);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  margin-right: 8px;
  font: 700 20px / 1 var(--serif);
  letter-spacing: 0.08em;
}

.site-footer a {
  color: var(--paper);
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .issue-masthead {
    grid-template-columns: 1fr minmax(300px, 500px) 1fr;
    column-gap: 20px;
  }

  .headline-rail {
    grid-template-columns: repeat(4, 1fr);
  }

  .headline-rail a:nth-child(4) {
    border-right: 0;
  }

  .headline-rail a:nth-child(-n + 4) {
    border-bottom: 1px dotted rgba(6, 26, 59, 0.45);
  }

  .lead-story,
  .story-spread,
  .night-lead,
  .fan-story,
  .knowledge-story {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .site-bar__inner,
  .issue-masthead,
  .issue-rule,
  .lead-story,
  .headline-rail,
  .site-footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-bar__inner {
    min-height: 68px;
  }

  .brand {
    font-size: 23px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .issue-masthead {
    min-height: 0;
    padding-top: 24px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .issue-masthead h1 {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 24px;
    font-size: clamp(55px, 16vw, 80px);
  }

  .masthead-meta {
    grid-row: 2;
    border-top-width: 1px;
    font-size: 13px;
  }

  .masthead-meta--date {
    justify-content: flex-start;
  }

  .masthead-meta--date span:last-child {
    margin-left: 8px;
  }

  .issue-masthead::before {
    left: 18%;
    width: 82%;
  }

  .lead-story,
  .story-spread,
  .story-spread--reverse,
  .night-lead,
  .fan-story,
  .knowledge-story {
    grid-template-columns: 1fr;
  }

  .lead-story {
    padding-top: 34px;
  }

  .lead-story__copy {
    max-width: none;
  }

  .lead-story .editorial-figure {
    grid-row: 1;
  }

  .story-spread--reverse .editorial-figure {
    order: 0;
  }

  .headline-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .headline-rail a {
    min-height: 118px;
  }

  .headline-rail a:nth-child(even) {
    border-right: 0;
  }

  .headline-rail a:nth-child(-n + 6) {
    border-bottom: 1px dotted rgba(6, 26, 59, 0.45);
  }

  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading,
  .source-footer__title {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .story-spread {
    padding-bottom: 64px;
  }

  .story-spread + .story-spread {
    padding-top: 64px;
  }

  .night-lead h3 {
    font-size: clamp(38px, 9vw, 58px);
  }

  .fan-story {
    margin-top: 72px;
    padding-top: 52px;
  }

  .source-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .source-footer__items {
    grid-template-columns: 1fr;
  }

  .source-footer__items > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .source-footer__items > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 54px;
  }

  body {
    line-height: 1.65;
  }

  .archive-link--quiet {
    font-size: 12px;
  }

  .issue-masthead {
    grid-template-columns: 1fr;
  }

  .issue-masthead h1 {
    font-size: 17vw;
    letter-spacing: 0.06em;
  }

  .masthead-meta {
    justify-content: center;
    border-bottom: 0;
    padding: 5px 0;
  }

  .masthead-meta--date {
    grid-row: 2;
  }

  .masthead-meta--issue {
    grid-row: 3;
  }

  .masthead-meta--issue span:first-child {
    display: inline;
  }

  .lead-story h2 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .lead-story h2 br {
    display: none;
  }

  .deck {
    font-size: 18px;
  }

  .headline-rail {
    grid-template-columns: 1fr;
  }

  .headline-rail a {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px dotted rgba(6, 26, 59, 0.45);
    padding: 13px 4px;
  }

  .headline-rail a:last-child {
    border-bottom: 0;
  }

  .headline-rail span {
    display: inline-block;
    width: 48px;
    margin-bottom: 0;
  }

  .section-nav a {
    padding: 10px 15px;
    font-size: 12px;
  }

  .section {
    scroll-margin-top: 44px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

  .story-copy h3,
  .fan-story h3,
  .knowledge-story h3 {
    font-size: 33px;
  }

  .lead-story__copy > p:not(.story-meta):not(.deck),
  .story-copy > p:not(.story-meta):not(.deck):not(.reading-warning),
  .night-lead__copy > p:not(.story-meta):not(.deck),
  .fan-story__copy > p:not(.story-meta):not(.deck),
  .knowledge-story__copy > p:not(.story-meta):not(.deck) {
    font-size: 16px;
    line-height: 1.86;
  }

  .source-details summary span {
    display: block;
    margin: 2px 0 0;
  }

  .source-details blockquote {
    padding: 16px 14px 18px;
    font-size: 15px;
  }

  .source-footer__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    min-height: 132px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

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