/* ==========================================================================
   RottenTools
   One stylesheet. Edit it with whatever you edit /etc/nginx/nginx.conf with.
   Order: tokens, base, layout, components, then the page-specific bits.
   ========================================================================== */

@font-face {
  font-family: 'Monaspace Neon';
  src: url('fonts/monaspace-neon-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Monaspace Neon';
  src: url('fonts/monaspace-neon-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens. Change a colour here and it changes everywhere.
   Every text/background pair below clears WCAG AA; if you darken the inks,
   check the contrast again rather than assuming.
   -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Surfaces. Neutral graphite, a touch cooler than pure black. */
  --bg: #0f0f11;
  --bg-raised: #17171a;
  --bg-sunken: #0a0a0c;
  --bg-inset: #1e1e22;

  /* Text. Off-white, never pure #fff. */
  --ink: #ededef;
  --ink-dim: #a8a8b0;
  --ink-faint: #8f8f96;

  /* Accents. Amber carries the brand, terracotta is the second voice.
     Every pair below clears WCAG AA on every surface above; if you change
     one, re-check the contrast rather than assuming. */
  --accent: #f5a524;
  --accent-deep: #b9791a;
  --accent-hover: #ffbe52;
  --warm: #d97757;
  --warm-wash: rgba(217, 119, 87, 0.10);

  --line: #26262b;
  --line-strong: #35353c;

  --font-sans:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    'Noto Sans', Arial, sans-serif;
  --font-mono:
    'Monaspace Neon', ui-monospace, 'Cascadia Mono', Consolas,
    'DejaVu Sans Mono', monospace;

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.09rem + 0.3vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.28rem + 0.6vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.15vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.65rem + 2.3vw, 3.6rem);

  --space-1: 0.375rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
  --space-6: 5rem;

  --radius: 3px;
  --radius-lg: 5px;

  --measure: 68ch;
  --wrap: 1120px;
  --wrap-narrow: 820px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p,
ul,
ol,
figure,
table {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.08em 0.34em;
  color: #dcdce0;
}

figure {
  margin: 0;
}

figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.55;
  margin-top: 0.7rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--space-3), var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2 * var(--space-3), var(--wrap-narrow));
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

.prose > :last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: top 120ms ease;
}

.skip-link:focus {
  top: var(--space-2);
  color: var(--bg);
}

.section {
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
}

.section--flush {
  border-top: 0;
}

.section--sunken {
  background: var(--bg-sunken);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--space-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.kicker::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: var(--accent-deep);
  flex: none;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-dim);
  max-width: var(--measure);
}

.lede--spaced {
  margin-bottom: var(--space-4);
}

.aside-note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.aside-note--wide {
  margin-top: var(--space-3);
  max-width: 70ch;
}

/* Section rule: a hairline that fades out at both ends, so it separates
   without drawing a hard box across the page. */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--line-strong) 18%,
    var(--line-strong) 82%,
    transparent 100%
  );
}

.grain {
  position: relative;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Buttons and lists
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-inset);
  transition:
    background-color 110ms ease,
    border-color 110ms ease,
    color 110ms ease;
}

.btn:hover {
  background: #26262b;
  border-color: var(--accent-deep);
  color: var(--ink);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.btn-row--spaced {
  margin-top: var(--space-3);
}

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

/* A list whose markers are monospace ticks rather than bullets. */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.ticks > li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.55;
}

.ticks > li::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--accent-deep);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand__mark {
  color: var(--accent);
  display: inline-flex;
}

.brand__half {
  color: var(--ink-faint);
}

.brand:hover .brand__half {
  color: var(--accent);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent-deep);
}

.nav a[aria-current='page'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Compact navigation is a <details> disclosure, so it needs no JavaScript. */
.nav-disclosure {
  display: none;
  position: relative;
}

.nav-disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
}

.nav-disclosure summary::-webkit-details-marker {
  display: none;
}

.nav-disclosure[open] summary {
  color: var(--ink);
  border-color: var(--accent-deep);
}

.nav-disclosure__bars {
  width: 14px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.nav-disclosure__bars::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  border-top: 2px solid currentColor;
  transform: translateY(-1px);
}

.nav--stacked {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  min-width: 12.5rem;
}

.nav--stacked ul {
  flex-direction: column;
  gap: 0;
}

.nav--stacked a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-bottom: 0;
  border-radius: var(--radius);
}

.nav--stacked a:hover {
  background: var(--bg-inset);
}

@media (max-width: 51rem) {
  .nav--wide {
    display: none;
  }
  .nav-disclosure {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-sunken);
  padding-block: var(--space-5) var(--space-4);
  font-size: 0.94rem;
}

.site-footer__inner {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer__col:first-child {
    grid-column: 1 / -1;
    max-width: 34rem;
  }
}

@media (min-width: 64rem) {
  .site-footer__inner {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  }
  .site-footer__col:first-child {
    grid-column: auto;
  }
}

