:root {
  --paper: #fef4e4;
  --ink: #1c1c1e;
  --muted: #514e49;
  --body: #3a3734;
  --line: rgba(28, 28, 30, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(80% 42% at 80% 108%, rgba(255, 176, 160, 0.45), transparent 70%),
    radial-gradient(55% 36% at 12% 112%, rgba(255, 196, 140, 0.38), transparent 72%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: #ffd3b8;
  color: var(--ink);
}

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

button, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

a { color: inherit; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) 8px max(22px, env(safe-area-inset-left, 0px));
  background: rgba(254, 244, 228, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: -0.011em;
}

.nav-links a.pill {
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 600;
  margin-left: 4px;
}

.hero {
  display: block;
  padding: 0 22px 8px;
  text-align: center;
}

.hero-art {
  width: auto;
  max-width: min(420px, 84vw);
  max-height: min(360px, 34svh);
  margin-inline: auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}

.hero-copy {
  max-width: 40rem;
  margin-inline: auto;
}

.word {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.25rem, 14vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.tag {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.lede {
  margin: 14px auto 0;
  max-width: 34rem;
  color: var(--body);
  font-size: 1.0625rem;
  letter-spacing: -0.011em;
  line-height: 1.35;
}

.lede span {
  display: block;
}

form {
  margin: 18px auto 0;
  max-width: 32rem;
}

.row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffefb;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.011em;
  box-shadow: 0 1px 2px rgba(80, 50, 20, 0.04);
}

input[type="email"]::placeholder { color: #9a948c; }

input[type="email"]:focus {
  outline: none;
  border-color: rgba(28, 28, 30, 0.45);
}

button[type="submit"] {
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.011em;
  cursor: pointer;
  transition: transform 100ms ease-out, background 120ms ease-out;
}

button[type="submit"]:active { transform: scale(0.97); }

button[type="submit"]:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.intent {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.intent-label {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.intent-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.intent-pills button {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 30, 0.16);
  background: #fffefb;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 590;
  letter-spacing: -0.011em;
  box-shadow: 0 1px 2px rgba(80, 50, 20, 0.06);
  cursor: pointer;
  transition: transform 100ms ease-out, background 120ms ease-out, color 120ms ease-out;
}

.intent-pills button:active { transform: scale(0.97); }

.intent-pills button[aria-checked="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: none;
}

.news {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px auto 0;
  max-width: 26rem;
  min-height: 44px;
  padding: 2px 2px 0;
  text-align: left;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: -0.011em;
  cursor: pointer;
}

.news input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--ink);
}

.news small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 450;
  letter-spacing: -0.006em;
  line-height: 1.35;
}

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

.fine {
  margin: 12px 0 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.92rem;
}

form[data-state="done"] .row,
form[data-state="done"] .intent,
form[data-state="done"] .news,
form[data-state="done"] .hp {
  display: none;
}

form[data-state="done"] .fine {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

form[data-state="error"] .fine { color: #9a3b2f; }

.points {
  display: grid;
  gap: 36px;
  max-width: 920px;
  margin: 28px auto 0;
  padding: 48px 22px 72px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.points h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.points p {
  margin: 0;
  max-width: 34rem;
  color: var(--body);
  font-size: 1.02rem;
  letter-spacing: -0.011em;
}

footer {
  padding: 8px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: -0.006em;
}

footer p { margin: 0 0 6px; }

@media (min-width: 800px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 96px;
  }
}

@media (max-width: 560px) {
  .row { flex-direction: column; align-items: stretch; }
  button[type="submit"] { width: auto; align-self: stretch; }
  .hero-art { max-height: min(230px, 28svh); }
  .nav-links a:not(.pill) { display: none; }
  .lede { font-size: 1rem; }
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.pill):hover { color: var(--ink); }
  .nav-links a.pill:hover,
  button[type="submit"]:hover { background: #2c2c2e; }
  .intent-pills button:hover {
    background: #fff;
    border-color: rgba(28, 28, 30, 0.28);
  }
  .intent-pills button[aria-checked="true"]:hover { background: #2c2c2e; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .nav,
  input[type="email"],
  .intent-pills button {
    border: 1px solid var(--ink);
  }
  .lede,
  .tag,
  .points p,
  .fine,
  .news small,
  footer { color: var(--ink); }
}
