/* Adaptive Enterprises LLC storefront prototype. One shared stylesheet.
   No external fonts, scripts or CDNs. No animation. Sizes in rem so text scales.
   Color tokens are listed in :root (light) and the dark block. tools/check.py reads
   these exact tokens and computes contrast ratios, so edit the tokens here only. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #11161d;
  --muted: #333c48;
  --link: #0a3a85;
  --link-visited: #5a2a82;
  --surface: #eef2f7;
  --border: #5b6675;
  --focus: #8a3b00;
  --flag-bg: #fff1bf;
  --flag-text: #2f2500;
  --accent: #0a6b6b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131a;
    --text: #f1f4f8;
    --muted: #cdd5df;
    --link: #a6cdff;
    --link-visited: #d9bcf7;
    --surface: #18202b;
    --border: #8d99ab;
    --focus: #ffd479;
    --flag-bg: #3a2f00;
    --flag-text: #ffeaa8;
    --accent: #5cd0c8;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Links: underlined always, so color is never the only cue. */
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.1em; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 0.2em; }

/* Visible focus on every focusable element. */
:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -10rem;
  z-index: 10;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: underline;
}
.skip-link:visited { color: var(--bg); }
.skip-link:focus { top: 0.5rem; }

/* Prototype banner and TODO flags. Marked with words, not only color. */
.proto {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--flag-bg);
  color: var(--flag-text);
  border-bottom: 0.125rem solid var(--border);
  font-size: 1rem;
  line-height: 1.45;
}
.flag {
  background: var(--flag-bg);
  color: var(--flag-text);
  border: 0.125rem dashed var(--border);
  padding: 0.05rem 0.4rem;
  font-size: 0.95rem;
}
.placeholder {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  color: var(--text);
  border: 0.1875rem dashed var(--border);
  border-radius: 0.25rem;
}
.placeholder h2, .placeholder h3 { margin-top: 0; }

header[role="banner"], .site-header {
  border-bottom: 0.0625rem solid var(--border);
}
.brand {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.6rem 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
}
.brand:visited { color: var(--text); }
.brand:hover { text-decoration: underline; }
.tagline { margin: 0 0 0.5rem; color: var(--muted); font-size: 1rem; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
nav li { margin: 0; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem 0.75rem;
  font-size: 1rem;
}
nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 0.25rem solid var(--text);
  color: var(--text);
}
nav a[aria-current="page"]:visited { color: var(--text); }

main { padding: 1.5rem 0 2.5rem; }

h1, h2, h3 { line-height: 1.25; font-weight: 600; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

p, ul, ol, dl { margin: 0 0 1rem; }
.lead { font-size: 1.25rem; color: var(--text); }
.small, .meta { font-size: 1rem; color: var(--muted); }

ul.plain, ol.plain { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

/* Lists of standalone links: each row is a 44 px or larger target. */
ul.links { list-style: none; padding: 0; }
ul.links li { margin: 0; }
ul.links a {
  display: block;
  min-height: 2.75rem;
  padding: 0.6rem 0;
  border-bottom: 0.0625rem solid var(--border);
}

.card {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 0.0625rem solid var(--border);
  border-radius: 0.25rem;
}
.card h2, .card h3 { margin-top: 0; }

address { font-style: normal; margin: 0 0 1rem; }

.site-footer {
  border-top: 0.0625rem solid var(--border);
  padding: 1.25rem 0 2rem;
  font-size: 1rem;
  color: var(--text);
}
.site-footer p { margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.site-footer li { margin: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding: 0.4rem 0.75rem; }

/* Reduced motion and no animation: none is used anywhere. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .skip-link, .proto { display: none; }
  body { font-size: 12pt; }
}

/* Scaffold addition (not in the prototype): Markdown emits bare ul and ol, so give them the
   same indent the prototype got from class="plain". Link lists (ul.links) keep their own rules. */
main ul:not(.links), main ol:not(.links) { padding-left: 1.4rem; }

/* Scaffold addition (small business section, 2026-10-28): one accent token, step markers, accent card.
   Contrast checked: light --accent #0a6b6b on --bg 6.31:1, on --surface 5.61:1, --bg text on it 6.31:1;
   dark --accent #5cd0c8 on --bg 10.04:1, on --surface 8.83:1, --bg text on it 10.04:1. Not bold, no animation. */
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  vertical-align: middle;
}
main ol.steps { list-style: none; padding-left: 0; }
main ol.steps li { margin-bottom: 0.6rem; }
.card.accent { border-left: 0.35rem solid var(--accent); }
