:root {
  --paper: #f6f3ec;
  --ink: #1b1a17;
  --muted: #6b675e;
  --line: #d8d3c7;
  --sheet: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 Georgia, 'Times New Roman', serif;
}

main, footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  min-height: 92vh;
  padding: 48px 0;
}

.name {
  margin: 0 0 40px;
  font: 600 15px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .04em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.01em;
}

.sub { margin: 0 0 32px; color: var(--muted); }

form { max-width: 420px; }

label {
  display: block;
  margin: 14px 0 6px;
  font: 13px/1.2 ui-monospace, Consolas, monospace;
}

label span { color: var(--muted); }

input, select, button {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--sheet);
  color: var(--ink);
  font: 16px/1 Georgia, serif;
}

button {
  margin-top: 18px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

button:hover { background: #38352e; }
button:disabled { opacity: .6; cursor: wait; }

:focus-visible { outline: 2px solid #b5482a; outline-offset: 2px; }

.trap { position: absolute; left: -9999px; }

#status { min-height: 1.5em; margin: 12px 0 0; }
.fine { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

figure { margin: 0; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--sheet);
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 10px;
  font: 13px/1.3 ui-monospace, Consolas, monospace;
  color: var(--muted);
}

.drawing img { box-shadow: 0 18px 40px -24px rgba(27, 26, 23, .45); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 0 72px;
}

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

footer p { margin: 0; }
footer a { color: inherit; }

@media (max-width: 800px) {
  main, footer { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; padding: 28px 0; }
  .name { margin-bottom: 24px; }
  form { max-width: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
