/* Wireframe styles: black, white and grey only. Design comes later. */
:root {
  --ink: #111;
  --muted: #666;
  --line: #d4d4d4;
  --paper: #fff;
  --wash: #f4f4f2;
  --error: #b00020;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header { padding: 20px 0; }
.logo { font-weight: 700; letter-spacing: -0.02em; font-size: 1.25rem; text-decoration: none; }

.hero { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 56px; align-items: start; }
@media (min-width: 820px) { .hero { grid-template-columns: 1fr 420px; gap: 56px; padding-top: 48px; } }

h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
.lede { font-size: 1.15rem; margin: 0 0 24px; max-width: 34ch; }

.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps b { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: .9rem; }
.note { color: var(--muted); font-size: .95rem; max-width: 40ch; }

/* The form sits on a postcard shape with a dashed stamp box. */
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px 22px; box-shadow: 0 1px 0 var(--line); }
.stamp { position: absolute; top: 16px; right: 16px; width: 52px; height: 62px; border: 2px dashed var(--line); border-radius: 4px; display: grid; place-items: center; font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card h2 { margin: 0 0 4px; font-size: 1.3rem; padding-right: 64px; }
.card > p { margin: 0 0 20px; color: var(--muted); padding-right: 64px; }

.field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input[type=text], input[type=email] { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #bbb; border-radius: 8px; background: var(--paper); color: var(--ink); }
input:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field.invalid input { border-color: var(--error); }
.err { color: var(--error); font-size: .85rem; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }

details { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; margin: 6px 0 16px; }
summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
summary span { font-weight: 400; color: var(--muted); }
details[open] summary { margin-bottom: 12px; }
details .hint { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; margin: 4px 0 18px; }
.check label { font-weight: 400; font-size: .9rem; margin: 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }

button { width: 100%; font: inherit; font-weight: 600; padding: 13px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; cursor: pointer; }
button[disabled] { opacity: .6; cursor: wait; }
.form-error { color: var(--error); font-size: .9rem; margin: 10px 0 0; }
.form-error:empty { display: none; }

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

.done { text-align: center; padding: 24px 4px; }
.done h2 { padding: 0; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: .85rem; color: var(--muted); }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

.prose { max-width: 680px; padding-top: 16px; padding-bottom: 56px; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.15rem; margin-top: 28px; }
