/* Swartwerk Media Design — accessible rebuild (WCAG 2.1 AA). System fonts only: no third-party requests. */
:root {
  --paper: #f6f7f5;
  --panel: #eceeea;
  --ink: #14171c;
  --muted: #474e5a;
  --rule: #c9cdd2;
  --accent: #1d47c9;
  --accent-ink: #ffffff;
  --error: #a3161a;
  --ok: #1b6b35;
  --f-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101318; --panel: #181c22; --ink: #e9ebee; --muted: #a9b0bc; --rule: #343a44;
    --accent: #93b2ff; --accent-ink: #0b0e13; --error: #ff9c96; --ok: #86d9a0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101318; --panel: #181c22; --ink: #e9ebee; --muted: #a9b0bc; --rule: #343a44;
  --accent: #93b2ff; --accent-ink: #0b0e13; --error: #ff9c96; --ok: #86d9a0; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font: 1.0625rem/1.65 var(--f-sans);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 46rem; margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; max-width: 65ch; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1 a, h2 a, h3 a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--paper); padding: .75rem 1rem; font-weight: 700; z-index: 20; }
.skip:focus { top: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { padding-block: 1.25rem 1rem; border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo { flex: none; display: block; }
.brand img { width: 46px; height: auto; border-radius: 4px; }
.brand-text { display: grid; gap: .15rem; min-width: 0; line-height: 1.35; }
.brand-text a { text-decoration: none; }
.brand-text a:hover { text-decoration: underline; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.brand-tag { font-size: .875rem; color: var(--muted); }
/* Dark logo on a dark page: give it a light tile so it stays visible. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #f6f7f5; padding: 3px; } }
:root[data-theme="dark"] .brand img { background: #f6f7f5; padding: 3px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.site-nav a { display: inline-block; padding-block: .6rem; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Main content */
main { padding-block: 2.5rem 1rem; }
main:focus { outline: none; }
.intro { display: grid; gap: 1rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.intro > p { font-size: 1.15rem; color: var(--muted); }
.block { display: grid; gap: 1rem; padding-block: 2.5rem; border-bottom: 1px solid var(--rule); }
.block:last-child { border-bottom: 0; }
.block ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .25rem; max-width: 65ch; }
figure { margin: 0; }
figure img { border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }
.more { font-weight: 700; }
.more a::after { content: " \2192"; }
.note { font-size: .9375rem; color: var(--muted); }

.label { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Testimonials */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.quotes blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--rule); display: grid; gap: .5rem; }
.quotes cite { font-style: normal; color: var(--muted); font-size: .9375rem; }

/* Buttons and forms */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.5rem; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; justify-self: start; }
.button:hover { filter: brightness(1.08); }
form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .35rem; }
label { font-weight: 700; }
.hint { font-size: .9375rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--muted); border-radius: 4px; padding: .7rem .8rem; min-height: 48px; width: 100%; }
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-weight: 600; font-size: .9375rem; }
.status { padding: .9rem 1rem; border-radius: 4px; background: var(--panel); border-left: 4px solid var(--ok); }
.status.is-error { border-left-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mono { font-family: var(--f-mono); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; font-size: .9375rem; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; }
.footer-cols h2 { font-size: 1rem; color: var(--ink); margin-bottom: .5rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.footer-cols a { color: var(--ink); }
.footer-meta { display: grid; gap: .4rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.footer-meta a { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
