/* JeffCo Tech Co · "Green sign on cream". Tokens live in tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--color-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--space-sm); top: -4rem; z-index: 50;
  background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius);
  padding: var(--space-xs) var(--space-sm); font-weight: 600;
}
.skip:focus { top: var(--space-sm); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.display, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
  overflow-wrap: anywhere;
  min-width: 0;
}
.display { font-size: var(--text-display); line-height: 0.98; }
.display-s { font-size: var(--text-display-s); line-height: 1; }
.h2 { font-size: var(--text-2xl); line-height: 1.04; }
.h3 { font-size: var(--text-xl); line-height: 1.1; }
/* a short marigold bar under section titles */
.h2-bar::after { content: ""; display: block; width: 4.5rem; height: var(--rule-bar); background: var(--color-accent); margin-top: var(--space-xs); }

.lead { font-size: var(--text-md); line-height: 1.6; max-width: 40rem; }
.muted { color: var(--color-muted); }
.label {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--color-muted);
}
.prose { max-width: 40rem; }
.prose > * + * { margin-top: var(--space-sm); }
.prose h2 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; margin-top: var(--space-xl); }
.prose ul { list-style: square; padding-left: 1.25em; }
.prose li + li { margin-top: var(--space-2xs); }
.prose li::marker { color: var(--color-sign); }

/* ---------- Layout ---------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.band { position: relative; }
.pad { padding-block: var(--band-pad); }
.pad-tight { padding-block: var(--space-xl); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-sm) var(--space-lg); margin-bottom: var(--space-lg); }
.stack > * + * { margin-top: var(--space-sm); }

/* ---------- Header ---------- */
.site-head { background: var(--color-paper); border-bottom: var(--rule-bar) solid var(--color-sign); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 4.75rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.01em;
  color: var(--color-ink); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--color-ink); }
.mark { width: 2.25rem; height: 2.25rem; flex: none; }
.nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links { display: flex; gap: var(--space-lg); }
.nav-links a, .menu a {
  color: var(--color-ink); font-weight: 600; text-decoration: none; white-space: nowrap;
  padding-block: var(--space-3xs); border-bottom: 3px solid transparent;
}
.nav-links a:hover, .menu a:hover { border-bottom-color: var(--color-rule); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--color-accent); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 700; white-space: nowrap; border-radius: var(--radius);
  padding: var(--space-2xs) var(--space-sm); border: var(--rule-ink) solid var(--color-ink); min-height: 2.75rem; display: flex; align-items: center;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--color-ink); color: var(--color-paper); }
.menu ul {
  position: absolute; right: 0; top: calc(100% + var(--space-2xs)); z-index: 20; overflow: hidden;
  min-width: 13rem; background: var(--color-paper-2); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgb(29 36 32 / 0.15);
}
.menu li + li { border-top: var(--rule-hair) solid var(--color-rule); }
.menu a { display: block; padding: var(--space-xs) var(--space-sm); border-bottom: 0; }
.menu a[aria-current="page"] { box-shadow: inset 5px 0 0 var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: 3rem; padding: 0 var(--space-md);
  background: var(--color-sign); color: var(--color-on-sign);
  border: var(--rule-ink) solid var(--color-sign); border-radius: var(--radius);
  font-family: var(--font-display); font-size: var(--text-md); font-weight: 800; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--color-sign-deep); border-color: var(--color-sign-deep); color: var(--color-on-sign); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--color-sign); border-color: var(--color-sign); }
.btn-small { min-height: 2.5rem; padding: 0 var(--space-sm); font-size: var(--text-sm); }
.btn-line { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-line:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn-line[disabled]:hover { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn-marigold { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn-marigold:hover { background: var(--color-paper-2); border-color: var(--color-paper-2); color: var(--color-ink); }
.btn-ink { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn-ink:hover { background: var(--color-sign); border-color: var(--color-sign); color: var(--color-on-sign); }
.btn-on-sign { background: transparent; border-color: var(--color-on-sign); color: var(--color-on-sign); }
.btn-on-sign:hover { background: var(--color-on-sign); border-color: var(--color-on-sign); color: var(--color-sign); }
.arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: var(--rule-ink) solid currentColor; white-space: nowrap; }

/* ---------- The sign ---------- */
/* Green panel, white inset border, a darker edge underneath like a mounted sign. */
.sign {
  position: relative; background: var(--color-sign); color: var(--color-on-sign);
  border-radius: var(--radius-sign); padding: 0.6rem;
  box-shadow: 0 0.6rem 0 var(--color-sign-deep);
}
.sign-face {
  border: 4px solid var(--color-on-sign); border-radius: calc(var(--radius-sign) - 0.45rem);
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem);
  display: grid; gap: var(--space-md);
}
.sign a { color: var(--color-on-sign); }
.sign .lead, .sign p { color: var(--color-on-sign-muted); }
.sign-kicker {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-md);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-on-sign);
}
.sign-line {
  display: flex; align-items: center; gap: var(--space-xs);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.5rem);
}
.sign-line svg { width: 1.75em; height: 1.75em; flex: none; }
/* the marigold exit tab that sits on top of a sign */
.sign-tab {
  position: absolute; top: -1.85rem; right: clamp(1.25rem, 6vw, 4.5rem);
  background: var(--color-accent); color: var(--color-accent-ink);
  border: 4px solid var(--color-on-sign); border-bottom: 0; border-radius: 10px 10px 0 0;
  padding: 0.35rem 1.1rem 0.15rem;
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: 0.06em; line-height: 1.2;
}
.sign-posts { display: flex; justify-content: space-between; padding-inline: 22%; }
.sign-posts::before, .sign-posts::after { content: ""; width: 1rem; height: 2.75rem; background: var(--color-post); }
.sign-face .actions { margin-top: 0; }
.sign-small .sign-face { padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1.25rem, 4vw, 3rem); gap: var(--space-sm); }

