/* SheetDelver website. Single stylesheet: tokens, base, sections, breakpoints. */

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d12;
  --bg-alt: #0d131a;
  --surface: #121a23;
  --surface-hover: #17232d;
  --text: #eef4f5;
  --muted: #9aaaaf;
  --subtle: #7d9099;
  --line: #29343d;
  --accent: #c1f47f;
  --accent-ink: #102315;
  --closing-bg: #132627;
  --closing-text: #f1f8f5;
  --closing-muted: #b0c7c1;
  --shadow: #0008;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8f8;
  --bg-alt: #edf3f3;
  --surface: #ffffff;
  --surface-hover: #f8fbfb;
  --text: #14232b;
  --muted: #52656d;
  --subtle: #5b6e77;
  --line: #d5e0e3;
  --accent: #18694e;
  --accent-ink: #ffffff;
  --closing-bg: #daeae5;
  --closing-text: #17352f;
  --closing-muted: #496b65;
  --shadow: #38545b25;
}

/* Type scale: labels never below 13px, reading text 15-16px. */
:root {
  --fs-label: 13px;
  --fs-small: 14px;
  --fs-body: 15px;
  --fs-lead: 16px;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, Arial, sans-serif;
  transition: background .2s, color .2s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1440px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { top: 12px; }
.site-shell { overflow: hidden; }
.section-pad { padding-block: 110px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; color: var(--accent); font: 500 var(--fs-label)/1.4 "DM Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }

/* Header */
.site-header { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 25px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font: 700 24px/1 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.wordmark-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); font: 700 13px/1 Inter, sans-serif; letter-spacing: -.06em; }
.wordmark-icon span { color: var(--accent); }
.main-nav { display: flex; gap: 24px; color: var(--muted); font-size: var(--fs-label); font-weight: 600; }
.main-nav a:hover, .site-footer>a:last-child:hover { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.theme-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-alt); }
.theme-switch button { min-height: 30px; padding: 4px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 600 var(--fs-label)/1 Inter, sans-serif; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--surface-hover); color: var(--text); box-shadow: 0 1px 3px var(--shadow); }
.theme-switch button [aria-hidden] { margin-right: 4px; font-size: 15px; vertical-align: -1px; }
.header-action { display: inline-flex; min-height: 38px; align-items: center; gap: 13px; padding: 7px 13px; border: 1px solid transparent; border-radius: 6px; font-size: var(--fs-label); font-weight: 700; white-space: nowrap; }
.header-action:hover { border-color: var(--accent); color: var(--accent); }
.nav-menu { position: relative; display: none; }
.nav-menu summary { display: inline-flex; min-height: 38px; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: var(--fs-label); font-weight: 700; cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { border-color: var(--accent); color: var(--accent); }
.nav-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.nav-menu-icon, .nav-menu-icon::before, .nav-menu-icon::after { display: block; width: 14px; height: 2px; border-radius: 1px; background: currentColor; }
.nav-menu-icon { position: relative; }
.nav-menu-icon::before, .nav-menu-icon::after { content: ""; position: absolute; left: 0; }
.nav-menu-icon::before { top: -5px; }
.nav-menu-icon::after { top: 5px; }
.nav-menu[open] .nav-menu-icon { background: transparent; }
.nav-menu[open] .nav-menu-icon::before { top: 0; transform: rotate(45deg); }
.nav-menu[open] .nav-menu-icon::after { top: 0; transform: rotate(-45deg); }
.nav-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; display: grid; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 40px var(--shadow); }
.nav-menu-panel a { display: flex; min-height: 44px; align-items: center; gap: .3em; padding: 0 12px; border-radius: 5px; color: var(--text); font-size: var(--fs-small); font-weight: 600; }
.nav-menu-panel a:hover { background: var(--surface-hover); color: var(--accent); }
.nav-menu-panel a:last-child { display: none; }

/* Buttons and links */
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 18px; border-radius: 6px; font-size: var(--fs-small); font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { filter: brightness(1.08); }
.text-link { display: inline-flex; min-height: 24px; align-items: center; gap: 14px; color: var(--muted); font-size: var(--fs-small); font-weight: 700; }
.text-link:hover { color: var(--accent); }

.main-nav a, .steps-footer a, .stats-heading>a, .closing-links>a:not(.button), .site-footer>a:last-child, .system-copy>a { display: inline-flex; min-height: 24px; align-items: center; gap: .3em; }

