/* Cold Editor's site: one sheet for every page, in the app's own colours (Theme.swift) and the system's type. */
:root {
  --ground: #090909;
  --well: #141414;
  --panel: #1e1e1e;
  --line: #2f2f2f;
  --edge: rgba(255, 255, 255, 0.09);
  --text: #e7ebeb;
  --quiet: #98a0a2;
  --accent: #36c2b0;
  --width: 1080px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 18px; letter-spacing: -0.005em; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--width)); margin-inline: auto; }

/* The bar along the top: the app's name and the pages. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--quiet); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: none; }

/* Sections, each a heading and a line under it. */
section { padding: 72px 0 0; }
.intro { display: grid; gap: 12px; max-width: 680px; margin-bottom: 32px; }
.intro p { color: var(--quiet); }

.hero { padding-top: 64px; }
.hero .status { color: var(--quiet); font-size: 15px; }
.hero .lead { color: var(--quiet); font-size: 19px; max-width: 620px; }

/* A picture as the app shows one: in a pane with a fine edge. */
.pane { margin: 0; background: var(--well); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; }
.pane video, .pane img { width: 100%; }
.hero-shot { margin-top: 40px; }

/* The features: two columns of cards, each a picture and two lines. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--well); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; }
.card .shot { aspect-ratio: 4 / 3; background: #131313; border-bottom: 1px solid var(--edge); }
.card .shot img, .card .shot video { width: 100%; height: 100%; object-fit: contain; }
.card .words { display: grid; gap: 10px; padding: 26px 26px 28px; }
.card .words h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--accent); }
.card .words p { color: #858d8f; font-size: 15px; }

/* The gestures: a plain list, the move on the left and what it does on the right. */
.moves { margin: 0; border-top: 1px solid var(--line); }
.moves div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.moves dt { font-weight: 600; }
.moves dd { margin: 0; color: var(--quiet); }

/* Devices: the iPad wide beside the iPhone tall. */
.devices { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; align-items: start; }

/* Three short points in a row. */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.points li { display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--line); padding-top: 16px; }
.points h3 { font-size: 19px; color: #fff; }
.points p { color: var(--quiet); font-size: 15px; }
.more { margin-top: 24px; }

.close { display: grid; gap: 12px; justify-items: start; padding-bottom: 8px; }
.close img { width: 64px; height: 64px; border-radius: 14px; }
.close p { color: var(--quiet); }

/* The foot of every page. */
footer { margin-top: 88px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--quiet); font-size: 13px; }
footer .wrap { display: grid; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
footer nav a { color: var(--text); }
footer details summary { cursor: pointer; color: var(--quiet); }
footer details ul { margin: 10px 0 0; padding-left: 18px; }
footer details li { margin: 2px 0; }

/* The privacy policy and support pages: one column of text. */
.doc { max-width: 720px; padding-top: 56px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc .meta { color: var(--quiet); margin-top: 10px; }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc p, .doc ul { margin: 12px 0 0; color: #c9cfd0; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .short { margin-top: 24px; padding: 16px 18px; background: var(--well); border: 1px solid var(--edge); border-radius: 12px; color: var(--text); }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .top nav { gap: 16px; }
  .top nav .wide { display: none; }
  section { padding-top: 56px; }
  .hero { padding-top: 40px; }
  .cards, .points { grid-template-columns: 1fr; }
  .moves div { grid-template-columns: 1fr; gap: 4px; }
  .devices { grid-template-columns: 1fr; }
  .devices .phone { max-width: 260px; }
}
