/* Shavings site. Colors come from the app icon (indigo backdrop, folder, broom)
   and the ecosystem palette in App/Views/Styling.swift. */

/* Self-hosted variable fonts (Google Fonts' latin and latin-ext subsets), both under
   the SIL Open Font License 1.1: see assets/fonts/OFL-*.txt. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/schibsted-grotesk-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/schibsted-grotesk-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --indigo-1: #5a66ff;
  --indigo-2: #3b40c4;
  --indigo-3: #1f1f63;
  --folder: #ffc23d;
  --broom: #f26b3a;

  --paper: #f4f5fc;
  --surface: #ffffff;
  --ink: #1a1b4b;
  --ink-2: #4d5080;
  --ink-3: #8285ad;
  --line: #dfe1f2;

  --win-bg: #ffffff;
  --win-bar: #f3f3f7;
  --win-line: #e6e6ee;
  --win-ink: #1d1d24;
  --win-ink-2: #6b6b78;
  --win-select: #e9ebff;
  --win-side: #ececf1;
  --win-fill: #f0f0f4;
  --win-accent: #007aff;
  --win-orange: #e07a00;

  --eco-python: #2a78d6;
  --eco-rust: #eb6834;
  --eco-go: #1baf7a;
  --eco-node: #eda100;
  --eco-apple: #e87ba4;
  --eco-dart: #008300;
  --eco-dotnet: #4a3aa7;
  --eco-cpp: #e34948;
  --eco-ruby: #994ab0;
  --eco-jvm: #85700b;
  --eco-godot: #1c9fba;
  --eco-unity: #93ab2c;
  --eco-php: #817ef2;
  --eco-elixir: #843753;
  --eco-terraform: #116195;

  --st-active: #f08a1c;
  --st-older: #e0b400;
  --st-inactive: #2fa84f;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12132f;
    --surface: #1a1b40;
    --ink: #eceeff;
    --ink-2: #b4b7e0;
    --ink-3: #7f83b8;
    --line: #2c2e62;
    --win-bg: #1e1e24;
    --win-bar: #2a2a31;
    --win-line: #34343d;
    --win-ink: #ececf1;
    --win-ink-2: #9d9daa;
    --win-select: #2c3170;
    --win-side: #26262c;
    --win-fill: #2a2a31;
    --win-accent: #0a84ff;
    --win-orange: #ff9f0a;
    --eco-python: #3987e5;
    --eco-rust: #d95926;
    --eco-go: #199e70;
    --eco-node: #c98500;
    --eco-apple: #d55181;
    --eco-dotnet: #9085e9;
    --eco-cpp: #e66767;
    --eco-ruby: #994ab0;
    --eco-jvm: #85700b;
    --eco-godot: #1c9fba;
    --eco-unity: #849b11;
    --eco-php: #655ed0;
    --eco-elixir: #9d4c63;
    --eco-terraform: #0b73a1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12132f;
  --surface: #1a1b40;
  --ink: #eceeff;
  --ink-2: #b4b7e0;
  --ink-3: #7f83b8;
  --line: #2c2e62;
  --win-bg: #1e1e24;
  --win-bar: #2a2a31;
  --win-line: #34343d;
  --win-ink: #ececf1;
  --win-ink-2: #9d9daa;
  --win-select: #2c3170;
  --win-side: #26262c;
  --win-fill: #2a2a31;
  --win-accent: #0a84ff;
  --win-orange: #ff9f0a;
  --eco-python: #3987e5;
  --eco-rust: #d95926;
  --eco-go: #199e70;
  --eco-node: #c98500;
  --eco-apple: #d55181;
  --eco-dotnet: #9085e9;
  --eco-cpp: #e66767;
  --eco-ruby: #994ab0;
  --eco-jvm: #85700b;
  --eco-godot: #1c9fba;
  --eco-unity: #849b11;
  --eco-php: #655ed0;
  --eco-elixir: #9d4c63;
  --eco-terraform: #0b73a1;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
code,
.path {
  font-family: var(--mono);
  font-size: 0.88em;
}
:focus-visible {
  outline: 3px solid var(--folder);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  background: var(--folder);
  color: var(--indigo-3);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

/* ---------- Soon pill ---------- */

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1rem/1 var(--sans);
  color: var(--indigo-3);
  background: var(--folder);
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  cursor: default;
  user-select: none;
  box-shadow: inset 0 -2px 0 rgba(31, 31, 99, 0.18);
}
.soon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--indigo-3);
  animation: blink 2.4s ease-in-out infinite;
}
.soon--small {
  font-size: 0.875rem;
  padding: 9px 16px 9px 13px;
  gap: 8px;
}
.soon--small::before {
  width: 7px;
  height: 7px;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

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

.site-header {
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.82;
}
.nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.on-indigo {
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(
    180deg,
    var(--indigo-1) 0%,
    var(--indigo-2) 48%,
    var(--indigo-3) 100%
  );
  padding-bottom: 0;
  overflow: hidden;
}
/* The icon's sparkles, scattered once across the sky. */
.hero .sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero .sparkles svg {
  position: absolute;
  fill: #fff;
  opacity: 0.9;
}

.hero-copy {
  position: relative;
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.hero h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.75rem, 8.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 11ch;
  text-wrap: balance;
}
.hero-lede {
  margin: 28px 0 0;
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 36px;
}
.hero-cta .req {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

/* The demo window sits on the horizon between the indigo hero and the paper page. */
.stage {
  position: relative;
  padding-bottom: clamp(24px, 4vw, 40px);
}
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: var(--paper);
  z-index: 0;
}
.stage .wrap {
  position: relative;
  z-index: 1;
}
.try {
  margin: 18px 4px 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- Demo window ---------- */

/* Laid out like the app's main window: a full-height sidebar with the traffic lights, a toolbar over
   the table and the inspector, and a summary bar under the table. */
.window {
  --side-w: 190px;
  --insp-w: 290px;
  position: relative;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--insp-w);
  grid-template-rows: 52px 548px;
  background: var(--win-bg);
  color: var(--win-ink);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(20, 20, 60, 0.18),
    0 30px 80px -20px rgba(10, 10, 50, 0.55),
    0 12px 24px -12px rgba(10, 10, 50, 0.35);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans);
  text-align: left;
}
.window button {
  font: inherit;
  color: inherit;
}
.window code {
  font-family: ui-monospace, "SF Mono", var(--mono);
  font-size: 0.94em;
}
.window .i {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.window .i .f {
  fill: currentColor;
  stroke: none;
}
.window .i .knock {
  stroke: var(--win-bg);
}
.window .grow {
  flex: 1;
}
.window .dim {
  color: var(--win-ink-2);
}
.window .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.window .link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--win-accent);
  cursor: pointer;
}
.window .link:hover {
  text-decoration: underline;
}

