/* Rimwell launch site. Tokens extend the app's own (docs/DESIGN.md). */

:root {
  --paper: #f6f2ec;
  --surface: #fdfbf8;
  --raised: #ffffff;
  --ink: #24201c;
  --ink-muted: #6d645a;
  --line: #e3dbd0;
  --accent: #1f4b47;
  --accent-hover: #173a37;
  --accent-ink: #ffffff;
  --accent-soft: #e2ece9;
  --brass: #a8793a;
  --danger: #a83a2c;
  --danger-soft: #f7e4e0;
  --success: #2f6b3d;
  --success-soft: #e2efe3;
  --lens: rgba(156, 195, 214, 0.22);

  --halo-opacity: 0;
  --shadow-soft: 0 1px 2px rgb(60 45 30 / 0.05), 0 18px 40px -18px rgb(60 45 30 / 0.22);
  --shadow-lg: 0 2px 6px rgb(60 45 30 / 0.06), 0 22px 48px -12px rgb(60 45 30 / 0.24), 0 60px 90px -40px rgb(60 45 30 / 0.22);

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --rhythm: clamp(5rem, 12vw, 9rem);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-pop: cubic-bezier(0.3, 0, 0, 1.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161412;
    --surface: #1f1c19;
    --raised: #2a2622;
    --ink: #f1ebe3;
    --ink-muted: #a99e91;
    --line: #3a352f;
    --accent: #7fbdb3;
    --accent-hover: #9acdc4;
    --accent-ink: #0f1d1b;
    --accent-soft: #23332f;
    --brass: #d0a565;
    --danger: #f08a7a;
    --danger-soft: #3a211d;
    --success: #8fcf9b;
    --success-soft: #1e2e21;
    --lens: rgba(156, 195, 214, 0.14);

    --halo-opacity: 0.12;
    --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -18px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 24px 48px -12px rgb(0 0 0 / 0.7), 0 60px 90px -40px rgb(0 0 0 / 0.6);
  }
}

/* Base */

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

[hidden] {
  display: none !important;
}

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  color: var(--accent);
}

code,
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  margin-top: var(--rhythm);
}

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

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

.smallcaps,
.eyebrow {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--ink-muted);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

/* Logo */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
}

.mark {
  flex: none;
  display: block;
}

.mark__glint {
  stroke: var(--brass);
}

.brand__word {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Links and buttons */

.slide-link,
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms var(--ease), transform 120ms var(--ease);
}

.slide-link::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 1.5px;
  background: currentColor;
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

.slide-link::after {
  transform: scaleX(0);
}

.slide-link:hover::after,
.slide-link:focus-visible::after {
  transform: scaleX(1);
}

.text-link::after {
  opacity: 0.35;
}

.slide-link:hover,
.text-link:hover {
  color: var(--accent-hover);
}

.slide-link:active,
.text-link:active,
.brand:active {
  transform: scale(0.98);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn__arrow {
  transition: transform 200ms var(--ease);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

/* Hero */

.hero {
  display: grid;
  gap: 3rem;
  padding-top: clamp(2rem, 6vw, 5rem);
}

.hero > *,
.specimen > * {
  min-width: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__lede {
  max-width: 62ch;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    column-gap: 2rem;
  }

  .hero__copy {
    grid-column: 1 / span 5;
  }

  .hero__specimen {
    grid-column: 6 / span 7;
  }
}

/* The specimen card */

.specimen {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.specimen__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-muted);
}

.specimen__top::before,
.specimen__top::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brass);
  opacity: 0.45;
}

.specimen__top::before {
  flex: 0 0 1.5rem;
}

.specimen__stage {
  display: grid;
  justify-items: center;
  color: var(--ink);
}

.specimen__stage .frame {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 520px;
  height: auto;
}

.specimen__meta {
  display: grid;
  gap: 0.25rem;
}

.specimen__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.specimen__detail {
  color: var(--ink-muted);
}

.specimen__numbers {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  font-size: 1.0625rem;
}

.specimen__price {
  font-size: 1.25rem;
}

/* Frame drawings, after the app's FrameIllustration */

.frame {
  display: block;
  overflow: visible;
}

