@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #fff;
  --ink: #1a1714;
  --muted: #6e675e;
  --hairline: #e8e1d6;
  --control: #8c8478; /* hairline tone darkened to 3.5:1 for form control edges */
  --primary: #111827;
  --primary-hover: #252e3f;
  --error: #a3301c;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* One column edge for header, main and footer on every page. */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --page: 70rem;
  --inset: max(var(--gutter), calc((100% - var(--page)) / 2));
  /* The first line sits at the same height on every page, and content only grows downward. */
  --page-top: clamp(1.5rem, 15vh - 2rem, 12rem);
  --consent-indent: 1.875rem; /* checkbox width plus its gap */
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul, dl, dd, address { margin: 0; }
address { font-style: normal; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--control);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  border-radius: 2px;
}
a:hover { text-decoration-color: currentColor; }

/* One focus ring everywhere. Links whose box is already a 44px target draw it inside that box. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.wordmark:focus-visible,
.site-footer nav a:focus-visible,
.status-link a:focus-visible,
.legal-back a:focus-visible,
.link-button:focus-visible {
  outline-offset: -2px;
}

/* Header */
.site-header {
  padding: 0.5rem var(--inset);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: -0.011em;
  text-decoration: none;
}
.mark { flex: none; margin-left: -2px; } /* the drawn shape starts 2px into its box; align it to the column edge */
.mark-line { stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.mark-eye {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 320ms ease-in-out 1.2s 1; /* once per load: nothing keeps moving beside the form */
}
@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.12); }
}

/* Landing */
.landing {
  padding: var(--page-top) var(--inset) 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(0, 22rem);
  justify-content: space-between;
  align-content: start;
  align-items: first baseline;
  gap: 2.5rem 4rem;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* Form */
.signup { margin-top: 1.75rem; }

/* The email error shares the label's row, so showing it moves nothing. */
.field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: baseline;
}
.field > label {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.field-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 0.5rem;
}
.field > .field-error {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 0.375rem;
  text-align: right;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 0.875rem;
  border: 1px solid var(--control);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* at least 16px, or iOS zooms in on focus */
  transition: border-color 120ms ease;
}
input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
input[type="email"]:hover { border-color: var(--ink); }
input[type="email"][aria-invalid="true"] { border-color: var(--error); }

.button {
  flex: none;
  min-width: 10rem; /* holds its width when the label changes to "Sending…" */
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}
.button:hover { background: var(--primary-hover); }
.button:active { transform: scale(0.96); }
.button[aria-disabled="true"] { background: var(--muted); cursor: progress; transform: none; }

.consent { margin-top: 0.625rem; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding-block: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: pretty;
  cursor: pointer;
}
/* Drawn by hand: a native checkbox ignores border-radius, which leaves its focus ring square,
   and its edge colour varies by browser. */
