:root {
  --paper: #e6e0d4;
  --paper-2: #f4f0e8;
  --ink: #1b1916;
  --muted: #5e584e;
  --line: #cfc6b6;
  --copper: #9a4122;
  --copper-deep: #6f2e16;
  --pine: #1c5a3d;
  --header: #1b1916;
  --header-ink: #f4f0e8;
  --warn-bg: #f3e2d4;
  --shadow: 0 24px 60px rgba(27, 25, 22, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}
img { display: block; }
a { color: var(--copper-deep); }
a:hover { color: var(--copper); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
}

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

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 4vw;
  background: var(--header);
  color: var(--header-ink);
}
.site-head a { color: var(--header-ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-size: 1.35rem; }
.site-head nav { display: flex; gap: 1.2rem; }
.site-head nav a { border-bottom: 1px solid transparent; }
.site-head nav a:hover { border-bottom-color: #c46a3a; }

.wrap { width: min(1120px, calc(100% - 8vw)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 8vw)); }
.hero, .path, .outcomes, .bring, .request-page, .status-page, .desk, .packet, .narrow { padding: 3.2rem 0; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.4rem;
}
.example-part {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.example-part a { display: block; }
.example-part img { width: 100%; height: auto; background: #fff; }
.example-part figcaption { padding: 1.1rem 1.15rem 1.25rem; background: var(--paper-2); }
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.8rem;
}
.lede { font-size: 1.15rem; max-width: 42rem; color: var(--ink); }
.hero-actions, .decision-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.button, .text-button {
  font: inherit;
  cursor: pointer;
}
.button {
  display: inline-block;
  background: var(--copper);
  color: #fff;
  text-decoration: none;
  border: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
}
.button:hover { background: var(--copper-deep); color: #fff; }
.button.secondary { background: var(--ink); }
.text-link { color: var(--ink); }
.text-button {
  background: transparent;
  border: 0;
  color: var(--copper-deep);
  padding: 0;
  text-decoration: underline;
}

.ticket {
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.3rem 1rem;
}
.ticket-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ticket h2 { font-size: 2rem; }
.ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1rem; margin: 0 0 1rem; }
.ticket dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ticket dd { margin: 0; }
.tree {
  margin: 0;
  padding: 0.9rem;
  background: var(--header);
  color: var(--header-ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow: auto;
}

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--ink);
}
.steps span { font-family: var(--mono); color: var(--copper); }

.tiers, .outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tiers { padding-top: 0; }
.tiers article h2 { font-size: 1.7rem; }
.tiers article, .outcomes article, .order-card, .spine-note {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 1.4rem;
}
.bring { border-top: 1px solid var(--ink); }

.job { display: grid; gap: 1.2rem; }
fieldset {
  border: 1px solid var(--line);
  background: var(--paper-2);
  margin: 0;
  padding: 1rem 1rem 1.2rem;
}
legend { font-family: var(--serif); font-size: 1.4rem; padding: 0 0.4rem; }
label { display: grid; gap: 0.35rem; margin: 0.7rem 0; font-size: 0.95rem; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b7ad9e;
  border-radius: 2px;
  padding: 0.65rem 0.7rem;
  width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus, a:focus {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.split-fields.three { grid-template-columns: 1.4fr 1fr 0.8fr; }
.choice { display: flex; gap: 0.7rem; align-items: flex-start; }
.choice input { width: auto; margin-top: 0.25rem; }
.hint { color: var(--muted); font-size: 0.95rem; }
.file-list { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.banner {
  background: var(--warn-bg);
  border: 1px solid #e0b89a;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.banner ul { margin: 0.4rem 0 0; }

.pill {
  display: inline-block;
  background: var(--ink);
  color: var(--paper-2);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1.4rem 0; }
.facts div { border-top: 1px solid var(--ink); padding-top: 0.5rem; }
.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; }
.files { list-style: none; padding: 0; }
.files li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.timeline time { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

.desk-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.order-card { margin: 1rem 0; }
.order-card header p { color: var(--muted); }
.spine-note { margin-bottom: 1rem; }
.plain { padding-left: 1.1rem; }

.site-foot {
  padding: 2rem 4vw 3rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-foot a { color: var(--ink); }

.delivery-ship,
.stamp-only { display: none; }
.job:has(input[name="delivery"][value="fabricate_and_ship"]:checked) .delivery-ship { display: block; }
.job:has(input[name="service"][value="engineer_stamp"]:checked) .stamp-only { display: block; }

@media (max-width: 860px) {
  .hero, .outcomes, .tiers, .facts, .split-fields, .split-fields.three, .timeline li, .steps li {
    grid-template-columns: 1fr;
  }
  .site-head { align-items: flex-start; }
  .hero, .path, .outcomes, .bring, .request-page, .status-page, .desk, .packet, .narrow { padding: 2rem 0; }
  h1 { font-size: 2.3rem; }
}

@media print {
  .site-head, .site-foot, .skip, script { display: none; }
  body { background: #fff; }
  .packet { width: auto; }
}
