/* Reasoner Solutions — Slate / Ink / Bone */
:root {
  --bone: #F6F5F3;
  --ink: #1F2933;
  --slate: #5B6670;
  --green: #1F3D2B;
  --green-dark: #162C20;
  --line: #D1D5DB;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
  --max: 1120px;

  --h1: clamp(2.6rem, 4vw, 3.25rem);
  --h2: clamp(1.8rem, 2.4vw, 2.25rem);
  --h3: 1.35rem;
  --body: 1.0625rem;
  --small: 0.9375rem;

  --lh-body: 1.75;
  --lh-tight: 1.15;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bone);
}

img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  white-space: nowrap;
}
.brand-mark {
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(31, 61, 43, 0.10);
}
.brand a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.brand small {
  color: var(--slate);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.nav a:hover { color: var(--green); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green); }
/* Ensure nav button text has proper contrast */
.nav .btn-primary {
  color: var(--bone);
}

.nav .btn-primary:hover {
  color: var(--bone);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.78rem 1.05rem;
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: var(--bone);
}
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-secondary:hover { background: rgba(31, 61, 43, 0.06); text-decoration: none; }

.hero { padding: 4.2rem 0 3.2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: start;
}
.kicker {
  color: var(--slate);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: var(--lh-tight);
  margin: 0 0 0.75rem;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 62ch;
  margin: 0 0 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}
.meta-list li { display: grid; gap: 0.15rem; }
.meta-label {
  color: var(--slate);
  font-size: var(--small);
  font-weight: 800;
}
.meta-value { font-weight: 800; }

.section { padding: 4.2rem 0; }
.section.alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: var(--small);
  font-weight: 800;
  background: rgba(31, 61, 43, 0.08);
  color: var(--green);
  border: 1px solid rgba(31, 61, 43, 0.18);
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.list-clean li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--slate);
}
.list-clean li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

hr.sep { border: none; border-top: 1px solid var(--line); margin: 1.6rem 0; }

.site-footer {
  padding: 2.4rem 0;
  color: var(--slate);
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  justify-content: flex-end;
}
.footer-nav a { color: var(--slate); font-weight: 800; text-decoration: none; }
.footer-nav a:hover { color: var(--green); }

.form { display: grid; gap: 0.85rem; }
.field { display: grid; gap: 0.35rem; }
label { font-weight: 800; }
input, textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
}
input:focus, textarea:focus {
  outline: 3px solid rgba(31, 61, 43, 0.18);
  border-color: rgba(31, 61, 43, 0.35);
}
textarea { min-height: 140px; resize: vertical; }

.notice { font-size: var(--small); color: var(--slate); }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 900; color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0 0.3rem;
  }
  .nav[data-open="true"] { display: flex; }
}
