/* Second Chance Interventions — direct, warm, unslick. System fonts only. */
:root {
  --ink: #241c16;
  --ink-soft: #3f342b;
  --paper: #f3ece4;
  --paper-2: #e9dfd2;
  --muted: #6a5e52;
  --rule: #d7c9b8;
  --accent: #7a3216;
  --accent-hover: #541f0c;
  --header: #2a2118;
  --header-fg: #f8f1e8;
  --bar: #7a3216;
  --focus: #7a3216;
  --max: 40rem;
  --wide: 68rem;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

a:hover { color: var(--accent-hover); }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--header);
  color: var(--header-fg);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip:focus { top: 0.75rem; }

.topbar {
  height: 0.4rem;
  background: var(--bar);
}

.site-header {
  background: var(--header);
  color: var(--header-fg);
  padding: 0.95rem 1.25rem 1.05rem;
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.brand {
  color: var(--header-fg);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand:hover, .brand:focus { color: #fff; }

.brand span {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #d2c4b4;
}

.header-cta {
  color: var(--header-fg);
  text-decoration: none;
  font-weight: 650;
  border: 1px solid #cbbcae;
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-cta:hover { color: #fff; border-color: #fff; }

.nav-toggle { width: 100%; }
.nav-desktop { display: none; }

.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
  color: var(--header-fg);
}

.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary::after { content: "Menu"; }
.nav-toggle[open] > summary::after { content: "Close"; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-nav a {
  color: var(--header-fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  border-bottom: 1px solid #3f342b;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  color: #fff;
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-desktop {
    display: block;
    flex: 1 1 100%;
    order: 3;
  }
  .nav-desktop.site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.15rem 1.15rem;
    padding: 0.15rem 0 0;
  }
  .nav-desktop.site-nav a {
    border-bottom: none;
    font-size: 0.95rem;
  }
}

main { flex: 1; }

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

h1, h2, h3 {
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  margin: 0 0 1.15rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.1rem 0 0.65rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.45rem;
}

.stack p {
  margin: 0 0 0.7rem;
}

.kick {
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink);
}

.card-grid {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 1.8rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--paper-2);
  border-left: 4px solid var(--bar);
  padding: 1rem 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover { color: inherit; background: #e3d6c6; }

.card h2, .card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--accent);
}

.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.cta {
  margin: 2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 2px solid var(--bar);
}

.cta .phone, .cta .contact-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  min-height: 44px;
  padding: 0.2rem 0;
}

.cta .phone:hover, .cta .contact-link:hover { text-decoration: underline; }

.confirm {
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: #efe4c8;
  padding: 0.1em 0.3em;
}

.nap p { margin: 0 0 0.35rem; }

.sources {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.sources summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.note {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
}

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }

.site-footer {
  background: var(--header);
  color: #d2c4b4;
  padding: 1.75rem 1.25rem 2.2rem;
  font-size: 0.98rem;
}

.footer-inner { max-width: var(--wide); margin: 0 auto; }

.site-footer a { color: #f0d3c0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--header-fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-nav a:hover { text-decoration: underline; }

.cross-link { margin: 1rem 0 0.35rem; font-size: 0.95rem; }
.copyright { margin: 0.5rem 0 0; font-size: 0.9rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
