/* CharmerWay archive — sleek monochrome with one accent, built around the C mark. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #efefec;
  --text: #111113;
  --muted: #64646c;
  --faint: #9b9ba3;
  --line: rgba(17, 17, 19, 0.1);
  --line-strong: rgba(17, 17, 19, 0.22);
  --accent: #c9303a;          /* red from the YouTube mark */
  --accent-soft: rgba(201, 48, 58, 0.08);
  --mark: #c9303a;
  --shadow: 0 1px 2px rgba(17, 17, 19, 0.04), 0 8px 24px rgba(17, 17, 19, 0.06);
  --display: "Outfit", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b;
    --surface: #121214;
    --surface-2: #1a1a1d;
    --text: #f2f2f3;
    --muted: #a0a0a8;
    --faint: #6d6d75;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #ef5a62;
    --accent-soft: rgba(239, 90, 98, 0.1);
    --mark: #e5484d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --text: #f2f2f3;
  --muted: #a0a0a8;
  --faint: #6d6d75;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ef5a62;
  --accent-soft: rgba(239, 90, 98, 0.1);
  --mark: #e5484d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* --- top bar ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; color: var(--mark); }
.brand__word {
  font-family: var(--display); font-weight: 400; font-size: 15px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.nav {
  display: flex; gap: 2px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; font-size: 14px; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.theme-toggle {
  flex: none; width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
  transition: background 0.15s ease;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover { background: var(--surface-2); }

@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; gap: 6px 12px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -12px; }
  .theme-toggle { margin-left: auto; }
}

/* --- hero ------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(64px, 11vw, 140px) var(--gutter) clamp(56px, 9vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
}
.hero__kicker {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 22px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.hero__kicker span:first-child { color: var(--accent); }
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.hero__title {
  display: flex; align-items: center; gap: 0.28em;
  margin: 0;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(38px, 8.4vw, 104px); line-height: 1;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero__sparkle { flex: none; width: 0.62em; height: 0.62em; color: var(--text); }
.hero__years {
  margin: 22px 0 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(18px, 2.4vw, 24px); letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero__tagline {
  max-width: 34ch; margin: 18px 0 0;
  font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5;
}
.hero__mark {
  width: 100%; max-width: 420px; aspect-ratio: 1; justify-self: end;
  color: var(--mark); opacity: 0.95;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero__mark { animation: none; } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 0; }
  .hero__mark {
    order: -1; justify-self: start;
    width: 120px; height: 120px; margin: 0 0 28px -8px;
  }
}

/* --- now panel -------------------------------------------------------- */
.now {
  max-width: 460px; margin-top: 40px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.now[hidden] { display: none; }
.now__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 6px;
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.now__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
@media (prefers-reduced-motion: reduce) { .now__dot { animation: none; } }
.now__text { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.now__items { list-style: none; margin: 0; padding: 0; }
.now__item {
  display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  padding: 12px 0 0; margin-top: 12px;
  border: 0 solid var(--line); border-top-width: 1px;
}
.now__label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.now__row { display: flex; align-items: center; gap: 10px; }
.now__value { font-family: var(--display); font-weight: 500; font-size: 17px; overflow-wrap: anywhere; text-decoration: none; }
code.now__value { background: none; }
.now__item.is-todo .now__value { color: var(--faint); }
.now__copy {
  font: 500 12px/1 var(--body);
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}
.now__copy:hover { background: var(--text); color: var(--bg); }
.now__item.has-status { row-gap: 8px; }
.now__status {
  flex-basis: 100%;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.now__status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.now__status.is-online .now__status-dot { background: #2fbf71; }
.now__status.is-online .now__status-text { color: var(--text); }
.now__status.is-offline .now__status-dot { background: var(--accent); }
.now__status.is-loading .now__status-dot { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .now__status.is-loading .now__status-dot { animation: none; } }

/* --- sections --------------------------------------------------------- */
.section {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--gutter) 0;
}
.section__head {
  display: flex; align-items: baseline; gap: 16px;
  margin: 0 0 clamp(28px, 4vw, 44px); padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section__head h2 {
  margin: 0;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(30px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -0.01em;
}
.section__num {
  font-family: var(--display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.section__lede { max-width: 62ch; margin: -12px 0 32px; color: var(--muted); }

/* placeholder tag + todo state */
.todo-tag {
  display: inline-flex; align-items: center;
  margin-left: 8px; padding: 2px 8px; vertical-align: middle;
  font-family: var(--body); font-size: 11px; font-weight: 500; line-height: 1.5;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
}
.footer .todo-tag, .empty .todo-tag, .gallery-empty__title .todo-tag, .now__label .todo-tag { margin-left: 0; }
.empty { color: var(--muted); }

/* --- about ------------------------------------------------------------ */
.about { max-width: 68ch; }
.about p { margin: 0 0 1.2em; color: var(--muted); }
.about .about__lead {
  color: var(--text);
  font-family: var(--display); font-weight: 300;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.4;
}

/* --- timeline --------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 88px; top: 10px; bottom: 10px;
  width: 1px; background: var(--line-strong);
}
.timeline__item {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: 48px;
  padding: 0 0 36px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::after {
  content: ""; position: absolute; left: 82px; top: 7px;
  width: 13px; height: 13px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.4 16.6 11.1 24 12 16.6 12.9 12.9 16.6 12 24 11.1 16.6 7.4 12.9 0 12 7.4 11.1 11.1 7.4 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.4 16.6 11.1 24 12 16.6 12.9 12.9 16.6 12 24 11.1 16.6 7.4 12.9 0 12 7.4 11.1 11.1 7.4 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.timeline__year {
  font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.5;
  text-align: right; color: var(--muted); font-variant-numeric: tabular-nums;
}
.timeline__title {
  margin: 0 0 4px;
  font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.35;
}
.timeline__body p { margin: 0; max-width: 62ch; color: var(--muted); }
.timeline__item.is-todo::after { background: var(--faint); }
.timeline__item.is-todo .timeline__body {
  padding: 12px 16px; margin-top: -12px;
  border: 1px dashed var(--line-strong); border-radius: 10px;
}

/* --- projects --------------------------------------------------------- */
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }
.card__meta {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.card__title {
  margin: 0 0 8px;
  font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2;
}
.card__text { margin: 0; color: var(--muted); font-size: 15px; }
.card__link { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.card.is-todo { border-style: dashed; }

/* --- episodes --------------------------------------------------------- */
.episodes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ep {
  position: relative;
  display: grid; align-items: center; gap: 2px 24px;
  grid-template-columns: 56px 1fr auto 20px;
  padding: 18px 12px; margin: 0 -12px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: background 0.15s ease;
}
.ep.has-url:hover { background: var(--surface-2); }
.ep__no {
  font-family: var(--display); font-weight: 300; font-size: 28px; line-height: 1;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.ep__no.is-unknown { color: var(--faint); }
.ep__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.3; }
.ep__link { text-decoration: none; }
.ep__link::after { content: ""; position: absolute; inset: 0; }
.ep.has-url .ep__title { color: var(--text); }
.ep.has-url:hover .ep__link { color: var(--accent); }
.ep__guest { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ep__date { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ep__watch { color: var(--accent); font-size: 12px; text-align: right; }
.ep.is-todo { border-bottom-style: dashed; }

@media (max-width: 560px) {
  .ep { grid-template-columns: 44px 1fr 16px; gap: 2px 14px; }
  .ep__no { font-size: 22px; grid-row: span 2; }
  .ep__date { grid-column: 2; grid-row: 2; }
  .ep__date:empty { display: none; }
  .ep__watch { grid-column: 3; grid-row: 1 / span 2; }
}

/* --- people ----------------------------------------------------------- */
.people {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.person {
  display: flex; align-items: center; gap: 16px;
  padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.person__avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; object-fit: cover;
  font-family: var(--display); font-weight: 400; font-size: 20px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.person.is-todo { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.person.is-todo .person__avatar { color: var(--faint); background: transparent; border: 1px dashed var(--line-strong); }
.person__name { margin: 0; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.3; }
.person__role { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* --- gallery ---------------------------------------------------------- */
.gallery {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

.gallery-empty {
  padding: clamp(24px, 4vw, 40px);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface);
}
.gallery-empty__title {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 400; font-size: 22px;
}
.gallery-empty__steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.gallery-empty code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.gallery-empty pre {
  margin: 0; overflow-x: auto; padding: 14px 16px;
  background: var(--surface-2); border-radius: 10px; font-size: 13px;
}
.gallery-empty pre code { background: none; padding: 0; }

/* --- links ------------------------------------------------------------ */
.links {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.link {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; height: 100%;
  padding: 18px 20px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.link:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.link__label { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; }
.link__host { grid-column: 1; font-size: 13px; color: var(--muted); }
.link__arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--faint); transition: color 0.15s ease, transform 0.2s ease; }
a.link:hover .link__arrow { color: var(--accent); transform: translate(2px, -2px); }
div.link.is-todo { background: transparent; border-style: dashed; border-color: var(--line-strong); }
div.link.is-todo .link__label { color: var(--muted); }

/* --- footer ----------------------------------------------------------- */
.footer {
  max-width: var(--wrap);
  margin: clamp(80px, 12vw, 140px) auto 0;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.footer p { margin: 0; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__mark { width: 28px; height: 28px; color: var(--mark); }
.footer__note { font-size: 13px; }

@media (max-width: 560px) {
  .timeline::before { left: 62px; }
  .timeline__item { grid-template-columns: 42px 1fr; gap: 40px; }
  .timeline__item::after { left: 56px; }
  .timeline__year { font-size: 15px; }
  .links { grid-template-columns: 1fr; }
}

/* --- minecraft section ------------------------------------------------- */
.section[hidden] { display: none; }
.section__num--live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); text-transform: uppercase;
}
.mc__lede { margin-top: -12px; }
.mc {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
}
.mc__card, .mc__join {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.mc__card { box-shadow: var(--shadow); }
.mc__edition {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.mc__addr-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mc__address {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 3.6vw, 36px); line-height: 1.15; letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.mc__copy {
  font: 500 13px/1 var(--body);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  color: var(--bg); background: var(--text); border: 1px solid var(--text);
  transition: opacity 0.15s ease;
}
.mc__copy:hover { opacity: 0.85; }
.mc__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
}
.mc__stats dt { font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.mc__stats dd {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: 18px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc__state { display: flex; align-items: center; gap: 8px; }
.mc__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.mc__state.is-online .mc__dot { background: #2fbf71; box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.18); }
.mc__state.is-offline .mc__dot { background: var(--accent); }
.mc__state.is-loading .mc__dot { animation: blink 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .mc__state.is-loading .mc__dot { animation: none; } }
.mc__join-title {
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.mc__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.mc__steps li {
  counter-increment: step;
  position: relative; padding: 0 0 14px 38px; color: var(--muted);
}
.mc__steps li:last-child { padding-bottom: 0; }
.mc__steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 12px/1 var(--body); color: var(--text);
  border: 1px solid var(--line-strong);
}
.mc__steps code {
  color: var(--text); background: var(--surface-2);
  padding: 1px 6px; border-radius: 6px;
}
@media (max-width: 820px) {
  .mc { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .mc__stats { grid-template-columns: 1fr 1fr; }
  .mc__stats > div:first-child { grid-column: 1 / -1; }
}
