@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3efe6;
  --card: #fffdf8;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #e4d9c8;
  --teal: #0e5c57;
  --teal-dark: #0a3f3c;
  --amber: #f6ead0;
  --warn-bg: #f8e6e2;
  --warn: #7c241c;
  --ok: #e7f3ea;
  --focus: #0e5c57;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

body, button, input, textarea, select { font: inherit; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
}

.skip:focus { top: 0.5rem; }

.top, main, footer {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
}

.brand svg { width: 1.6rem; height: 1.6rem; fill: var(--teal); }

nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }

a { color: var(--teal-dark); }

a:hover { color: var(--teal); }

nav a { text-underline-offset: 0.18em; }

main { padding: 0.5rem 0 2.5rem; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 1.2rem 0 0.5rem; }

h1 { font-size: 2rem; margin-top: 0.4rem; }

h2 { font-size: 1.35rem; }

p, li { max-width: 38rem; }

.lead { font-size: 1.15rem; }

.kicker {
  margin: 0;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.choices { display: grid; gap: 0.9rem; margin: 1rem 0; }

article, .note, .warn, form, .short {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
}

.pick { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }

.price { font-size: 1.8rem; font-weight: 700; margin: 0.2rem 0; }

.price span, .price-alt { font-size: 1rem; font-weight: 400; color: var(--muted); }

.note { background: var(--amber); }

.warn { background: var(--warn-bg); color: var(--warn); }

.hint, .muted { color: var(--muted); font-size: 0.95rem; }

form { display: grid; gap: 0.85rem; }

label { display: grid; gap: 0.3rem; font-weight: 700; }

input, textarea, select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 2px solid #cfc4b2;
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

textarea { min-height: 7rem; }

input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--teal-dark);
  background: var(--teal);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary, button.secondary {
  background: transparent;
  color: var(--teal-dark);
}

button.danger { background: var(--warn); border-color: var(--warn); }

.row { display: grid; gap: 0.6rem; }

.short { word-break: break-word; font-weight: 700; }

.qr-frame {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem;
  display: grid;
  place-items: center;
}

canvas { width: min(100%, 16rem); height: auto; }

.code-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

.code-list li, .empty {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.sheet {
  width: min(100%, 24rem);
  margin: 0 auto 1rem;
  text-align: left;
}

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

footer { padding-bottom: 2rem; color: var(--muted); }

footer p { margin-top: 0.4rem; }

ul, ol { padding-left: 1.2rem; }

li + li { margin-top: 0.25rem; }

@media (min-width: 40rem) {
  .button, button { width: auto; }
  .row { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: 1fr; }
}

@media print {
  .top, footer, .no-print, .skip { display: none !important; }
  body { background: white; }
  .sheet { border: none; box-shadow: none; }
}
