/* Two-tone 1960s trailer: polished aluminum, seafoam belt stripe, cherry pinstripe.
   Built for readers in their 70s and 80s: large type, strong contrast, big targets. */
:root {
  --alu: #E6E9EB;
  --paper: #FFFFFF;
  --ink: #17232A;
  --soft-ink: #36444C;      /* secondary text: still high contrast */
  --edge: #6F7C84;          /* field borders visible to aging eyes */
  --rule: #C9D0D4;
  --mint: #A9D9CC;
  --mint-deep: #22604F;
  --cherry: #A8232A;
  --cherry-dk: #861B21;
  --error: #9E1C22;
  --error-bg: #FBE7E7;
  --ok-bg: #DDF0E9;
  --warn-bg: #FBEFD5;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--alu); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-size: 20px; line-height: 1.6;
}
@media (max-width: 560px) { body { font-size: 19px; } }
a { color: var(--mint-deep); text-underline-offset: 3px; }
:focus-visible { outline: 4px solid var(--cherry); outline-offset: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: the trailer belt line. The only decoration on the site. */
.beltline { background: var(--mint); border-bottom: 6px solid var(--cherry);
  box-shadow: 0 10px 0 -4px var(--alu), 0 10px 0 0 var(--ink); margin-bottom: 36px; }
.beltline .wrap { padding-top: 22px; padding-bottom: 18px; }
.brandrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.wordmark { font-family: "Yellowtail", cursive; font-weight: 400; font-size: 3rem; line-height: 1.1;
  margin: 0; color: var(--ink); }
.wordmark a { color: inherit; text-decoration: none; }
.callus { font-weight: 700; font-size: 1.05rem; }
.callus a { color: var(--ink); }
.topnav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; }
.topnav a { color: var(--ink); font-weight: 700; font-size: 1.05rem; padding: 6px 0; }
.topnav a[aria-current="page"] { text-decoration-thickness: 3px; }
@media (max-width: 560px) { .wordmark { font-size: 2.4rem; } }

h1, h2, h3 { line-height: 1.2; font-stretch: 112%; }
h1 { font-size: 2.1rem; margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.lead { font-size: 1.2rem; margin-top: 0; }
p { margin: 0 0 1rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.4rem; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 16px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 700; }

.panel { background: var(--paper); border: 2px solid var(--rule); border-radius: var(--radius);
  padding: 24px; margin: 18px 0; }
@media (max-width: 560px) { .panel { padding: 18px 16px; } }

/* ---------- Forms ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-size: 1.35rem; font-weight: 700; font-stretch: 112%; padding: 0; margin: 4px 0 2px; }
.field { margin: 18px 0; }
label, .label { display: block; font-weight: 700; margin-bottom: 4px; }
.optional { font-weight: 400; color: var(--soft-ink); }
.hint { display: block; color: var(--soft-ink); font-size: 1rem; margin: -2px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password],
input[type=url], textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--paper);
  border: 2px solid var(--edge); border-radius: var(--radius); padding: 12px 14px; min-height: 56px;
}
textarea { min-height: 120px; resize: vertical; }
input[type=number] { max-width: 9em; }
input[type=checkbox] { width: 28px; height: 28px; margin: 0; flex: none; accent-color: var(--ink); }
.checkrow { display: flex; gap: 12px; align-items: center; font-weight: 400; cursor: pointer; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); border-width: 3px; }
.field-error { color: var(--error); font-weight: 700; margin: 4px 0 0; }
.error-summary { background: var(--error-bg); border-left: 6px solid var(--error); padding: 14px 18px;
  border-radius: var(--radius); margin-bottom: 18px; }
.error-summary h2 { margin: 0 0 6px; font-size: 1.25rem; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Photo picker */
.photo-pick { display: inline-flex; align-items: center; gap: 10px; }
.photo-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-list li { background: var(--alu); border-radius: var(--radius); padding: 8px; text-align: center; }
.photo-list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; }
.photo-list button { margin: 8px 0 0; width: 100%; padding: 8px; min-height: 44px; font-size: 1rem; }
.photo-count { font-weight: 700; margin: 10px 0 0; }

