:root {
  --paper: oklch(0.972 0.014 83);
  --paper-2: oklch(0.945 0.016 82);
  --ink: oklch(0.22 0.018 62);
  --ink-soft: oklch(0.44 0.02 62);
  --line: oklch(0.86 0.02 78);
  --stamp: oklch(0.56 0.19 33);
  --stamp-deep: oklch(0.47 0.17 33);
  --stamp-on-dark: oklch(0.74 0.12 35);
  --paper-on-ink: oklch(0.965 0.012 83);
  --ink-muted-on-dark: oklch(0.82 0.02 80);
  --ink-soft-on-dark: oklch(0.88 0.02 80);
  --footer-muted: oklch(0.8 0.02 80);
  --footer-disclaimer: oklch(0.58 0.015 80);
  --placeholder: oklch(0.52 0.02 70);

  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.5rem + 1vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.9rem + 2.4vw, 4rem);
  --step-4: clamp(3.2rem, 2.3rem + 4.6vw, 6.6rem);

  --measure: 62ch;
  --edge: clamp(1.25rem, 5vw, 5.5rem);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--paper-2), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.36em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--paper-on-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2.5px solid var(--stamp);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  padding: 0.72rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-on-ink);
  box-shadow: 4px 4px 0 0 var(--stamp);
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 0 var(--stamp);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--stamp);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper-on-ink);
}

.btn-lg {
  font-size: var(--step-0);
  padding: 0.95rem 1.6rem;
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--edge);
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}

.wordmark-redact,
.footer-redact {
  position: relative;
  color: var(--paper-on-ink);
  padding: 0 0.16em;
  margin-left: 0.08em;
}

.wordmark-redact::after,
.footer-redact::after {
  content: "";
  position: absolute;
  inset: 0.06em -0.02em 0.02em;
  background: var(--ink);
  border-radius: 1px;
  z-index: -1;
  transform: rotate(-1.2deg);
}

.masthead-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: var(--step--1);
  font-weight: 600;
}

.masthead-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.masthead-nav a:hover {
  border-color: var(--stamp);
}

.masthead-cta {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-icon {
  display: block;
}

.masthead-nav-panel {
  display: none;
}

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

  .masthead--legal .masthead-nav {
    display: flex;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .masthead-cta {
    margin-left: 0;
  }

  .masthead-nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
    z-index: 9;
  }

  .masthead-nav-panel.is-open {
    display: flex;
  }

  .masthead-nav-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem var(--edge);
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
    border-top: 1.5px solid var(--line);
  }

  .masthead-nav-panel a:first-child {
    border-top: 0;
  }
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) var(--edge) clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1.5px solid var(--ink);
  overflow-x: clip;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
}

.redact {
  position: relative;
  color: var(--paper-on-ink);
  padding: 0 0.12em;
  margin-right: 0.06em;
  white-space: nowrap;
}

.redact::after {
  content: "";
  position: absolute;
  inset: 0.08em -0.04em 0.06em;
  background: var(--ink);
  border-radius: 2px;
  transform: rotate(-1.5deg) scaleX(1);
  transform-origin: left center;
  z-index: -1;
}

.hero .lede {
  max-width: 46ch;
  margin-top: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.3rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

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

.hero-mock {
  margin: 0;
  transform: translateX(clamp(-6rem, calc(-6rem * (100vw - 900px) / 300), 0rem));
}

.mock-window {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 10px 12px 0 -1px var(--ink);
  overflow: hidden;
  transform: rotate(1.4deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-2);
}

.mock-g {
  width: 1rem;
  height: 1rem;
  flex: none;
  display: block;
}

.mock-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.mock-overview {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1.5px solid transparent;
  border-radius: 4px;
}

.mock-overview-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.mock-overview .mock-line {
  opacity: 0.55;
}

.mock-line {
  display: block;
  height: 0.5rem;
  border-radius: 2px;
  background: oklch(0.915 0.017 81);
  border: 1px solid transparent;
}

.mock-line--short {
  width: 65%;
}

.mock-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stamp);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border: 2px solid var(--stamp);
  border-radius: 3px;
  padding: 0.18rem 0.6rem;
}

.mock-result {
  display: grid;
  gap: 0.4rem;
}

.mock-result--hidden {
  position: relative;
  padding: 0.75rem;
  border: 1.5px solid transparent;
  border-radius: 4px;
}

.mock-result--hidden .mock-line {
  opacity: 0.55;
}

.mock-result-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.2;
}

.mock-result-cite {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stamp-deep);
}

.hero-mock figcaption {
  margin-top: 1.6rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-style: italic;
  text-align: right;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-mock {
    max-width: 30rem;
    transform: none;
  }
  .hero-mock figcaption {
    text-align: left;
  }
}