.lights {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.lights span:nth-child(1) {
  background: #ff5f57;
}
.lights span:nth-child(2) {
  background: #febc2e;
}
.lights span:nth-child(3) {
  background: #28c840;
}

/* Sidebar */
.w-side {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 52px 10px 0;
  background: var(--win-side);
  border-right: 1px solid var(--win-line);
  overflow-y: auto;
  scrollbar-width: none;
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 8px 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--win-ink-2);
}
.side-head:first-child {
  margin-top: 4px;
}
.side-head .link {
  font-size: 11px;
  font-weight: 500;
}
.side-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 24px;
  padding: 2px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  cursor: pointer;
}
.side-row .i {
  color: var(--win-accent);
}
.side-row:not(.static):hover {
  background: color-mix(in srgb, var(--win-ink) 6%, transparent);
}
.side-row.on {
  background: color-mix(in srgb, var(--win-ink) 11%, transparent);
}
.side-row.static {
  cursor: default;
}
.side-row.static .i {
  color: var(--win-ink-2);
}
.side-row.dim {
  color: var(--win-ink-2);
}
.side-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-label .strong {
  font-weight: 600;
}
.side-label .i {
  width: 13px;
  height: 13px;
}
.side-badge,
.side-size {
  color: var(--win-ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.side-badge {
  font-weight: 500;
}
.side-size {
  font-size: 11px;
}
.dot {
  width: 8px;
  height: 8px;
  margin: 0 3.5px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

/* Toolbar */
.w-toolbar {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-width: 0;
  border-bottom: 1px solid var(--win-line);
}
.w-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
  line-height: 1.2;
}
.w-title strong {
  font-size: 13px;
  font-weight: 700;
}
.w-title span {
  color: var(--win-ink-2);
  font-size: 11px;
}
.w-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 190px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--win-ink-2);
  background: color-mix(in srgb, var(--win-ink) 6%, transparent);
  white-space: nowrap;
  overflow: hidden;
}
.w-search svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* Buttons */
.win-btn {
  font: inherit;
  font-weight: 500;
  color: var(--win-ink);
  background: var(--win-bg);
  border: 1px solid var(--win-line);
  border-radius: 6px;
  padding: 3px 11px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.win-btn:hover {
  background: var(--win-select);
}
.win-btn:disabled {
  opacity: 0.45;
  cursor: default;
  background: var(--win-bg);
}
.win-btn.primary {
  background: var(--win-accent);
  border-color: var(--win-accent);
  color: #fff;
  font-weight: 600;
}
.win-btn.primary:hover {
  filter: brightness(1.08);
}
.win-btn.primary:disabled {
  background: var(--win-accent);
  filter: none;
}

/* Main column: table and summary bar */
.w-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  container: main / inline-size;
}
.w-table-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--win-ink-2);
  padding: 6px 8px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-line);
}
.table th + th {
  box-shadow: inset 1px 0 var(--win-line);
}
.table td {
  padding: 6px 8px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table tbody tr {
  cursor: default;
  outline: none;
}
.table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--win-bar) 55%, transparent);
}
.table tbody tr.is-focused td {
  background: var(--win-select);
}
.table tbody tr:focus-visible td {
  box-shadow:
    inset 0 1px var(--win-accent),
    inset 0 -1px var(--win-accent);
}
.table .c-check {
  width: 38px;
  padding-left: 12px;
  padding-right: 0;
}
.table .c-type {
  width: 104px;
}
.table .c-status {
  width: 76px;
}
.table .c-act {
  width: 104px;
}
.table .c-size {
  width: 76px;
}
.table .c-reclaim {
  width: 106px;
}
.table td.c-size,
.table td.c-reclaim {
  font-variant-numeric: tabular-nums;
}
.table td.c-size {
  color: var(--win-ink-2);
}
.table td.c-reclaim {
  font-weight: 600;
}
.table td.c-type {
  overflow: hidden;
}

@container main (max-width: 760px) {
  .table .c-size {
    display: none;
  }
}
@container main (max-width: 540px) {
  .table .c-act {
    display: none;
  }
}
@container main (max-width: 460px) {
  .table .c-type,
  .table .c-status {
    display: none;
  }
}

.proj-name {
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-path {
  color: var(--win-ink-2);
  font-size: 11px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The table's checkbox is the app's square / minus.square.fill / checkmark.square.fill symbol. */
.cbox {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border-radius: 4px;
  border: 1.4px solid color-mix(in srgb, var(--win-ink) 40%, transparent);
  background: none;
  cursor: pointer;
}
.cbox[data-state="all"],
.cbox[data-state="some"] {
  background: var(--win-accent);
  border-color: var(--win-accent);
}
.cbox[data-state="all"]::after {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cbox[data-state="some"]::after {
  content: "";
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
}

/* A native-looking checkbox, as in the inspector and the sidebar. */
.mac-check {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  margin: 0;
  width: 14px;
  height: 14px;
  border-radius: 3.5px;
  border: 1px solid color-mix(in srgb, var(--win-ink) 30%, transparent);
  background: var(--win-bg);
  cursor: pointer;
}
.mac-check:checked {
  background: var(--win-accent);
  border-color: var(--win-accent);
}
.mac-check:checked::after {
  content: "";
  width: 3.5px;
  height: 7px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.badges {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}
.badge[hidden] {
  display: none;
}
.badge.more {
  color: var(--win-ink-2);
  background: color-mix(in srgb, var(--win-ink) 9%, transparent);
}
.badge.more::before {
  display: none;
}
.badge.muted {
  color: var(--win-ink-2);
}

/* StatusPill: the status color at 18% behind the name; Active reads orange. */
.pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: color-mix(in srgb, var(--c) 18%, transparent);
}
.pill[data-s="active"] {
  --c: var(--st-active);
  color: var(--win-orange);
}
.pill[data-s="older"] {
  --c: var(--st-older);
}
.pill[data-s="inactive"] {
  --c: var(--st-inactive);
}

.w-empty {
  position: absolute;
  inset: 30px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--win-ink-2);
}
.w-empty[hidden] {
  display: none;
}
.w-empty .i {
  width: 34px;
  height: 34px;
  stroke-width: 1.1;
  margin-bottom: 6px;
}
.w-empty strong {
  color: var(--win-ink);
  font-size: 16px;
}

/* Summary bar */
.summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--win-bar);
  border-top: 1px solid var(--win-line);
  white-space: nowrap;
  min-width: 0;
}
.totals-wrap {
  min-width: 0;
  overflow: hidden;
}
.summary .totals strong {
  font-variant-numeric: tabular-nums;
}
.summary .sub {
  color: var(--win-ink-2);
  font-size: 11px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stack {
  display: flex;
  gap: 2px;
  flex: none;
  width: 140px;
  height: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.stack[hidden] {
  display: none;
}
.stack span {
  flex-basis: 0;
  border-radius: 3px;
  background: var(--c);
  transition:
    flex-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.12s;
}
.stack:hover span {
  opacity: 0.35;
}
.stack span:hover {
  opacity: 1;
}
.stack.big {
  width: 100%;
  height: 14px;
  cursor: default;
}
.stack.big span {
  border-radius: 3px;
}
.summary .spacer {
  flex: 1;
}
.summary .sel {
  color: var(--win-ink-2);
  font-variant-numeric: tabular-nums;
}
@container main (max-width: 600px) {
  .summary .stack,
  .summary .sel {
    display: none;
  }
}

/* A broom pass across a row as it goes to the Trash. */
.table tr.sweeping td {
  position: relative;
}
.table tr.sweeping td:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1400px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--broom) 30%, transparent) 45%,
    transparent 60%
  );
  animation: sweep 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes sweep {
  from {
    transform: translateX(-60%);
  }
  to {
    transform: translateX(80%);
    opacity: 0;
  }
}

