:root {
  color-scheme: dark;
  --bg: #1c1916;
  --sheet: #26211c;
  --ink: #f4efe6;
  --muted: #c4b8a8;
  --accent: #e8a45a;
  --accent-ink: #1c1916;
  --danger: #f0c4b0;
  --danger-bg: #4a2c24;
  --line: #3d362e;
  --focus: #f0d08a;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 2.5rem;
}

.sheet, .poster {
  width: min(36rem, 100%);
}

h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.75rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--accent);
}

.lead, .foot {
  color: var(--muted);
  line-height: 1.45;
  font-size: 1.05rem;
}

.foot {
  font-size: 0.95rem;
  margin-top: 1.75rem;
}

.banner {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  margin: 1.25rem 0 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

label {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

select, textarea, button {
  font: inherit;
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
}

select, textarea {
  padding: 0.85rem 0.9rem;
  font-size: 1.05rem;
}

select {
  font-family: ui-sans-serif, system-ui, sans-serif;
  min-height: 3.1rem;
}

textarea {
  resize: vertical;
  min-height: 10rem;
  line-height: 1.4;
}

button {
  margin-top: 1rem;
  min-height: 3.25rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 650;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

a.again {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.poster {
  text-align: center;
  padding-top: 1rem;
}

.qr {
  display: block;
  width: min(20rem, 80vw);
  height: auto;
  margin: 1.5rem auto;
  background: #fff;
  padding: 0.75rem;
  border-radius: 0.4rem;
}

.url {
  font-family: ui-sans-serif, system-ui, sans-serif;
  word-break: break-all;
  font-size: 1.05rem;
}

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --ink: #1c1916;
    --muted: #3d362e;
    --accent: #8a4b12;
  }

  body {
    padding: 0;
  }

  .poster {
    width: 100%;
  }

  .qr {
    width: 14cm;
  }
}
