/* The buy page. Small and on its own: the guides' stylesheet is for prose and
   this is a form, and coupling them would make every change to one a question
   about the other. */

:root {
  --ink: #1A1D1B;
  --muted: #6B726D;
  --line: #E2DED3;
  --paper: #F6F4EF;
  --green: #2F5D50;
  --green-dim: #27503f;
  --danger: #B3261E;
  --ok: #1E7B46;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
}

.wrap { max-width: 34rem; margin: 0 auto; padding: 48px 20px 80px; }

h1 { font-family: Newsreader, Georgia, serif; font-size: 34px; margin: 0 0 6px; }
.lede { color: var(--muted); margin: 0 0 28px; }

.card {
  background: #FFF; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px;
}

label {
  display: block; font-size: 13px; font-weight: 600; color: var(--muted);
  margin: 16px 0 5px; letter-spacing: 0.01em;
}
input, select {
  width: 100%; font: inherit; color: var(--ink); background: #FFF;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
}
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}

button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0;
  background: var(--green); color: #F4F1EA;
  border-radius: 8px; padding: 12px 18px;
}
button:hover { background: var(--green-dim); }
button[disabled] { opacity: 0.45; cursor: default; }
button.link {
  background: none; color: var(--green); padding: 6px 0; font-weight: 600;
}
button.link:hover { background: none; text-decoration: underline; }

.actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; }

ul.passes { list-style: none; margin: 8px 0 0; padding: 0; }
ul.passes li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
ul.passes li:first-child { border-top: 0; }
.passes .grow { flex: 1; min-width: 0; }
.passes .name { font-weight: 600; }
.passes .detail { color: var(--muted); font-size: 14px; }
.passes .price { font-weight: 700; font-variant-numeric: tabular-nums; }

.say {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 8px;
  background: #FBEAE9; color: var(--danger); font-size: 15px;
}
.say.good { background: #E7F1EA; color: var(--ok); }
.say .detail {
  display: block; margin-top: 8px; font-size: 13px; line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; word-break: break-word; opacity: 0.85;
}
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.empty { color: var(--muted); margin: 18px 0; }