.lens {
  fill: var(--lens);
}

.glint {
  fill: none;
  stroke: #ffffff;
  stroke-opacity: 0.7;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.halo {
  fill: none;
  stroke: currentColor;
  stroke-opacity: var(--halo-opacity);
}

.rim {
  fill: none;
  stroke-linejoin: round;
}

/* Chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-x: visible;
  scrollbar-width: none;
  padding: 2px;
  margin: -2px;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}

.chip:hover {
  border-color: var(--ink-muted);
}

.chip:active {
  transform: scale(0.98);
}

.chip[aria-pressed="true"],
.chip.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* The eye chart, the peak */

.chart {
  display: flex;
  align-items: center;
  min-height: 140vh;
  margin-top: clamp(6rem, 16vw, 12rem);
}

.chart__card {
  display: grid;
  justify-items: center;
  gap: clamp(0.75rem, 2.4vw, 1.75rem);
}

.chart__line {
  display: grid;
  grid-template-columns: 3.5rem auto 3.5rem;
  align-items: baseline;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
}

.chart__label {
  justify-self: end;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.chart__text {
  justify-self: center;
  padding-left: 0.12em;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.chart__line--1 {
  font-size: clamp(6rem, 18vw, 12rem);
}
.chart__line--2 {
  font-size: clamp(3.5rem, 10vw, 7rem);
}
.chart__line--3 {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}
.chart__line--4 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
}
.chart__line--5 {
  font-size: clamp(1.375rem, 3.6vw, 2.25rem);
}
.chart__line--6 {
  font-size: clamp(1.125rem, 2.6vw, 1.625rem);
}
.chart__line--7 {
  font-size: clamp(0.9375rem, 1.8vw, 1.25rem);
}

.chart__line--5 .chart__text {
  position: relative;
  padding-bottom: 0.55em;
}

.chart__line--5 .chart__text::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
}

.chart__foot {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 767px) {
  /* Step the long lines down so every one stays on a single line. */
  .chart__line--4 {
    font-size: min(1.75rem, 5.6vw);
  }
  .chart__line--5 {
    font-size: min(1.375rem, 4.6vw);
  }
  .chart__line--7 {
    font-size: min(0.9375rem, 4vw);
  }
}

@media (max-width: 639px) {
  .chart {
    min-height: 110vh;
  }

  .chart__line {
    grid-template-columns: auto;
    justify-items: center;
  }

  .chart__label {
    display: none;
  }
}

@keyframes focus-in {
  from {
    filter: blur(6px);
    opacity: 0.35;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chart__line {
      animation: focus-in linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
  }
}

/* Fallback, switched on by main.js where scroll timelines are missing. */
.chart--io .chart__line {
  filter: blur(6px);
  opacity: 0.35;
  transition: filter 200ms var(--ease), opacity 200ms var(--ease);
}

.chart--io .chart__line.is-sharp {
  filter: blur(0);
  opacity: 1;
}

/* How it works */

.steps {
  display: grid;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.step {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.step + .step {
  border-top: 1px solid var(--line);
}

.step .icon {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--ink-muted);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step + .step {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.steps.will-reveal .step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.steps.will-reveal .step:nth-child(2) {
  transition-delay: 80ms;
}

.steps.will-reveal .step:nth-child(3) {
  transition-delay: 160ms;
}

.steps.will-reveal.is-in .step {
  opacity: 1;
  transform: none;
}

/* Features */

.feature {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.feature__copy > p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.ruled {
  margin-top: 2rem;
}

.ruled li {
  padding-block: 0.875rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.ruled strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature--flip .feature__art {
    order: -1;
  }
}

/* 5a: the library art */

.library {
  display: grid;
  gap: 1rem;
}

.library__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.chip--static {
  min-height: 2.25rem;
  font-size: 0.875rem;
  cursor: default;
}

.library__count {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mini {
  display: grid;
  gap: 0.125rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  box-shadow: 0 1px 2px rgb(60 45 30 / 0.06);
  color: var(--ink);
  transition: opacity 400ms var(--ease);
}

.mini .frame {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

.mini--dim {
  opacity: 0.35;
}

.mini-grid.pre-dim .mini--dim {
  opacity: 1;
}

.mini__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
}

.mini__brand {
  color: var(--ink-muted);
  font-size: 0.6875rem;
}

.mini__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.mini__foot .mono {
  color: var(--ink-muted);
}

.mini__price {
  font-weight: 600;
}

/* 5b: the ledger */

.ledger {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ledger__stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
}

.ledger__arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--ink-muted);
}

.ledger__month {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.ledger__label {
  margin-top: 0.5rem;
  color: var(--ink-muted);
}

.ledger__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
}

.ledger__who {
  display: grid;
  gap: 0.25rem;
}

.ledger__name {
  font-weight: 600;
}

.ledger__due {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.ledger__date--danger {
  color: var(--danger);
}

.ledger__phone {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.ledger__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 1.375rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge .mono {
  font-weight: 400;
}

.badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--success {
  background: var(--success-soft);
  color: var(--success);
}

.pop-wait {
  opacity: 0;
  transform: scale(0.9);
}

.pop {
  animation: pop 200ms var(--ease-pop) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.maths {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.maths__note {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* The real app */

.live__sub {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--ink-muted);
}

.window {
  margin-top: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--raised);
  box-shadow: var(--shadow-lg);
}

.window__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

.window__dots {
  position: absolute;
  left: 1rem;
  display: flex;
  gap: 0.375rem;
}

.window__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.window__app {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 0;
  background: var(--paper);
}

@media (max-width: 639px) {
  .window__app {
    height: 680px;
  }
}

.hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.hints li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hints svg {
  flex: none;
  color: var(--accent);
}

.live .text-link {
  margin-top: 0.75rem;
}

/* Straight answers */

.answers__cols {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .answers__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

.answers__head {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.answer-list li {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.875rem;
  border-top: 1px solid var(--line);
}

.answer-icon {
  flex: none;
  margin-top: 0.3rem;
}

.answer-icon--yes {
  color: var(--accent);
}

.answer-icon--no {
  color: var(--ink-muted);
}

.answers__foot {
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* Closing call to action */

.closing {
  position: relative;
  overflow: hidden;
  margin-top: var(--rhythm);
  padding-block: clamp(4.5rem, 11vw, 8rem);
  background: var(--accent);
  color: var(--accent-ink);
}

.closing__mark {
  position: absolute;
  top: 50%;
  right: -14%;
  width: min(68rem, 120vw);
  height: auto;
  color: var(--brass);
  opacity: 0.4;
  transform: translateY(-50%);
  pointer-events: none;
}

.closing__inner {
  position: relative;
}

.closing p {
  max-width: 44ch;
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.closing .btn {
  margin-top: 2rem;
}

.btn--inverse {
  background: var(--accent-ink);
  color: var(--accent);
}

.btn--inverse:hover {
  background: color-mix(in srgb, var(--accent-ink) 90%, var(--accent));
}

.btn--inverse:hover .btn__arrow {
  transform: translateX(3px);
}

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

/* Footer */

.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer__brand p {
  max-width: 40ch;
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.site-footer__credit {
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

/* Phone */

@media (max-width: 639px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .specimen {
    margin-inline: calc(-1 * var(--pad));
    border-inline: 0;
    border-radius: 0;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * clamp(1.25rem, 3vw, 2rem));
    padding-inline: clamp(1.25rem, 3vw, 2rem);
  }
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .frame.is-first .rim {
    stroke-dasharray: 1;
    animation: draw 900ms var(--ease) both;
  }

  .frame.is-first .side--r .rim {
    animation-delay: 120ms;
  }

  .frame.is-first .glint {
    animation: fade-in 400ms var(--ease) 1020ms both;
  }

  .frame.is-leaving {
    animation: frame-out 240ms var(--ease) both;
  }

  .frame.is-entering {
    animation: frame-in 240ms var(--ease) both;
  }

  .specimen__meta.is-swapping {
    animation: fade-in 240ms var(--ease) both;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes frame-out {
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-link::after,
  .text-link::after,
  .btn__arrow,
  .mini {
    transition: none;
  }

  .pop-wait {
    opacity: 1;
    transform: none;
  }
}
