:root {
  --paper: #f6f3ec;
  --ink: #1b1a17;
  --muted: #6b675e;
  --line: #d8d3c7;
  --sheet: #fff;
  --accent: #4f46e5;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}

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;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 24px/1 var(--sans);
  letter-spacing: -.01em;
}

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

.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, legend span { color: var(--muted); }

fieldset { margin: 14px 0 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 2px; font: 13px/1.2 ui-monospace, Consolas, monospace; }

.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  font: 16px/1.2 var(--sans);
  cursor: pointer;
}

.pick input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--accent); }

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 var(--sans);
}

button {
  margin-top: 18px;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #4338ca; }
button:disabled { opacity: .6; cursor: wait; }

:focus-visible { outline: 2px solid var(--accent); 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);
}


.drawing { justify-self: center; }

.drawing video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(27, 26, 23, .45);
}

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

.products img { display: block; width: 100%; height: auto; margin-bottom: 16px; background: var(--sheet); border: 1px solid var(--line); }
.products h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; font-weight: 650; }
.products p { margin: 0; color: var(--muted); }
.products .tag { margin-bottom: 12px; font: 13px/1.2 ui-monospace, Consolas, monospace; }

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; }
  .products { grid-template-columns: minmax(0, 1fr); }
}