/* Display headings */
.hero h1,
.closing h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.075em;
}
.hero h1 span,
.section-head h2 span,
.getting-intro h2 span,
.faq-intro h2 span,
.closing h2 span { color: var(--accent); }
.section-head h2, .getting-intro h2, .faq-intro h2 {
  margin: 0;
  font: 600 clamp(57px, 5.4vw, 86px)/.98 "Space Grotesk", sans-serif;
  letter-spacing: -.075em;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
.section-head>p { max-width: 400px; margin: 0 0 8px; color: var(--muted); font-size: var(--fs-lead); line-height: 1.7; }
.section-head>p a { padding-block: 2px; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.section-head>p a:hover { color: var(--accent); }

/* Shots: product captures, framed. Pending slots carry a visible marker. */
.shot { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot picture { display: block; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-desktop { aspect-ratio: 16 / 10; border-radius: 10px; box-shadow: 0 24px 60px var(--shadow); }
.shot-phone { aspect-ratio: 390 / 844; border: 7px solid #05080b; border-radius: 30px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px var(--shadow); }
.shot-tile { aspect-ratio: 4 / 3; border-radius: 8px; }
.shot[data-pending]::after {
  content: "Placeholder · " attr(data-shot);
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #05080bd9;
  color: #eef4f5;
  font: 500 var(--fs-label)/1.3 "DM Mono", monospace;
  letter-spacing: .04em;
  pointer-events: none;
}
.shot-phone[data-pending]::after { content: attr(data-shot); top: 8px; left: 8px; }

/* A desktop capture with a phone capture overlapping its corner. */
.hero-devices, .system-media { position: relative; padding: 0 9% 7% 0; }
.hero-devices .shot-phone, .system-media .shot-phone { position: absolute; right: 0; bottom: 0; width: 20%; }

/* Hero */
.hero { padding-block: 66px 86px; }
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr);
  align-items: end;
  gap: 8%;
  padding-bottom: 70px;
}
.hero h1 {
  font-size: clamp(46px, 7.3vw, 108px);
  line-height: .88;
}
.hero-side { padding-bottom: 7px; }
.hero-side>p:first-child {
  max-width: 400px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-compatibility {
  margin: 36px 0 0;
  color: var(--subtle);
  font: 500 var(--fs-label)/1.4 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* At the table */
.play-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; }
.play-tile h3, .gm-item h3, .sd-item h3 { margin: 26px 0 8px; font: 600 26px/1.15 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.play-tile p, .gm-item p, .sd-item p { max-width: 540px; margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.7; }
.play-extras { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 64px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font: 500 var(--fs-label)/1.5 "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.play-extras li::before { content: "+ "; color: var(--accent); }

/* Shadowdark 1.0: desktop tiles paired with phone shots, rows mirrored. */
.sd-section { border-top: 1px solid var(--line); }
.sd-rows { display: grid; gap: 72px; }
.sd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .36fr); align-items: start; gap: 48px; }
.sd-row-reverse { grid-template-columns: minmax(0, .36fr) minmax(0, 1fr); }
.shot-creator { aspect-ratio: 1200 / 907; }
.sd-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.sd-phones .shot-phone { width: min(100%, 300px); }
.sd-requirements h2 { margin: 0 0 18px; font: 600 40px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.sd-requirements p { max-width: 720px; margin: 0 0 18px; color: var(--muted); font-size: var(--fs-body); line-height: 1.7; }
.sd-links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.sd-links a { display: inline-flex; min-height: 24px; align-items: center; padding-bottom: 2px; border-bottom: 1px solid var(--accent); color: var(--text); font-size: var(--fs-small); font-weight: 700; }
.sd-links a:hover { color: var(--accent); }
.sd-requirements .sd-license { margin-top: 32px; color: var(--subtle); font-size: var(--fs-small); }

/* Systems */
.systems-section { border-top: 1px solid var(--line); background: var(--bg-alt); }
.system-showcase { border-top: 1px solid var(--line); }
.system-feature { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: 6%; padding-block: 64px; border-bottom: 1px solid var(--line); }
.system-morkborg { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.system-morkborg .system-copy { order: 2; }
.system-copy { display: flex; flex-direction: column; align-items: flex-start; }
.system-kicker { color: var(--accent); font: 500 var(--fs-label)/1.4 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.system-copy h3 { margin: 20px 0 15px; font: 600 clamp(50px, 5vw, 77px)/.95 "Space Grotesk", sans-serif; letter-spacing: -.075em; }
.system-copy p { max-width: 320px; margin: 0 0 22px; color: var(--muted); font-size: var(--fs-body); line-height: 1.7; }
.system-copy p a { display: inline-block; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.system-copy p a:hover { color: var(--accent); }
.system-copy>a { padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--text); font-size: var(--fs-small); font-weight: 700; }
.system-copy>a:hover { color: var(--accent); }
.system-copy>a+a { margin-top: 14px; }
.system-experimental {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.system-experimental:hover { background: var(--surface-hover); }
.system-experimental-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.system-experimental strong { font: 600 35px/1 "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.system-experimental-copy>span:last-child { color: var(--muted); font-size: var(--fs-body); }
.experimental-arrow { padding-right: 8px; color: var(--accent); font-size: 25px; }

/* For the GM */
.gm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }

/* FAQ */
.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10%; }
.faq-intro>p:last-child { max-width: 360px; margin: 25px 0 0; color: var(--muted); font-size: var(--fs-lead); line-height: 1.7; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-question { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-question { font: 600 20px/1.25 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.faq-toggle { position: relative; flex: none; width: 14px; height: 14px; color: var(--accent); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 2px; background: currentColor; transition: transform .2s; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-item p { max-width: 640px; margin: -6px 0 0; padding-bottom: 28px; color: var(--muted); font-size: var(--fs-body); line-height: 1.7; }

/* Getting started */
.getting-started { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10%; }
.getting-intro { align-self: start; }
.getting-intro>p:nth-of-type(2) { max-width: 360px; margin: 25px 0 35px; color: var(--muted); font-size: var(--fs-lead); line-height: 1.7; }
.prerequisites { max-width: 340px; padding-top: 20px; border-top: 1px solid var(--line); }
.prerequisites>span { color: var(--accent); font: 500 var(--fs-label)/1 "DM Mono", monospace; letter-spacing: .08em; }
.prerequisites p { margin: 10px 0 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 23px; padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.step-number { color: var(--accent); font: 500 var(--fs-label)/1 "DM Mono", monospace; }
.step h3 { margin: -5px 0 4px; font: 600 24px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.step p { max-width: 560px; margin: 0 0 16px; color: var(--muted); font-size: var(--fs-body); line-height: 1.7; }
.step code:not(.inline-code) { display: block; width: fit-content; max-width: 100%; overflow-x: auto; margin-top: 5px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); font: 500 var(--fs-label)/1.4 "DM Mono", monospace; white-space: nowrap; }
.step .inline-code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); font: 500 .9em/1.4 "DM Mono", monospace; }
.steps-footer { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; }
.steps-footer a { color: var(--accent); font-size: var(--fs-small); font-weight: 700; }
.steps-footer a:hover { text-decoration: underline; }

/* Latest releases */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats-inner { display: grid; grid-template-columns: minmax(190px, .7fr) 1.8fr; align-items: center; gap: 6%; padding-block: 43px; }
.stats-heading .eyebrow { margin-bottom: 11px; }
.stats-heading h2 { margin: 0 0 12px; font: 600 29px/1 "Space Grotesk", sans-serif; letter-spacing: -.065em; }
.stats-heading .stats-repo-count { margin: 0 0 10px; color: var(--subtle); font: 500 var(--fs-label)/1.3 "DM Mono", monospace; letter-spacing: .06em; }
.stats-repo-count strong { color: var(--accent); font: 600 18px/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.stats-heading>a { color: var(--muted); font-size: var(--fs-small); font-weight: 700; }
.stats-heading>a:hover { color: var(--accent); }
.stats-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.stats-list .stat { display: flex; min-width: 0; min-height: 112px; flex-direction: column; justify-content: center; gap: 7px; padding: 12px 16px; border-right: 1px solid var(--line); transition: background .2s; }
.stats-list .stat:hover { background: var(--surface-hover); }
.stats-list .stat:last-of-type { border-right: 0; }
.stats-list .stat-value { color: var(--text); font: 600 clamp(27px, 2.7vw, 38px)/1 "Space Grotesk", sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.stats-list .stat-label { margin-top: 8px; color: var(--subtle); font: 500 var(--fs-label)/1.3 "DM Mono", monospace; letter-spacing: .04em; }
.stats-list .stat-meta { color: var(--muted); font-size: var(--fs-label); }
.stats-list .stat:hover .stat-meta { color: var(--accent); }
.stats-list .stats-source { grid-column: 1 / -1; margin: 13px 0 0 16px; color: var(--subtle); font: 400 var(--fs-label)/1.4 "DM Mono", monospace; }
.stats-source a { text-decoration: underline; }

/* Closing and footer */
.closing { position: relative; overflow: hidden; background: var(--closing-bg); color: var(--closing-text); }
.closing-inner { position: relative; padding-block: 102px 108px; }
.closing h2 { position: relative; z-index: 1; font-size: clamp(68px, 7vw, 112px); }
.closing-inner>p:not(.eyebrow) { position: relative; z-index: 1; margin: 23px 0 27px; color: var(--closing-muted); font-size: var(--fs-lead); }
.closing-links { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; }
.closing-links>a:not(.button) { font-size: var(--fs-small); font-weight: 700; }
.closing-links>a:not(.button):hover { color: var(--accent); }
.site-footer { display: flex; min-height: 110px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
.credits { width: 100%; padding-top: 18px; border-top: 1px solid var(--line); color: var(--subtle); font-size: var(--fs-label); }
.credits summary { display: inline-flex; min-height: 24px; align-items: center; cursor: pointer; color: var(--muted); font-weight: 600; }
.credits summary:hover { color: var(--accent); }
.credits summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.credits ul { margin: 12px 0 8px; padding-left: 18px; line-height: 1.8; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }
.credits a:hover { color: var(--accent); }
.credits p { margin: 0; }
.site-footer .wordmark { font-size: 19px; }
.site-footer .wordmark-icon { width: 29px; height: 29px; font-size: 12px; }
.site-footer>span, .site-footer>a:last-child { color: var(--muted); font-size: var(--fs-small); }

/* Breakpoints */
@media (max-width: 1170px) {
  .wrap { width: min(100% - 64px, 1440px); }
  .main-nav { gap: 14px; }
  .hero h1 { font-size: clamp(50px, 7.2vw, 82px); }
  .hero-head { gap: 5%; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-menu { display: block; }
  .hero-head { grid-template-columns: 1fr; gap: 25px; padding-bottom: 43px; }
  .hero h1 { font-size: clamp(55px, 8.8vw, 82px); }
  .hero-side { max-width: 620px; }
  .hero-side>p:first-child { max-width: 570px; }
  .hero-compatibility { margin-top: 24px; }
  .stats-inner, .faq, .getting-started { grid-template-columns: minmax(0, 1fr); gap: 45px; }
  .section-head { display: block; }
  .section-head>p { max-width: 600px; margin-top: 25px; }
  .system-feature, .system-morkborg { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 52px; }
  .system-morkborg .system-copy { order: 0; }
  .play-grid, .gm-grid { gap: 52px 32px; }
  .sd-rows { gap: 56px; }
  .sd-row, .sd-row-reverse { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .sd-item-phone { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 36px; }
  .sd-item-phone .shot { grid-row: 1 / 3; }
  .sd-item-phone h3 { margin-top: 0; }
  .sd-phones { gap: 32px; }
}
@media (max-width: 850px) {
  .wrap { width: min(100% - 44px, 700px); }
  .site-header { min-height: 75px; }
  .section-pad { padding-block: 85px; }
}
@media (max-width: 620px) {
  .hero { padding-block: 43px 65px; }
  .hero h1 { font-size: clamp(43px, 10vw, 59px); }
  .hero-side>p:first-child { font-size: var(--fs-lead); }
  .hero-devices, .system-media { display: flex; justify-content: center; padding: 0; }
  .hero-devices .shot-desktop, .system-media .shot-desktop { display: none; }
  .hero-devices .shot-phone, .system-media .shot-phone { position: relative; width: min(240px, 64%); }
  .play-grid, .gm-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .play-tile h3, .gm-item h3 { margin-top: 20px; font-size: 24px; }
  .play-extras { margin-top: 48px; }
  .sd-item-phone { display: block; }
  .sd-item-phone .shot { width: min(240px, 64%); margin-inline: auto; }
  .sd-item-phone h3 { margin-top: 20px; }
  .sd-item h3 { margin-top: 20px; font-size: 24px; }
  .sd-phones { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sd-phones .shot-phone { width: min(240px, 64%); margin-inline: auto; }
  .stats-inner { gap: 32px; padding-block: 52px; }
  .stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-list .stat { padding-inline: 12px; }
  .stats-list .stat:nth-of-type(2) { border-right: 0; }
  .stats-list .stat:nth-of-type(-n+2) { border-bottom: 1px solid var(--line); }
  .stats-list .stat-value { font-size: clamp(27px, 8vw, 38px); }
  .stats-list .stats-source { margin-left: 12px; }
  .section-head h2, .faq-intro h2, .getting-intro h2 { font-size: 48px; }
  .faq-item summary { padding-block: 20px; }
  .system-copy h3 { font-size: 56px; }
  .system-experimental { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding-block: 28px; }
  .system-experimental .shot { grid-column: 1 / -1; }
  .step { grid-template-columns: 35px minmax(0, 1fr); gap: 12px; }
  .closing h2 { font-size: 59px; }
  .closing-links { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 36px); }
  .wordmark { font-size: 20px; }
  .header-tools { gap: 7px; }
  .header-action { display: none; }
  .nav-menu-panel a:last-child { display: flex; }
  .nav-menu summary { padding-inline: 11px; }
  .nav-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .theme-switch { padding: 2px; }
  .theme-switch button { min-width: 32px; padding: 3px 6px; }
  .theme-switch button [aria-hidden] { margin-right: 0; }
  .theme-switch .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .button { min-height: 46px; gap: 13px; padding: 9px 14px; }
  .site-footer>span { order: 3; width: 100%; }
  .credits { order: 4; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
