/* Northern Light Analytics — shared stylesheet
   Implements references/design-system.md ("Aurora Ridge", Carbon-inspired editorial system,
   derived from the ARGUS Solution Brief). Edit tokens below to restyle the whole site. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');
/* NOTE: loaded from Google's CDN for this first-pass build. references/tech-stack.md calls for
   self-hosting fonts in the production build — swap this @import for local @font-face rules
   before the Astro build ships. */

:root {
  /* Color — ink surfaces, light everything else */
  --color-ink: #161616;              /* near-black surface + primary text */
  --color-text: #161616;
  --color-text-secondary: #525252;   /* body secondary */
  --color-muted: #8D8D8D;            /* captions, metadata */
  --color-bg: #FFFFFF;
  --color-panel: #F4F4F4;           /* light panel fill */
  --color-border: #E0E0E0;          /* hairlines on light */
  --color-border-dark: #393939;      /* hairlines on dark */

  /* Text on dark */
  --color-on-dark: #F4F4F4;
  --color-on-dark-secondary: #A8A8A8;

  /* Accent — teal, used sparingly */
  --color-teal: #2FA88F;            /* on light */
  --color-teal-bright: #2FBFA0;      /* bright */
  --color-teal-on-dark: #42D5BB;     /* on dark */
  --color-teal-deep: #1E7A65;        /* links on light, hover */
  --color-blue: #3D6FE0;            /* gradient end */

  /* Signature gradient — dark surfaces only */
  --gradient-signature: linear-gradient(90deg, #2FBFA0, #3D6FE0 55%, #161616);

  /* Type */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --measure: 38rem;
  --content-width: 64rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Headings — light display weight, sentence case, tight tracking */
h1, h2 {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-top: 0.2em; }
h3 { font-size: 1.2rem; }

/* Section rule — content blocks open with a 2px ink rule above the heading */
section h2 {
  border-top: 2px solid var(--color-ink);
  padding-top: 1.1rem;
  margin-top: 0;
}

/* Small kicker / label — 600 weight, teal, sentence case */
.kicker {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-teal);
  margin-bottom: 0.8rem;
  display: block;
}

/* Big feature heading — used above the ARGUS screenshot on home */
.feature-heading {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: -0.01em;
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 42rem;
  border-top: none;
  padding-top: 0;
}

@media (min-width: 768px) {
  .feature-heading { font-size: 2.6rem; }
}

.feature-lede {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 44rem;
}

@media (min-width: 768px) {
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.4rem; }
}

p { margin: 0 0 1.25em; color: var(--color-text-secondary); }

a {
  color: var(--color-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

ul { padding-left: 1.25em; color: var(--color-text-secondary); }
li { margin-bottom: 0.5em; }
li strong { color: var(--color-text); }

img { max-width: 100%; display: block; }

/* Layout */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: var(--measure);
}

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section { padding: 6rem 0; }
}

.section-tight { padding: 2.5rem 0; }

/* Nav — simple horizontal text nav, light, hairline underline */
.site-nav {
  border-bottom: 1px solid var(--color-border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav .brand {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav .brand-logo {
  height: 52px;
  width: auto;
  display: block;
  /* the logo file has generous whitespace padding; a negative margin trims some of it visually
     without cropping the source file */
  margin: -6px -4px;
}

@media (min-width: 768px) {
  .site-nav .brand-logo { height: 60px; }
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-teal);
}

/* Buttons — squared, ink fill on light surfaces, arrow suffix in copy */
.btn {
  display: inline-block;
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: #000; color: #fff; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
}

@media (min-width: 768px) {
  .hero { padding: 7rem 0 5rem; }
}

.hero .subhead {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: var(--measure);
}

/* Dark "cover" hero — the one dark moment on the home page, with the gradient strip */
.hero-cover {
  background: var(--color-ink);
  color: var(--color-on-dark);
  position: relative;
}

.hero-cover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-signature);
}

