/* CoyoteCast — shared stylesheet */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --rule: #e2e2e2;
  --accent: #1f4f8b;
  --accent-soft: #f2f6fb;
  --code-bg: #f2f2f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e8e8e8;
    --muted: #a2a8b2;
    --rule: #2c3038;
    --accent: #7fb0ea;
    --accent-soft: #1b222c;
    --code-bg: #21252c;
  }
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  margin: 0;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* Header + nav */
header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
header.site .wrap { padding-top: 1.5rem; padding-bottom: 0; }
.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
  display: inline-block;
}
.brand span { color: var(--muted); font-weight: 400; }
nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0 0 0.85rem;
  font-size: 0.92rem;
}
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--accent); }
nav.site a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* Typography */
h1 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 0.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.75rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--accent); }
.lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.75rem; }
code {
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Components */
.card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--accent-soft);
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.15rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.1rem;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }

/* Footer */
footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding: 1.5rem 0 2.5rem;
  font-size: 0.87rem;
  color: var(--muted);
}
footer.site a { color: var(--muted); }
footer.site .links { margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }

/* Call to action */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin: 0.25rem 0 1.25rem;
}
.cta:hover { opacity: 0.9; }
.legal h2 { font-size: 1.1rem; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }
