@font-face {
  font-family: Melbourne;
  src: url("/assets/melbourne-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Melbourne;
  src: url("/assets/melbourne-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Melbourne, system-ui, sans-serif;
  color: #292929;
  background: #fffaf0;
  --yellow: #ffb800;
  --ink: #292929;
  --cream: #fffaf0;
  --muted: #706b61;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

main { min-height: 100svh; }
.story { display: none; }
.form-shell { min-height: 100svh; display: grid; grid-template-rows: auto 4px 1fr auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.topbar img { width: 112px; height: auto; }
.topbar a { color: var(--ink); font-size: .9rem; font-weight: 700; text-underline-offset: 3px; }
.progress { background: #eee4d0; overflow: hidden; }
.progress span { display: block; width: 25%; height: 100%; background: var(--yellow); transition: width .35s ease; }

form { min-height: 0; }
.step, .success { min-height: 100%; padding: clamp(2rem, 9vh, 6rem) 1.25rem 2rem; }
.step__inner { width: min(100%, 640px); margin: 0 auto; }
.step { animation: enter .35s ease both; }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 1rem; color: #8a6400; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
label, .success h2 { display: block; margin: 0; font-size: clamp(2rem, 8vw, 4.5rem); font-weight: 700; line-height: .98; letter-spacing: -.035em; }
.hint, .success p { margin: 1rem 0 1.5rem; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }

input:not(.honeypot), select, textarea {
  display: block;
  width: 100%;
  margin-top: 2rem;
  border: 0;
  border-bottom: 3px solid #bcb4a5;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  padding: .65rem .1rem;
  transition: border-color .2s ease;
}
textarea { min-height: 8rem; resize: vertical; font-size: clamp(1.3rem, 5vw, 2rem); }
input:focus, select:focus, textarea:focus { border-color: var(--yellow); }
input::placeholder, textarea::placeholder { color: #aaa296; }
.honeypot { position: fixed; left: -9999px; opacity: 0; }

button[type="button"]:not(.back), button[type="submit"], .call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 56px;
  margin-top: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  padding: .8rem 1.25rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover, .call-link:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
button:focus-visible, .call-link:focus-visible { outline: 3px solid #2a6ee8; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .65; }
.back { min-height: 44px; margin: 1.5rem 0 0 .9rem; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.error, .form-error { min-height: 1.4em; margin: .6rem 0 0; color: var(--danger); font-weight: 700; }
.consent { max-width: 32rem; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.tick { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 1.5rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-size: 2rem; font-weight: 700; }
footer { padding: 1rem 1.25rem 1.25rem; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-align: center; text-transform: uppercase; }

@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (min-width: 900px) {
  main { display: grid; grid-template-columns: minmax(320px, 42%) 1fr; }
  .story { position: relative; display: block; min-height: 100svh; overflow: hidden; background: #2f2f2f; }
  .story__photo { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
  .story__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(25,25,25,.88) 100%); }
  .story__copy { position: absolute; right: 3rem; bottom: 3rem; left: 3rem; color: white; }
  .story__copy span { display: inline-block; margin-bottom: 1rem; background: var(--yellow); color: var(--ink); font-weight: 700; letter-spacing: .08em; padding: .55rem .7rem; text-transform: uppercase; }
  .story__copy h1 { max-width: 8ch; margin: 0; font-size: clamp(3.4rem, 5vw, 6rem); line-height: .9; letter-spacing: -.04em; }
  .story__copy p { margin: 1rem 0 0; font-size: 1.2rem; }
  .step, .success { display: grid; align-items: center; padding: 3rem; }
  .topbar { padding: 1.5rem 2rem; }
  .topbar img { width: 132px; }
}
