/* TypeOut website. Hand-written, no build step. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f6f5f1;
  --bg-alt: #efede6;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #15171a;
  --ink-2: #4d535b;
  --ink-3: #646a73;
  --line: #e3e0d7;
  --line-strong: #cfcbc0;
  --accent: #0f69b2;
  --accent-strong: #0a5694;
  --accent-fill: #1272be;
  --accent-soft: #e3f0fb;
  --brand-top: #2aa5f5;
  --brand-bottom: #1480ce;
  --typo: #c2410c;
  --dot: #dedad0;
  --key: #ffffff;
  --key-edge: #cdc8bc;
  --panel: #0f1b28;
  --panel-ink: #e8eef5;
  --panel-ink-2: #a9b8c8;
  --panel-line: #24364a;
  --panel-accent: #7cc4ff;
  --shadow-sm: 0 1px 2px rgb(21 23 26 / 0.06);
  --shadow: 0 1px 2px rgb(21 23 26 / 0.05), 0 22px 48px -22px rgb(27 42 58 / 0.28);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1217;
    --bg-alt: #121821;
    --surface: #161d26;
    --surface-2: #1a222d;
    --ink: #e8ecf1;
    --ink-2: #a9b2be;
    --ink-3: #8c96a3;
    --line: #242e3a;
    --line-strong: #33404f;
    --accent: #63b8ff;
    --accent-strong: #93ceff;
    --accent-fill: #1272be;
    --accent-soft: #10304d;
    --typo: #ff8a5c;
    --dot: #1f2833;
    --key: #2a3440;
    --key-edge: #11161d;
    --panel: #0b1a2a;
    --panel-line: #1f3449;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 26px 50px -24px rgb(0 0 0 / 0.75);
  }
}

/* ---------- base ---------- */

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

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(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(42 165 245 / 0.28);
}

strong,
b {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.06em 0.42em 0.1em;
  font-family: var(--font-sans);
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
  background: var(--key);
  border: 1px solid var(--key-edge);
  border-bottom-width: 3px;
  border-radius: 7px;
  vertical-align: 0.06em;
  white-space: nowrap;
}

kbd + kbd {
  margin-left: 0.2em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.skip-link:focus {
  top: 12px;
  color: var(--bg);
}

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 2px 4px rgb(20 128 206 / 0.25));
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.6vw, 22px);
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 6px;
  color: var(--ink-2);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
  text-decoration-color: var(--brand-top);
}

@media (max-width: 760px) {
  .site-nav .nav-section {
    display: none;
  }
}

/* ---------- shared bits ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.kicker .num {
  color: var(--accent);
}

.kicker::after {
  content: "";
  flex: 0 1 56px;
  height: 1px;
  background: var(--line-strong);
}

.caret {
  display: inline-block;
  width: 0.075em;
  min-width: 3px;
  height: 0.82em;
  margin-left: 0.08em;
  border-radius: 99px;
  background: var(--brand-bottom);
  vertical-align: -0.04em;
}

@media (prefers-color-scheme: dark) {
  .caret {
    background: var(--brand-top);
  }
}

/* A text cursor: an empty inline box with a left border, so it can't wrap
   onto a new line by itself the way an inline-block would. */
.cursor {
  margin-left: 1px;
  margin-right: -3px;
  border-left: 2px solid var(--brand-bottom);
}

@media (prefers-color-scheme: dark) {
  .cursor {
    border-left-color: var(--brand-top);
  }
}

.nowrap {
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .blink {
    animation: blink 1.06s steps(1, end) infinite;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-top);
  box-shadow: 0 0 0 4px rgb(42 165 245 / 0.18);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent-fill);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.2) inset, 0 8px 18px -10px rgb(18 114 190 / 0.8);
}

.button:hover {
  color: #fff;
  background: #0f64a8;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 1.5rem + 5.6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.012em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero h1 .caret {
  width: 0.06em;
  height: 0.74em;
  vertical-align: -0.02em;
}

.lede {
  margin-top: 26px;
  max-width: 34rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}

.lede + p {
  margin-top: 14px;
  max-width: 34rem;
  color: var(--ink-2);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  list-style: none;
}

.platform {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
}

.platform:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.platform.live {
  border-color: transparent;
  background: var(--accent-fill);
  color: #fff;
}

.platform.live:hover {
  border-color: transparent;
  background: #0f64a8;
  color: #fff;
}

