/* McKee Homes public MCP site — shared styles.
   Plain CSS, no framework, no JavaScript. Mobile-first, accessible. */

:root {
  --ink: #1c2430;
  --ink-soft: #46525f;
  --paper: #fdfdfc;
  --card: #ffffff;
  --line: #d8dde3;
  --accent: #1f4e79;
  --accent-ink: #ffffff;
  --warn-bg: #fff6e5;
  --warn-border: #b26a00;
  --warn-ink: #5e3a00;
  --code-bg: #f2f4f6;
  --focus: #b3541e;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
details summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

header.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1rem;
}

.brand {
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

nav.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  min-height: 44px; /* comfortable touch target */
  min-width: 44px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
}

nav.site-nav a:hover { background: #eef2f6; }
nav.site-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0.25rem 0 1rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

p, li { max-width: 46rem; }

section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.section-title { margin-top: 1rem; }

.banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  font-weight: 550;
}

code, .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
a code { background: transparent; }

.meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1rem 2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

footer.site-footer ul {
  padding-left: 1.2rem;
}

@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  main { padding-top: 2rem; }
}