/* ---------- Buttons ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-stretch: 108%;
  background: var(--cherry); color: #fff; border: 2px solid var(--cherry); border-radius: var(--radius);
  padding: 12px 24px; min-height: 56px; cursor: pointer; text-decoration: none; margin: 4px 8px 4px 0;
}
button:hover, .btn:hover { background: var(--cherry-dk); border-color: var(--cherry-dk); }
button.secondary, .btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
button.secondary:hover, .btn.secondary:hover { background: var(--alu); }
button.big, .btn.big { font-size: 1.25rem; min-height: 64px; padding: 14px 32px; }
button[disabled] { opacity: .7; cursor: wait; }
@media (max-width: 560px) { button.big, .btn.big { width: 100%; } }

/* ---------- Receipt ---------- */
.reqno { font-size: 1.15rem; color: var(--soft-ink); margin: 0 0 .3rem; }
.reqno strong { color: var(--ink); font-size: 1.5rem; }
.status-box { border-left: 8px solid var(--mint-deep); }
.status-box .now { font-size: 1.5rem; font-weight: 700; font-stretch: 112%; margin: 0 0 8px; }
.notice { padding: 16px 18px; border-radius: var(--radius); margin: 0 0 18px; }
.notice.ok { background: var(--ok-bg); }
.notice.warn { background: var(--warn-bg); }
.notice.err { background: var(--error-bg); }
.pay-box { background: var(--ok-bg); border: 2px solid var(--mint-deep); }
.price { font-size: 2rem; font-weight: 700; margin: 0 0 10px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 16px 0; border-bottom: 2px solid var(--rule); }
.timeline .when { color: var(--soft-ink); font-size: 1rem; }
.timeline .what { font-weight: 700; }
.timeline .msg { white-space: pre-wrap; margin: 4px 0 0; }
.timeline img { max-width: 100%; max-height: 420px; border-radius: var(--radius); margin-top: 10px; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.details dt { color: var(--soft-ink); }
.details dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } .details dd { margin-bottom: 8px; } }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  border: 2px solid var(--rule); display: block; }

footer.wrap { margin: 64px auto 32px; color: var(--soft-ink); font-size: 1rem; }

/* ---------- Your dashboard (denser; it's just for you) ---------- */
.admin body, body.admin { font-size: 17px; }
body.admin input, body.admin textarea, body.admin select { min-height: 46px; padding: 9px 12px; }
body.admin button, body.admin .btn { min-height: 46px; padding: 9px 18px; }
body.admin h1 { font-size: 1.8rem; }
.admin-bar { background: var(--ink); color: var(--paper); }
.admin-bar .wrap-wide { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center;
  padding-top: 10px; padding-bottom: 10px; }
.admin-bar a { color: var(--paper); text-decoration: none; font-weight: 600; }
.admin-bar .wordmark { font-size: 1.9rem; color: var(--mint); margin-right: auto; }
.testbadge { background: var(--warn-bg); color: var(--ink); padding: 2px 10px; border-radius: 4px; }
.reqlist { list-style: none; padding: 0; margin: 0; }
.reqlist a { display: grid; grid-template-columns: 4.2em 1fr auto; gap: 14px; align-items: baseline;
  padding: 12px 16px; background: var(--paper); border: 2px solid var(--rule); border-radius: var(--radius);
  margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.reqlist a:hover { border-color: var(--ink); }
.pill { font-size: .85rem; padding: 3px 10px; border-radius: 99px; background: var(--mint); white-space: nowrap; }
.pill.new { background: var(--cherry); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.helper { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 12px; }
.helper input { max-width: none; }
.helper-out { font-variant-numeric: tabular-nums; }
details > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
pre.brief { white-space: pre-wrap; background: var(--alu); padding: 14px; border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; margin: 8px 0; }
.small { font-size: .95rem; }
.muted { color: var(--soft-ink); }
.sent-ok { color: var(--mint-deep); font-weight: 700; }
.sent-no { color: var(--error); font-weight: 700; }

@media print {
  body { background: #fff; font-size: 14pt; }
  .beltline { background: none; box-shadow: none; border-bottom: 2px solid #000; margin-bottom: 16px; }
  .topnav, .no-print, footer.wrap, .pay-box .btn { display: none !important; }
  .panel { border: 1px solid #999; }
  a { color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.status-box .when { color: var(--soft-ink); font-size: 1rem; }
