/* Segue website - R55: Keynote base and rounded tiles, House Lights hero. Colours come only from tokens.css (var(--token));
   site-check refuses colour literals here. No JavaScript, no external assets. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-800.woff2") format("woff2");
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--cue-text);
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: text-decoration-color 150ms ease;
  }
}

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

strong {
  font-weight: 700;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

kbd {
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 600;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--control-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

/* ---------- Type ---------- */

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ui {
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .nowrap {
    white-space: nowrap;
  }
}

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

.fine {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Header ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--ground);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .site-header {
    padding: 0 32px;
  }
}

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  min-height: 44px;
  padding-top: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.cue-dot {
  flex: none;
  width: 0.22em;
  height: 0.22em;
  margin-top: 0.125em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: var(--cue);
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav a,
.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.nav-menu a:hover,
.site-nav a[aria-current="page"],
.nav-menu a[aria-current="page"] {
  color: var(--ink);
}

.site-nav li:last-child a {
  padding-right: 0;
}

.nav-menu {
  display: none;
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu[open] summary {
  color: var(--muted);
}

.nav-menu ul {
  position: absolute;
  top: 48px;
  right: -8px;
  z-index: 5;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ground);
}

.nav-menu a {
  border-radius: 8px;
  color: var(--ink);
}

.nav-menu a:hover {
  background: var(--surface-alt);
}

@media (max-width: 639px) {
  .site-nav {
    display: none;
  }
  .nav-menu {
    display: block;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

@media (min-width: 640px) {
  .site-footer {
    padding: 56px 32px 72px;
  }
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 48px;
  background: var(--line);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin-bottom: 40px;
}

.footer-heading {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.footer-nav li {
  font-size: 15px;
  line-height: 1.4;
}

.footer-nav li > a,
.footer-nav li > span {
  display: inline-block;
  padding: 6px 0;
}

.footer-nav a {
  text-decoration: none;
}

.footer-download {
  color: var(--muted);
}

.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--cue-text);
}

.small-print {
  max-width: 68ch;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

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

/* The email address needs the full width on the narrowest phones. */
@media (max-width: 359px) {
  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Home ---------- */

/* Rhythm: sections sit 160 px apart on desktop, 96 px on phones (8 px grid). */

.kicker {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
}

.center {
  text-align: center;
}

.center h2,
.center .lede {
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding-top: 160px;
}

.section h2 {
  max-width: 16ch;
}

/* Hero: the house lights. Always dark (.scheme-stage), in both schemes. */

.masthead {
  background: var(--ground);
}

.masthead .site-header {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  padding: 72px 0 112px;
  background: var(--ground);
  color: var(--ink);
  text-align: center;
  overflow-x: clip;
}

/* One spotlight, from above the header down onto the stage view. */
.hero::before {
  content: "";
  position: absolute;
  top: -72px;
  left: 50%;
  width: min(1600px, 220vw);
  height: calc(100% - 120px);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 22% 40% at 50% 0%, color-mix(in srgb, var(--ink) 9%, transparent), transparent),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 9%, transparent), transparent 92%);
  clip-path: polygon(42% 0, 58% 0, 88% 100%, 12% 100%);
  pointer-events: none;
}

/* A soft pool of light on the stage floor, under the screenshot. */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(1400px, 200vw);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 60% at 50% 100%, color-mix(in srgb, var(--ink) 5%, transparent), transparent);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before,
  .hero::after {
    animation: house-lights 1.4s ease-out both;
  }
}

