:root {
  --cream: #fff5e4; --paper: #ffffff; --ink: #2b2420; --muted: #66594f; --line: #f0dfc6;
  --red: #d12e22; --red-dark: #b3241a; --yellow: #ffc83d; --blue: #2b6deb; --green: #1f8a48;
  --radius: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 18px/1.5 ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 980px; margin: 0 auto; padding: 8px 16px 40px; }
a { color: var(--blue); }
.top { max-width: 980px; margin: 0 auto; padding: 14px 16px 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand img { display: block; }

h1 { font-size: clamp(32px, 7.4vw, 56px); line-height: 1.08; margin: 18px 0 10px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 26px; margin: 34px 0 10px; font-weight: 800; }
.lead { font-size: clamp(19px, 3.6vw, 24px); color: var(--muted); margin: 0 0 8px; }
.note, .small { color: var(--muted); font-size: 15px; }
.center { text-align: center; }
.crumb { margin: 12px 0 0; font-size: 16px; }
.crumb a { text-decoration: none; font-weight: 700; }

.hero { text-align: center; padding: 14px 0 6px; max-width: 760px; margin: 0 auto; }

/* picture tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 26px; }
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .tile { grid-column: span 2; }
  .tile:nth-child(4) { grid-column: 2 / span 2; }
  .tile:last-child:nth-child(odd) { grid-column: 4 / span 2; width: auto; justify-self: stretch; }
}
.tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 0 var(--line); transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: 0 9px 0 var(--line); border-color: var(--yellow); }
.tile:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.tile .pic { background: var(--panel, #eee); display: block; position: relative; aspect-ratio: 4 / 3; }
.tile img { position: absolute; left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.tile .t { font-weight: 800; font-size: clamp(19px, 4.4vw, 26px); line-height: 1.15; padding: 12px 14px 0; }
.tile .s { color: var(--muted); font-size: 15px; padding: 2px 14px 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 12px 26px;
  border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 800; font-size: 20px; text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.btn.primary { background: var(--red); border-color: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0 8px; }
.actions .btn { flex: 1 1 260px; }

/* build page */
.hero-pic { background: var(--panel, #eee); border-radius: var(--radius); border: 3px solid var(--line); position: relative; margin: 8px 0 14px; aspect-ratio: 16 / 10; max-height: 460px; }
.hero-pic img { position: absolute; left: 18px; top: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
a.chip.ask { border-color: var(--blue); color: var(--blue); }
a.chip.ask:hover { background: #eaf1ff; }
.need { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.need li { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px; font-size: 17px; }
.need img { flex: none; }
.steps { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { background: var(--paper); border: 3px solid var(--line); border-radius: 20px; padding: 10px 12px 12px; }
.steps img { display: block; width: 100%; height: auto; background: #fffdf8; border-radius: 12px; }
.steps p { margin: 8px 0 0; font-size: 20px; font-weight: 700; }
.try { background: #fff0b8; border: 3px solid var(--yellow); border-radius: 20px; padding: 14px 18px; margin: 26px 0 0; font-size: 20px; }

/* request + classes */
.ask-form { background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0 10px; }
.ask-form label.big { display: block; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.ask-form input[type=text], .card input[type=number], .card select {
  width: 100%; font: inherit; font-size: 22px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 16px; background: #fffdf8; color: var(--ink); min-height: 58px;
}
.card input[type=number] { max-width: 160px; }
.ask-form input:focus-visible, .card select:focus-visible, .card input:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 16px 0; }
legend { font-weight: 800; margin-bottom: 8px; font-size: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 50px; padding: 8px 18px; border: 3px solid var(--line); border-radius: 999px; background: #fffdf8; font-weight: 700; cursor: pointer; }
.pill input:checked + span { border-color: var(--ink); background: var(--yellow); }
.pill input:focus-visible + span { outline: 4px solid var(--blue); outline-offset: 2px; }
.msg { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; font-weight: 700; }
.msg.ok { background: #dff5e6; color: #14502b; }
.msg.bad { background: #ffe1dd; color: #8a1c12; }
.toplist { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.toplist li { display: flex; justify-content: space-between; gap: 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.toplist span, .muted { color: var(--muted); font-weight: 400; }
.card { background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.card label { display: block; font-weight: 800; margin: 12px 0 6px; }
.need-line { font-weight: 700; }

footer { max-width: 980px; margin: 24px auto 0; padding: 18px 16px 40px; border-top: 3px solid var(--line); }
.safety { font-weight: 800; margin: 0 0 8px; }
footer .small { margin: 6px 0; }
@media print { .top, footer .small a { display: none; } .btn { display: none; } }