.platform.live svg,
.platform.live small {
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .platform:hover {
    transform: translateY(-1px);
  }
}

.platform svg {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent);
}

.platform strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.platform small {
  display: block;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--ink-2);
}

/* the typing demo */

.demo {
  position: relative;
  margin: 0;
}

.demo::before {
  content: "";
  position: absolute;
  inset: -48px -40vw -48px -32px;
  z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}

.composer {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 20px;
}

.composer-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-head .avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 60%, var(--surface)));
  border: 1px solid var(--line);
}

.composer-head .lines {
  display: grid;
  gap: 7px;
  flex: 1;
}

.composer-head .lines i {
  display: block;
  height: 9px;
  width: 116px;
  max-width: 60%;
  border-radius: 9px;
  background: var(--bg-alt);
}

.composer-head .lines i + i {
  width: 72px;
}

.composer-status {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.composer-text {
  min-height: 7.6em;
  margin-top: 16px;
  font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.composer-text .placeholder {
  color: var(--ink-3);
}

.composer-text .slip {
  color: var(--typo);
  text-decoration: underline wavy var(--typo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.rhythm {
  margin-top: 18px;
  padding: 14px 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rhythm-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
}

.rhythm-row + .rhythm-row {
  margin-top: 6px;
}

.rhythm-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.track {
  position: relative;
  height: 34px;
  border-bottom: 1px dashed var(--line-strong);
}

.track svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.track .k-type {
  stroke: var(--accent-fill);
}

.track .k-slip {
  stroke: var(--typo);
}

.track .k-del {
  stroke: var(--ink-3);
}

.track .playhead {
  stroke: var(--brand-top);
  opacity: 0.6;
}

.track.paste {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.paste-bar {
  width: 7px;
  height: 100%;
  border-radius: 2px;
  background: var(--ink-2);
}

.paste-note {
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

/* Without JavaScript the finished example fades in; with it, demo.js takes over first. */
.prerender {
  animation: reveal 0.01s linear 1.4s both;
}

@keyframes reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.demo-play .i-pause,
.demo.is-playing .demo-play .i-play {
  display: none;
}

.demo.is-playing .demo-play .i-pause {
  display: block;
}

.rhythm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.rhythm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rhythm-legend span::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent-fill);
}

.rhythm-legend .l-slip::before {
  background: var(--typo);
}

.rhythm-legend .l-del::before {
  height: 7px;
  background: var(--ink-3);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.demo-controls[hidden] {
  display: none;
}

.demo-controls fieldset {
  display: inline-flex;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
}

.demo-controls label {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.seg span {
  display: block;
  padding: 5px 11px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink-2);
}

.seg input:checked + span {
  background: var(--ink);
  color: var(--bg);
}

.seg input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 500;
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-fill);
}

.demo-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.demo-play:hover {
  border-color: var(--ink-3);
}

.demo-play svg {
  width: 14px;
  height: 14px;
}

.demo-readout {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2,
.split h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 1.5rem + 3vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.section-head h2 em,
.split h2 em {
  color: var(--accent);
}

.section-head p {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 40rem;
}

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.8;
  color: var(--accent);
}

.step h3 {
  margin-top: 22px;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  margin-top: auto;
  padding-top: 24px;
}

.mini-doc {
  width: 100%;
  max-width: 240px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.mini-doc mark {
  background: rgb(42 165 245 / 0.22);
  color: var(--ink);
  border-radius: 3px;
  padding: 0 1px;
}

.mini-doc .copy {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.mini-field {
  width: 100%;
  max-width: 240px;
  padding: 12px 14px;
  border: 2px solid var(--accent-fill);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgb(42 165 245 / 0.16);
  font-size: 0.9rem;
  color: var(--ink-3);
}

.mini-field .cursor {
  margin: 0 2px 0 0;
}

.mini-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.mini-keys kbd {
  font-size: 1.05rem;
  min-width: 2.2em;
}

.mini-keys .type-btn {
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

/* rhythm features */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}

.feature:nth-child(2n) {
  padding-left: 28px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.feature h3 {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 6px;
  color: var(--ink-2);
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--accent-fill);
}

.feature-visual svg {
  width: 84px;
  height: 52px;
  overflow: visible;
}

.feature-visual .muted {
  color: var(--ink-3);
}

.feature-visual .slip-mark {
  color: var(--typo);
}

.feature-visual .glyphs {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.feature-visual .glyphs .bad {
  color: var(--typo);
  text-decoration: line-through;
}

.feature-visual .glyphs .bs {
  color: var(--ink-3);
}

.feature.wide {
  grid-column: 1 / -1;
  padding-right: 0;
}

.feature.wide p {
  max-width: 48rem;
}

/* platform sections */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.split.reverse .split-visual {
  order: -1;
}

.split-copy > * + * {
  margin-top: 18px;
}

.split-copy .intro {
  font-size: 1.15rem;
  color: var(--ink-2);
}

.ticks {
  display: grid;
  gap: 14px;
  margin-top: 28px !important;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 3px;
  height: 1.05em;
  border-radius: 3px;
  background: var(--accent-fill);
}

.ticks li strong {
  color: var(--ink);
}

.availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px !important;
}

.availability small {
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* iPhone keyboard illustration */

.kb {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  padding: 16px 10px 12px;
  border-radius: 26px;
  background: #d4d6dd;
  color: #111;
  box-shadow: var(--shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Instrument Sans", system-ui, sans-serif;
}

.kb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.kb-typos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0a62c9;
  font-size: 0.9rem;
  font-weight: 500;
}

.kb-typos::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #0a62c9;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.kb-type {
  display: grid;
  place-items: center;
  height: 64px;
  margin-top: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2aa5f5, #1480ce);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.25);
}

.kb-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  padding: 2px;
  border-radius: 9px;
  background: rgb(118 118 128 / 0.2);
  font-size: 0.82rem;
  text-align: center;
}

.kb-seg span {
  padding: 5px 0;
  border-radius: 7px;
}

.kb-seg .on {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
}

.kb-hint {
  margin-top: 7px;
  font-size: 0.74rem;
  text-align: center;
  color: #5b5f66;
}

.kb-row {
  display: grid;
  grid-template-columns: 44px 52px 1fr 44px 74px;
  gap: 6px;
  margin-top: 12px;
}

.kb-row span {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 7px;
  background: #abb0ba;
  font-size: 0.88rem;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.3);
}

.kb-row .space {
  background: #fff;
}

.kb-row svg {
  width: 20px;
  height: 20px;
}

@media (prefers-color-scheme: dark) {
  .kb {
    background: #2b2b2e;
    color: #f2f2f4;
  }
  .kb-typos {
    color: #4aa3ff;
  }
  .kb-typos::before {
    background: #4aa3ff;
    color: #0b0b0c;
  }
  .kb-seg {
    background: rgb(118 118 128 / 0.32);
  }
  .kb-seg .on {
    background: #636366;
    color: #fff;
  }
  .kb-hint {
    color: #a1a1a8;
  }
  .kb-row span {
    background: #46464b;
  }
  .kb-row .space {
    background: #6b6b70;
  }
}

/* Chrome illustration */

.browser {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.browser-bar .dots {
  display: flex;
  gap: 6px;
}

.browser-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-bar .address {
  flex: 1;
  height: 26px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.browser-bar .ext {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
}

.browser-bar .ext svg {
  width: 20px;
  height: 20px;
}

.infobar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.84rem;
  color: var(--ink-2);
}

.infobar .cancel {
  flex: none;
  padding: 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--accent);
  font-weight: 600;
}

.browser-page {
  position: relative;
  padding: 22px 20px 26px;
  min-height: 260px;
}

.page-lines i {
  display: block;
  height: 9px;
  border-radius: 9px;
  background: var(--bg-alt);
  margin-bottom: 10px;
}

.page-lines i:nth-child(1) { width: 46%; height: 13px; margin-bottom: 16px; }
.page-lines i:nth-child(2) { width: 88%; }
.page-lines i:nth-child(3) { width: 72%; }

.page-field {
  margin-top: 18px;
  max-width: 64%;
  padding: 12px 14px;
  border: 2px solid var(--accent-fill);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
  box-shadow: 0 0 0 4px rgb(42 165 245 / 0.14);
}



.popup {
  position: absolute;
  top: 10px;
  right: 12px;
  width: min(232px, 46%);
  padding: 12px 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.74rem;
  color: var(--ink-2);
}

.popup-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
}

.popup-head svg {
  width: 16px;
  height: 16px;
}

.popup-text {
  margin-top: 9px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  line-height: 1.4;
}

.popup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.popup-range {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-fill) 50%, var(--line-strong) 50%);
  position: relative;
}

