/* QuirkIDE website. Palette 1f Vintage textbook, Fredoka headings, Geist body, Atkinson Hyperlegible Mono code. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/atkinson-hyperlegible-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #efede0;
  --surface: #fbfaf3;
  --band: #e8e5d6;
  --line: #d5d2bf;
  --muted: #5c5e55;
  --ink: #1e2a36;
  --ink-2: #3c4550;
  --crimson: #be2a44;
  --crimson-hover: #a2213a;
  --on-crimson: #ffffff;
  --blue: #1f4e79;
  --gold: #e9c46a;
  --gold-ink: #7e6412;
  --success: #2f7340;
  --focus: #1f4e79;
  --shadow: 0 1px 2px rgb(30 42 54 / 0.06), 0 10px 30px rgb(30 42 54 / 0.1);

  /* The editor pictures use the Quirk Light theme. */
  --ed-bg: #f4f2e7;
  --ed-side: #ece9dc;
  --ed-title: #e6e3d5;
  --ed-line-num: #6e6f66;
  --ed-cur: #eae6d6;
  --ed-hl: #efdcd6;
  --ed-paste: #f3e6c4;
  --ed-del: #f5dedb;
  --ed-add: #dcebd8;
  --tok-kw: #be2a44;
  --tok-str: #2f6b3a;
  --tok-num: #1f4e79;
  --tok-com: #6e6f66;
  --tok-fn: #7a3e00;
  --status-bg: #1e2a36;
  --status-ink: #efede0;

  --font-head: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #131a22;
    --surface: #1b2430;
    --band: #171f29;
    --line: #2b3746;
    --muted: #98a3ae;
    --ink: #eceadf;
    --ink-2: #c9ccc6;
    --crimson: #f2767e;
    --crimson-hover: #f69199;
    --on-crimson: #131a22;
    --blue: #8db8e8;
    --gold: #ddbe6e;
    --gold-ink: #ddbe6e;
    --success: #8fc98c;
    --focus: #8db8e8;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);

    --ed-bg: #151d26;
    --ed-side: #1b2430;
    --ed-title: #131a22;
    --ed-line-num: #7b8794;
    --ed-cur: #1c2632;
    --ed-hl: #2e2a35;
    --ed-paste: #3a331e;
    --ed-del: #3b2328;
    --ed-add: #1e3325;
    --tok-kw: #f2767e;
    --tok-str: #9ccb8e;
    --tok-num: #8db8e8;
    --tok-com: #8a96a3;
    --tok-fn: #e9c46a;
    --status-bg: #be2a44;
    --status-ink: #ffffff;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-weight: 700;
}
h2 {
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 48px);
}
h3 {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--crimson);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--ink);
}
code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  white-space: nowrap;
}
strong {
  font-weight: 650;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--gold);
  color: #1e2a36;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
  color: var(--paper);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: 64px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  min-height: 44px;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 32px;
  height: 32px;
}
.site-nav {
  order: 3;
  flex-basis: 100%;
}
.site-nav ul {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.head-cta {
  margin-left: auto;
}
@media (min-width: 760px) {
  .site-nav {
    order: 0;
    flex-basis: auto;
    margin-left: auto;
  }
  .head-cta {
    margin-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.btn-primary {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--on-crimson);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--crimson-hover);
  border-color: var(--crimson-hover);
  color: var(--on-crimson);
}
.btn-big {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 17px;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: transparent;
  border-style: dashed;
  border-color: var(--muted);
  color: var(--muted);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.center .btn-row {
  justify-content: center;
}

/* Type helpers */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}
.note {
  font-size: 14px;
  color: var(--muted);
}
.center {
  text-align: center;
}
.center .lead,
.center .note {
  margin-inline: auto;
}
.stack > * + * {
  margin-top: 16px;
}
.stack-lg > * + * {
  margin-top: 28px;
}

/* Sections */
.section {
  padding-block: clamp(56px, 9vw, 104px);
}
.section-band {
  background: var(--band);
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head > * + * {
  margin-top: 14px;
}
.section-head.center {
  margin-inline: auto;
}

/* Hero */
.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px);
}
.hero-quirki {
  width: 168px;
  height: 168px;
  margin: 0 auto 8px;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 80px);
  margin-top: 10px;
}
.hero .lead {
  max-width: 640px;
  margin-top: 18px;
}
.hero .btn-row {
  margin-top: 30px;
}
.hero .note {
  margin-top: 16px;
}

