.detail-page .header-link:hover span:last-child {
  transform: translateX(-4px);
}

.detail-article {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 56px 0 0;
}

.article-header {
  padding-bottom: 52px;
}

.article-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.article-labels span:first-child {
  display: inline-block;
  padding: 8px 10px;
  color: #fff;
  background: var(--blue);
}

.article-labels span:last-child {
  color: var(--muted);
}

.article-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 64px;
  align-items: end;
}

.article-title-row h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.25vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.92;
}

.article-date {
  margin: 0 0 10px;
  padding: 13px 0;
  color: var(--muted);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.article-meta {
  margin: 0 0 10px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.article-meta div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--ink);
}

.article-meta div:last-child {
  border-bottom: 1px solid var(--ink);
}

.article-meta dt,
.article-meta dd {
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.5;
}

.article-meta dt {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.article-meta dd {
  font-weight: 800;
}

.article-lead {
  max-width: 760px;
  margin: 52px 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.8;
}

.article-hero {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--blue);
}

.article-hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.article-hero figcaption {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
}

.article-layout {
  display: block;
  max-width: 760px;
  margin-top: 120px;
  margin-right: auto;
  margin-left: auto;
}

.detail-article-video .article-layout {
  margin-top: 0;
}

.article-content {
  padding: clamp(28px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--ink);
}

.section-marker {
  border-top: 1px solid var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.section-marker span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-top: -1px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 0.7rem;
}

.section-marker p {
  margin: 14px 0 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.article-content h2 {
  margin: -0.2em 0 34px;
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1.15;
}

.article-content > p {
  max-width: none;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 2;
}

.video-embed {
  width: 100%;
  margin-top: 40px;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.public-key {
  margin-top: 64px;
  padding: 32px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  border-left: 6px solid var(--blue);
}

.key-eyebrow,
.public-key h3,
.key-note {
  position: relative;
  z-index: 1;
  margin: 0;
}

.key-eyebrow {
  color: var(--yellow);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.public-key h3 {
  margin-top: 7px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.4rem, 3.2vw, 2.25rem);
  letter-spacing: 0.08em;
}

.public-key code {
  position: relative;
  z-index: 1;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--yellow);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.4rem, 3.2vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.key-note {
  grid-column: 1 / -1;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.75rem;
}

.detail-ad {
  margin-top: 112px;
}

.article-back {
  margin-top: 70px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.article-back a {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 27px 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.article-back a > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.article-back small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.article-back a:hover > span:first-child,
.article-back a:focus-visible > span:first-child {
  color: var(--ink);
  background: var(--yellow);
  transform: translateX(-4px);
}

@media (max-width: 760px) {
  .detail-article {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 34px;
  }

  .article-header {
    padding-bottom: 36px;
  }

  .article-labels {
    margin-bottom: 30px;
  }

  .article-labels span:last-child {
    font-size: 0.58rem;
  }

  .article-title-row {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .article-title-row h1 {
    font-size: clamp(1.5rem, 8vw, 2.75rem);
  }

  .article-date {
    max-width: none;
    margin: 0;
  }

  .article-lead {
    margin-top: 36px;
    font-size: 1.05rem;
  }

  .article-hero {
    box-shadow: 6px 6px 0 var(--blue);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 54px;
    margin-top: 82px;
  }

  .section-marker {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .section-marker p {
    margin: 0;
  }

  .article-content h2 {
    margin-top: 0;
  }

  .public-key {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 24px;
  }

  .public-key code {
    justify-self: start;
  }

  .key-note {
    grid-column: 1;
  }

  .detail-ad {
    margin-top: 80px;
  }
}

@media (max-width: 420px) {
  .article-title-row h1 {
    font-size: 1.4rem;
  }

  .article-labels span:last-child {
    max-width: 120px;
    text-align: right;
  }

  .article-hero figcaption span:last-child {
    display: none;
  }

  .public-key code {
    font-size: 1.25rem;
  }
}