.site-footer__brand {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.site-footer__blurb {
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.6;
}

.site-footer__col h2 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  margin: 0 0 0.7rem;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer__col a {
  color: var(--ink-dim);
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__legal {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.site-footer__legal p {
  margin: 0 0 0.4rem;
}

.site-footer__aside {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */

.shot__frame {
  position: relative;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-sunken);
  line-height: 0;
}

.shot__frame img {
  width: 100%;
  height: auto;
  display: block;
}

.shot__hint {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.24rem 0.5rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 110ms ease;
}

.shot__frame:hover .shot__hint,
.shot__frame:focus-visible .shot__hint {
  opacity: 1;
}

.shot-band {
  padding-bottom: var(--space-5);
}

.shot-band--mid {
  padding-block: var(--space-5);
}

.shot-dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-sunken);
  color: var(--ink);
  padding: 0.5rem;
  max-width: min(96vw, 1300px);
  max-height: 94vh;
}

.shot-dialog::backdrop {
  background: rgba(6, 6, 8, 0.88);
}

.shot-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 4rem);
  width: auto;
  height: auto;
}

.shot-dialog__close {
  display: block;
  margin: 0 0 0.5rem auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
  background: var(--bg-inset);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.shot-dialog__close:hover {
  color: var(--ink);
  border-color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   Tool cards (homepage)
   -------------------------------------------------------------------------- */

.tool-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 64rem) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  /* An odd card out takes the whole row instead of sulking in the left column.
     Its screenshot is wide enough to deserve it. */
  .card--wide {
    grid-column: 1 / -1;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  /* One corner is gone. That is the whole visual joke, and it stops there. */
  border-top-right-radius: 14px;
  padding: var(--space-3);
}

.card__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card__name {
  margin: 0;
  font-size: var(--step-2);
}

.card__name a {
  text-decoration: none;
  color: var(--ink);
}

.card__name a:hover {
  color: var(--accent);
}

.card__tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--warm);
}

.card__desc {
  margin: 0;
  color: var(--ink-dim);
  font-size: var(--step-1);
  line-height: 1.5;
}

.card__sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}

.card__list {
  font-size: 0.95rem;
  color: var(--ink-dim);
}

.card__platforms {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

/* Pushes the download row to the bottom so two cards of unequal length still
   line their buttons up on a wide screen. */
.card .dl {
  margin-top: auto;
}

.card__source {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.card__source a {
  color: var(--ink-faint);
  text-decoration: none;
}

.card__source a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Download block
   -------------------------------------------------------------------------- */

.dl__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: var(--space-2) 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.dl__tag {
  color: var(--accent);
}

.dl--compact .dl__meta {
  font-size: 0.76rem;
}

.download-split {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 58rem) {
  .download-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: var(--space-5);
    align-items: start;
  }
}

.download-note {
  margin-top: var(--space-3);
  max-width: 52ch;
}

.license-panel h3 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  margin: 0 0 0.8rem;
}

.license-panel ul {
  font-size: 0.95rem;
}

