/* DAFSEC site styles. No external fonts or scripts, so the strict
   Content-Security-Policy in _headers can block everything else. */

:root {
  --ink: #18262f;          /* deep harbor slate: text and dark sections */
  --ink-soft: #4a5b66;     /* secondary text */
  --paper: #f6f8f7;        /* page background */
  --surface: #ffffff;      /* report panel */
  --mist: #dde5e4;         /* rules and borders */
  --tide: #0e6b66;         /* primary accent: links and buttons */
  --tide-dark: #0a524e;
  --high: #a8322a;
  --med: #a8650f;
  --low: #3d6178;

  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2.1rem, 5.2vw, 3.4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e4ebea;
    --ink-soft: #a9b8b7;
    --paper: #121b20;
    --surface: #1a262c;
    --mist: #2c3b42;
    --tide: #4fb8af;
    --tide-dark: #7dd0c8;
    --high: #f08a80;
    --med: #e8b25e;
    --low: #8fb5cc;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .brand, nav, .button, .report, .small, .site-footer, .text-link {
  font-family: var(--sans);
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); font-weight: 750; max-width: 16ch; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0 0 1em; }

a { color: var(--tide); text-underline-offset: 0.18em; }
a:hover { color: var(--tide-dark); }
:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 44rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--mist); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.04em; }
.brand-mark { width: 1.6rem; height: 1.6rem; color: var(--tide); }
nav { display: flex; gap: 1.25rem; align-items: center; font-size: 0.98rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--tide); }
.nav-cta { font-weight: 650; color: var(--tide); }
@media (max-width: 34rem) { nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.75rem; }

.button {
  display: inline-block; background: var(--tide); color: #fff; text-decoration: none;
  padding: 0.8rem 1.35rem; border-radius: 4px; font-weight: 650;
}
.button:hover { background: var(--tide-dark); color: #fff; }
@media (prefers-color-scheme: dark) {
  .button, .button:hover { color: #0b1a1d; }
}
.text-link { font-weight: 600; }

/* The memorable element: an excerpt styled like an assessment report */
.report {
  background: var(--surface);
  border: 1px solid var(--mist);
  border-top: 4px solid var(--ink);
  padding: 1.5rem 1.5rem 1.25rem;
  font-size: 0.97rem;
}
.report-title { font-weight: 700; margin-bottom: 1rem; }
.findings { list-style: none; margin: 0 0 1rem; padding: 0; }
.findings li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem; align-items: baseline;
  padding: 0.65rem 0; border-bottom: 1px solid var(--mist);
}
.findings li:last-child { border-bottom: 0; }
.sev { font-weight: 700; font-size: 0.85rem; }
.sev::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.4rem; background: currentColor; vertical-align: 0.05em; }
.sev-high { color: var(--high); }
.sev-med { color: var(--med); }
.sev-low { color: var(--low); }
.report-note { color: var(--ink-soft); margin: 0; font-size: 0.9rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-tint { background: var(--surface); border-block: 1px solid var(--mist); }
.section-intro { color: var(--ink-soft); max-width: 40rem; margin-bottom: 2rem; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin: 0; }
@media (max-width: 46rem) { .services { grid-template-columns: 1fr; } }
.service { padding-block: 1.25rem; border-top: 1px solid var(--mist); }
.service dt { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; margin-bottom: 0.35rem; }
.service dd { margin: 0; color: var(--ink-soft); max-width: 34rem; }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--sans); font-weight: 750;
  font-size: 1.1rem; width: 2.2rem; height: 2.2rem; line-height: 2.2rem; text-align: center;
  border: 2px solid var(--tide); color: var(--tide); border-radius: 50%; margin-bottom: 0.9rem;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact a { color: var(--paper); }
.button-light { background: var(--paper); color: var(--ink) !important; text-decoration: none; }
.button-light:hover { background: var(--mist); }
.small { font-size: 0.9rem; opacity: 0.85; margin-top: 1.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--mist); font-size: 0.92rem; color: var(--ink-soft); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; padding-block: 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-soft); }

/* 404 page */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 3rem 1rem; }
