:root {
  --paper: #FBFAF8;
  --card: #FFFFFF;
  --ink: #1C1917;
  --muted: #78716C;
  --line: #E7E2DC;
  --coral: #E8604C;
}

html {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191614;
    --card: #211E1B;
    --ink: #EDE9E4;
    --muted: #A8A29E;
    --line: #3A3532;
    --coral: #F07A67;
  }

  html {
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  margin: 0;
  padding: 48px 20px 96px;
}

main { max-width: 680px; margin: 0 auto; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
  text-decoration: none;
}

.mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}

h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 8px;
}

p, li { color: var(--ink); }

.lede, .updated, footer {
  color: var(--muted);
}

.lede { max-width: 60ch; margin: 0 0 24px; }
.updated { font-size: 13px; margin: 0 0 32px; }

ul { padding-left: 1.2em; }
li { margin: 0.4em 0; }
li strong { font-weight: 600; }

a { color: var(--coral); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.links a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.links a:hover { border-bottom-color: var(--coral); }

.cta {
  display: inline-block;
  margin: 8px 0 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cta:hover { filter: brightness(0.95); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px 32px;
  margin: 24px 0 0;
}

.card h2 { margin-top: 0; }

footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.banner {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 20px;
}

.banner.ok {
  background: #E8F5E9;
  color: #14532D;
}

.banner.err {
  background: #FEECEC;
  color: #7F1D1D;
}

@media (prefers-color-scheme: dark) {
  .banner.ok {
    background: #14532D;
    color: #DCFCE7;
  }
  .banner.err {
    background: #7F1D1D;
    color: #FEE2E2;
  }
}

form { position: relative; }

/* iOS Safari painted the off-screen Company honeypot; clip instead. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 20px 0 0;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--paper) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

button[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  margin-top: 24px;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background-color: var(--coral);
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
}

@media (max-width: 640px) {
  button[type="submit"] {
    width: 100%;
  }
}
