.article-page {
  --paper: #f6f3e9;
  --paper2: #efeada;
  --ink: #171512;
  --ink2: #2c2823;
  --red: #e8382a;
  --red-text: #b42318;
  --yellow: #ffd21f;
  --blue: #1d5cff;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 21, 18, 0.055) 1px, transparent 1.4px);
  background-size: 22px 22px;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.85;
}

.article-page *,
.article-page *::before,
.article-page *::after {
  box-sizing: border-box;
}

.article-page a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.article-skip {
  position: absolute;
  top: 0;
  left: -999px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--paper) !important;
  background: var(--ink);
  font-family: "DotGothic16", "Noto Sans JP", monospace;
  text-decoration: none !important;
  white-space: nowrap;
}

.article-skip:focus {
  top: 8px;
  left: 8px;
}

.article-page :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.article-header :focus-visible,
.article-callout :focus-visible,
.article-footer :focus-visible,
.article-skip:focus-visible {
  outline-color: var(--yellow);
}

.article-header {
  color: var(--paper);
  background: var(--ink);
  border-bottom: 4px solid var(--red);
}

.article-header__inner {
  width: min(1120px, calc(100% - 36px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-brand {
  color: var(--paper) !important;
  font-family: "RocknRoll One", "Noto Sans JP", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  white-space: nowrap;
}

.article-header__label,
.article-kicker,
.article-meta,
.article-card__meta {
  font-family: "DotGothic16", "Noto Sans JP", monospace;
  letter-spacing: 0.08em;
}

.article-header__label {
  color: var(--yellow);
  font-size: 0.72rem;
  text-align: right;
}

.article-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 50px;
  color: #5c554c;
  font-size: 0.78rem;
}

.article-breadcrumbs span[aria-current="page"] {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-kicker {
  margin: 0 0 12px;
  color: var(--red-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.article-page h1,
.article-page h2,
.article-page h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: "RocknRoll One", "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.35;
}

.article-page h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 5.3vw, 4.2rem);
  letter-spacing: 0.01em;
}

.article-page h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
}

.article-page h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.article-lead {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.8;
}

.article-meta {
  margin: 0 0 48px;
  color: #665f56;
  font-size: 0.75rem;
}

.article-page article > section,
.article-page article > .article-callout {
  margin-top: 56px;
}

.article-page article > p:not(.article-lead):not(.article-meta),
.article-page article > section > p,
.article-page article > section > ul,
.article-page article > section > ol,
.article-page article > section > table {
  max-width: 780px;
}

.article-page p {
  margin: 0 0 1.1em;
}

.article-page li + li {
  margin-top: 0.45em;
}

.article-callout {
  padding: 26px 30px;
  color: var(--paper);
  background: var(--ink);
  border-left: 9px solid var(--red);
  box-shadow: 9px 9px 0 var(--yellow);
}

.article-callout h2 {
  color: var(--yellow);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 3px solid var(--ink);
  background: var(--paper2);
}

.article-page table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.article-page th,
.article-page td {
  padding: 13px 15px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  text-align: left;
  vertical-align: top;
}

.article-page th:last-child,
.article-page td:last-child {
  border-right: 0;
}

.article-page tr:last-child td {
  border-bottom: 0;
}

.article-page th {
  color: var(--ink);
  background: var(--yellow);
  font-family: "DotGothic16", "Noto Sans JP", monospace;
  font-weight: 400;
}

.article-checklist {
  padding: 22px 26px 22px 46px;
  background: var(--paper2);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--red);
}

.article-checklist li::marker {
  color: var(--red-text);
  font-weight: 700;
}

.article-sources {
  padding-top: 34px;
  border-top: 3px solid var(--ink);
}

.article-sources ol {
  padding-left: 1.5em;
}

.article-sources li {
  font-size: 0.92rem;
}

.article-next {
  padding: 28px 30px;
  background: var(--paper2);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.article-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 15px;
  color: var(--ink) !important;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "DotGothic16", "Noto Sans JP", monospace;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.article-action:hover {
  color: var(--paper) !important;
  background: var(--red-text);
}

.article-action--red {
  color: var(--paper) !important;
  background: var(--red-text);
}

.article-back {
  margin: 24px 0 0 !important;
  font-family: "DotGothic16", "Noto Sans JP", monospace;
  font-size: 0.85rem;
}

.article-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  background: var(--paper2);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--red);
}

.article-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
}

.article-card__meta {
  margin-top: auto !important;
  color: #665f56;
  font-size: 0.72rem;
}

.article-card__link {
  align-self: flex-start;
  margin-top: 12px;
  font-family: "DotGothic16", "Noto Sans JP", monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.article-next--hub {
  margin-top: 58px;
}

.article-footer {
  padding: 22px 18px;
  color: var(--paper);
  background: var(--ink);
  text-align: center;
}

.article-footer a {
  color: var(--paper);
  font-family: "RocknRoll One", "Noto Sans JP", sans-serif;
  text-decoration: none;
}

@media (max-width: 700px) {
  .article-header__inner,
  .article-shell {
    width: min(100% - 28px, 920px);
  }

  .article-header__inner {
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .article-header__label {
    display: none;
  }

  .article-shell {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .article-breadcrumbs {
    margin-bottom: 34px;
    font-size: 0.72rem;
  }

  .article-page h1 {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .article-page article > section,
  .article-page article > .article-callout {
    margin-top: 42px;
  }

  .article-callout,
  .article-next {
    padding: 22px 20px;
    box-shadow: 5px 5px 0 var(--yellow);
  }

  .article-next {
    box-shadow: 5px 5px 0 var(--blue);
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-card {
    min-height: 0;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-page * {
    scroll-behavior: auto !important;
  }
}
