/* GadgetRental v5. System fonts, no external assets, no JS.
   Palette: ink, paper, one accent (rust), one support (field green, used only for the "checked" status).
   Contrast pairs are listed in qa/check.mjs and computed there. */

:root {
  --paper: #f6f1e6;
  --paper-2: #ece4d3;
  --card: #fffdf8;
  --ink: #1d1a16;
  --ink-2: #4f463c;
  --rule: #cbbd9f;
  --rule-strong: #8c7d63;
  --accent: #9b3412;
  --accent-ink: #fffdf8;
  --accent-soft: #f4e2d6;
  --ok: #2e5a31;
  --ok-soft: #e1eadb;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --tap: 2.75rem; /* 44px */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(1.0625rem, 1rem + .25vw, 1.125rem)/1.6 var(--sans);
  overflow-wrap: break-word;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
p, ul, ol, dl { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.4rem); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: .5rem; top: -5rem; z-index: 5; background: var(--ink); color: var(--paper); padding: .7rem 1rem; }
.skip:focus { top: .5rem; color: var(--paper); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.prose { max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .25rem; padding-bottom: .25rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); font: 700 1.125rem var(--serif); text-decoration: none; }
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 .5rem; margin: 0 -.5rem; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); padding: 0 .5rem; font-size: 1rem; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.stage-bar { background: var(--ink); color: var(--paper); font-size: .875rem; padding: .35rem 0; }
.stage-bar p { margin: 0; }

/* page head */
.head { padding-top: 1rem; padding-bottom: 1rem; }
.head h1 { margin-bottom: .5rem; }
.lede { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); max-width: 60ch; margin-bottom: .75rem; }
.crumbs { margin: 0 0 .25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0 -.25rem; display: flex; flex-wrap: wrap; font-size: .9375rem; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--ink-2); padding: 0 .1rem; }
.crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); padding: 0 .25rem; justify-content: center; }