/* Inspector */
.w-insp {
  grid-column: 3;
  grid-row: 2;
  min-height: 0;
  /* Cut off at the window's edge rather than scrolling. */
  overflow: hidden;
  border-left: 1px solid var(--win-line);
  background: var(--win-bg);
}
.insp-pad {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.insp-head {
  margin-bottom: 8px;
}
.insp-cap {
  color: var(--win-ink-2);
  font-size: 11px;
}
.insp-big {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.insp-sub {
  color: var(--win-ink-2);
  font-size: 12px;
}
.insp-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.window h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
.insp-foot {
  margin: 0;
  color: var(--win-ink-2);
  font-size: 11px;
}
.legend {
  display: flex;
  flex-direction: column;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.legend-row:hover .legend-name,
.bar-row:is(button):hover .bar-label {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--win-ink) 30%, transparent);
}
.legend-row.on .legend-name,
.bar-row.on .bar-label {
  font-weight: 600;
}
.legend-row .i,
.bar-row .i {
  width: 13px;
  height: 13px;
}
.legend-row .i,
.bar-row.on .bar-top > .i:last-of-type {
  color: var(--win-accent);
}
.sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c);
  flex: none;
}
.w64 {
  min-width: 64px;
  text-align: right;
}
.bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 3px 0;
  border: 0;
  background: none;
  text-align: left;
}
button.bar-row {
  cursor: pointer;
}
.bar-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.bar-top > .i:first-child {
  color: var(--win-ink-2);
}
.bar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  display: block;
  height: 6px;
  background: color-mix(in srgb, var(--win-ink) 7%, transparent);
}
.bar-track span {
  display: block;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: var(--c);
}