/* ---------- Hero and page heads ---------- */
.hero { padding-block: clamp(3.5rem, 7vw, 5rem) var(--space-xl); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md) var(--space-xl); margin-top: var(--space-xs); }
.hero-foot .actions { margin-top: 0; }

.page-head { padding-block: var(--space-xl) var(--space-lg); }
.page-head .lead { margin-top: var(--space-lg); }
.page-head + .pad { padding-top: var(--space-lg); }
.page-head .sign + .lead { margin-top: calc(var(--space-lg) + 0.6rem); }

/* ---------- Route shields and service cards ---------- */
.shield { width: 2.9rem; height: 3rem; flex: none; }
.shield path { fill: var(--color-sign); stroke: var(--color-ink); stroke-width: 2; }
.shield text { fill: var(--color-on-sign); font-family: var(--font-display); font-weight: 900; font-size: 20px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: var(--space-xs);
  padding: var(--space-md); background: var(--color-paper-2);
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-lg);
  color: var(--color-ink); text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.callout { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
a.card:hover { color: var(--color-ink); transform: translateY(-3px); box-shadow: 0 6px 0 var(--color-ink); }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1.12; }
.card p, .card-desc { color: var(--color-muted); }
.card-go { margin-top: auto; padding-top: var(--space-2xs); font-weight: 700; color: var(--color-sign); }

/* ---------- Marigold panel: the page's one loud callout ---------- */
.plate {
  background: var(--color-accent); color: var(--color-accent-ink);
  border: 3px solid var(--color-ink); border-radius: 16px;
  padding: clamp(1.75rem, 4.5vw, 3rem) clamp(1.25rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-xl);
}
.plate-text { max-width: 44rem; display: grid; gap: var(--space-xs); }
.plate a:not(.btn) { color: var(--color-ink); font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); counter-reset: step; }
.step { padding: var(--space-md); border-top: var(--rule-bar) solid var(--color-sign); background: var(--color-paper-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.step-num {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  background: var(--color-accent); border: var(--rule-ink) solid var(--color-ink);
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; line-height: 1;
}
.step h3 { margin-top: var(--space-sm); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; line-height: 1.15; }
.step p { margin-top: var(--space-2xs); color: var(--color-muted); }

/* ---------- Shop JeffCo nod: a little cobalt booth ---------- */
.booth {
  background: #1f43b5; color: #ffffff; border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md) var(--space-md);
  display: grid; gap: var(--space-sm); justify-items: start; position: relative; overflow: hidden;
}
.booth::before { content: ""; position: absolute; inset: 0 auto 0 var(--space-md); width: 6px; background: #ffffff; }
.booth-banner {
  margin-left: var(--space-md); background: #f2a900; color: #141414; padding: var(--space-sm) var(--space-md);
  font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1.05; transform: rotate(-1.5deg);
  box-shadow: 0 6px 14px rgb(0 0 0 / 0.25);
}
.booth p { margin-left: var(--space-md); color: #dfe6fb; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-xs); }
.faq details { background: var(--color-paper-2); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-lg); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  cursor: pointer; list-style: none; padding: var(--space-sm) var(--space-md); min-height: 3.5rem;
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: var(--space-3xs);
  border-right: 3px solid var(--color-sign); border-bottom: 3px solid var(--color-sign);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--color-sign); }
.faq .answer { padding: 0 var(--space-md) var(--space-md); max-width: 40rem; color: var(--color-muted); }

/* ---------- Spec sheet (services detail) ---------- */
.spec { width: 100%; border-collapse: separate; margin-top: var(--space-md); background: var(--color-paper-2); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-lg); overflow: hidden; border-spacing: 0; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--space-sm) var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 34%; font-weight: 700; }
.spec td { color: var(--color-muted); }

