/* ABC Computer (abccomputer.net). One stylesheet, system fonts, no scripts. SPEC §3.1 tokens. */
:root {
  --ink: #10243a;
  --primary: #1b5fc1;
  --primary-dark: #154a97;
  --accent: #0b7a63;
  --surface: #f5f8fc;
  --text: #1c2530;
  --muted: #45525f;
  --line: #c9d6e6;
  --focus: #ffb000;
  --bad: #a4001d;
  --bad-bg: #fdecef;
  --ok-bg: #e7f5f1;
  --radius: 14px;
  --wrap: 68rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--primary-dark); text-decoration-thickness: 2px; }

/* Focus: amber ring with an ink ring outside it, so it shows on light and on dark backgrounds. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--ink);
  border-radius: 4px;
}
main:focus { outline: none; box-shadow: none; }

[id] { scroll-margin-top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow > * { max-width: 44rem; }
.small { font-size: 1rem; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: .75rem; top: -5rem; z-index: 10;
  background: #fff; color: var(--ink); padding: .7rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: .75rem; }

/* Header */
.strip {
  margin: 0; padding: .55rem 1.25rem; text-align: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 0; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.blocks { display: block; width: 5.6rem; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { display: inline-block; padding: .6rem .55rem; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 43.99rem) {
  /* small screens: the big button right below in the hero does this job */
  .nav .nav-cta { display: none; }
  .header-row { padding-top: .5rem; padding-bottom: .35rem; }
  .nav { gap: 0 .15rem; margin-left: -.45rem; }
  .nav a:not(.btn) { padding: .55rem .45rem; font-size: 1rem; }
  .btn-large { display: block; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  padding: .8rem 1.4rem; border: 2px solid var(--primary); border-radius: 999px;
  background: var(--primary); color: #fff; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-small { padding: .55rem 1.1rem; margin-left: .35rem; }
.btn-large { padding: 1rem 1.8rem; font-size: 1.2rem; }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #7d0016; border-color: #7d0016; }

/* Sections */
.band { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.band-tint { background: var(--surface); }

.hero { background: var(--surface); padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.lead { font-size: clamp(1.2rem, 1.1rem + .6vw, 1.45rem); color: var(--text); max-width: 34rem; }
.under-cta { color: var(--muted); font-size: 1rem; max-width: 30rem; margin-bottom: 0; }
.hero-art { display: none; width: 100%; height: auto; max-width: 27.5rem; justify-self: end; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-art { display: block; }
}

/* How it will work */
.steps { list-style: none; margin: 0 0 2.25rem; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.15rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800;
}
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; }
@media (min-width: 44rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66rem) { .steps { grid-template-columns: 1fr 1fr 1fr; } }

.ways-h { margin-bottom: .75rem; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ways li { padding: 1.1rem 1.25rem; border-left: 6px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
@media (min-width: 44rem) { .ways { grid-template-columns: 1fr 1fr; } }

/* Built to be careful */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem 2rem; }
.checks li {
  position: relative; padding: .1rem 0 .1rem 2.6rem;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='m8 14.500 4.200 4.200L20 10.500' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (min-width: 52rem) { .checks { grid-template-columns: 1fr 1fr; } }

/* When a person is better */
.person-grid { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 52rem) { .person-grid { grid-template-columns: 1.3fr 1fr; } }
.shop-card {
  font-style: normal; display: grid; gap: .3rem;
  padding: 1.4rem 1.5rem; background: var(--ink); color: #fff; border-radius: var(--radius);
}
.shop-card strong { font-size: 1.35rem; }
.shop-card a { color: #fff; font-weight: 700; font-size: 1.25rem; }
.shop-card a:hover { color: #fff; }
/* inline-block gives the phone link the full line height as its tap target (24 px or more) */
.tel { white-space: nowrap; display: inline-block; }
.prose a { display: inline-block; }

/* What WeldonPC does */
.about { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.about li { padding: 1.1rem 1.25rem; background: var(--surface); border-radius: var(--radius); border-top: 4px solid var(--primary); }
.about strong { display: block; color: var(--ink); }
@media (min-width: 40rem) { .about { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66rem) { .about { grid-template-columns: repeat(4, 1fr); } }

/* Forms */
.notify-form { margin-top: 1.5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--text);
  background: #fff; border: 2px solid #5c6b7c; border-radius: 10px;
}
.check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; align-items: start; }
.check input { width: 1.6rem; height: 1.6rem; margin: .15rem 0 0; accent-color: var(--primary); }
.check label { margin: 0; font-weight: 600; padding: .1rem 0; }
.check .error { grid-column: 1 / -1; }
.error { margin: .4rem 0 0; color: var(--bad); font-weight: 700; }
.has-error input[type="email"], .has-error input[type="password"] { border-color: var(--bad); }
.error-summary { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--bad-bg); border-left: 6px solid var(--bad); border-radius: 0 10px 10px 0; }
.error-summary p, .error-summary ul { margin: 0 0 .4rem; }
.error-summary a { color: var(--bad); font-weight: 700; }
.notify-form .small { margin: 1rem 0 0; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Questions */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; background: #fff; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--ink); border-radius: var(--radius); }
.faq summary:hover { background: var(--surface); }
.faq details[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.faq details p { margin: 0; padding: 1rem 1.25rem; }

/* Legal pages */
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; background: var(--surface); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.draft { display: inline-block; padding: .35rem .8rem; background: #fff4d6; color: #4d3800; border: 1px solid #c79a1e; border-radius: 8px; font-weight: 700; font-size: 1rem; }

/* Footer */
.site-footer { background: var(--ink); color: #e3ebf5; padding: 2.5rem 0; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-line { margin: 0 0 .6rem; font-style: normal; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1.5rem; }
.footer-links { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-links a, .site-footer .tel { display: inline-block; padding: .3rem 0; }

/* Owner pages */
.banner { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; }
.banner p, .banner ul { margin: 0 0 .3rem; }
.banner-ok { background: var(--ok-bg); border-left: 6px solid var(--accent); }
.banner-bad { background: var(--bad-bg); border-left: 6px solid var(--bad); }
.counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.counts div { padding: 1rem 1.25rem; background: var(--surface); border-radius: var(--radius); }
.counts dt { color: var(--muted); font-weight: 600; }
.counts dd { margin: 0; font-size: 2rem; font-weight: 800; color: var(--ink); }
@media (min-width: 44rem) { .counts { grid-template-columns: repeat(4, 1fr); } }
.admin-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.admin-actions form { margin: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); color: var(--ink); white-space: nowrap; }
td:first-child { overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
.pager { display: flex; gap: 1.5rem; align-items: center; margin-top: 1rem; }

@media print {
  .strip, .skip, .nav, .hero-art, .notify-form { display: none; }
  .site-footer, .shop-card { background: #fff; color: #000; }
  .site-footer a, .shop-card a { color: #000; }
}