/* ---------- section scaffolding ---------- */

section {
  padding: clamp(3rem, 7vw, 6rem) var(--edge);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head p {
  margin-top: 1rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- what it hides ---------- */

.hides {
  border-bottom: 1.5px solid var(--ink);
}

.hide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.hide-block {
  position: relative;
  padding: 1.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.hide-block--optional {
  background: var(--paper-2);
}

.hide-index {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--stamp-deep);
}

.hide-block h3 {
  margin-top: 0.5rem;
  font-size: var(--step-2);
  font-weight: 700;
}

.hide-block p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.tag-optional {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 0.62em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stamp-deep);
  border: 1.5px solid var(--stamp);
  border-radius: 2px;
  padding: 0.1em 0.45em;
  margin-left: 0.5em;
}

.strike-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.strike-list li {
  position: relative;
  color: var(--ink-soft);
  padding: 0.1rem 0.1rem;
}

.strike-list li::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 50%;
  height: 2px;
  background: var(--stamp);
  transform: rotate(-2deg);
}

@media (max-width: 960px) {
  .hide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hide-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- how it works ---------- */

.modes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  counter-reset: mode;
}

.mode {
  padding: 1.7rem;
  border-right: 1.5px solid var(--ink);
  counter-increment: mode;
}

.mode:last-child {
  border-right: 0;
}

.mode::before {
  content: counter(mode, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--step-0);
  color: var(--stamp-deep);
}

.mode-name {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

.mode-desc {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .modes {
    grid-template-columns: 1fr;
  }
  .mode {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }
  .mode:last-child {
    border-bottom: 0;
  }
}

/* ---------- submit ---------- */

.submit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  background: var(--ink);
  color: var(--paper-on-ink);
}

.submit h2 {
  font-size: var(--step-3);
}

.submit-copy p {
  margin-top: 1rem;
  color: var(--ink-muted-on-dark);
  max-width: 46ch;
  line-height: 1.5;
}

.submit-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.submit-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft-on-dark);
}

.submit-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--stamp-on-dark);
  font-weight: 700;
}

.submit-form {
  display: grid;
  gap: 1.1rem;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 4px;
  box-shadow: 8px 8px 0 0 var(--stamp);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--step--1);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 0.65rem 0.75rem;
  width: 100%;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%232e2a24' stroke-width='1.75' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
}

.field textarea {
  font-family: var(--font-body);
  line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.submit-status {
  min-height: 1.3em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--stamp-deep);
}

@media (max-width: 820px) {
  .submit {
    grid-template-columns: 1fr;
  }
}

/* ---------- install ---------- */

.install {
  text-align: center;
  border-top: 1.5px solid var(--ink);
}

.install h2 {
  font-size: var(--step-3);
}

.install-lede {
  max-width: 44ch;
  margin: 1.1rem auto 0;
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}

.install-steps {
  counter-reset: step;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 34rem;
  display: grid;
  gap: 0.8rem;
  text-align: left;
}

.install-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--stamp-deep);
}

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

/* ---------- legal pages ---------- */

.legal-page {
  flex: 1;
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--edge) clamp(2rem, 4vw, 3rem);
}

.legal-content {
  max-width: var(--measure);
  margin: 0 auto;
}

.legal-head {
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--ink);
}

.legal-head h1 {
  font-size: var(--step-2);
}

.legal-updated {
  margin-top: 0.25rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}

.legal-content > h2 {
  font-size: var(--step-0);
  line-height: 1.2;
  margin: 0.85rem 0 0.2rem;
}

.legal-content > p {
  color: var(--ink-soft);
  line-height: 1.45;
}

.legal-content > p strong {
  color: var(--ink);
  font-weight: 600;
}

body:has(.legal-page) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 2.2rem var(--edge);
  background: var(--ink);
  color: var(--paper-on-ink);
}

.footer-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.footer-redact {
  color: var(--paper-on-ink);
  margin-left: 0;
  padding: 0;
}

.footer-redact::after {
  content: none;
}

.footer-note {
  color: var(--footer-muted);
  font-size: var(--step--1);
}

.footer-disclaimer {
  flex-basis: 100%;
  color: var(--footer-disclaimer);
  font-size: var(--step--2);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: var(--step--1);
  font-weight: 600;
}

.footer-nav a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.footer-nav a:hover {
  border-color: var(--stamp);
}

.footer-coffee {
  border-bottom: 0;
  line-height: 0;
  padding-bottom: 0;
}

.footer-coffee img {
  display: block;
  width: auto;
  height: 1.6rem;
}

.footer-coffee:hover {
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .masthead-nav a,
  .footer-nav a,
  .nav-toggle {
    transition: none;
  }
}
