.r-head {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 16vw, 168px) var(--gutter) var(--sp-5);
  display: grid;
  gap: var(--sp-3);
  justify-items: start;
}
.r-head::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: clamp(180px, 38vw, 560px);
  aspect-ratio: 1;
  right: calc(clamp(180px, 38vw, 560px) * -0.32);
  top: calc(clamp(180px, 38vw, 560px) * -0.38);
  border-radius: 50%;
  background: var(--disc, var(--st-primer));
  box-shadow: 0 0 0 clamp(14px, 2.4vw, 34px) var(--ring, var(--surface)) inset;
}
.r-head > * { position: relative; z-index: 1; }
.r-head--primer { --disc: var(--st-primer); --ring: #7d7f78; }
.r-head--base { --disc: var(--st-base); --ring: var(--st-primer); }
.r-head--wash { --disc: var(--st-wash); --ring: var(--st-base); }
.r-head--edge { --disc: var(--st-edge); --ring: var(--st-base); }
.r-head--dry { --disc: var(--st-dry); --ring: var(--st-wash); }
.r-head--ink { --disc: var(--ink); --ring: var(--st-primer); }
.r-back { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 1rem; text-decoration: none; }
.r-back::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.r-back:hover { text-decoration: underline; }
.r-head h1 { font-size: var(--fs-display); letter-spacing: -0.035em; line-height: 0.98; max-width: 12ch; }
.r-lead { font-size: var(--fs-lead); line-height: 1.4; max-width: 38ch; }
.r-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--fs-small); color: var(--muted); }
.r-stagebar { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 1rem; }
.r-stagebar li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.r-stagebar li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.r-stagebar li[aria-current="step"] .ppc-dot { width: 1em; height: 1em; }
.r-stagebar a { color: inherit; }

.r-wrap { padding: 0 var(--gutter); display: grid; gap: var(--sp-5); }
.r-toc { font-size: 1rem; }
.r-toc h2 { font-family: var(--font-text); font-weight: 500; font-size: 1rem; letter-spacing: 0; margin-bottom: 10px; }
.r-toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
.r-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; text-decoration: none; color: var(--muted); }
.r-toc a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st-primer); transform: translateY(-1px); }
.r-toc a:hover, .r-toc a[aria-current="true"] { color: var(--ink); }
.r-toc a[aria-current="true"]::before { background: var(--ink); }

.r-body { max-width: var(--measure); min-width: 0; }
.r-body > * + * { margin-top: 1.1em; }
.r-body > :first-child { margin-top: 0; }
.r-body h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); margin-top: 2.2em; }
.r-body h3 { margin-top: 1.8em; }
.r-body h2 + *, .r-body h3 + * { margin-top: 0.6em; }
.r-body ul, .r-body ol:not([class]) { padding-left: 1.3em; }
.r-body ul:not([class]) { list-style: none; padding-left: 0; }
.r-body ul:not([class]) li { position: relative; padding-left: 26px; }
.r-body ul:not([class]) li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--st-base); }
.r-body li + li { margin-top: 0.45em; }
.r-body a { text-decoration-color: var(--st-base); }
.r-body dl { display: grid; gap: 6px 0; }
.r-body dt { font-weight: 500; margin-top: 0.8em; }
.r-body dd { margin: 0; color: var(--muted); }
.r-body table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.r-body th, .r-body td { text-align: left; padding: 10px 12px; vertical-align: top; }
.r-body thead th { background: var(--ink); color: var(--paper); font-weight: 500; }
.r-body tbody tr:nth-child(even) { background: var(--paper); }
.r-tablewrap { overflow-x: auto; max-width: 100%; }
.r-source { font-size: var(--fs-small); color: var(--muted); }
.r-source a { color: inherit; }