.popup-range::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-fill);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--surface);
}

.popup-go {
  margin-top: 11px;
  padding: 7px 0;
  border-radius: 8px;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 24px;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.shortcuts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shortcuts kbd {
  font-size: 1.05rem;
  min-width: 2.2em;
}

/* privacy panel */

.privacy-panel {
  background: var(--panel);
  color: var(--panel-ink);
  border-top: 0;
}

.privacy-panel .kicker {
  color: var(--panel-ink-2);
}

.privacy-panel .kicker .num {
  color: var(--panel-accent);
}

.privacy-panel .kicker::after {
  background: var(--panel-line);
}

.privacy-panel .split h2 em {
  color: var(--panel-accent);
}

.privacy-panel .intro {
  color: var(--panel-ink-2);
}

.privacy-panel a {
  color: var(--panel-accent);
}

.privacy-panel a:hover {
  color: #b5ddff;
}

.privacy-panel :focus-visible {
  outline-color: var(--panel-accent);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 6vw, 72px);
  list-style: none;
  border-top: 1px solid var(--panel-line);
}

.facts li {
  padding: 24px 24px 26px 0;
  border-bottom: 1px solid var(--panel-line);
  color: var(--panel-ink-2);
}

.facts li:not(:nth-child(3n + 1)) {
  padding-left: 24px;
  border-left: 1px solid var(--panel-line);
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--panel-ink);
  font-size: 1.08rem;
}

