:root {
  --paper: #ffffff;
  --ink: #000000;
  --grid: #ebebeb; /* hairline-only — never used for type or chrome */

  --rule: 2px;
  --rule-thick: 3px;

  --max-width: 88rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --motion: 120ms;
  --ease: linear;

  /* Live-measured by the footer-height JS so body padding always matches the
     pinned footer. Fallback covers the no-JS path (footer height at default
     desktop size). */
  --footer-h: 84px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "zero" 1, "ss02" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  /* Reserve space for the fixed footer so the last line of any view never
     hides behind it. JS keeps --footer-h in sync with the live element. */
  padding-bottom: var(--footer-h);
}

body.scroll-lock {
  overflow: hidden;
  /* Maintain padding so the footer position doesn't jump when the modal
     opens and locks scroll. */
}

/* ---------- background grid (hairline only) ---------- */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
}

@media (max-width: 720px) {
  .grid-bg {
    background-size: 64px 64px;
  }
}

/* ---------- links ---------- */

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

:focus-visible {
  outline: var(--rule-thick) solid var(--ink);
  outline-offset: 3px;
  border-radius: 0;
}

/* The router programmatically focuses the active view's H1 on hash route
   changes for screen-reader announcement (BRAND.md a11y spec). These
   headings are tabindex=-1, so keyboard users can never tab to them — the
   visible focus ring is noise that draws a box around the wordmark/title
   on every route change. */
.hero-mark:focus,
.hero-mark:focus-visible,
.detail-title:focus,
.detail-title:focus-visible {
  outline: none;
}

.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  border: var(--rule) solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- main ---------- */

main {
  flex: 1;
  padding-block: clamp(2.5rem, 8vw, 6rem);
}

.view {
  display: none;
}

.view[data-active="true"] {
  display: block;
  animation: fadeUp var(--motion) var(--ease);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- hero ---------- */

.hero {
  margin-bottom: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(0.5rem, 3vw, 2rem);
  container-type: inline-size;
}

.hero-mark {
  /* Container-query sized so the wordmark always fits on a single line
     regardless of viewport. 11.5cqi × ~7.6 char-advances = ~87% of the
     hero's inline size — leaves a safe margin at every width. The vw
     fallback applies only where `cqi` isn't supported. */
  font-size: clamp(1.75rem, 10.5vw, 13rem);
  font-size: clamp(1.75rem, 11.5cqi, 13rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
  hyphens: none;
  font-feature-settings: "zero" 1, "ss02" 1, "ss20" 1;
  text-transform: lowercase;
}

.hero-rule {
  height: var(--rule);
  background: var(--ink);
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
  width: 100%;
}

.hero-statement {
  display: grid;
  gap: 0.5rem;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.5;
}

.hero-statement p {
  margin: 0;
}

.hero-statement em {
  font-style: normal;
  background: var(--ink);
  color: var(--paper);
  padding: 0 0.25em;
}

/* ---------- section header ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-top: var(--rule) solid var(--ink);
  padding-top: 1rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-head .bracket,
.section-head .slash {
  font-weight: 500;
}

.section-head .count {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  border: 1px solid var(--ink);
  padding: 0.25rem 0.5rem;
}

/* ---------- product grid ---------- */

/* Two-column product grid. The container's ink fill shows through the 2px
   gap between cells, drawing crisp vertical (and, for any future second
   row, horizontal) rules between tiles without the per-tile-border tricks
   that get covered by the next tile's background. */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rule);
  background: var(--ink);
  border: var(--rule) solid var(--ink);
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.tile {
  position: relative;
  display: block;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--motion) var(--ease),
    color var(--motion) var(--ease);
}

.tile:hover,
.tile:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.tile-body {
  padding: 1.25rem 1.5rem 1.75rem;
}

.tile-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.tile-head .tile-name {
  flex: 0 1 auto;
  text-align: left;
}

.tile-head .tile-arrow {
  margin-inline-start: auto;
}

.tile-name {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}

.tile-arrow {
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform var(--motion) var(--ease);
}

.tile:hover .tile-arrow,
.tile:focus-visible .tile-arrow {
  transform: translateX(4px);
}

.tile-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  max-width: 50ch;
  line-height: 1.55;
  /* Lock every tile description to exactly 3 lines so cards stay symmetric.
     Copy over this height is a design error — rewrite instead of letting it
     wrap. See BRAND.md "Product tiles". */
  min-height: calc(1.55em * 3);
}

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