.r-fig { margin-top: var(--sp-4) !important; margin-bottom: var(--sp-5); }
.r-fig + h2 { margin-top: 1.4em; }
.r-fig img { width: 100%; }
.r-fig--disc .ppc-disc { max-width: 520px; outline: 12px solid var(--st-primer); outline-offset: -12px; }
.r-fig figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.r-fig figcaption .ppc-credit { margin-top: 2px; }

.r-steps { list-style: none; padding: 0; counter-reset: krok; display: grid; gap: var(--sp-5); margin-top: var(--sp-4) !important; }
.r-step {
  counter-increment: krok;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
}
.r-step::before {
  content: counter(krok);
  grid-row: 1 / span 3;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--step, var(--st-primer));
  color: var(--step-ink, var(--ink));
  font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; font-variant-numeric: tabular-nums;
}
.r-step > * { grid-column: 2; margin: 0; }
.r-step h3 { margin: 12px 0 4px; font-size: var(--fs-lead); }
.r-body .r-step h3 + * { margin-top: 0; }
.r-step--primer { --step: var(--st-primer); }
.r-step--base { --step: var(--st-base); --step-ink: var(--paper); }
.r-step--wash { --step: var(--st-wash); --step-ink: var(--paper); }
.r-step--dry { --step: var(--st-dry); }
.r-step--edge { --step: var(--st-edge); }
.r-step--varnish { --step: var(--paper); }
.r-step__art { background: var(--paper); border-radius: 28px; padding: var(--sp-1) var(--sp-2); margin-top: var(--sp-2) !important; max-width: 600px; }
.r-step__art img { width: 100%; height: auto; }
.r-step__need { font-size: 1rem; color: var(--muted); }
.r-step p:not([class]) { max-width: 60ch; }
.r-step__need strong { color: var(--ink); }
@media (min-width: 720px) {
  .r-step { grid-template-columns: 72px minmax(0, 1fr); column-gap: 24px; }
  .r-step::before { width: 72px; height: 72px; font-size: 1.875rem; }
  .r-step h3 { margin-top: 20px; }
}

.r-next {
  display: grid; gap: var(--sp-2);
  margin-top: var(--section) !important;
  padding: var(--sp-4) var(--sp-3);
  background: var(--paper);
  border-radius: 36px;
}
.r-next p { color: var(--muted); }
.r-next a.r-next__go { font-family: var(--font-head); font-weight: 300; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.15; text-decoration: none; letter-spacing: -0.02em; }
.r-next a.r-next__go:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.r-index { list-style: none; padding: 0; display: grid; gap: var(--sp-4); margin-top: var(--sp-4) !important; }
.r-index li { display: grid; grid-template-columns: clamp(88px, 18vw, 160px) minmax(0, 1fr); gap: var(--sp-3); align-items: center; }
.r-index .ppc-disc { width: 100%; }
.r-index h3 { margin: 0 0 6px; }
.r-index h3 a { text-decoration: none; }
.r-index h3 a:hover { text-decoration: underline; }
.r-index p { color: var(--muted); font-size: 1rem; }

.t-doc .r-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.t-doc .r-body { font-size: 1.0625rem; }

.r-sys { min-height: 70svh; display: grid; align-content: center; justify-items: start; gap: var(--sp-3); padding: var(--section) var(--gutter); }
.r-sys h1 { font-size: var(--fs-display); max-width: 12ch; }
.r-sys p { max-width: 44ch; font-size: var(--fs-lead); line-height: 1.4; }
.r-sys__links { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 1040px) {
  .r-head { padding-top: clamp(120px, 14vw, 200px); }
  .r-head h1 { max-width: min(12ch, 60vw); }
  .r-lead { max-width: 40ch; }
  .r-wrap { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); column-gap: clamp(40px, 6vw, 120px); align-items: start; }
  .r-wrap--solo { grid-template-columns: minmax(0, 1fr); }
  .r-toc { position: sticky; top: var(--sp-4); order: 2; }
  .r-wrap > .r-body { order: 1; }
}
