/*
 * LazyDM website. Tokens, fonts, buttons, tracker, map and code map are the app's own
 * (src/styles.css, ArcTechUI, DESIGN_PRINCIPLES.md §9): :root = light, .dark = dark, square corners, one bronze accent.
 * Keep both themes in step with the app.
 */

@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --background: #e9eae7;
  --foreground: #30363a;
  --foreground-strong: #202428;
  --foreground-secondary: #4c5356;
  --card: #faf9f6;
  --primary: #6d5a3e;
  --primary-foreground: #f1f0eb;
  --highlight: #8b724e;
  --primary-pressed: #59482f;
  --muted-foreground: #50575a;
  --accent: #e2e4e2;
  --destructive: #93473d;
  --border: #92979b;
  --border-subtle: #b9bebc;
  --border-strong: #676e71;
  --input: #71777a;
  --ring: #8b724e;
  --recessed: #ecece8;
  --raised: #fdfcfa;
  --popover: #fdfcfa;
  --chart-1: #766043;
  --chart-2: #93473d;
  --chart-3: #4e7355;
  --chart-4: #426c89;
  --chart-5: #71598c;
  --chart-6: #886724;
  --chart-8: #62696b;
  --warning: #765a1e;
  --success: #44664b;
  --info: #426875;
  --sa-1: #93473d;
  --sa-2: #8f6233;
  --sa-3: #886724;
  --sa-5: #4e7355;
  --sa-6: #426875;
  --sa-8: #426c89;
  --sa-9: #71598c;
  --sa-10: #8a4f64;
  --sa-11: #62696b;
  --elevation-overlay: 0 12px 25px #0005;
  /* The app hovers a bronze button to --highlight; in light that gives 4.0:1 text, so the site hovers it darker. */
  --btn-hover: var(--primary-pressed);

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --column: 40rem;
  --gutter: 16px;
  --codemap-w: 116px;
  --wide-w: min(64rem, calc(100vw - 2 * var(--gutter)));
}

:root.dark {
  color-scheme: dark;
  --background: #101114;
  --foreground: #d6d1c6;
  --foreground-strong: #f0ece3;
  --foreground-secondary: #b6b2a9;
  --card: #1a1c1f;
  --primary: #b9a27a;
  --primary-foreground: #101114;
  --highlight: #d0bd98;
  --primary-pressed: #8f7b58;
  --muted-foreground: #9c988f;
  --accent: #30343a;
  --destructive: #c96e63;
  --border: #4f555b;
  --border-subtle: #34383d;
  --border-strong: #71777a;
  --input: #6a7075;
  --ring: #d0bd98;
  --btn-hover: var(--highlight);
  --recessed: #15171a;
  --raised: #23262a;
  --popover: #23262a;
  --chart-1: #b9a27a;
  --chart-2: #a85046;
  --chart-3: #819574;
  --chart-4: #7799b4;
  --chart-5: #9b88b6;
  --chart-6: #c2a063;
  --chart-8: #9c988f;
  --warning: #c2a063;
  --success: #819574;
  --info: #6f8991;
  --sa-1: #a85046;
  --sa-2: #b98457;
  --sa-3: #c2a063;
  --sa-5: #819574;
  --sa-6: #6f8991;
  --sa-8: #7799b4;
  --sa-9: #9b88b6;
  --sa-10: #b07a8c;
  --sa-11: #9c988f;
}

@media (min-width: 1180px) {
  :root {
    --wide-w: min(64rem, calc(100vw - 2 * (var(--codemap-w) + var(--gutter))));
  }
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition-property: color, background-color, border-color, fill, stroke;
  transition-duration: 280ms;
  transition-timing-function: ease;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
::-webkit-scrollbar-track { background: var(--background); }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--border) var(--background); }
}

h1, h2, h3 {
  margin: 0;
  color: var(--foreground-strong);
  text-wrap: balance;
}

p, li, dd { text-wrap: pretty; }

p {
  margin: 0 0 1.1em;
  max-width: 38rem;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--highlight); }

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