/* Launch date is its own bordered band — distinct from the chips above
   (which are loose dashed pills) and from the metrics box below (which is
   a multi-cell grid). Centered text in a single ruled cell so it reads as
   a date stamp, not a tag. */
.tile-ship {
  margin-top: 1.5rem;
  padding: 0.65rem 0.875rem;
  border: 1px solid currentColor;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-feature-settings: "zero" 1, "tnum" 1;
}

.tile-ship time {
  display: inline-block;
}

/* ---------- tile live metrics ---------- */

.tile-metrics {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid currentColor;
  display: grid;
  gap: 0.75rem;
}

.tile-metrics-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  opacity: 0.6;
}

.tile-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid currentColor;
}

.tile-metric {
  padding: 0.625rem 0.75rem;
  border-right: 1px solid currentColor;
}

.tile-metric:last-child {
  border-right: none;
}

.tile-metric-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1.3;
  min-height: 1.625em; /* keep label rows aligned when wrapping */
}

.tile-metric-value {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.375rem;
  font-feature-settings: "zero" 1, "tnum" 1;
}

@media (max-width: 480px) {
  .tile-metrics-grid {
    grid-template-columns: 1fr;
  }
  .tile-metric {
    border-right: none;
    border-bottom: 1px solid currentColor;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
  }
  .tile-metric:last-child {
    border-bottom: none;
  }
  .tile-metric-label {
    min-height: 0;
  }
  .tile-metric-value {
    margin-top: 0;
    font-size: 1.125rem;
  }
}

/* ---------- product status ---------- */

/* Status is the dominant signal on a tile. It is always the first block inside
   the tile (edge-to-edge, flush at the top) so a scanning reader clocks
   WAITLIST OPEN / COMING SOON before anything else. Two variants differentiate
   actionable (`--live`, solid fill) from pending (`--soon`, banded outline).
   Never use colour to differentiate — use fill, weight, rules, and marker. */

.status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
  font-feature-settings: "zero" 1, "ss02" 1;
}

.status-index {
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.7;
  font-size: 0.6875rem;
}

.status-text {
  flex: 1;
}

.status-marker {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
}

/* --live: solid ink fill, paper text. Maximum-contrast banner = actionable. */
.status--live {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--rule) solid var(--ink);
}

/* --soon: paper fill with thick ink rules top and bottom. Banded, held. */
.status--soon {
  background: var(--paper);
  color: var(--ink);
  border-top: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  padding-block: calc(0.625rem - var(--rule));
}

/* Both variants invert cleanly on tile hover so the hierarchy is preserved
   when the whole tile flips to black. */
.tile:hover .status--live,
.tile:focus-visible .status--live {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--paper);
}

.tile:hover .status--soon,
.tile:focus-visible .status--soon {
  background: var(--ink);
  color: var(--paper);
  border-top-color: var(--paper);
  border-bottom-color: var(--paper);
}

/* Detail variant: same treatment, slightly more generous padding so it can
   carry the top of a product page without feeling cramped against the H1. */
.status--detail {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
}

.status--detail.status--soon {
  padding-block: calc(0.75rem - var(--rule));
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px dashed currentColor;
  color: var(--ink);
}

.tile:hover .chip,
.tile:focus-visible .chip {
  color: var(--paper);
  border-color: var(--paper);
}

/* ---------- product detail ---------- */

.detail {
  max-width: 72ch;
}

.detail-back {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 2rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--ink);
}

.detail-back:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.detail-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin: 0 0 1rem;
}

.detail-title-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.62em;
  height: 0.62em;
  margin-right: 0.32em;
  vertical-align: 0.15em;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  text-decoration: none;
  line-height: 1;
  transition: background-color 120ms ease, color 120ms ease;
}

.detail-title-link > span {
  font-size: 0.4em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.detail-title-link:hover,
.detail-title-link:focus-visible {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}

.detail-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  overflow-wrap: break-word;
}

.detail-lede {
  font-size: 1.0625rem;
  margin: 0 0 2rem;
  max-width: 56ch;
  line-height: 1.5;
}

.detail-section {
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}

.detail-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.detail-section p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.detail-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.detail-section li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink);
}