/* gear chooser: plain bordered rows, two columns on phones */
.gear { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; margin: 0 0 1rem; }
.gear a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 3rem; padding: .4rem .75rem; border: 1px solid var(--rule-strong); background: var(--card); text-decoration: none; font-weight: 700; line-height: 1.25; }
.gear a:hover { border-color: var(--accent); }
.gear .n { font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* sections */
.sect { padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.sect.first { border-top: 0; padding-top: .75rem; }
.sect h2 { margin-bottom: .5rem; }
.sect-intro { max-width: 68ch; color: var(--ink-2); }

/* listings: ruled ledger rows, not cards */
.listings { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.listing { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 52rem) { .listings.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); column-gap: 2.5rem; border-top: 0; } .listings.compact .listing { border-top: 1px solid var(--rule); border-bottom: 0; } }
.listing h3 { margin: 0; }
.listing h3 a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.listing h3 a:hover { text-decoration: underline; }
.listing .meta { margin: 0 0 .35rem; color: var(--ink-2); font-size: .9375rem; }
.listing .blurb { margin: 0 0 .5rem; max-width: 68ch; }
.listing.is-featured { border-left: 4px solid var(--accent); padding-left: .75rem; }
.status { margin: 0 0 .6rem; font-size: .9375rem; }
.status.ok { color: var(--ok); }
.status.unchecked { color: var(--ink-2); }
.flag { display: inline-block; font: 700 .8125rem/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: .1rem .45rem; border: 1px solid currentColor; vertical-align: .2em; margin-left: .35rem; }
.flag.featured { color: var(--accent); }
.flag.example { color: var(--ink-2); }
.owner-line { margin: .5rem 0 0; font-size: .9375rem; color: var(--ink-2); }
.owner-line a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* actions */
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap); min-width: var(--tap); padding: .5rem 1rem;
  border: 1px solid var(--ink); background: var(--card); color: var(--ink); font: 700 1rem/1.25 var(--sans); text-decoration: none; text-align: center; border-radius: 3px; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.call { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.call:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.big { min-height: 3.25rem; font-size: 1.125rem; }
.btn[disabled] { background: var(--paper-2); border: 1px dashed var(--rule-strong); color: var(--ink-2); cursor: not-allowed; }
.btn .why { font-weight: 400; }
/* the one owner primary action: accent-outlined even while disabled, so it reads as primary */
.btn.primary[disabled] { background: var(--card); border: 2px solid var(--accent); color: var(--accent); }
@media (max-width: 40rem) { .actions .btn.call { flex: 1 1 100%; } .btn.wide { width: 100%; } }

.draft { display: inline-block; font: 700 .75rem/1.5 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: var(--paper-2); border: 1px dashed var(--ink-2); padding: 0 .35rem; margin-right: .35rem; vertical-align: .1em; }
.planned { font-weight: 700; color: var(--ink-2); }

/* detail page */
.detail-top { display: grid; gap: 1.25rem; }
.contact-box { border: 2px solid var(--ink); background: var(--card); padding: 1rem; }
.contact-box .tel-big { display: block; font: 700 1.5rem/1.2 var(--serif); margin: 0 0 .5rem; }
.contact-box .actions { flex-direction: column; }
.contact-box .actions .btn { width: 100%; }
.facts { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: .4rem 1rem; margin: 0 0 1.5rem; max-width: 68ch; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.facts a { overflow-wrap: anywhere; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }
.ask { max-width: 68ch; padding-left: 1.1rem; }
@media (min-width: 52rem) { .detail-top { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }

/* owner strip */
.owner { border: 1px solid var(--rule-strong); border-left: 4px solid var(--ink); background: var(--card); padding: 1.25rem; margin: 2rem 0; max-width: 52rem; }
.owner h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.owner .row { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
.owner .row:last-child { margin-bottom: 0; }
.owner .row p { margin: 0; max-width: 60ch; }
.owner .btn { justify-self: start; }
@media (max-width: 40rem) { .owner .btn { justify-self: stretch; } }

/* comparison table */
.table-wrap { overflow-x: auto; max-width: 100%; }
table.compare { border-collapse: collapse; width: 100%; min-width: 18rem; max-width: 52rem; background: var(--card); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .6rem .6rem; border-bottom: 1px solid var(--rule); }
.compare thead th { border-bottom: 2px solid var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.compare tbody th { font-weight: 700; width: 34%; }
.compare .price { font: 700 1.25rem var(--serif); }

.steps { padding-left: 1.4rem; max-width: 68ch; }
.steps li { margin-bottom: .75rem; padding-left: .25rem; }
.faq dt { font: 700 1.2rem/1.3 var(--serif); margin-top: 1.25rem; max-width: 68ch; }
.faq dd { margin: .35rem 0 0; max-width: 68ch; }
.example-card { border: 2px dashed var(--rule-strong); padding: 1rem; max-width: 40rem; background: var(--card); }
.example-card .listing { border-bottom: 0; padding-bottom: 0; }
.example-card .fake { display: inline-flex; align-items: center; min-height: var(--tap); padding: .5rem 1rem; border: 1px solid var(--rule-strong); color: var(--ink-2); margin-right: .5rem; }

.note { border-left: 4px solid var(--rule-strong); background: var(--paper-2); padding: .75rem 1rem; max-width: 68ch; }
.metro-list { list-style: none; padding: 0; max-width: 40rem; }
.metro-list li { border-bottom: 1px solid var(--rule); padding: .25rem 0; }
.metro-list a { display: flex; justify-content: space-between; align-items: center; min-height: 3rem; text-decoration: none; font-weight: 700; }
.metro-list .n { font-weight: 400; color: var(--ink-2); }

/* form (inactive) */
form.contact { display: grid; gap: .35rem; max-width: 34rem; }
form.contact label { font-weight: 700; margin-top: .5rem; }
form.contact input, form.contact select, form.contact textarea { font: inherit; min-height: var(--tap); padding: .5rem .6rem; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); border-radius: 3px; width: 100%; }
form.contact button { margin-top: .75rem; }

/* footer */
.site-foot { border-top: 2px solid var(--ink); margin-top: 3rem; padding: 1.5rem 0 2rem; font-size: .9375rem; }
.site-foot .cols { display: grid; gap: 1rem 2rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem .75rem; }
.site-foot li a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.site-foot p { max-width: 68ch; margin-bottom: .5rem; }
@media (min-width: 52rem) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-head nav, .owner, .site-foot ul { display: none; } }
