:root {
  --paper: #f3ead8;
  --paper-2: #e7dcc4;
  --ink: #1b2218;
  --ink-soft: #3d4538;
  --stamp: #c4471a;
  --stamp-deep: #8e2f10;
  --palmetto: #2c5348;
  --palmetto-2: #1d3b34;
  --rule: #b89a6a;
  --flash-ok: #2c5348;
  --flash-bad: #8e2f10;
  --shadow: 0 18px 40px rgba(27, 34, 24, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 71, 26, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #efe4cd 100%);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }

.scaffold-banner {
  margin: 0;
  padding: 0.45rem 1rem;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.mast { border-bottom: 1px solid var(--rule); background: rgba(243, 234, 216, 0.86); }
.mast-row, .foot-row, .hero-row, .split, .quota {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
}
.mast-row { padding: 1rem 0; flex-wrap: wrap; }

.brand { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; color: inherit; }
.stamp {
  width: 2.6rem; height: 2.6rem;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  transform: rotate(-8deg);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(196, 71, 26, 0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; }
.brand-text small { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--ink-soft); font-size: 0.72rem; }

.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a { color: var(--palmetto); text-decoration: none; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--stamp-deep); border-bottom: 2px solid var(--stamp); }

.hero { padding: 2.4rem 0 1.5rem; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 0.8rem;
  max-width: 16ch;
}
.lede { font-size: 1.15rem; max-width: 42rem; color: var(--ink-soft); }
.price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  color: var(--palmetto-2);
}
.price small { display: block; font-size: 0.85rem; font-family: "Source Sans 3", sans-serif; font-weight: 400; }

.btn, button.btn {
  appearance: none;
  border: 0;
  background: var(--stamp);
  color: #fff8f3;
  padding: 0.75rem 1.1rem;
  font: 700 1rem/1 "Source Sans 3", sans-serif;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: 3px 3px 0 var(--rule); border: 1px solid var(--ink); }

.card, form.sheet, .panel {
  background: #fff8ee;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

h2, h3 { font-family: "Fraunces", Georgia, serif; }
label { display: block; font-weight: 600; margin: 0.7rem 0 0.25rem; }
input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--rule);
  background: #fffdf8;
  font: 1rem "Source Sans 3", sans-serif;
  color: var(--ink);
}
fieldset { border: 1px dashed var(--rule); margin: 1rem 0; padding: 0.8rem 1rem 1rem; }
legend { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.8rem; color: var(--stamp-deep); padding: 0 0.35rem; }

.choices { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }
.choices label { font-weight: 500; display: flex; gap: 0.35rem; align-items: center; margin: 0; }
.choices input { width: auto; }

.refuse {
  border-left: 4px solid var(--stamp);
  background: #f8e4d6;
  padding: 0.9rem 1rem;
}
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.85rem; }

.flash { padding: 0.75rem 1rem; border: 1px solid var(--rule); }
.flash-ok { background: #dce8e3; color: var(--flash-ok); }
.flash-bad, .flash-error { background: #f3d6cc; color: var(--flash-bad); }
.flash-info { background: #efe4cd; }

.empty { padding: 1.5rem; border: 1px dashed var(--rule); text-align: center; color: var(--ink-soft); }

.foot { margin-top: 3rem; padding: 1.4rem 0 2rem; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.92rem; }
.foot-row { flex-wrap: wrap; align-items: flex-start; }
.foot a { color: var(--palmetto); }

@media (max-width: 700px) {
  .mast-row, .hero-row, .split, .quota, .foot-row { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 1.4rem; }
}