.privacy-panel .more {
  margin-top: 26px;
  font-weight: 600;
}

.netlog {
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.03);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
}

.netlog-head {
  display: flex;
  gap: 18px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--panel-ink-2);
}

.netlog-head .on {
  color: var(--panel-ink);
  box-shadow: 0 2px 0 var(--panel-accent);
}

.netlog-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 8px 16px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--panel-ink-2);
}

.netlog-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 8px 16px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--panel-ink);
}

.netlog-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 210px;
  padding: 24px;
  text-align: center;
  color: var(--panel-ink-2);
  background-image: repeating-linear-gradient(180deg, transparent 0 35px, var(--panel-line) 35px 36px);
}

.netlog-empty strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--panel-ink);
}

.netlog-foot {
  padding: 9px 16px;
  border-top: 1px solid var(--panel-line);
  color: var(--panel-ink-2);
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-grid .section-head {
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq .answer {
  padding: 0 0 22px;
  color: var(--ink-2);
}

.faq .answer > * + * {
  margin-top: 12px;
}

.faq .answer ul,
.faq .answer ol {
  padding-left: 1.3em;
}

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

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 44px 48px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
}

.footer-grid .tag {
  margin-top: 10px;
  max-width: 22rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-links a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

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

.footer-legal {
  display: grid;
  gap: 6px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-3);
}

.footer-legal:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-strip {
  height: 22px;
  margin-bottom: 30px;
  color: var(--line-strong);
}

.footer-strip svg {
  width: 100%;
  height: 100%;
}

/* ---------- document pages (privacy, support) ---------- */

.doc-hero {
  padding-block: clamp(44px, 7vw, 88px) clamp(32px, 4vw, 48px);
}

.doc-hero h1 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 1.6rem + 4.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.doc-hero .meta {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 44rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(64px, 9vw, 112px);
}

.toc {
  position: sticky;
  top: 24px;
  font-size: 0.92rem;
}

.toc p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  border-left-color: var(--accent-fill);
}

.prose {
  max-width: 44rem;
}

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

.prose h2 {
  margin-top: 56px;
  padding-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem);
  line-height: 1.1;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 32px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 10px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose strong {
  color: var(--ink);
}

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

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

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

.summary-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-card h2 {
  margin: 0 !important;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.summary-card ul {
  margin-top: 14px;
  list-style: none;
  padding: 0;
}

.summary-card li {
  position: relative;
  padding-left: 26px;
}

.summary-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 3px;
  height: 1em;
  border-radius: 3px;
  background: var(--accent-fill);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

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

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

.prose th {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--surface-2);
}

.prose td:first-child {
  white-space: nowrap;
}

.prose td code {
  white-space: nowrap;
}

