/* Project Keystone — shared design system
   Deliberately distinct from the WISP Compliance site: light paper
   background, navy/charcoal ink, serif display type, sharp-edged
   cards and rules instead of dark glass panels and pill buttons. */

:root {
  --paper: #f6f4ef;
  --paper-deep: #eeebe2;
  --panel: #ffffff;
  --line: #dcd7cb;
  --line-strong: #c7c0ae;
  --ink: #14202e;
  --muted: #4b5563;
  --subtle: #6b7280;
  --navy: #0a2255;
  --navy-deep: #04122f;
  --steel: #6c6c6e;
  --accent: #037dc5;
  --accent-deep: #01215f;
  --max: 1180px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */

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

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 84px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
  color: var(--navy);
}

.brand-sub {
  color: var(--subtle);
  font-size: 0.76rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:not(.nav-cta):hover { color: var(--navy); }

.nav-cta {
  padding: 11px 20px;
  border-radius: 4px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.nav-cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid var(--navy);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  background: var(--navy);
  color: #fff;
}

.button.primary:hover { background: var(--accent-deep); }

.button.secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.button.secondary:hover { border-color: var(--navy); }

/* ---------- generic sections ---------- */

section { padding: 96px 24px; }

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

.section-head { max-width: 760px; margin-bottom: 42px; }

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 16px;
}

h1, h2 { font-family: var(--serif); color: var(--navy); }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.1vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.panel {
  background: var(--panel);
  padding: 30px;
}

.panel h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--navy);
  letter-spacing: -0.005em;
}

.panel p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.98rem; }

.number {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: start; }

.list { display: grid; gap: 16px; margin-top: 24px; }

.list-item { display: flex; gap: 14px; color: var(--muted); line-height: 1.55; }

.tick {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  margin-top: 1px;
}

.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 6px;
  padding: 40px;
}

.cta-box h2 { font-size: clamp(1.7rem, 2.4vw, 2.4rem); }

/* ---------- legal / simple content pages ---------- */

.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 76px 24px 90px;
}

.legal-main h1 { margin: 0 0 10px; }

.legal-main .updated {
  color: var(--subtle);
  margin: 0 0 32px;
  font-size: 0.94rem;
}

.legal-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 40px;
}

.legal-panel h2 {
  margin: 38px 0 12px;
  font-size: 1.3rem;
}

.legal-panel h2:first-child { margin-top: 0; }

.legal-panel p, .legal-panel li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.legal-panel ul { padding-left: 22px; }

@media (max-width: 720px) {
  .legal-main { padding: 56px 20px 68px; }
  .legal-panel { padding: 26px; }
}

/* ---------- footer ---------- */

footer {
  padding: 46px 24px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  background: var(--paper-deep);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--navy); }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .nav { min-height: auto; padding: 16px 20px; align-items: flex-start; }
  .nav-links { display: none; }
  .split, .cta-box { grid-template-columns: 1fr; }
  .grid.three, .grid.four { grid-template-columns: 1fr; }
  section { padding: 68px 20px; }
}

@media (max-width: 560px) {
  .brand-mark { width: 46px; height: 46px; }
  .button { width: 100%; }
  .cta-box { padding: 26px; }
}
