/* Jenny's Fab Fifty — warm, jolly, mobile-first. */

:root {
  --bg: #f5ebe0;
  --bg-soft: #faf3e9;
  --card: #ffffff;
  --ink: #3d2f23;
  --ink-soft: #6b5a48;
  --accent: #b08968;
  --accent-deep: #7f5539;
  --highlight: #e8c4a0;
  --rule: rgba(127, 85, 57, 0.18);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(60, 40, 20, 0.10);
  --tap: 52px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at top left, #fff4e6 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, #fce8d1 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Hero */
.hero { text-align: center; margin-bottom: 28px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 8px;
}
.hero h1 {
  font-family: "Georgia", "Playfair Display", serif;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}
.hero h1::after {
  content: " 50";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.65em;
  font-style: normal;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--accent-deep);
  color: var(--bg);
  transform: translateY(-6px);
}
.hero .lede {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.hero .muted { color: var(--ink-soft); }
.hero strong { color: var(--accent-deep); }

/* Form card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}

.field {
  display: block;
  margin-bottom: 20px;
}
.label {
  display: block;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-left: 4px;
}
.hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  resize: vertical;
}
textarea { min-height: 140px; line-height: 1.5; }
input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

input[type="file"] {
  width: 100%;
  padding: 10px 0;
  font: inherit;
  color: var(--ink-soft);
}

/* Privacy radios */
fieldset.privacy {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
fieldset.privacy .label { padding: 0; margin-bottom: 12px; }
.radio {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--bg-soft);
  transition: background 160ms;
}
.radio:hover { background: #fff; }
.radio:has(input:checked) {
  background: #fff;
  border-color: var(--accent);
}
.radio input { margin-top: 4px; accent-color: var(--accent-deep); }
.radio span { flex: 1; }
.radio .hint { margin-top: 4px; font-style: normal; }

/* Submit button */
.primary {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent-deep);
  color: var(--bg);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 120ms, opacity 120ms;
}
.primary:hover { transform: translateY(-1px); }
.primary:active { transform: translateY(1px); }
.primary[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.ghost {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-height: var(--tap);
  padding: 0 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Status / thanks */
.status {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.status.error { color: #a13a2c; }
.status.uploading { color: var(--ink-soft); }

.thanks { text-align: center; margin-top: 20px; }
.thanks h2 {
  font-style: italic;
  color: var(--accent-deep);
  font-size: 1.8rem;
  margin: 0 0 12px;
}
.thanks .muted { color: var(--ink-soft); }

.hidden { display: none !important; }

footer {
  text-align: center;
  padding: 32px 12px 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-style: italic;
}