.detail-section li::before {
  content: "//";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- metrics placeholder ---------- */

.metrics {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: var(--rule) solid var(--ink);
  display: grid;
  gap: 0.75rem;
  background: var(--paper);
}

.metrics-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.metrics-head h3 {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.metrics-body {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0.5rem;
  border: 1px solid var(--ink);
}

@media (max-width: 540px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric {
  border-right: 1px solid var(--ink);
  padding: 0.75rem 0.875rem;
}

.metric:last-child {
  border-right: none;
}

@media (max-width: 540px) {
  .metric {
    border-right: none;
    border-bottom: 1px solid var(--ink);
  }
  .metric:last-child {
    border-bottom: none;
  }
}

.metric-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ---------- footer ---------- */

/* The footer is always pinned to the viewport bottom. Body reserves
   `--footer-h` of padding-bottom so page content never slides under the bar.
   JS measures the rendered footer height and syncs the variable. */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  border-top: var(--rule) solid var(--ink);
  padding-block: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: var(--paper);
}

.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* Single-row footer: wordmark left, CTA centred, email right.
   Three tracks let the button stay geometrically centred regardless of the
   width of the wordmark or email on either side. */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-footer a.footer-mark {
  justify-self: start;
  letter-spacing: -0.01em;
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: lowercase;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.1rem 0.25rem;
  margin-inline-start: -0.25rem; /* visually flush left */
}

.site-footer a.footer-mark:hover,
.site-footer a.footer-mark:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.footer-cta {
  justify-self: center;
  flex: 0 0 auto;
}

.site-footer a.footer-email {
  justify-self: end;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .site-footer {
    padding-block: 0.625rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
  }
  .site-footer a.footer-mark,
  .footer-cta,
  .site-footer a.footer-email {
    justify-self: center;
  }
  .footer-cta {
    width: 100%;
  }
}

/* ---------- buttons ---------- */

/* Brutalist primary button: solid ink fill, paper text, monospace, sharp.
   Inverts on hover/focus to keep the same B&W interaction language as
   tiles, links, and the back-link. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.75rem 1.1rem;
  border: var(--rule) solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion) var(--ease),
    color var(--motion) var(--ease);
  font-feature-settings: "zero" 1, "ss02" 1;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- modal ---------- */

/* Full-viewport scrim with a centred panel. Pure ink/paper, hard edges,
   thick rules. The panel is `min(560px, 100% - gutter)` wide and capped at
   `min(720px, 90vh)` tall — long forms scroll inside the panel, the page
   itself stays locked while the modal is open. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 4vw, 2rem);
}

.modal[hidden] {
  display: none;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: var(--ink);
  /* High-contrast scrim, no soft fade. Brutalism doesn't ease in. */
  opacity: 0.92;
}

.modal-panel {
  position: relative;
  width: min(36rem, 100%);
  max-height: min(90dvh, 48rem);
  background: var(--paper);
  color: var(--ink);
  border: var(--rule-thick) solid var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  border-bottom: var(--rule) solid var(--ink);
  background: var(--paper);
}

.modal-kicker {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.modal-close {
  appearance: none;
  background: var(--paper);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  line-height: 1;
  transition: background var(--motion) var(--ease),
    color var(--motion) var(--ease);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.modal-body {
  padding: 1.5rem clamp(1rem, 4vw, 1.75rem) 1.5rem;
  overflow-y: auto;
}

.modal-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.modal-lede {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  max-width: 50ch;
}

/* ---------- form ---------- */

.collab-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  width: 100%;
  line-height: 1.4;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink);
  opacity: 0.45;
}

.field textarea {
  min-height: 7rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: var(--rule-thick) solid var(--ink);
  outline-offset: 2px;
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  /* Brutalist invalid state: double the rule weight, no colour. */
  border-width: var(--rule-thick);
}

.field-hint {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  opacity: 0.7;
}

/* Error state surfaced when the collaborate submit fails (network down,
   endpoint not yet live). Heavy ink rule, no colour — same language as the
   rest of the system. */
.collab-status {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  font-weight: 500;
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.modal-actions--single {
  margin-top: 1rem;
}

.modal-actions .btn {
  flex: 1 1 auto;
  min-width: 8rem;
}

@media (max-width: 480px) {
  .modal {
    padding: 0;
  }
  .modal-panel {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-width: 0;
    border-top: var(--rule-thick) solid var(--ink);
  }
}

/* ---------- reduced motion ---------- */

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