:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --ink: #111315;
  --muted: #525866;
  --line: #e2e5ea;
  --accent: #c8322b;
  --accent-soft: #fdf2f2;
  --ok: #166534;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-heading: 1.375rem;
  --text-body: 1rem;
  --text-sm: 0.875rem;

  --radius: 8px;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 640px;
}

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

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--text-sm);
}

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

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

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

/* Hero */
.hero {
  padding: 72px 0 64px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 16ch;
}

.hero-sub {
  font-size: var(--text-body);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
}

.meta-note {
  font-size: var(--text-sm);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #272b30;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Proof specimen */
.specimen {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}

.specimen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.specimen-tabs {
  display: flex;
  gap: 6px;
}

.tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

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

.tab.is-active {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.specimen-receipt {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--muted);
}

.specimen-body {
  padding: 28px 24px;
  font-family: var(--font-serif);
  font-size: var(--text-heading);
  line-height: 1.55;
}

.specimen-body p {
  margin: 0;
}

.tell {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  padding: 0 3px;
  border-radius: 3px;
}

.specimen-foot {
  padding: 10px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--surface);
}

h2 {
  font-family: var(--font-serif);
  font-size: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h3 {
  font-size: var(--text-body);
  font-weight: 700;
  margin: 0 0 8px;
}

.section-intro {
  font-size: var(--text-body);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 36px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 5px;
  border-radius: 4px;
}

.section-alt code {
  background: var(--bg);
}

/* Passes */
.passes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pass-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.pass p {
  margin: 0;
  font-size: var(--text-body);
  color: var(--muted);
}

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.install-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.install-card p {
  margin: 0 0 14px;
  font-size: var(--text-body);
  color: var(--muted);
}

.install-card p:last-child {
  margin-bottom: 0;
}

pre {
  margin: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.45;
}

pre code {
  background: transparent;
  padding: 0;
}

/* Optional signup */
.signup-form {
  margin-top: 24px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-row input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-row input[type="email"]:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.form-status.is-ok {
  color: var(--ok);
  font-weight: 500;
}

.form-status.is-err {
  color: var(--accent);
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-msg {
  padding: 80px 24px;
}

@media (max-width: 760px) {
  .hero {
    padding: 48px 0 44px;
  }

  .passes,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .nav a:not(.nav-dl) {
    display: none;
  }
}