p code, li code, dd code {
  padding: 0.05em 0.35em;
  background: var(--recessed);
  border: 1px solid var(--border-subtle);
}

.dot { color: var(--primary); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font: 500 0.875rem var(--font-mono);
}
.skip:focus { top: 0.5rem; }
.skip:hover, .skip:focus { color: var(--primary-foreground); }

/* Icons: Lucide, drawn from the sprite at the top of the page, as in the app. */
.i {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ---------- the app's ornaments (src/styles.css) ---------- */

.arc-engraved-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 24px;
  margin: 4rem 0 3.5rem;
}
.arc-engraved-divider::before,
.arc-engraved-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.arc-engraved-divider > span {
  --side: 19px;
  --small: 7px;
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  margin-inline: 15px;
  border: 1px solid var(--primary);
  transform: rotate(45deg);
}
.arc-engraved-divider > span::before,
.arc-engraved-divider > span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--small);
  height: var(--small);
  margin: calc(var(--small) / -2) 0 0 calc(var(--small) / -2);
  border: 1px solid var(--primary);
}
.arc-engraved-divider > span::before { transform: translate(calc(var(--side) * -0.7071), calc(var(--side) * 0.7071)); }
.arc-engraved-divider > span::after { transform: translate(calc(var(--side) * 0.7071), calc(var(--side) * -0.7071)); }

/* Ornamental rule: bronze bar, three marks, then a hairline. */
.arc-ornament-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.arc-ornament-rule::before {
  content: '';
  flex: none;
  width: 63px;
  height: 5px;
  background: var(--primary);
}
.arc-ornament-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.arc-ornament-rule > span {
  color: var(--primary);
  font-size: 12px;
  line-height: 1;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  font: 600 0.75rem var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--primary-foreground);
}
.btn:active {
  background: var(--primary-pressed);
  border-color: var(--primary-pressed);
}
.btn.lg { height: 44px; padding: 0 1.5rem; }
.btn.sm { padding: 0 0.875rem; }
.btn.outline {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--input);
}
.btn.outline:hover { background: var(--accent); color: var(--foreground-strong); border-color: var(--input); }
.btn.ghost {
  background: transparent;
  color: var(--foreground);
  border-color: transparent;
}
.btn.ghost:hover { background: var(--accent); color: var(--foreground-strong); border-color: transparent; }
.btn.icon { width: 40px; padding: 0; }
.btn.s36 { width: 36px; height: 36px; padding: 0; }
.btn.s32 { width: 32px; height: 32px; padding: 0; }
.btn.s28 { width: 28px; height: 28px; padding: 0; }
/* A small control keeps its drawn size; the touch target grows around it. */
@media (pointer: coarse) {
  .btn.s36::after, .btn.s32::after, .btn.s28::after { content: ''; position: absolute; inset: -6px; }
}
/* Not a faded copy: an empty dashed outline with muted text, so it never reads as an active one. */
.btn:disabled {
  pointer-events: none;
  background: transparent;
  color: var(--muted-foreground);
  border: 1px dashed var(--border);
}
.btn.ghost:disabled { border-color: transparent; }

.status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px dashed var(--border);
  color: var(--muted-foreground);
  font: 500 0.8125rem var(--font-mono);
}

