/* radmakr.com
   System fonts, two themes, one accent: Swift orange. */

/* MARK: - Tokens */

:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --bg-raised: #ffffff;
  --bg-sunken: #f2f2ef;
  --ink: #141413;
  --ink-2: #5a5a54;
  --ink-3: #6c6c66;
  --rule: #e6e6e1;
  --rule-strong: #d3d3cc;
  --accent: #f05138;
  --accent-ink: #c4381d;
  --accent-wash: #fdebe6;
  --ok: #1e7f46;
  --bad: #c42b1c;
  --wheel: #d9d9d2;
  --shadow: 0 1px 2px rgb(20 20 19 / 0.04), 0 10px 30px -12px rgb(20 20 19 / 0.12);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 18px;
  --header: 60px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0e;
  --bg-raised: #161618;
  --bg-sunken: #1c1c1f;
  --ink: #ededea;
  --ink-2: #a3a39d;
  --ink-3: #8a8a84;
  --rule: #262629;
  --rule-strong: #36363a;
  --accent: #ff6a4b;
  --accent-ink: #ff8166;
  --accent-wash: #2b1610;
  --ok: #4cc77f;
  --bad: #ff6b5e;
  --wheel: #2b2b2f;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 10px 30px -12px rgb(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0e;
    --bg-raised: #161618;
    --bg-sunken: #1c1c1f;
    --ink: #ededea;
    --ink-2: #a3a39d;
    --ink-3: #8a8a84;
    --rule: #262629;
    --rule-strong: #36363a;
    --accent: #ff6a4b;
    --accent-ink: #ff8166;
    --accent-wash: #2b1610;
    --ok: #4cc77f;
    --bad: #ff6b5e;
    --wheel: #2b2b2f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 10px 30px -12px rgb(0 0 0 / 0.6);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

/* MARK: - Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

b,
strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-wash);
  color: var(--ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* MARK: - Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 6px 4px;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  transition: transform 0.8s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(120deg);
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-sunken);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--ink-2);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.theme-toggle [data-icon] {
  display: none;
}

.theme-toggle[data-current="system"] [data-icon="system"],
.theme-toggle[data-current="light"] [data-icon="light"],
.theme-toggle[data-current="dark"] [data-icon="dark"] {
  display: block;
}

@media (max-width: 559px) {
  .nav-extra {
    display: none;
  }
}

/* MARK: - Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(48px, 9vw, 120px) clamp(56px, 8vw, 112px);
}

.hero-wheel {
  position: absolute;
  z-index: -1;
  top: clamp(12px, 3vw, 40px);
  right: clamp(-200px, -11vw, -110px);
  width: clamp(300px, 46vw, 660px);
  height: auto;
  fill: none;
  stroke: var(--wheel);
  stroke-width: 1.25;
  pointer-events: none;
}

.hero-wheel * {
  vector-effect: non-scaling-stroke;
}

@media (max-width: 639px) {
  .hero-wheel {
    top: 0;
    right: -80px;
    width: 210px;
  }
}

.hero-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: end;
    gap: 64px;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font: 500 0.8125rem/1.4 var(--font-mono);
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 1.9rem + 5.4vw, 6rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h1 span {
  display: block;
}

.lede {
  max-width: 34em;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.lede a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.lede a:hover {
  color: var(--accent-ink);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.links a:hover {
  border-color: var(--ink-3);
}

.links .link-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.links .link-primary:hover {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  color: var(--bg);
}

.definition {
  max-width: 38em;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule-strong);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.definition dfn {
  margin-right: 4px;
  color: var(--ink);
  font-style: normal;
  font-weight: 650;
}

.definition-pos {
  margin-right: 4px;
  font-style: italic;
}

.definition-note {
  white-space: nowrap;
}

/* MARK: - Now */

.now {
  padding: 22px 24px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.now-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
}

.now h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.now h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent);
}

.now time {
  color: var(--ink-2);
  font: 0.8125rem var(--font-mono);
}

.now li {
  padding-block: 13px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.now li a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--rule-strong);
}

.now li a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

/* MARK: - Sections */

.section {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.section-grid {
  display: grid;
  gap: 32px;
}

.section-grid::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: clamp(8px, 3vw, 32px);
  background: var(--rule);
}