/* Quirki drawings */
.qk {
  display: block;
}
.qk img {
  width: 100%;
  height: 100%;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 720px) and (max-width: 959px) {
  .grid-3.grid-collapse {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card > * + * {
  margin-top: 10px;
}
.card h3 {
  font-size: 21px;
}
.card p {
  color: var(--ink-2);
}
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.chip-planned {
  border-style: dashed;
  color: var(--gold-ink);
  border-color: var(--gold-ink);
  background: transparent;
}

/* Footnotes */
.ref {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
  font-weight: 700;
}
.ref a {
  text-decoration: none;
  padding-inline: 2px;
}
.sources {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.sources ol {
  margin: 8px 0 0;
  padding-left: 22px;
}
.sources li + li {
  margin-top: 6px;
}

/* The editor picture */
.win {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ed-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  background: var(--ed-title);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.win-bar img {
  width: 18px;
  height: 18px;
}
.win-bar .name {
  font-weight: 650;
}
.win-bar .menu {
  display: none;
  gap: 12px;
  color: var(--muted);
}
.win-bar .run {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--crimson);
  color: var(--on-crimson);
  font-weight: 700;
  font-size: 12px;
}
.win-body {
  display: flex;
  min-height: 0;
}
.win-act {
  display: none;
  flex: none;
  width: 46px;
  padding-top: 8px;
  background: var(--ed-title);
  border-right: 1px solid var(--line);
}
.win-act svg {
  width: 22px;
  height: 22px;
  margin: 10px auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.win-act svg.on {
  stroke: var(--ink);
}
.win-main {
  flex: 1;
  min-width: 0;
}
.win-tabs {
  display: flex;
  background: var(--ed-side);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.win-tabs span {
  padding: 8px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.win-tabs span.on {
  background: var(--ed-bg);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 2px 0 var(--crimson);
}
.code {
  margin: 0;
  padding: 12px 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  overflow-x: auto;
}
.code .l {
  display: block;
  padding-right: 16px;
  white-space: pre;
}
.code .n {
  display: inline-block;
  width: 3.2em;
  padding-right: 1.2em;
  text-align: right;
  color: var(--ed-line-num);
  user-select: none;
}
.code .cur {
  background: var(--ed-cur);
}
.code .hl {
  background: var(--ed-hl);
}
.code .paste {
  background: var(--ed-paste);
}
.code .del {
  background: var(--ed-del);
}
.code .add {
  background: var(--ed-add);
}
.code .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--crimson);
}
.kw {
  color: var(--tok-kw);
}
.str {
  color: var(--tok-str);
}
.num {
  color: var(--tok-num);
}
.com {
  color: var(--tok-com);
}
.fn {
  color: var(--tok-fn);
}
.win-status {
  display: flex;
  gap: 16px;
  padding: 3px 14px;
  background: var(--status-bg);
  color: var(--status-ink);
  font-size: 12px;
}
.win-status span:last-child {
  margin-left: auto;
}

/* Quirki's speech bubble */
.bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.12);
}
.bubble-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crimson);
}
.bubble .still {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.pointer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 14px 16px;
}
.pointer .qk {
  flex: none;
  width: 64px;
  height: 64px;
}
.pointer .bubble {
  max-width: 300px;
}
@media (min-width: 720px) {
  .win-bar .menu {
    display: flex;
  }
  .win-act {
    display: block;
  }
  .code {
    font-size: 14px;
  }
  .pointer {
    position: absolute;
    left: 318px;
    top: 132px;
    padding: 0;
  }
  .pointer .qk {
    width: 64px;
    height: 64px;
  }
  .pointer .bubble {
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .pointer {
    animation: walk-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
  }
}
@keyframes walk-in {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* The problem */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1;
  color: var(--crimson);
}
.split {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
  .split-wide-left {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.prose > * + * {
  margin-top: 16px;
}
.prose p {
  color: var(--ink-2);
}
.prose h2 + p {
  margin-top: 18px;
}

/* Audience list */
.who {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .who {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.who li {
  padding: 16px 18px;
  border-left: 4px solid var(--crimson);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}
.who strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
}
.who span {
  color: var(--ink-2);
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 70px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--on-crimson);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.steps h3 {
  font-size: 20px;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* Help ladder */
.ladder {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ladder li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ladder .lvl {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--crimson);
}
.ladder strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
}
.ladder span {
  font-size: 15px;
  color: var(--ink-2);
}
.ladder li:last-child {
  border-color: var(--crimson);
}

/* Is this yours? */
.yours {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ed-bg);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .yours {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}
.yours .code {
  font-size: 13px;
}
.panel {
  padding: 18px;
  background: var(--ed-side);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .panel {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-head .qk {
  width: 52px;
  height: 52px;
  flex: none;
}
.panel .line-quote {
  display: block;
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--ed-paste);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: pre-wrap;
}
.options {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.options li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.4;
}
.options li.right {
  border-color: var(--success);
  box-shadow: inset 3px 0 0 var(--success);
}

/* Meet Quirki */
.quirki-scenes {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .quirki-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.scene {
  display: flex;
  gap: 18px;
  align-items: center;
}
.scene .qk {
  flex: none;
  width: 112px;
  height: 112px;
}
.picks {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.picks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.picks .qk {
  width: 104px;
  height: 104px;
}
.picks strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
}
.picks span {
  font-size: 15px;
  color: var(--ink-2);
}

/* Project tiers */
.tiers {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.tiers li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  padding: 14px 18px;
}
.tiers li + li {
  border-top: 1px solid var(--line);
}
.tiers .t {
  grid-row: span 2;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--crimson);
}
.tiers strong {
  font-weight: 650;
}
.tiers span {
  font-size: 15px;
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiers li:nth-child(2) {
    border-top: 0;
  }
  .tiers li:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}
.dream {
  margin-top: 20px;
  padding: 20px 22px;
  border: 2px dashed var(--gold-ink);
  border-radius: var(--radius);
}
.dream h3 {
  font-size: 22px;
}
.dream p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* Real editor features */
.feature-list {
  display: grid;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.feature-list li {
  display: flex;
  gap: 12px;
}
.feature-list svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  fill: none;
  stroke: var(--crimson);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-list strong {
  display: block;
}
.feature-list span {
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Privacy promise */
.promises {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promises li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.promises svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--success);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promises strong {
  display: block;
  font-weight: 650;
}
.promises span {
  color: var(--ink-2);
  font-size: 15px;
}

/* Pricing */
.plans {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.plan-hi {
  border: 2px solid var(--crimson);
  box-shadow: var(--shadow);
}
.plan h3 {
  font-size: 26px;
}
.plan .price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
}
.plan .price small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
}
.plan p {
  color: var(--ink-2);
}
.plan .btn {
  width: 100%;
}
.plan-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.off-note {
  font-size: 14px;
  color: var(--gold-ink);
  font-weight: 600;
}
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
}
.check-list li + li {
  margin-top: 6px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 11px;
  height: 6px;
  border-left: 2.4px solid var(--success);
  border-bottom: 2.4px solid var(--success);
  transform: rotate(-45deg);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: var(--crimson);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq .answer {
  padding: 0 0 20px;
  max-width: 720px;
  color: var(--ink-2);
}
.faq .answer > * + * {
  margin-top: 10px;
}

/* Sign-up form */
.signup {
  max-width: 560px;
}
.signup fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.signup label {
  display: block;
  font-weight: 650;
  margin-bottom: 8px;
}
.signup .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.signup input[type="email"]:disabled {
  border-style: dashed;
}
.signup .btn {
  min-height: 48px;
}
.signup .note {
  margin-top: 10px;
}
.center .signup {
  margin-inline: auto;
  text-align: left;
}
.status-off {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px dashed var(--gold-ink);
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
}
.status-off strong {
  color: var(--gold-ink);
}

/* Final call */
.final {
  text-align: center;
}
.final .qk {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}
.final h2 {
  font-size: clamp(34px, 5.4vw, 56px);
}
.final .lead {
  max-width: 620px;
  margin: 16px auto 0;
}
.final .btn-row {
  margin-top: 28px;
  justify-content: center;
}
.final .signup {
  margin-inline: auto;
  text-align: left;
}
.notify {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.notify h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

/* Plain pages: legal, docs, download */
.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px);
}
.page-head h1 {
  font-size: clamp(38px, 6vw, 60px);
  margin-top: 8px;
}
.page-head .lead {
  margin-top: 14px;
  max-width: 680px;
}
.draft {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 12px 16px;
  border: 2px solid var(--gold-ink);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
}
.draft strong {
  color: var(--gold-ink);
}
.doc {
  padding-bottom: clamp(56px, 8vw, 96px);
}
.doc h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-top: 48px;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc h3 {
  font-size: 21px;
  margin-top: 28px;
}
.doc p,
.doc ul,
.doc ol {
  margin-top: 12px;
  color: var(--ink-2);
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 6px;
}
.plain {
  margin-top: 10px;
  padding: 12px 16px;
  border-left: 4px solid var(--crimson);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}
.toc {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  columns: 2 220px;
  column-gap: 32px;
}
.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}

.clicks {
  counter-reset: click;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.clicks li {
  counter-increment: click;
  position: relative;
  padding: 10px 0 10px 44px;
  color: var(--ink-2);
}
.clicks li + li {
  border-top: 1px solid var(--line);
}
.clicks li::before {
  content: counter(click);
  position: absolute;
  left: 0;
  top: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
}
.ui {
  font-weight: 650;
  color: var(--ink);
}
.sha {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}

/* 404 */
.lost {
  padding-block: clamp(56px, 10vw, 120px);
}
.lost .qk {
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
}
.lost .kicker {
  color: #b3261e;
}
@media (prefers-color-scheme: dark) {
  .lost .kicker {
    color: #ff9a8a;
  }
}
.lost h1 {
  font-size: clamp(38px, 6vw, 60px);
  margin-top: 8px;
}
.lost .lead {
  max-width: 560px;
  margin: 14px auto 0;
}
.lost .btn-row {
  margin-top: 28px;
}

/* Footer */
.site-foot {
  padding-block: 48px 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.foot-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  }
}
.foot-brand p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 300px;
}
.site-foot h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.site-foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
}
.site-foot li a:hover {
  color: var(--crimson);
  text-decoration: underline;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Home page details */
h2.h3 {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
}
.hero figure {
  margin: clamp(40px, 6vw, 64px) 0 0;
}
.hero figcaption {
  text-align: center;
}
.hero-cards {
  margin-top: clamp(32px, 5vw, 56px);
  text-align: left;
}
.h2-sm {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
}
.sub-head {
  margin-top: clamp(48px, 7vw, 80px);
  margin-bottom: 20px;
}
.ladder-note {
  margin-top: 14px;
}
.yours-block {
  margin-top: clamp(56px, 8vw, 96px);
}
.yours-block .prose {
  max-width: 760px;
  margin-bottom: 28px;
}
.panel-q {
  margin-top: 12px;
  font-weight: 650;
}
.who-title {
  margin: clamp(40px, 6vw, 64px) 0 16px;
  font-size: 24px;
}
.picks-title {
  margin: clamp(40px, 6vw, 56px) 0 16px;
  font-size: 26px;
}
.price-text {
  font-size: 34px;
}
.plans-note {
  margin-top: 20px;
}
q {
  quotes: "\201C" "\201D";
}
.pointer .qk img {
  transform: scaleX(-1);
}

/* Inner pages */
.section-tight {
  padding-block: 8px clamp(48px, 7vw, 80px);
}
.draft-info {
  max-width: 680px;
  margin-inline: auto;
  text-align: left;
}
.center-row {
  justify-content: center;
  margin-top: 32px;
}
.section-tight .center-row + .note {
  margin-top: 14px;
}
@media (min-width: 720px) {
  .promises.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lead-gap {
  margin: 14px auto 28px;
  max-width: 560px;
}
.head-quirki {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
}
.page-head .btn-row {
  margin-top: 26px;
}
.page-head.center .btn-row {
  justify-content: center;
}
.page-head .note {
  margin-top: 12px;
}
.page-head .status-off {
  margin-top: 16px;
  max-width: 560px;
}
.notify-card h2 + p {
  margin-top: 6px;
}
.notify-card .signup {
  margin-top: 18px;
}
.sha-note code {
  margin-top: 4px;
}
.code-block {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ed-bg);
  font-size: 13px;
}
.code-block .l {
  padding-right: 0;
}
pre.licence {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink-2);
}
.faq-gap {
  margin-top: 48px;
}
.paying {
  margin-top: 20px;
}
.doc .promises,
.doc .toc {
  margin-top: 0;
}
.doc .promises {
  padding-left: 0;
  margin-bottom: 24px;
}
.doc .promises li + li {
  margin-top: 0;
}
.doc .toc ol {
  color: var(--ink);
}
.doc .clicks {
  padding-left: 0;
}
.toc p {
  margin: 0;
}
.btn svg.icon-dl {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A value from config.js takes the look of the text around it. */
span[data-cfg-text] {
  font: inherit;
  color: inherit;
}
.section-tight + .section {
  padding-top: clamp(32px, 5vw, 56px);
}

figure {
  margin: 0;
}
.ladder code {
  white-space: nowrap;
}
@media (max-width: 479px) {
  .scene {
    flex-direction: column;
    align-items: flex-start;
  }
  .scene .qk {
    width: 96px;
    height: 96px;
  }
}
/* On a phone, each table row becomes a small card. */
@media (max-width: 599px) {
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    width: auto;
  }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-wrap tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .table-wrap tr:last-child {
    border-bottom: 0;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 2px 0;
    border: 0;
  }
  .table-wrap td:first-child {
    font-weight: 650;
    color: var(--ink);
  }
  .table-wrap td:empty {
    display: none;
  }
  .table-wrap code {
    overflow-wrap: anywhere;
  }
}
.licence {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.doc .licence p {
  margin: 0;
}
.doc .licence p + p {
  margin-top: 12px;
}
fieldset:disabled .btn {
  cursor: not-allowed;
  background: transparent;
  border-style: dashed;
  border-color: var(--muted);
  color: var(--muted);
}
