/* Storm Agents site stylesheet.  Copyright (c) 2026, Storm Agents Inc. */

:root {
  --ink: #111111;
  --ink-soft: #444444;
  --muted: #6b6b6b;
  --rule: #e4e4e4;
  --purple: #7030a0;        /* the logo's node purple */
  --purple-deep: #52207a;
  --bg: #ffffff;
  --measure: 40rem;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--purple); text-decoration: none; }
a:hover, a:focus-visible {
  color: var(--purple-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.brand .mark { height: 52px; width: auto; }
.brand .wordmark { height: 38px; width: auto; }

.site-nav { display: flex; gap: 22px; font-size: 0.95rem; }
.site-nav a { color: var(--ink-soft); }
.site-nav a[aria-current="page"] { color: var(--purple); }

/* ---- landing --------------------------------------------------------- */

.landing {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh var(--gutter);
}
.question {
  font-size: clamp(2.25rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  color: var(--ink);
  border-bottom: 0.08em solid transparent;
  transition: color .15s, border-color .15s;
}
.question:hover, .question:focus-visible {
  color: var(--purple);
  border-color: var(--purple);
  text-decoration: none;
}

/* ---- prose pages ----------------------------------------------------- */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4vh var(--gutter) 10vh;
}
.page h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.4em 0 0.5em;
}
.page h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
}
.page h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
.page p { margin: 0 0 1.1em; }

.lede { font-size: 1.3rem; line-height: 1.45; }
.kicker {
  color: var(--purple);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.3em;
}
.note { color: var(--muted); font-size: 0.95rem; }
.ul {
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* vignettes: the record has a solid purple rule, scenarios a dashed grey one */
.case {
  margin: 0 0 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--purple);
}
.case .when {
  display: block;
  color: var(--purple);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.case p { margin: 0; }
.scenario { border-left-style: dashed; border-left-color: #bdbdbd; }

.patterns { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.patterns li { position: relative; margin: 0 0 0.9rem; padding-left: 2.2rem; }
.patterns li::before {
  counter-increment: p;
  content: counter(p);
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--purple);
  font-weight: 700;
}

.promise { margin: 0 0 2rem; }
.promise h3 { margin-top: 0; }

.cta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.cta a { font-weight: 600; }

/* ---- contact --------------------------------------------------------- */

.contact address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.7;
}

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

.site-footer {
  padding: 24px var(--gutter);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .brand .mark { height: 40px; }
  .brand .wordmark { height: 29px; }
  .site-nav { gap: 14px; }
}