.back {
  align-self: flex-start;
  font-size: 12px;
}
.back .i {
  width: 12px;
  height: 12px;
}
.detail-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.detail-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-title + .insp-sub {
  margin-top: -6px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 4px 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat span {
  color: var(--win-ink-2);
  font-size: 11px;
}
.stat strong {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.insp-pad > .win-btn.primary {
  align-self: flex-start;
}
.insp-pad hr {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--win-line);
}
.art {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--win-fill);
}
.art .mac-check {
  margin-top: 2px;
}
.art-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.art-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.art-path {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-reason {
  font-size: 12px;
}
.art-recovery {
  font-size: 12px;
  color: var(--win-ink-2);
}
.art-warn {
  font-size: 11px;
  color: var(--win-orange);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.tag .i {
  width: 10px;
  height: 10px;
}
.tag.heavy {
  background: color-mix(in srgb, #0a84ff 15%, transparent);
}
.tag.git {
  color: var(--win-orange);
  background: color-mix(in srgb, var(--win-orange) 15%, transparent);
}

/* Sheets sit in the middle of the dimmed window. */
.w-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.14);
}
.w-sheet-backdrop[hidden] {
  display: none;
}
.sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(600px, 100%);
  max-height: 100%;
  padding: 20px;
  background: var(--win-bg);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px var(--win-line),
    0 24px 60px -12px rgba(0, 0, 0, 0.45);
  animation: sheet-in 0.22s ease-out;
}
.sheet.result {
  width: min(540px, 100%);
}
@keyframes sheet-in {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }
}
.sheet h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.sheet p {
  margin: 0;
}
.sheet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.result-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.result-delta {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-bottom: 4px;
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--win-line);
  background: var(--win-bar);
}
.callout .i {
  width: 22px;
  height: 22px;
  color: var(--win-accent);
}
.callout div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.callout span {
  color: var(--win-ink-2);
  font-size: 12px;
}

/* Narrower screens: the sidebar goes first, then the inspector moves under the table. */
@media (max-width: 1000px) {
  .window {
    grid-template-columns: minmax(0, 1fr) var(--insp-w);
  }
  .w-side {
    display: none;
  }
  .w-toolbar {
    grid-column: 1 / -1;
    padding-left: 88px;
  }
  .w-insp {
    grid-column: 2;
  }
}
@media (max-width: 720px) {
  .window {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 52px 420px auto;
  }
  .w-insp {
    grid-column: 1;
    grid-row: 3;
    max-height: 460px;
    border-left: 0;
    border-top: 1px solid var(--win-line);
  }
  .w-toolbar {
    padding-left: 80px;
    gap: 6px;
  }
  .w-search {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }
  .w-title {
    margin-right: 0;
  }
  .w-title span {
    display: none;
  }
  .summary {
    flex-wrap: wrap;
  }
  .summary .spacer {
    display: none;
  }
  .summary #d-sweep {
    width: 100%;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0;
  font-weight: 850;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.section .intro {
  margin: 20px 0 0;
  max-width: 36rem;
  color: var(--ink-2);
  font-size: 1.15rem;
}

/* What it clears: the app's ecosystem badges, at page scale. */
.eco-badges {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 52rem;
}
.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
}
.eco-badge::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.fine-print {
  margin: 32px 0 0;
  max-width: 44rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Safety */
.safety-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.tree {
  margin: 0;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--indigo-3);
  color: #d9dcff;
  font: 400 0.95rem/1.9 var(--mono);
  overflow-x: auto;
}
.tree .dir {
  color: #fff;
  font-weight: 700;
}
.tree .note {
  color: var(--folder);
  font-family: var(--sans);
  font-size: 0.9rem;
}
.tree .hit {
  background: rgba(255, 194, 61, 0.16);
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -4px;
}
.tree-caption {
  margin: 14px 2px 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 30rem;
}