input[type="checkbox"] {
  flex: none;
  display: grid;
  place-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.0625rem 0 0;
  appearance: none;
  border: 1px solid var(--control);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
input[type="checkbox"]::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: #fff;
  clip-path: polygon(14% 50%, 0 64%, 38% 100%, 100% 22%, 85% 9%, 37% 72%);
  visibility: hidden;
}
input[type="checkbox"]:hover { border-color: var(--ink); }
input[type="checkbox"]:checked { border-color: var(--primary); background: var(--primary); }
input[type="checkbox"]:checked::before { visibility: visible; }
input[type="checkbox"][aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.hint {
  margin-top: 0.25rem;
  padding-left: var(--consent-indent);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.field-error, .form-error {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
  text-wrap: pretty;
}
.consent > .field-error {
  margin-bottom: 0.25rem;
  padding-left: var(--consent-indent);
}
.form-error {
  margin-top: 0.875rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--error);
  border-radius: 6px;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success */
.success {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.success h2 {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
/* A script-only focus target that announces the result; it can't be tabbed to or activated. */
.success h2:focus-visible { outline: none; }
.success p { margin-top: 0.5rem; max-width: 36rem; color: var(--muted); text-wrap: pretty; }
.link-button {
  margin-top: 0.25rem;
  margin-inline: -0.5rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--control);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-button:hover { text-decoration-color: currentColor; }

/* Example workflows */
.examples h2 {
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.examples ul { list-style: none; padding: 0; }
.examples li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: balance;
}
.examples li span {
  font-size: 0.8125rem;
  line-height: 1.66;
  color: var(--muted);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 2rem;
  padding: 0.25rem var(--inset);
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.site-footer p { padding-block: 0.25rem; text-wrap: pretty; }
.site-footer nav { flex: none; display: flex; gap: 0.25rem; margin-inline: -0.5rem; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  border-radius: 6px;
}

/* Status pages and legal pages share the landing's column edge and top line. */
.status-page {
  padding: var(--page-top) var(--inset) 3rem;
}
.status-page > * { max-width: 34rem; }
.status-page h1 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem); }
.status-body { margin-top: 1rem; color: var(--muted); text-wrap: pretty; }
.status-action { margin-top: 1.75rem; }
.status-link { margin-top: 1.25rem; }
.status-link a, .legal-back a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
  border-radius: 6px;
}

.prose {
  padding: var(--page-top) var(--inset) 3rem;
}
.prose > * { max-width: 40rem; }
.prose h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.prose h2 {
  margin-top: 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.011em;
}
.prose h2 + * { margin-top: 0.5rem; }
.prose p + p { margin-top: 0.75rem; }
.prose ul { padding-left: 1.125rem; }
.prose li + li { margin-top: 0.375rem; }
.prose dt { margin-top: 1rem; font-weight: 500; }
.prose dt:first-child { margin-top: 0; }
.prose dd { margin-top: 0.125rem; color: var(--muted); }
.prose h1 + p { margin-top: 1.25rem; }
.prose p + ul { margin-top: 0.75rem; }
.prose .legal-back { margin-top: 2rem; }

/* Touch: grow inline links to a 44px target without moving the text. Inline padding follows wrapped lines. */
@media (any-pointer: coarse) {
  .hint a { padding-block: 0.875rem; }
  .prose p:not(.legal-back) > a, .prose address a { padding-block: 0.75rem; }
  .contact-lines { line-height: 2.75rem; }
}

/* Responsive */
@media (max-width: 56rem) {
  :root { --page-top: clamp(1.5rem, 6vh, 3.5rem); }
  .landing {
    grid-template-columns: minmax(0, 42rem);
    justify-content: start;
    align-items: start;
  }
}

@media (max-width: 30rem) {
  :root { --page-top: 0.75rem; }
  .site-header { padding-block: 0.25rem; }
  .landing { padding-bottom: 0.75rem; row-gap: 1.25rem; }
  .lede { margin-top: 0.625rem; font-size: 1rem; }
  .signup, .success { margin-top: 1rem; }
  .field-row { flex-direction: column; }
  input[type="email"] { flex: none; width: 100%; }
  .button { width: 100%; }
  .consent { margin-top: 0.375rem; }
  .examples h2 { padding-bottom: 0.5rem; }
  .examples li { grid-template-columns: 3.75rem 1fr; gap: 0.5rem; padding-block: 0.5rem; font-size: 0.875rem; }
  .examples li:nth-child(even) { display: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer p { padding-block: 0.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mark-eye { animation: none; }
  input[type="email"], input[type="checkbox"], .button { transition: none; }
  .button:active { transform: none; }
}

/* Windows high contrast would otherwise flatten the hand-drawn tick. */
@media (forced-colors: active) {
  input[type="checkbox"] { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  input[type="checkbox"]:checked { border-color: Highlight; background: Highlight; }
  input[type="checkbox"]:checked::before { background: HighlightText; }
}