.path {
  font-weight: 600;
  color: var(--ink);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-card p {
  margin: 0;
}

.contact-card .label {
  font-weight: 600;
  color: var(--ink);
}

.contact-card .email {
  font-size: 1.2rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.steps-list {
  counter-reset: s;
  list-style: none;
  padding-left: 0 !important;
}

.steps-list > li {
  position: relative;
  padding-left: 44px;
  min-height: 30px;
}

.steps-list > li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.steps-list > li + li {
  margin-top: 14px;
}

.prose .faq {
  margin-top: 20px;
}

.prose .faq summary {
  font-size: 1.04rem;
  padding-block: 16px;
}

.note {
  padding: 14px 18px;
  border-left: 3px solid var(--accent-fill);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--ink) !important;
}

.note p,
.note li {
  color: var(--ink);
}

/* ---------- blog ---------- */

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.doc-hero .byline {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--ink-3);
}

.byline a {
  color: var(--ink-2);
}

.prose pre {
  overflow-x: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
}

.prose table.claims td:first-child {
  width: 34%;
  white-space: normal;
  color: var(--ink);
  font-weight: 600;
}

.prose .sources li {
  font-size: 0.95rem;
}

.post-cta {
  margin-top: 28px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.post-cta > * + * {
  margin-top: 10px;
}

.prose .post-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  line-height: 1.1;
  color: var(--ink);
}

.post-cta-title em {
  color: var(--accent);
}

.post-cta .post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.post-list-wrap {
  padding-bottom: clamp(64px, 9vw, 112px);
}

.post-list {
  display: grid;
  gap: 18px;
  max-width: 52rem;
  padding: 0;
  list-style: none;
}

.post-card {
  position: relative;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  border-color: var(--line-strong);
}

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}

.post-card h2 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  line-height: 1.1;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.post-card:hover h2 a {
  color: var(--accent);
}

.post-card p {
  margin-top: 10px;
  color: var(--ink-2);
}

.post-card .post-card-more {
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: 64px;
  text-align: center;
}

.notfound .composer {
  width: min(520px, 100%);
  margin-inline: auto;
  text-align: left;
}

.notfound .composer-text {
  min-height: 0;
}

.notfound h1 {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.2rem);
  line-height: 1.02;
}

.notfound p {
  margin: 14px auto 0;
  max-width: 30rem;
  color: var(--ink-2);
}

.notfound .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.strike {
  color: var(--typo);
  text-decoration: line-through;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split.reverse .split-visual {
    order: 0;
  }

  .split-visual {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
    column-gap: 24px;
  }

  .step > :not(.step-visual) {
    grid-column: 1;
  }

  .step-visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
    padding-top: 0;
  }

  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts li:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }

  .facts li:nth-child(2n) {
    padding-left: 24px;
    border-left: 1px solid var(--panel-line);
  }

  .toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
}

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

  .feature,
  .feature:nth-child(2n) {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
    border-left: 0;
  }

  .feature-visual {
    height: 64px;
  }

  .feature-visual svg {
    width: 64px;
  }

  .facts li,
  .facts li:nth-child(2n),
  .facts li:not(:nth-child(3n + 1)) {
    padding: 18px 0 20px;
    border-left: 0;
  }

  .step {
    display: flex;
  }

  .step-visual {
    margin-top: 0;
    padding-top: 22px;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .site-header .wrap {
    min-height: 64px;
  }

  .brand {
    font-size: 1.06rem;
  }

  .site-nav a {
    padding-inline: 4px;
    font-size: 0.93rem;
  }

  .platforms {
    display: grid;
  }

  .platform {
    width: 100%;
  }

  .composer {
    padding: 18px 18px 16px;
  }

  .rhythm {
    padding: 12px 14px 10px;
  }

  .rhythm-row {
    grid-template-columns: 58px 1fr;
    gap: 8px;
  }

  .feature,
  .feature:nth-child(2n) {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  .feature-visual {
    height: 56px;
    border-radius: 12px;
  }

  .feature-visual svg {
    width: 54px;
  }

  .feature-visual .glyphs {
    font-size: 0.78rem;
  }

  .popup {
    position: static;
    width: auto;
    margin-top: 18px;
  }

  .page-field {
    max-width: none;
  }

  .netlog-empty strong {
    font-size: 3.4rem;
  }

  .prose td:first-child {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  /* Stack the permissions table: name above its explanation. */
  .prose table,
  .prose tbody,
  .prose tr,
  .prose td {
    display: block;
  }

  .prose thead {
    display: none;
  }

  .prose tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .prose tr:last-child {
    border-bottom: 0;
  }

  .prose td {
    padding: 0;
    border: 0;
  }

  .prose td:first-child {
    margin-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header nav,
  .site-footer .footer-strip,
  .toc,
  .skip-link {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
