:root {
  --paper: #f2f0e9;
  --ink: #111111;
  --red: #e32720;
  --muted: #62625e;
  --rule: #b9b7af;
  --white: #ffffff;
  font-family: Arial, Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

::selection {
  color: var(--white);
  background: var(--red);
}

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

.subpage-header {
  border-top: 6px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.subpage-nav {
  display: flex;
  width: min(100%, 1440px);
  min-height: 76px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 44px);
  align-items: stretch;
  justify-content: space-between;
}

.subpage-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.subpage-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-size: 18px;
  line-height: 1;
}

.subpage-home {
  display: flex;
  align-items: center;
  padding-left: 28px;
  border-left: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.subpage-home:hover {
  color: var(--white);
  background: var(--ink);
}

.subpage-main {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 0 clamp(18px, 3vw, 44px) 90px;
}

.article-header {
  display: grid;
  grid-template-columns: 3fr 9fr;
  padding: clamp(44px, 7vw, 96px) 0 36px;
  border-bottom: 4px solid var(--ink);
}

.article-kicker {
  margin: 8px 28px 24px 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.article-heading {
  min-width: 0;
}

.article-title {
  margin: 0;
  font-size: clamp(34px, 4.7vw, 70px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.article-meta {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}

.source-note {
  display: grid;
  grid-template-columns: 3fr 9fr;
  border-bottom: 1px solid var(--ink);
}

.source-note-label {
  padding: 24px 28px 24px 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-note-content {
  min-width: 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.source-note-content a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-body {
  width: 75%;
  max-width: 920px;
  margin-left: 25%;
  padding-top: 42px;
}

.article-body p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.9;
}

.article-body .lead {
  margin-bottom: 38px;
  padding: 22px 0 22px 24px;
  border-left: 6px solid var(--red);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.article-body h2 {
  margin: 58px 0 24px;
  padding-top: 18px;
  border-top: 4px solid var(--ink);
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.article-body h3 {
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  font-size: 19px;
  line-height: 1.4;
}

.article-body a {
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-body a:hover {
  color: var(--red);
}

.article-body ul,
.article-body ol {
  margin: 0 0 26px;
  padding-left: 24px;
}

.article-body li {
  margin: 8px 0;
  padding-left: 5px;
  line-height: 1.75;
}

.article-body li::marker {
  color: var(--red);
}

.article-body figure {
  margin: 36px 0 42px;
}

.article-body figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}

.article-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

.arch {
  margin: 26px 0;
  padding: 22px 24px;
  border: 1px solid var(--ink);
  border-left: 6px solid var(--red);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 32px 0 42px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

pre {
  margin: 24px 0 36px;
  padding: 24px;
  border-left: 6px solid var(--red);
  color: #f5f5f5;
  background: var(--ink);
  overflow: auto;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 4;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

p code,
li code {
  padding: 2px 5px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.9em;
}

.subpage-footer {
  color: var(--white);
  background: var(--ink);
}

.subpage-footer-inner {
  display: grid;
  grid-template-columns: 3fr 9fr;
  width: min(100%, 1440px);
  min-height: 150px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 44px);
  align-items: center;
}

.footer-site {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-note {
  padding-left: 28px;
  border-left: 1px solid #484848;
  color: #c5c5c5;
  font-size: 12px;
  line-height: 1.8;
}

.footer-note a {
  color: var(--white);
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .subpage-nav {
    min-height: 64px;
  }

  .subpage-home {
    padding-left: 16px;
  }

  .article-header,
  .source-note {
    display: block;
  }

  .article-header {
    padding: 42px 0 26px;
  }

  .article-kicker {
    margin-bottom: 22px;
  }

  .article-title {
    font-size: clamp(32px, 10vw, 48px);
    letter-spacing: -0.025em;
  }

  .article-meta {
    margin-top: 20px;
  }

  .source-note-label {
    padding: 20px 0 0;
  }

  .source-note-content {
    padding: 10px 0 22px;
  }

  .article-body {
    width: 100%;
    margin-left: 0;
    padding-top: 30px;
  }

  .article-body p {
    font-size: 15px;
    line-height: 1.85;
  }

  .article-body .lead {
    padding: 18px 0 18px 18px;
    font-size: 19px;
  }

  .article-body h2 {
    margin-top: 46px;
  }

  .article-body figure {
    margin-block: 28px 34px;
  }

  pre {
    padding: 18px;
    font-size: 12px;
  }

  .subpage-footer-inner {
    display: block;
    min-height: 0;
    padding-block: 32px;
  }

  .footer-note {
    margin-top: 20px;
    padding: 20px 0 0;
    border-top: 1px solid #484848;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