/* ---------- top bar (the app's header) ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 48px;
  padding: 0 var(--gutter);
  background: var(--raised);
  border-bottom: 1px solid var(--border-subtle);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--foreground-strong);
  text-decoration: none;
}
.crumb .franco { width: 28px; height: 28px; color: var(--primary); flex: none; }
.crumb b { font: 700 1.5rem/1 var(--font-display); letter-spacing: 0.01em; }
.crumb span.path { font: 500 0.8125rem var(--font-mono); color: var(--muted-foreground); white-space: nowrap; }
.crumb:hover { color: var(--foreground-strong); }

.topnav { display: flex; align-items: center; gap: 0.25rem; }
.topnav a.link {
  display: none;
  padding: 0.5rem 0.75rem;
  font: 500 0.8125rem var(--font-mono);
  color: var(--foreground-secondary);
  text-decoration: none;
}
.topnav a.link:hover { color: var(--primary); background: var(--accent); }

.theme { position: relative; margin-left: 0.5rem; }
.theme-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 36px;
  padding: 0 0.5rem 0 0.625rem;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--input);
  cursor: pointer;
}
.theme-btn:hover, .theme-btn[aria-expanded='true'] { background: var(--accent); color: var(--foreground-strong); }
.theme-btn .i { width: 18px; height: 18px; }
.theme-btn .chev { width: 14px; height: 14px; color: var(--muted-foreground); }
.theme-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 11rem;
  padding: 0.25rem;
  background: var(--popover);
  border: 1px solid var(--primary);
  box-shadow: var(--elevation-overlay);
}
.theme-menu[hidden] { display: none; }
.mi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem;
  background: transparent;
  border: 0;
  color: var(--foreground);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}
.mi .i { width: 14px; height: 14px; color: var(--muted-foreground); }
.mi .tick { display: none; margin-left: auto; color: var(--primary); }
.mi[aria-checked='true'] .tick { display: block; }
.mi[aria-checked='true'] { color: var(--primary); }
.mi:hover, .mi:focus-visible { background: var(--accent); outline-offset: -2px; }
.mi:hover .i, .mi:focus-visible .i { color: var(--primary); }

@media (min-width: 820px) {
  .topnav a.link { display: block; }
}

/* ---------- layout ---------- */

.note {
  width: min(100%, calc(var(--column) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 4rem;
}

.wide {
  position: relative;
  left: 50%;
  width: var(--wide-w);
  transform: translateX(-50%);
  margin-block: 2rem;
}

/* ---------- note head ---------- */

.props {
  display: block;
  width: 100%;
  margin-bottom: 1.75rem;
  background: var(--recessed);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.props summary { padding: 0.35rem 0.8rem; color: var(--muted-foreground); cursor: pointer; list-style: none; }
.props summary::-webkit-details-marker { display: none; }
.props summary::before {
  content: '\25B8';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 150ms ease-out;
}
.props[open] summary::before { transform: rotate(90deg); }
.props dl {
  margin: 0;
  padding: 0.25rem 0.8rem 0.75rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.props dt { color: var(--muted-foreground); }
.props dd { margin: 0; color: var(--foreground); }

/* Franco beside the title, on the right: the title and the ornamental rule keep the left column. */
.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.5rem;
  row-gap: calc(0.5rem + 1px);
  margin-bottom: 1.5rem;
}
.hero .franco {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 5rem;
  height: 5rem;
  color: var(--primary);
}
@media (min-width: 640px) {
  .hero .franco { width: 9rem; height: 9rem; }
}
.hero h1.title { grid-column: 2; grid-row: 1; }
.hero .arc-ornament-rule { grid-column: 2; grid-row: 2; align-self: start; }

h1.title {
  align-self: end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 15vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--foreground-strong);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
}

/* Info box (the app's callout): 1px frame, status bar, mono title */
.infobox {
  position: relative;
  padding: 0.85rem 1.1rem 0.85rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
}
.infobox::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--warning);
}
.infobox strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--warning);
  font: 500 0.75rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.infobox p { margin: 0; font-size: 0.9375rem; line-height: 1.55; }

/* ---------- sections ---------- */

h2.section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 3.75rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}

h3 { font: 700 1.75rem / 1.1 var(--font-display); }

.defs { margin: 2rem 0 0; border-top: 1px solid var(--border-subtle); }
.defs > div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.defs dt { font: 700 1.75rem / 1.1 var(--font-display); color: var(--foreground-strong); }
.defs dd { margin: 0; max-width: 28rem; }
@media (max-width: 599px) {
  .defs > div { grid-template-columns: 1fr; }
}

.checks { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0.55rem 0 0.55rem 1.75rem; border-top: 1px solid var(--border-subtle); }
.checks li:last-child { border-bottom: 1px solid var(--border-subtle); }
.checks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--primary);
  transform: rotate(45deg);
}
.checks b { font-weight: 600; color: var(--foreground-strong); }