.service { scroll-margin-top: var(--space-lg); }
.service + .service { border-top: var(--rule-hair) solid var(--color-rule); }
.service-title { display: flex; align-items: center; gap: var(--space-sm); }

/* ---------- About ---------- */
.portrait { display: grid; gap: var(--space-xs); }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: var(--rule-ink) solid var(--color-ink); background: var(--color-paper-3); display: grid; place-items: center; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin-top: var(--space-lg); background: var(--color-paper-2); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-lg); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-xs) var(--space-md); }
.facts div + div { border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--color-muted); min-width: 0; overflow-wrap: anywhere; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: var(--space-3xs); min-width: 0; }
.field-label { font-weight: 700; font-size: var(--text-sm); }
.field-label .opt { font-weight: 400; color: var(--color-muted); }
.field-hint { font-size: var(--text-sm); color: var(--color-muted); }
.input {
  width: 100%; min-height: 3rem; font: inherit; color: var(--color-ink);
  background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-field); border-radius: var(--radius);
  padding: var(--space-xs) var(--space-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input:hover { border-color: var(--color-ink); }
.input:focus-visible { outline: none; border-color: var(--color-sign); box-shadow: 0 0 0 3px var(--color-sign); }
.input[aria-invalid="true"] { border-color: #a8361f; border-width: var(--rule-ink); }
.input:disabled { background: var(--color-paper-3); cursor: not-allowed; }
textarea.input { min-height: 9rem; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-ink) 50%), linear-gradient(135deg, var(--color-ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
.field-error { font-size: var(--text-sm); font-weight: 600; color: #8f2c18; display: flex; gap: var(--space-2xs); align-items: baseline; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #a8361f; color: #fff; font-size: 0.75rem; font-weight: 800; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-lg); padding: var(--space-md); background: var(--color-paper-2); }
.notice-alert { box-shadow: inset 0.5rem 0 0 var(--color-accent); padding-left: calc(var(--space-md) + 0.5rem); }
.notice h2 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; }
.notice p, .notice ul { margin-top: var(--space-2xs); }
.notice ul { list-style: square; padding-left: 1.25em; }
.notice a { font-weight: 600; }

.done { display: grid; gap: var(--space-sm); justify-items: start; }
.done .check { width: 3.25rem; height: 3.25rem; border-radius: var(--radius); background: var(--color-sign); display: grid; place-items: center; }
.done .check::after { content: ""; width: 0.7rem; height: 1.25rem; border-right: 0.25rem solid #fff; border-bottom: 0.25rem solid #fff; transform: translateY(-2px) rotate(45deg); }

.contact-split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.contact-split .form { margin-top: 0; }
.contact-aside { align-self: start; }
.contact-aside .facts { margin-top: 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: var(--rule-bar) solid var(--color-sign); padding-block: var(--space-xl); margin-top: var(--space-xl); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-md) var(--space-xl); }
.colophon { font-size: var(--text-sm); color: var(--color-muted); max-width: 40rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); font-size: var(--text-sm); font-weight: 600; justify-content: flex-end; }
.foot-links a { color: var(--color-ink); white-space: nowrap; }
.colophon-end { grid-column: 1 / -1; }

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .split, .split-even { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .portrait { max-width: 22rem; }
}
@media (max-width: 47.5rem) {
  .nav-links { display: none; }
  .menu { display: block; }
  .head-cta { display: none; }
  .nav { gap: var(--space-xs); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .spec th, .spec td { display: block; width: auto; }
  .spec th { padding-bottom: 0; }
  .spec td { border-top: 0; padding-top: var(--space-3xs); }
  .sign-posts { padding-inline: 15%; }
  .sign-tab { font-size: 0.95rem; top: -1.6rem; }
}
@media (max-width: 22.5rem) {
  .wordmark { font-size: 1.2rem; }
  .facts div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

@media print {
  .site-head .nav, .skip, .sign-posts, .sign-tab { display: none; }
  .sign { box-shadow: none; }
}

/* ---------- Online tools ---------- */
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-soon { background: transparent; border-style: dashed; }
.tool-soon .label { align-self: flex-start; }
.tools-soon-title { margin-top: var(--space-xl); }

/* "Free, no ads" donation box (tools page; the traffic cams page has its own copy in traffic-cams.css) */
.support {
  margin-top: var(--space-xl); padding: var(--space-md); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg);
  background: var(--color-paper-2); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-lg);
}
.support-text { max-width: 38rem; display: grid; gap: var(--space-3xs); }
.support-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); }
.support-fine { font-size: var(--text-sm); color: var(--color-muted); }
.support .btn-marigold { border-color: var(--color-ink); }
.support-top { margin-top: var(--space-lg); }
