:root {
  --bg: #F9F8F6;
  --paper: #FFFFFF;
  --ink: #1A1815;
  --ink-soft: #4A4540;
  --ink-light: rgba(26, 24, 21, 0.12);
  --accent: #8B2E2A;
  --muted: #6B6358;
  --border: #E2DED8;
  --success: #15803D;
  --radius: 4px;
  --edge: clamp(20px, 6vw, 160px);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

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

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Masthead ─── */
.masthead {
  background: var(--paper);
  border-bottom: 3px double var(--ink-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark:hover { color: var(--accent); }

.masthead-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ─── Page ─── */
.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--edge) 96px;
}

/* ─── Card ─── */
.start-card {
  background: var(--paper);
  border: 1px solid var(--ink-light);
  padding: 48px;
  box-shadow: 0 1px 0 var(--ink-light), 0 20px 60px rgba(26, 24, 21, 0.04);
}

@media (max-width: 600px) {
  .start-card { padding: 32px 24px; }
}

.card-kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.1;
}

.card-desc {
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 56ch;
}

.card-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}

/* ─── Form ─── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

.field-rule {
  border: none;
  border-top: 1px solid var(--ink-light);
  margin: 8px 0 28px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.req {
  color: var(--accent);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--ink-light);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  background: var(--paper);
}

input::placeholder,
textarea::placeholder { color: var(--muted); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A09B95' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

/* ─── Submit ─── */
.btn-submit {
  margin-top: 8px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 14px 32px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.16s ease-out;
  width: 100%;
  border-radius: var(--radius);
}

.btn-submit:hover:not(:disabled) { background: var(--accent); }
.btn-submit:active:not(:disabled) { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Error ─── */
.form-error {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  background: rgba(139, 46, 42, 0.04);
}

.hidden { display: none !important; }

/* ─── Success ─── */
.success-card {
  text-align: center;
  padding: 72px 48px;
}

.success-mark {
  font-size: 48px;
  color: var(--success);
  font-family: var(--serif);
  line-height: 1;
  margin-bottom: 20px;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover { text-decoration: none; }
