/*
 * t900.si: the Project T900 palette from tailwind.config.js, dark unless the
 * visitor's system asks for light. The fonts are ones the system already has,
 * as in the app: nothing is fetched from anywhere else. Nothing moves, so
 * there is nothing for reduced motion to switch off, except smooth scrolling
 * to a section, which only happens when the system does not ask for less.
 */
:root {
  color-scheme: dark;
  --canvas: #0a0a0a;
  --surface: #131210;
  --raised: #1c1a16;
  --tint: #17140b;
  --line: #2f2c25;
  --line-strong: #716a58;
  --text: #f5efe2;
  --text-soft: #bdb4a0;
  --gold: #d4af37;
  --gold-text: #e6cb74;
  --primary: #d4af37;
  --primary-hover: #e3c150;
  --on-primary: #0a0a0a;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.8);
  --glow: radial-gradient(60rem 30rem at 12% -10%, rgb(212 175 55 / 0.14), transparent 62%);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #f7f4ec;
    --surface: #fffdf8;
    --raised: #ffffff;
    --tint: #fbf6e6;
    --line: #e0d9c8;
    --line-strong: #8c8472;
    --text: #121110;
    --text-soft: #5c5648;
    --gold: #8f6a14;
    --gold-text: #735512;
    --primary: #121110;
    --primary-hover: #2a2620;
    --on-primary: #e6c35c;
    --shadow: 0 24px 60px -28px rgb(18 17 16 / 0.35);
    --glow: radial-gradient(60rem 30rem at 12% -10%, rgb(184 138 30 / 0.12), transparent 62%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 1rem/1.65 var(--sans);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
.brand-name {
  font-family: var(--display);
  font-weight: 500;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

code {
  padding: 0.05em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  font-family: var(--mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* A reading column: centred on its own page, left-aligned within a section. */
.wrap.narrow {
  max-width: 46rem;
}

.measure {
  max-width: 46rem;
}

/* Skip link: out of sight until it has the focus. */
.skip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

.brand-name {
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  color: var(--text-soft);
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--glow);
}

.hero-inner {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 4.5rem 4rem;
}

@media (min-width: 60rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 36rem;
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--gold);
}

.fineprint {
  max-width: 34rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-shot {
  margin: 0;
}

.hero-shot img {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-shot figcaption {
  margin-top: 0.75rem;
  color: var(--text-soft);
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.section-tint {
  background: var(--tint);
}

.section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.15;
}

.section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 650;
}

.section p {
  margin: 0 0 1rem;
}

.steps,
.features,
.checks,
.download-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li,
.features li {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-text);
  font-weight: 650;
}

.steps p,
.features p {
  margin: 0;
  color: var(--text-soft);
}

.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* A small beam, as in the mark, before each feature. */
.features h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.features h3::before {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 0.3rem;
  border-radius: 99px;
  background: var(--gold);
}

.privacy-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .privacy-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.checks {
  display: grid;
  gap: 0.9rem;
}

.checks li {
  position: relative;
  padding-left: 2rem;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0.2rem;
  width: 0.9rem;
  height: 0.5rem;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Downloads */
.version {
  margin: -1rem 0 1.75rem;
  color: var(--text-soft);
}

.downloads {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.download-group h3 {
  margin-bottom: 1rem;
}

.download-list {
  display: grid;
  gap: 0.75rem;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.download:hover {
  border-color: var(--gold);
}

.download-for {
  font-weight: 600;
}

.download-file {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.install {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
}

.install ul {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.install p {
  margin: 0;
}

.note {
  color: var(--text-soft);
}

/* The privacy policy, the license and the not-found page */
.document {
  padding-block: 3.5rem 4.5rem;
  border-bottom: 1px solid var(--line);
}

.prose h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.15;
}

.prose h1 + p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

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

.prose li {
  margin-bottom: 0.5rem;
}

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

.table-scroll {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

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

.prose th {
  background: var(--raised);
  font-weight: 650;
}

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

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

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-soft);
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 40rem) {
  .hero-inner {
    padding-block: 3rem;
  }

  .section {
    padding-block: 3.25rem;
  }
}
