/* ChairSmarts: one stylesheet, no build step. Senior-friendly: large type, high contrast, big tap targets. */
:root {
  --ink: #14213d;        /* main text, dark navy */
  --ink-soft: #33415c;   /* secondary text (still AA on white) */
  --bg: #ffffff;
  --bg-tint: #f2f5fa;
  --brand: #0b5394;      /* links and buttons, 7:1+ on white */
  --brand-dark: #073763;
  --accent: #f6b73c;     /* focus ring / wordmark accent */
  --line: #c9d3e3;
  --radius: 10px;
  --max: 68rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; /* 18px base */ -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; /* ~19px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius); z-index: 10;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 3px solid var(--brand); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; min-height: 48px;
}
.wordmark:hover { color: var(--ink); }
.wordmark .mark { width: 2.25rem; height: 2.25rem; flex: none; }
.wordmark .smarts { color: var(--brand); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0.5rem 0.9rem;
  font-weight: 600; text-decoration: none; border-radius: var(--radius); color: var(--ink);
}
.site-nav a:hover { background: var(--bg-tint); text-decoration: underline; }
.site-nav a[aria-current="page"] { background: var(--bg-tint); color: var(--brand-dark); box-shadow: inset 0 -3px 0 var(--brand); }

/* Main */
main { padding: 2rem 0 3rem; }
.hero { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 2.5rem 0 2rem; margin-top: -2rem; margin-bottom: 1rem; }
.hero .lead { font-size: 1.3rem; max-width: 42rem; color: var(--ink-soft); }
.prose { max-width: 44rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0.7rem 1.4rem; border-radius: var(--radius); background: var(--brand); color: #fff;
  font-weight: 700; text-decoration: none; border: 2px solid var(--brand);
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--brand); }
.button.secondary:hover { background: var(--bg-tint); color: var(--brand-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.cards li { margin: 0; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: #fff; }
.cards p { margin: 0; color: var(--ink-soft); }
.badge { display: inline-block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-dark); background: #e3ecf7; border-radius: 999px; padding: 0.1rem 0.7rem; margin-bottom: 0.5rem; }

.steps { padding-left: 1.4rem; }
.callout { border-left: 6px solid var(--brand); background: var(--bg-tint); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.todo { background: #fff4d6; border: 1px dashed #b7791f; padding: 0 0.3em; border-radius: 4px; }
.updated { color: var(--ink-soft); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 2rem 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.site-footer li { margin: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 48px; padding: 0.25rem 0.6rem; }
.site-footer p { margin: 0 0 0.75rem; max-width: 50rem; }
.site-footer .disclaimer, .site-footer .disclosure { font-size: 0.98rem; }

@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 0.25rem; }
  .site-nav a { padding: 0.5rem 0.7rem; }
  .hero .lead { font-size: 1.15rem; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-nav, .skip-link { display: none; } .site-footer { background: none; color: #000; } .site-footer a { color: #000; } }
