.article-shell {
  width: min(calc(100% - 44px), 1040px);
  margin-inline: auto;
}
.article-header {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  column-gap: 44px;
  padding: 86px 0 64px;
}
.article-tag {
  grid-column: 1;
  grid-row: 1 / span 4;
  margin: 7px 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--proof);
  color: var(--muted);
  font: 700 10px/1.55 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-header h1 {
  grid-column: 2;
  margin: 0;
  max-width: 850px;
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -.068em;
  font-weight: 760;
  text-wrap: balance;
}
.article-lead {
  grid-column: 2;
  max-width: 720px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  text-wrap: pretty;
}
.article-author {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
}
.author-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 800 11px var(--mono);
}
.article-author strong { font-family: var(--display); font-size: 13px; }
.article-author p { margin: 2px 0 0; color: var(--muted); font: 500 10px/1.4 var(--mono); }
.article-cover {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  margin-top: 54px;
  padding: 25px;
  overflow: hidden;
  border-radius: 3px;
  color: rgba(251,252,250,.94);
}

.article-body {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 10px 0 104px;
  font-size: 16.5px;
  line-height: 1.92;
}
.article-body > p {
  margin: 25px 0;
  text-wrap: pretty;
}
.article-body h2 {
  position: relative;
  margin: 76px 0 20px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1.22;
  letter-spacing: -.05em;
  font-weight: 720;
  text-wrap: balance;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: -24px;
  top: .34em;
  width: 10px;
  height: 2px;
  background: var(--proof);
}
.article-body h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -.025em;
}
.article-body code {
  padding: .12em .35em;
  border-radius: 2px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: .88em;
}
.article-body ul,
.article-body ol { padding-left: 22px; }
.article-body li { margin: 10px 0; }
.article-body blockquote {
  position: relative;
  margin: 36px 0;
  padding: 24px 0 24px 30px;
  border-left: 1px solid var(--ink);
  color: #30342e;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 600;
}
.article-body blockquote::before {
  content: "REV";
  position: absolute;
  left: -1px;
  top: -9px;
  padding: 1px 5px 1px 0;
  background: var(--paper);
  color: var(--proof);
  font: 700 9px/1 var(--mono);
  letter-spacing: .08em;
}
.code-block {
  margin: 34px 0;
  overflow: auto;
  border: 1px solid #32362f;
  border-radius: 2px;
  background: var(--screen);
  color: #eef0ec;
}
.code-label {
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: var(--screen-muted);
  font: 700 9px/1.4 var(--mono);
  letter-spacing: .09em;
}
.code-block pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  font: 13px/1.78 var(--mono);
}
.code-block code { padding: 0; background: none; color: inherit; }

.explain-list {
  margin: 34px 0;
  border-top: 1px solid var(--ink);
}
.explain-list section {
  display: grid;
  grid-template-columns: 145px 1fr;
  column-gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.explain-list small {
  grid-row: 1 / span 2;
  color: var(--proof);
  font: 700 9px/1.6 var(--mono);
  letter-spacing: .06em;
}
.explain-list p { margin: 0; color: var(--muted); font-size: 14px; }
.note-box {
  position: relative;
  margin: 34px 0;
  padding: 24px 26px 24px 30px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--proof);
  border-radius: 2px;
  background: rgba(231,234,229,.55);
}
.note-box strong {
  color: var(--proof);
  font-family: var(--display);
  font-size: 14px;
}
.note-box p { margin: 8px 0 0; }
.settings-table {
  margin: 34px 0;
  border-top: 1px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.settings-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--rule);
}
.settings-table span { color: var(--muted); }
.settings-table strong { font-weight: 650; }
.article-nav {
  width: min(100%, 720px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 88px;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font: 600 11px/1.5 var(--mono);
}
.article-nav a {
  background-image: linear-gradient(var(--proof), var(--proof));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: color .16s ease, background-size .18s ease;
}
.article-nav a:hover { color: var(--ink); background-size: 100% 1px; }

@media (max-width: 760px) {
  .article-shell { width: min(calc(100% - 28px), 1040px); }
  .article-header { grid-template-columns: 1fr; padding-top: 58px; }
  .article-tag { grid-column: auto; grid-row: auto; width: max-content; margin: 0 0 18px; padding-top: 8px; }
  .article-header h1,
  .article-lead,
  .article-author { grid-column: auto; }
  .article-header h1 { font-size: clamp(39px, 12vw, 56px); }
  .article-lead { font-size: 16px; }
  .article-cover { grid-column: auto; min-height: 270px; margin-top: 38px; }
  .article-body { font-size: 16px; padding-bottom: 76px; }
  .article-body h2::before { left: -15px; width: 7px; }
  .explain-list section { grid-template-columns: 1fr; gap: 6px; }
  .explain-list small { grid-row: auto; }
  .settings-table > div { grid-template-columns: 1fr; gap: 4px; }
  .article-nav { flex-direction: column; }
}
