@font-face {
  font-family: "DM Serif Display";
  src: url("/fonts/dm-serif-display/dm-serif-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #140c0e;
  --panel: #1c1114;
  --field: #120a0c;
  --line: #3b2a2f;
  --field-line: #8b777b;
  --text: #f0e9db;
  --muted: #bdb19c;
  --khaki: #cbb78b;
  --khaki-hover: #dccba4;
  --oxblood: #630f2b;
  --error: #ffb4a8;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image: radial-gradient(60rem 34rem at 85% -8%, rgba(99, 15, 43, 0.6), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }

a { color: var(--khaki); text-underline-offset: 0.2em; }
a:hover { color: var(--khaki-hover); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--khaki);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 2px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.top { padding-block: 1.5rem 0; }
.brand { display: inline-block; line-height: 0; }
.brand img { width: clamp(9rem, 30vw, 13rem); }

.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 4rem; }
}

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

h1, h2, h3 { font-weight: 400; margin: 0; }
h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede { margin: 1.5rem 0 0; max-width: 34rem; font-size: 1.1875rem; color: var(--muted); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(203, 183, 139, 0.4), 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.card h2 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 1.25rem; }

.field { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.375rem; font-weight: 500; font-size: 0.9375rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type="email"], input[type="text"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--field-line);
  border-radius: 2px;
  font: inherit;
  font-size: 1rem; /* 16px minimum keeps iOS from zooming the page on focus */
}
input::placeholder { color: var(--muted); opacity: 1; }

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

button[type="submit"] {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--khaki);
  color: var(--ink);
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--khaki-hover); }
button[type="submit"]:disabled { opacity: 0.65; cursor: progress; }

.status { min-height: 1.5rem; margin: 0.75rem 0 0; font-weight: 500; }
.status[data-state="error"] { color: var(--error); }
.status[data-state="pending"] { color: var(--muted); }
.fine { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); }

.done:focus { outline: none; }
.done h2 { margin-bottom: 0.5rem; }
.done p { margin: 0; color: var(--muted); }

.features, .privacy { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 1.5rem; }
.feature-grid { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.feature-grid h3 { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 0.5rem; }
.feature-grid p { margin: 0; color: var(--muted); }
.built-with { margin: 2.25rem 0 0; max-width: 40rem; color: var(--muted); }

.prose { max-width: 46rem; }
.privacy h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.25rem; }
.privacy p { margin: 0; color: var(--muted); }

.foot { padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.foot p { margin: 0; }

.lost { padding-block: 6rem; text-align: center; }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); }
.lost p { color: var(--muted); }
