@font-face {
  font-family: Commissioner;
  src: url('/assets/commissioner.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Paper, Midnight and Eucalyptus come from Koala's own canvas colors. */
  --paper: #f6f5f1;
  --paper-deep: #ebe9e2;
  --ink: #1f292e;
  --muted: #56615c;
  --line: #d9d6cc;
  --green: #315c48;
  --night: #1f292e;
  --night-text: #ecebe4;
  --night-muted: #a8b2ad;
  --night-line: #3a464c;
  --focus: #a63f2e;
  --header: 60px;
  color-scheme: light;
  font-family: Commissioner, -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 17px;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
::selection { color: var(--paper); background: var(--green); }

p { margin: 0 0 1.1em; line-height: 1.65; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.005em; }

.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }

.skip { position: absolute; z-index: 20; left: 16px; top: -100px; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 620; text-decoration: none; }
.brand img { flex-shrink: 0; border-radius: 6px; }
.site-header nav { display: flex; gap: 28px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); padding-block: 6px; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; }

/* Intro */
.intro { padding-top: 104px; }
.intro h1 { max-width: 15ch; }
.lead { font-size: 21px; line-height: 1.5; max-width: 34em; margin: 28px 0 0; }
.meta { font-size: 15px; color: var(--muted); margin: 18px 0 0; }

/* Editor screenshot */
.shot { margin-top: 64px; margin-bottom: 0; }
.shot-image,
.shot-slot { display: block; width: 100%; border-radius: 12px; }
.shot-image { box-shadow: 0 0 0 1px rgb(31 41 46 / .1), 0 2px 4px rgb(31 41 46 / .06), 0 30px 60px -30px rgb(31 41 46 / .35); }
.shot-slot { aspect-ratio: 16 / 10; background: var(--paper-deep); border: 1px solid var(--line); }
.shot figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Topics: heading rail on the left, detail on the right */
.features { margin-top: 112px; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; padding: 64px 0 80px; border-top: 1px solid var(--line); }
.topic-head { align-self: start; position: sticky; top: calc(var(--header) + 32px); }
.topic-head p { margin: 10px 0 0; color: var(--muted); max-width: 22em; line-height: 1.5; }
.topic-body { max-width: 680px; }
.topic-body > p:first-child { font-size: 19px; line-height: 1.6; }
.note { font-size: 14px; color: var(--muted); }

/* Spec table */
.specs { margin: 36px 0 0; border-top: 1px solid var(--line); }
.specs + .note { margin-top: 18px; }
.specs > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--muted); padding-top: 2px; }
.specs dd { margin: 0; font-size: 16px; line-height: 1.5; }

.swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; padding: 0; }
.swatches li { display: inline-flex; align-items: center; gap: 7px; }
.swatches span { width: 13px; height: 13px; border-radius: 3px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgb(31 41 46 / .18); }

/* Privacy */
.privacy { background: var(--night); color: var(--night-text); }
.privacy .topic { border-top: 0; padding: 96px 0 104px; }
.privacy .topic-head p,
.privacy .note { color: var(--night-muted); }
.privacy ::selection { color: var(--night); background: var(--night-text); }

.export { border-top: 0; padding-top: 96px; padding-bottom: 112px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px; padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.footer-inner .brand { font-size: 16px; color: var(--ink); }
.footer-inner .brand img { border-radius: 5px; }
.footer-inner p { margin: 0; }
.footer-inner > a:last-child { margin-left: auto; }

/* 404 */
.not-found { padding: 120px 0 160px; }
.not-found h1 { font-size: clamp(36px, 4.4vw, 56px); }
.not-found p { margin-top: 20px; max-width: 32em; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 64px); }
  .topic { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 56px 0 64px; }
  .topic-head { position: static; }
  .topic-body { max-width: 720px; }
  .features { margin-top: 88px; }
  .privacy .topic { padding: 72px 0 80px; }
  .export { padding-top: 72px; padding-bottom: 88px; }
}

@media (max-width: 640px) {
  :root { --header: 52px; font-size: 16px; scroll-padding-top: 20px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 4px 20px; padding: 12px 0; }
  .site-header nav { width: 100%; gap: 20px; font-size: 14px; overflow-x: auto; }
  .intro { padding-top: 56px; }
  .lead { font-size: 18px; margin-top: 20px; }
  .meta { font-size: 14px; }
  .shot { margin-top: 40px; }
  .shot-image, .shot-slot { border-radius: 8px; }
  .shot figcaption { font-size: 13px; line-height: 1.5; }
  h2 { font-size: 25px; }
  .topic-body > p:first-child { font-size: 17px; }
  .specs > div { grid-template-columns: 6.5em minmax(0, 1fr); gap: 14px; }
  .specs dd { font-size: 15px; }
  .footer-inner { flex-wrap: wrap; gap: 10px 20px; }
  .footer-inner p { order: 3; flex-basis: 100%; }
  .footer-inner > a:last-child { margin-left: auto; }
}

.shot-link{display:block;overflow:hidden;border-radius:12px}.shot-image{height:auto}.shot figcaption a{margin-left:8px}

:root{scrollbar-color:var(--line) var(--paper);scrollbar-width:thin}