.checks h3,
.promise h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.checks > p {
  margin: 0;
  color: var(--ink-2);
}
.checks ol {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  counter-reset: c;
}
.checks li {
  counter-increment: c;
  position: relative;
  padding: 14px 0 14px 46px;
  border-top: 1px solid var(--line);
}
.checks li::before {
  content: counter(c);
  position: absolute;
  left: 0;
  top: 13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--indigo-2);
}

.promises {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.promise p {
  margin: 0;
  color: var(--ink-2);
}
/* Features: the same cards, straight after the intro. */
#features .promises {
  margin-top: 48px;
}
.promise .kbd {
  font: 600 0.8em/1 var(--sans);
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}

/* Activity */
.timeline {
  margin-top: 64px;
}
.tl-bar {
  display: grid;
  grid-template-columns: 7fr 14fr 22fr;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  gap: 3px;
}
.tl-bar span:nth-child(1) {
  background: var(--st-active);
}
.tl-bar span:nth-child(2) {
  background: var(--st-older);
}
.tl-bar span:nth-child(3) {
  background: linear-gradient(
    90deg,
    var(--st-inactive) 70%,
    color-mix(in srgb, var(--st-inactive) 20%, transparent)
  );
}
.tl-ticks {
  position: relative;
  height: 26px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.tl-ticks span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.tl-ticks span:first-child {
  transform: none;
}
.tl-labels {
  display: grid;
  grid-template-columns: 7fr 14fr 22fr;
  gap: 3px;
  margin-top: 18px;
}
.tl-labels div {
  padding-right: 16px;
}
.tl-labels strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}
.tl-labels p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.activity-notes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 60rem;
}
.activity-notes p {
  margin: 0;
  color: var(--ink-2);
}
.activity-notes h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.tag-git {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: #c96a00;
  background: rgba(240, 138, 28, 0.15);
}