@keyframes house-lights {
  from {
    opacity: 0;
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

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

/* The one heavy moment on the site. */
.hero h1 {
  margin: 0 auto;
  font-size: clamp(48px, 7.2vw, 108px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero h1 span {
  white-space: nowrap;
}

.hero h1 br {
  display: none;
}

@media (min-width: 640px) {
  .hero h1 br {
    display: inline;
  }
}

.hero .sub {
  max-width: 30ch;
  margin: 28px auto 0;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}

.appstore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

/* "Coming soon" while upcoming; the badge (with its own clear space) once live. */
.appstore-cta {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.appstore-cta:has(img),
.appstore-cta:has(a) {
  padding: 12px;
  border: 0;
}

.appstore-cta img {
  height: 48px;
  width: auto;
}

.appstore .fine {
  max-width: 46ch;
  text-wrap: balance;
}

.caption {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Product shots ----------
   A .shot frames one screen. Its child (.ui) is either an HTML re-creation of the app
   (interim) or, after the WS5 swap, an <img class="ui"> of the real screenshot. Crops
   are expressed in shot widths (cqw), so both kinds of child crop the same way. */

.shot {
  container-type: inline-size;
  position: relative;
}

.shot > img.ui {
  display: block;
}

.shot > .ui {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent),
    0 48px 96px -40px color-mix(in srgb, black 70%, transparent);
}

.shot-hero,
.shot-band {
  max-width: 1184px;
  margin: 80px auto 0;
  padding: 0 32px;
}

/* ---------- Workflow tiles ---------- */

/* Each tile spans two rows of the grid and shares them through subgrid, so the copy
   rows line up across a row and every screen sits the same distance under its copy. */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.tile {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-alt);
}

.tile-text {
  padding: 40px 40px 32px;
}

.tile-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.tile h3 {
  margin: 6px 0 10px;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.tile-text > p:last-child {
  max-width: 46ch;
  color: var(--muted);
}

/* One rule for every tile: the screen is a panel inset 40 px from the tile's sides,
   bleeding off the bottom only. The panel shows one whole region of the window, from
   app point --x0, --rw points wide (a column boundary on each side, so no word is cut). */
.shot-tile {
  --x0: 0;
  --rw: 640;
  align-self: end;
  aspect-ratio: 16 / 10.5;
  margin: 0 40px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent);
}

.shot-tile > .ui {
  position: absolute;
  top: 0;
  left: calc(-100cqw * var(--x0) / var(--rw));
  width: calc(100cqw * 1440 / var(--rw));
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

/* Library: sidebar and song list. */
.crop-library {
  --rw: 640;
}

/* Editor: the editor pane, which replaces the detail column. */
.crop-editor {
  --x0: 640;
  --rw: 800;
}

/* Setlists: the set column. */
.crop-setlist {
  --x0: 659;
  --rw: 781;
}

/* Stage: the first lyric column. */
.crop-stage {
  --rw: 720;
}

/* ---------- Stage band (always dark) ---------- */

.stage-band {
  margin-top: 160px;
  padding: 144px 0 160px;
  background: var(--ground);
  color: var(--ink);
}

.stage-band .lede {
  max-width: 34ch;
  margin-top: 24px;
  font-size: clamp(19px, 1.8vw, 22px);
  text-wrap: balance;
}

.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 48px;
  margin-top: 88px;
}

.feats svg {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feats h3,
.details h3,
.trio h3 {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.feats p,
.details p,
.trio p {
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Details and privacy ---------- */

.details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 56px;
}

.details li {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 960px;
  margin: 56px auto 0;
}

.more {
  margin-top: 40px;
  font-size: 17px;
  font-weight: 600;
}

/* ---------- The close ---------- */

.close {
  padding: 160px 0 144px;
  text-align: center;
}

.note {
  max-width: 640px;
  margin: 0 auto;
}

.note blockquote p {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.note .who {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.close h2 {
  max-width: none;
  margin-top: 128px;
  font-size: clamp(44px, 6.4vw, 88px);
  letter-spacing: -0.05em;
}

.close .appstore {
  margin-top: 32px;
}

.board {
  margin-top: 56px;
  font-size: 15px;
  color: var(--muted);
}

.board a {
  white-space: nowrap;
}

.latest-release {
  max-width: 520px;
  margin: 32px auto 0;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface-alt);
  text-align: left;
}

.latest-release-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.latest-release li {
  padding: 4px 0;
  font-size: 15px;
  color: var(--muted);
}

.latest-release p:last-child {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

.kind {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Home: narrower screens ---------- */

@media (max-width: 999px) {
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .section {
    padding-top: 96px;
  }
  .hero {
    padding: 48px 0 72px;
  }
  .hero::before {
    top: -64px;
  }
  .hero h1 span {
  white-space: nowrap;
}

.hero h1 br {
  display: none;
}

@media (min-width: 640px) {
  .hero h1 br {
    display: inline;
  }
}

.hero .sub {
    margin-top: 20px;
  }
  .shot-hero,
  .shot-band {
    --w: 200;
    aspect-ratio: 1 / 1.05;
    margin: 56px 16px 0;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent);
  }
  /* Phones get a readable crop of the screen rather than the whole window. */
  .shot-hero > .ui,
  .shot-band > .ui {
    position: absolute;
    top: 0;
    width: calc(var(--w) * 1cqw);
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }
  /* The stage band's crop centres on the quick search panel. */
  .shot-band {
    --w: 190;
  }
  .shot-band > .ui {
    left: calc(-350 * var(--w) * 1cqw / 1440);
  }
  .tiles {
    margin-top: 40px;
  }
  .tile {
    border-radius: 24px;
  }
  .tile-text {
    padding: 28px 24px 24px;
  }
  .tile-text {
    padding-bottom: 24px;
  }
  .shot-tile {
    margin: 0 24px;
  }
  .stage-band {
    margin-top: 96px;
    padding: 96px 0;
  }
  .feats,
  .details,
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }
  .feats {
    gap: 40px;
    margin-top: 64px;
  }
  .details {
    margin-top: 40px;
  }
  .details li {
    padding-bottom: 28px;
  }
  .trio {
    gap: 32px;
    margin-top: 40px;
  }
  .close {
    padding: 96px 0;
  }
  .close h2 {
    margin-top: 96px;
  }
}

/* ---------- Document pages (legal, support, help, press, changelog) ---------- */

.doc {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 16px 32px;
}

@media (min-width: 640px) {
  .doc {
    padding: 80px 32px 48px;
  }
}

.doc h1 {
  font-size: clamp(36px, 5.5vw, 56px);
}

.prose {
  max-width: 68ch;
  margin-top: 24px;
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 56px;
  font-size: clamp(24px, 3vw, 28px);
  letter-spacing: -0.03em;
  scroll-margin-top: 24px;
}

.prose h3 {
  margin-top: 32px;
  font-size: 18px;
}

.prose section {
  scroll-margin-top: 24px;
}

.prose section > h2 {
  margin-top: 0;
}

.prose section {
  margin-top: 56px;
}

.prose section > * + * {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--muted);
}

.lede {
  max-width: 60ch;
  margin-top: 16px;
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
}

.effective {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* Document pages echo the home tiles: soft filled panels with a larger radius. */
.summary-box {
  padding: 24px 24px 24px 44px;
  border-radius: 20px;
  background: var(--surface-alt);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose tbody tr:last-child th,
.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.prose tbody th {
  font-weight: 600;
}

.prose td {
  color: var(--muted);
}

.prose details {
  border: 1px solid var(--line);
  border-radius: 16px;
}

.prose summary {
  display: flex;
  list-style: none;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.prose summary::-webkit-details-marker {
  display: none;
}

.prose summary::before {
  content: "\25B8";
  width: 1.25em;
  color: var(--muted);
}

.prose details[open] > summary::before {
  content: "\25BE";
}

.prose > section > pre,
.prose section > pre {
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
}

.prose pre {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--muted);
}

.faq dt {
  margin-top: 28px;
  font-weight: 700;
}

.faq dd {
  margin-top: 6px;
  color: var(--muted);
}

/* Credits */

.credit h2 {
  font-size: 22px;
}

.credit details {
  margin-top: 16px;
}

/* Changelog */

.release h2 {
  font-size: clamp(24px, 3vw, 28px);
}

.release time {
  font-size: 15px;
  color: var(--muted);
}

.release h3 {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* Help: sidebar on desktop, a list on top on phones */

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.help-nav {
  position: sticky;
  top: 24px;
}

.help-nav ul {
  display: grid;
  gap: 2px;
}

.help-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.help-nav a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.help-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-alt);
}

.help-main {
  min-width: 0;
}

.help-main h1 {
  font-size: clamp(36px, 5.5vw, 56px);
}

.prose .cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.prose .cards li + li {
  margin-top: 0;
}

.cards a {
  display: block;
  height: 100%;
  padding: 20px 24px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--surface-alt);
  text-decoration: none;
}

.cards a:hover {
  border-color: var(--line-strong);
}

.cards strong {
  display: block;
  margin-bottom: 2px;
}

.cards span {
  font-size: 15px;
  color: var(--muted);
}

.keys td:first-child {
  width: 45%;
  color: var(--ink);
}

@media (min-width: 640px) {
  .keys td:first-child {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 799px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .help-nav {
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .help-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .help-nav a {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .help-nav a[aria-current="page"] {
    border-color: var(--line-strong);
  }
  .prose .cards {
    grid-template-columns: 1fr;
  }
}

/* Press and 404 */

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
}

.facts dt {
  font-size: 15px;
  font-weight: 700;
}

.facts dd {
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 639px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .facts dd {
    margin-bottom: 10px;
  }
}

.not-found {
  padding: 96px 0;
  text-align: center;
}

.not-found h1 {
  max-width: 14ch;
  margin: 0 auto;
}

.not-found p {
  margin-top: 20px;
  color: var(--muted);
}

.not-found ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.not-found a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