.hint {
  max-width: 38rem;
  margin: 0.75rem 0 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- close and footer ---------- */

.foot { border-top: 1px solid var(--border-subtle); background: var(--recessed); }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  width: min(100%, calc(64rem + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
}
.foot-brand { display: flex; align-items: center; gap: 1rem; }
.foot-brand .franco { width: 3.5rem; height: 3.5rem; color: var(--primary); flex: none; }
.foot p { margin: 0; max-width: 24rem; font-size: 0.9375rem; color: var(--foreground-secondary); }
.foot strong { display: block; margin-bottom: 0.4rem; font: 700 1.75rem / 1 var(--font-display); color: var(--foreground-strong); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 0.8125rem var(--font-mono);
  color: var(--foreground-secondary);
}
.foot nav a:hover { color: var(--primary); }

/* ---------- code map (the app's, along the right edge) ---------- */

.app-codemap {
  display: none;
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 0;
  z-index: 15;
  width: var(--codemap-w);
  overflow: hidden;
  background: var(--recessed);
  border-left: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
@media (min-width: 1180px) {
  .app-codemap { display: block; }
}
.app-codemap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-codemap-frame {
  position: absolute;
  left: 0;
  right: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--foreground) 7%, transparent);
  pointer-events: none;
}
.app-codemap-labels { position: absolute; inset: 0; }
/* Labels mask the bars behind them, like Xcode's section marks. */
.app-codemap-label {
  position: absolute;
  left: 4px;
  max-width: calc(100% - 8px);
  padding-inline: 2px;
  overflow: hidden;
  background: var(--recessed);
  font-family: var(--font-mono);
  line-height: 1.2;
  color: var(--primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-codemap-label:hover { text-decoration: underline; }
.app-codemap-label[data-level='1'] { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.app-codemap-label[data-level='2'] { font-size: 9.5px; font-weight: 600; }
.app-codemap-label[data-level='3'] { padding-left: 8px; font-size: 9px; opacity: 0.8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.theme-transition *,
  html.theme-transition *::before,
  html.theme-transition *::after,
  .props summary::before,
  .btn { transition: none; }
}

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

/* ---------- screenshots of the app ---------- */

.shot { margin: 2rem 0 2.5rem; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: var(--recessed);
  border: 1px solid var(--border);
}
/* Each shot exists in both themes; the page theme picks one (and the other is not painted). */
.shot .theme-dark { display: none; }
:root.dark .shot .theme-light { display: none; }
:root.dark .shot .theme-dark { display: block; }
.shot figcaption {
  max-width: 38rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.shot.wide { margin-block: 2rem 2.5rem; }

/* ---------- themed frame around each screenshot ---------- */

.shot-frame {
  --bracket-size: 18px;
  --bracket-grow: 30px;
  position: relative;
  padding: 14px 14px 16px;
  background: var(--card);
  border: 2px solid var(--border-strong);
}
.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2px 10px;
}
.shot-path {
  min-width: 0;
  overflow: hidden;
  font: 500 0.75rem var(--font-mono);
  color: var(--foreground-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-frame .arc-ornament-rule { margin: 0 2px 14px; }
.shot-media { line-height: 0; }

/* Bronze corner brackets (the app's campaign card): they mark the edge of the frame and grow when it is hovered. */
.shot-frame > .arc-card-corner,
.more > .arc-card-corner {
  position: absolute;
  width: var(--bracket-size);
  height: var(--bracket-size);
  border: 0 solid var(--primary);
  pointer-events: none;
  transition: width 180ms ease-out, height 180ms ease-out;
}
.arc-card-corner-tl { top: -2px; left: -2px; border-top-width: 3px !important; border-left-width: 3px !important; }
.arc-card-corner-tr { top: -2px; right: -2px; border-top-width: 3px !important; border-right-width: 3px !important; }
.arc-card-corner-bl { bottom: -2px; left: -2px; border-bottom-width: 3px !important; border-left-width: 3px !important; }
.arc-card-corner-br { bottom: -2px; right: -2px; border-bottom-width: 3px !important; border-right-width: 3px !important; }
.shot-frame:hover > .arc-card-corner,
.more:hover > .arc-card-corner,
.more:focus-within > .arc-card-corner { width: var(--bracket-grow); height: var(--bracket-grow); }
@media (prefers-reduced-motion: reduce) {
  .shot-frame > .arc-card-corner,
  .more > .arc-card-corner { transition: none; }
}

/* Badge (the app's outlined mono chip): names what the screenshot shows. */
.bdg {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 20px;
  padding: 0 0.5rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- alternating rows: the text box starts centred over a tilted screen, then both slide to their sides as the row scrolls in ---------- */

.row { margin-block: 0; }
.row-text > :last-child { margin-bottom: 0; }
.row .shot { margin: 1.5rem 0 0; }

@media (min-width: 900px) {
  .row {
    --dir: 1;
    position: relative;
    left: 50%;
    width: var(--wide-w);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    column-gap: 0;
  }
  .row.flip { --dir: -1; }
  /* Text takes five columns and the screen six; the column between them is the gap. */
  .row-text {
    position: relative;
    z-index: 2;
    grid-column: 1 / 6;
    grid-row: 1;
    padding: 1.75rem 1.75rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border-subtle);
  }
  .row .shot {
    grid-column: 6 / 13;
    grid-row: 1;
    z-index: 1;
    margin: 0 0 0 1.5rem;
  }
  .row.flip .row-text { grid-column: 8 / 13; }
  .row.flip .shot { grid-column: 1 / 8; margin: 0 1.5rem 0 0; }

  /* JS sets, per row, --p (0 = start, 1 = settled) and --tx / --sx (px that bring the text and the screen to the row's centre).
     Without JS both are in their final places. */
  .rows-live .row {
    --p: 0;
    --tx: 0px;
    --sx: 0px;
  }
  .rows-live .row .row-text {
    transform: translateX(calc((1 - var(--p)) * var(--tx)));
    will-change: transform;
  }
  .rows-live .row .shot {
    transform:
      perspective(1500px)
      translateX(calc((1 - var(--p)) * var(--sx)))
      rotateY(calc((1 - var(--p)) * var(--dir) * -30deg));
    will-change: transform;
  }
}

/* Facts line under the actions, and the phone jump row. */
.meta { margin: -1rem 0 2rem; font: 500 0.8125rem var(--font-mono); letter-spacing: 0.04em; color: var(--muted-foreground); }
.jump {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  padding: 0.25rem var(--gutter);
  background: var(--recessed);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 48px;
  z-index: 19;
  scrollbar-width: none;
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  color: var(--foreground-secondary);
  font: 500 0.75rem var(--font-mono);
  text-decoration: none;
}
.jump a:hover { color: var(--primary); background: var(--accent); }
@media (min-width: 820px) { .jump { display: none; } }

/* Touch targets of at least 44px where the pointer is coarse. */
@media (pointer: coarse) {
  .crumb, .topnav a.link, .theme-btn, .props summary, .skip { min-height: 44px; }
  .theme-btn { height: 44px; }
  .props summary { display: flex; align-items: center; }
}

/* ---------- "One more thing": a card with the app's corner brackets and ornamental rule ---------- */

.more {
  --bracket-size: 18px;
  --bracket-grow: 30px;
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--card);
  border: 2px solid var(--border-strong);
}
.more h2.section { margin-bottom: 0.75rem; }
.more .arc-ornament-rule { margin-bottom: 1.5rem; }
.more .more-lede { max-width: none; font-size: 1.125rem; line-height: 1.5; color: var(--foreground-strong); }
.more .defs { margin-top: 1.5rem; }
.more .defs > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 0.75rem 0; }
.more .defs dt { font-size: 1.25rem; }
.more .defs dd { max-width: none; }
.more .more-safe {
  max-width: none;
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--foreground-secondary);
}
@media (max-width: 599px) {
  .more { padding: 1.5rem 1rem 1.25rem; }
  .more .defs > div { grid-template-columns: 1fr; }
}