/* Native */
.native {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.menubar {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(20, 20, 70, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, var(--sans);
  font-size: 14px;
}
.menubar .mb-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 6px 14px;
  font-size: 13px;
  background: color-mix(in srgb, var(--indigo-2) 10%, var(--surface));
  border-bottom: 1px solid var(--line);
}
.menubar .mb-top img {
  width: 16px;
  height: 16px;
}
.menubar ul {
  list-style: none;
  margin: 0;
  padding: 6px;
}
.menubar li {
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.menubar li.sep {
  padding: 0;
  height: 1px;
  background: var(--line);
  margin: 5px 8px;
}
.menubar li.info {
  color: var(--ink-2);
  font-size: 13px;
}
.menubar li kbd {
  font: inherit;
  color: var(--ink-3);
}
.native ul.facts,
.pricing ul.facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.native ul.facts li,
.pricing ul.facts li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.native ul.facts li strong,
.pricing ul.facts li strong {
  color: var(--ink);
}

/* Pricing: the license facts, and a card with the price. "Coming soon" stands where the Buy button will go. */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.price-card {
  padding: clamp(28px, 4vw, 40px);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(20, 20, 70, 0.45);
  text-align: center;
}
.price {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.price .amount {
  font-weight: 850;
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.price .per {
  color: var(--ink-2);
  font-size: 1.05rem;
}
.price-status {
  margin: 26px 0 0;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  background: color-mix(in srgb, var(--indigo-1) 13%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--indigo-1) 30%, transparent);
}
.price-note {
  margin: 20px auto 0;
  max-width: 22rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Finale */
.finale {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: linear-gradient(
    0deg,
    var(--indigo-1) 0%,
    var(--indigo-2) 50%,
    var(--indigo-3) 100%
  );
  padding: clamp(80px, 12vw, 150px) 0 clamp(64px, 9vw, 110px);
}
.finale img {
  width: clamp(96px, 14vw, 148px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 24px 40px rgba(10, 10, 50, 0.45));
}
.finale .big {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-size: clamp(6rem, 24vw, 19rem);
}
.finale p {
  margin: 26px auto 0;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

/* Two rows: the brand and link columns, then a thin bar with the copyright and requirements. */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9rem;
}
.site-footer a {
  text-underline-offset: 4px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, max-content);
  gap: 32px 64px;
}
.footer-about .brand {
  color: var(--ink);
}
.footer-about p {
  margin: 12px 0 0;
  max-width: 22rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.footer-col h2 {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--folder);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-trademarks {
  margin: 12px 0 0;
  max-width: 44rem;
  color: var(--ink-2);
  font-size: 0.8rem;
}
@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

/* Back to top: hidden until the page scrolls one screen height (see the script in index.html). */
.to-top {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--folder);
  color: var(--indigo-3);
  box-shadow: 0 10px 24px rgba(10, 10, 50, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  transform: translateY(-2px);
}
.to-top:focus-visible {
  border-radius: 50%;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav {
    gap: 20px;
  }
  .safety-grid,
  .native,
  .pricing {
    grid-template-columns: minmax(0, 1fr);
  }
  .promises {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
@media (max-width: 720px) {
  .nav a {
    display: none;
  }
  .tl-labels {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .tl-labels strong::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
  .tl-labels div:nth-child(1) strong::before {
    background: var(--st-active);
  }
  .tl-labels div:nth-child(2) strong::before {
    background: var(--st-older);
  }
  .tl-labels div:nth-child(3) strong::before {
    background: var(--st-inactive);
  }
  .activity-notes {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .eco-badge {
    font-size: 0.95rem;
    padding: 9px 16px 9px 13px;
  }
  .stage::after {
    height: 30%;
  }
}

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

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

.lost {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.lost-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 12vh;
}
.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 36px 0 0;
}
.lost-links a {
  color: #fff;
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--folder);
}

/* ---------- Changelog ---------- */

.changelog-head,
.doc-head {
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.changelog,
.doc {
  max-width: calc(46rem + 2 * var(--gutter));
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.release + .release {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.release h2 {
  margin: 0;
  font-weight: 850;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.release h3 {
  margin: 20px 0 6px;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.release ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-2);
}
.release h2 + ul {
  margin-top: 16px;
}
.release li + li {
  margin-top: 4px;
}
.release li::marker {
  color: var(--broom);
}
.release time {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.release-note {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.release-origin ul {
  font-style: italic;
}

/* ---------- FAQ and legal pages ---------- */

.doc-updated {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.doc h2 {
  margin: 40px 0 10px;
  font-weight: 850;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.doc > h2:first-child,
.doc > section:first-child > h2 {
  margin-top: 0;
}
.doc h3 {
  margin: 24px 0 6px;
  font-size: 1.05rem;
}
.doc p,
.doc ul {
  margin: 0 0 12px;
  color: var(--ink-2);
}
.doc ul {
  padding-left: 1.2em;
}
.doc li + li {
  margin-top: 4px;
}
.doc li::marker {
  color: var(--broom);
}
.doc a {
  text-underline-offset: 3px;
  text-decoration-color: var(--folder);
}
.doc strong {
  color: var(--ink);
}

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
/* Block, not flex: in a flex summary, inline <code> becomes its own flex item
   and space-between spreads the question's words across the row. */
.faq summary {
  position: relative;
  padding: 16px 32px 16px 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 0;
  color: var(--broom);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details > :not(summary) {
  margin-top: 0;
}
.faq details > :last-child {
  padding-bottom: 8px;
}