.hero-cover h1 { color: var(--color-on-dark); }
.hero-cover .subhead { color: var(--color-on-dark-secondary); }
.hero-cover .kicker { color: var(--color-teal-on-dark); }

.hero-cover .btn {
  background: var(--color-teal-bright);
  color: var(--color-ink);
}
.hero-cover .btn:hover { background: var(--color-teal-on-dark); color: var(--color-ink); }

/* Stat block — one oversized light-weight number + caption + source */
.stat {
  margin: 0;
  max-width: 44rem;
}

.stat .stat-number {
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--color-ink);
  margin: 0 0 0.6rem;
}

@media (min-width: 768px) {
  .stat .stat-number { font-size: 4.5rem; }
}

.stat .stat-number em {
  font-style: normal;
  color: var(--color-teal);
}

.stat .stat-caption {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin: 0 0 0.5rem;
  max-width: 34rem;
}

.stat .stat-source {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}

/* Cards — hairline grid, flat, numbered 01/02/03 */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  counter-reset: card;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-bg);
  border: none;
  border-radius: 0;
  padding: 1.9rem 1.75rem;
  counter-increment: card;
}

.card::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

.card h3 { margin-bottom: 0.5em; }

.card p { margin-bottom: 0; color: var(--color-text-secondary); }

/* Social proof strip */
.proof-strip {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Placeholder blocks — for screenshots, headshot, PDFs not yet supplied */
.placeholder {
  border: 1px dashed var(--color-border);
  border-radius: 0;
  background: var(--color-panel);
  color: var(--color-muted);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Pipeline diagram (ARGUS 5 stages) — editorial hairline cells, teal numbers */
.pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin: 2rem 0;
}

@media (min-width: 900px) {
  .pipeline {
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
  }
}

.pipeline-step {
  border: none;
  border-radius: 0;
  background: var(--color-bg);
  padding: 1.75rem 1.25rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background 0.2s ease;
}

.pipeline-step:hover {
  background: var(--color-panel);
}

.pipeline-step .step-number {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 0.85rem;
  align-self: flex-start;
}

.pipeline-step h3 {
  margin-bottom: 0.5em;
  color: var(--color-text);
  font-size: 1.05rem;
}

.pipeline-step p { font-size: 0.92rem; margin-bottom: 0; color: var(--color-text-secondary); flex: 1; line-height: 1.5; }

/* Screenshot figures (ARGUS captures) — framed in ink with rounded padding */
.screenshot {
  margin: 2rem 0;
  padding: 0;
}

.screenshot img {
  width: 100%;
  height: auto;
  background: var(--color-ink);
  padding: 12px;
  border: none;
  border-radius: 12px;
}

.screenshot figcaption {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
}

/* Domain list */
.domain-list li { margin-bottom: 0.75em; }

/* Closing CTA band — the dark moment, with gradient signature strip on top */
.cta-band {
  background: var(--color-ink);
  color: var(--color-on-dark);
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-signature);
}

.cta-band h2 {
  color: var(--color-on-dark);
  border-top: none;
  padding-top: 0;
}

.cta-band p { color: var(--color-on-dark-secondary); }

.cta-band .btn {
  background: var(--color-teal-bright);
  color: var(--color-ink);
}

.cta-band .btn:hover { background: var(--color-teal-on-dark); color: var(--color-ink); }

/* Footer — minimal, text-only */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer p { color: var(--color-muted); margin: 0; }
.site-footer a { color: var(--color-muted); }
.site-footer a:hover { color: var(--color-ink); }

/* About photo */
.about-hero {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.about-copy { flex: 1 1 320px; }

.about-photo {
  flex: 0 0 auto;
  margin: 0;
  width: 100%;
  max-width: 240px;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid var(--color-border);
  display: block;
}

.about-photo figcaption {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
}

.headshot-placeholder {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  align-items: center;
  justify-content: center;
}

/* Contact list */
.contact-list {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
}

.contact-list li { margin-bottom: 0.9em; }

.contact-list .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-teal);
  margin-bottom: 0.15em;
}