.license-note {
  margin: var(--space-3) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Feature groups
   -------------------------------------------------------------------------- */

.groups {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 48rem) {
  .groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 78rem) {
  .groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.group {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.group__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.group__blurb {
  margin: 0 0 var(--space-2);
  color: var(--ink-faint);
  font-size: 0.9rem;
  line-height: 1.55;
}

.group__list {
  font-size: 0.94rem;
  color: var(--ink-dim);
}

.group__list code {
  font-size: 0.85em;
}

/* --------------------------------------------------------------------------
   Platform table. Four columns on a wide screen, stacked blocks on a phone.
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.platforms table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 34rem;
}

.platforms th,
.platforms td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.platforms thead th {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-sunken);
  font-weight: 400;
}

.platforms tbody tr:last-child td {
  border-bottom: 0;
}

.platforms tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.platforms .mono {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink-dim);
  white-space: nowrap;
}

.platforms .note {
  color: var(--ink-dim);
}

@media (min-width: 56rem) {
  .platforms .note {
    min-width: 24rem;
  }
}

/* Too narrow for four columns. Rather than 700px of sideways scrolling on a
   phone, each row becomes a small stacked block. The markup does not change,
   so it stays one table for anything reading the page. */
@media (max-width: 55.99rem) {
  .platforms {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
  }

  .platforms table {
    min-width: 0;
    display: block;
  }

  .platforms thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .platforms tbody {
    display: grid;
    gap: var(--space-3);
  }

  .platforms tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    padding: var(--space-3);
  }

  .platforms tbody th {
    display: block;
    border: 0;
    padding: 0 0 0.6rem;
    font-size: var(--step-1);
    color: var(--ink);
  }

  .platforms td {
    display: block;
    border: 0;
    padding: 0.5rem 0 0;
  }

  .platforms td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.2rem;
  }

  .platforms .mono {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 52rem) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.faq__item {
  border-left: 2px solid var(--line-strong);
  padding-left: var(--space-3);
}

.faq dt {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.faq dd {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Cross-links between tools
   -------------------------------------------------------------------------- */

.cross {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 52rem) {
  .cross {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  }
}

.cross__card {
  display: grid;
  gap: 0.35rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top-right-radius: 14px;
  padding: var(--space-3);
  text-decoration: none;
  transition:
    border-color 110ms ease,
    background-color 110ms ease;
}

.cross__card:hover {
  border-color: var(--accent-deep);
  background: var(--bg-inset);
}

.cross__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cross__name {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.cross__card:hover .cross__name {
  color: var(--accent);
}

.cross__desc {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Hero, homepage
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 2rem + 7vw, 6.5rem) clamp(2.5rem, 1.5rem + 6vw, 5rem);
  background:
    radial-gradient(90ch 40ch at 12% -10%, rgba(245, 165, 36, 0.06), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin: 0 0 var(--space-3);
  display: grid;
  gap: 0.4rem;
  max-width: 24ch;
}

.hero__brand {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero__claim {
  display: block;
  font-size: var(--step-4);
  line-height: 1.08;
}

.hero__lede {
  max-width: 58ch;
  font-size: var(--step-1);
  color: var(--ink-dim);
  margin: 0 0 var(--space-3);
}

.hero__facts {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.hero__facts li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 0.55rem;
  background: var(--bg-raised);
}

/* --------------------------------------------------------------------------
   Hero, tool pages
   -------------------------------------------------------------------------- */

.tool-hero {
  padding-block: clamp(2.25rem, 1.5rem + 5vw, 4.5rem) clamp(2rem, 1.4rem + 4vw, 3.5rem);
  background:
    radial-gradient(80ch 36ch at 8% -20%, rgba(245, 165, 36, 0.06), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.tool-hero__inner {
  position: relative;
  z-index: 1;
}

.tool-hero__eyebrow {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tool-hero__eyebrow a {
  color: var(--ink-faint);
  text-decoration: none;
}

.tool-hero__eyebrow a:hover {
  color: var(--accent);
}

.tool-hero__eyebrow span:last-child {
  color: var(--accent);
}

.tool-hero__title {
  margin: 0 0 0.5rem;
  max-width: 22ch;
  font-size: var(--step-4);
  line-height: 1.08;
}

.tool-hero__tagline {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--warm);
}

.tool-hero__lede {
  max-width: 58ch;
  font-size: var(--step-1);
  color: var(--ink-dim);
  margin: 0 0 var(--space-4);
}

/* --------------------------------------------------------------------------
   Homepage: differentiators and the privacy split
   -------------------------------------------------------------------------- */

.diff-grid {
  display: grid;
  gap: var(--space-4) var(--space-5);
}

@media (min-width: 52rem) {
  .diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.diff h3 {
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.diff p {
  margin: 0;
  color: var(--ink-dim);
  max-width: 58ch;
}

.split {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }
}

.local-panel {
  font-size: 0.94rem;
  color: var(--ink-dim);
}

.local-panel h3 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  margin: 0 0 0.7rem;
}

.local-panel h3 + ul {
  margin-bottom: var(--space-3);
}

.local-panel ul:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   RottenText: the three workflows
   -------------------------------------------------------------------------- */

.flows {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 62rem) {
  .flows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.flow h3 {
  margin-bottom: 0.45rem;
}

.flow p {
  color: var(--ink-dim);
  margin: 0 0 var(--space-2);
}

.flow__steps {
  border-left: 2px solid var(--accent-deep);
  padding-left: var(--space-2);
  font-size: 0.95rem;
}

.flow__steps em,
.pair__item em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
}

.editor-split {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 62rem) {
  .editor-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: var(--space-5);
    align-items: start;
  }
}

.editor-list {
  color: var(--ink-dim);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   RottenSSHrimp: paired sections and the warning panel
   -------------------------------------------------------------------------- */

.pair {
  display: grid;
  gap: var(--space-4) var(--space-5);
}

@media (min-width: 56rem) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pair__item h3 {
  margin-bottom: 0.45rem;
}

.pair__item p {
  color: var(--ink-dim);
  max-width: 56ch;
}

.pair__item p:last-child {
  margin-bottom: 0;
}

.creds {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 62rem) {
  .creds {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }
}

.warn {
  border-left: 2px solid var(--warm);
  background: var(--warm-wash);
}

.warn h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
  color: var(--ink);
}

.warn p {
  color: var(--ink-dim);
  font-size: 0.94rem;
  margin: 0 0 var(--space-2);
}

.warn p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about h2 {
  font-size: var(--step-2);
  margin-top: var(--space-5);
}

.about h2:first-of-type {
  margin-top: var(--space-4);
}

.about p {
  color: var(--ink-dim);
}

.about .lede {
  color: var(--ink);
}

.about__links {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.nf {
  padding-block: clamp(3rem, 2rem + 7vw, 6rem);
}

.nf__code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--warm);
  margin: 0 0 var(--space-2);
}

.nf__title {
  margin-bottom: var(--space-3);
  max-width: 18ch;
}

.nf__body {
  color: var(--ink-dim);
  font-size: var(--step-1);
  max-width: 54ch;
}

.nf__links {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