@media (min-width: 960px) {
  .section-grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    column-gap: 72px;
  }

  .section-head {
    position: sticky;
    top: calc(var(--header) + 32px);
    align-self: start;
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink-2);
  font: 500 0.8125rem/1 var(--font-mono);
}

.kicker b {
  color: var(--accent-ink);
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.625rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head h2 + p {
  max-width: 32em;
  margin-top: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.section-head b {
  color: var(--ink);
}

/* MARK: - Shipped */

.log {
  border-top: 1px solid var(--rule);
}

.log > li + li {
  border-top: 1px solid var(--rule);
}

.log-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  grid-template-areas:
    "icon main arrow"
    "icon meta arrow";
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  margin-inline: -12px;
  padding: 16px 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.log-link:hover {
  background: var(--bg-sunken);
}

.log-meta {
  grid-area: meta;
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  font: 0.8125rem/1.4 var(--font-mono);
}

.log-platform::before {
  content: "· ";
}

.log-date--soon {
  color: var(--accent-ink);
}

.app-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.07), 0 1px 3px rgb(0 0 0 / 0.08);
}

.log-main {
  grid-area: main;
  align-self: end;
}

.log-name {
  display: block;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.log-desc {
  display: block;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.log-arrow {
  grid-area: arrow;
  color: var(--ink-3);
  transition: color 0.15s, transform 0.2s var(--ease);
}

.log-link:hover .log-arrow {
  color: var(--accent-ink);
  transform: translate(2px, -2px);
}

@media (min-width: 720px) {
  .log-link {
    grid-template-columns: 112px 48px minmax(0, 1fr) 16px;
    grid-template-areas: "meta icon main arrow";
    column-gap: 18px;
  }

  .log-meta {
    flex-direction: column;
    gap: 0;
  }

  .log-platform {
    color: var(--ink-3);
  }

  .log-platform::before {
    content: none;
  }

  .log-main {
    align-self: center;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--rule);
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px;
  background: var(--bg);
}

.stats dt {
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.stats dd {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.stats-zero dd {
  color: var(--accent-ink);
}

/* MARK: - Open source */

.protocols {
  border-top: 1px solid var(--rule);
}

.protocols > li {
  display: grid;
  gap: 12px 32px;
  padding-block: 20px;
}

.protocols > li + li {
  border-top: 1px solid var(--rule);
}

@media (min-width: 720px) {
  .protocols > li {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
}

.protocols h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.protocols p {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.packages {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.packages a {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-raised);
  font: 0.8125rem/1.3 var(--font-mono);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.packages a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.more {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.more a,
.signoff a,
.opinions a,
.fineprint a,
.footer a {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
}

.more a:hover,
.signoff a:hover,
.opinions a:hover,
.fineprint a:hover,
.footer a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

/* MARK: - Opinions */

.opinions {
  counter-reset: opinion;
  border-top: 1px solid var(--rule);
}

.opinions > li {
  counter-increment: opinion;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  padding-block: 22px;
}

.opinions > li + li {
  border-top: 1px solid var(--rule);
}

.opinions > li::before {
  content: counter(opinion, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 0.3em;
  color: var(--accent-ink);
  font: 500 0.875rem/1.4 var(--font-mono);
}

.opinions h3 {
  font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.opinions p {
  max-width: 36em;
  margin-top: 6px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.signoff {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.signoff--comment {
  margin-top: 12px;
  color: var(--ink-3);
  font: 0.875rem/1.5 var(--font-mono);
}

/* MARK: - Handle */

.resolver {
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.resolver-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-sunken);
}

.resolver-command {
  overflow: hidden;
  color: var(--ink-2);
  font: 0.875rem/1.4 var(--font-mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.resolver-command b {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}

.button[hidden] {
  display: none;
}

.button:hover {
  background: var(--accent-ink);
  color: var(--bg);
}

.button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.steps {
  padding-block: 6px;
}

.step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  grid-template-areas:
    "number title time"
    ". detail detail"
    ". value value";
  column-gap: 12px;
  padding: 16px 14px;
}

@media (min-width: 640px) {
  .step {
    column-gap: 14px;
    padding-inline: 18px;
    grid-template-columns: 24px auto minmax(0, 1fr) auto;
    grid-template-areas:
      "number title detail time"
      ". value value value";
  }

  .step-detail {
    margin-left: -6px;
  }

  .step-value {
    font-size: 0.875rem;
  }
}

.step + .step {
  border-top: 1px dashed var(--rule);
}

.step-no {
  grid-area: number;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--ink-2);
  font: 600 0.75rem/1 var(--font-mono);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.step[data-state="pending"] .step-no {
  border-color: var(--accent);
  color: var(--accent-ink);
  animation: pulse 1s ease-in-out infinite;
}

.step[data-state="done"] .step-no {
  border-color: transparent;
  background: var(--ok);
  color: var(--bg);
}

.step[data-state="error"] .step-no {
  border-color: transparent;
  background: var(--bad);
  color: var(--bg);
}

.step-title {
  grid-area: title;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 24px;
}

.step-detail {
  grid-area: detail;
  min-width: 0;
  color: var(--ink-3);
  font: 0.8125rem/24px var(--font-mono);
  overflow-wrap: anywhere;
}

.step-value {
  grid-area: value;
  margin-top: 4px;
  font: 0.8125rem/1.6 var(--font-mono);
  overflow-wrap: anywhere;
  transition: opacity 0.2s;
}

.step-value code {
  font-size: 1em;
}

.step[data-state="waiting"] .step-value,
.step[data-state="pending"] .step-value {
  opacity: 0.35;
}

.step[data-state="error"] .step-value {
  color: var(--bad);
}

.step-time {
  grid-area: time;
  color: var(--ink-3);
  font: 0.75rem/24px var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ok {
  color: var(--ok);
}

.bad {
  color: var(--bad);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--bg-sunken);
  font: 0.8125rem/1.5 var(--font-mono);
  text-decoration: none;
}

a.chip:hover {
  border-color: var(--rule-strong);
}

.chip-count {
  color: var(--ink-2);
}

.chip--mine {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  background: var(--accent-wash);
}

.chip--mine .chip-count {
  color: var(--accent-ink);
}

.resolver-status {
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.fineprint {
  max-width: 44em;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.55;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
  }
}

/* MARK: - Contact */

.mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.mail {
  font-size: clamp(1.625rem, 1.05rem + 2.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: color 0.15s, background-size 0.35s var(--ease);
}

.mail:hover {
  color: var(--accent-ink);
  background-size: 100% 2px;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.copy[hidden] {
  display: none;
}

.copy:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.copy [data-icon="done"],
.copy[data-copied] [data-icon="copy"] {
  display: none;
}

.copy[data-copied] [data-icon="done"] {
  display: block;
  color: var(--ok);
}

.elsewhere {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.elsewhere > li {
  position: relative;
}

.elsewhere > li + li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 52px;
  border-top: 1px solid var(--rule);
}

.elsewhere a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.elsewhere a:hover {
  background: var(--bg-sunken);
}

.elsewhere-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}

.elsewhere-name {
  font-weight: 600;
}

.elsewhere-handle {
  overflow: hidden;
  color: var(--ink-2);
  font: 0.8125rem var(--font-mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.elsewhere-arrow {
  color: var(--ink-3);
  transition: color 0.15s, transform 0.2s var(--ease);
}

.elsewhere a:hover .elsewhere-arrow {
  color: var(--accent-ink);
  transform: translate(2px, -2px);
}

@media (max-width: 419px) {
  .elsewhere a {
    grid-template-columns: 20px minmax(0, 1fr) 16px;
  }

  .elsewhere-handle {
    display: none;
  }
}

/* MARK: - Footer */

.site-footer {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* MARK: - 404 */

.oops {
  min-height: calc(100vh - var(--header) - 90px);
  min-height: calc(100svh - var(--header) - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 64px;
}

.oops h1 {
  max-width: 14em;
  margin-top: 20px;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.oops .lede code {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.oops-code {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  font: clamp(0.8125rem, 0.6rem + 1vw, 0.9375rem)/1.5 var(--font-mono);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}

.oops-code:hover {
  border-color: var(--accent);
}

.oops-code .kw {
  color: #ad3da4;
}

.oops-code .fn {
  color: var(--accent-ink);
}

:root[data-theme="dark"] .oops-code .kw {
  color: #fc5fa3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .oops-code .kw {
    color: #fc5fa3;
  }
}

/* MARK: - Motion */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .now h2::before {
    animation: beacon 2.4s ease-out infinite;
  }

  @supports (animation-timeline: scroll()) {
    .hero-wheel {
      animation: roll linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
  }
}

@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 0%, transparent);
  }
}

@keyframes roll {
  to {
    transform: rotate(120deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
