/* ==========================================================================
   SOFTimpact — static site stylesheet
   Single file, no external dependencies, no JavaScript.
   ========================================================================== */

:root {
  --blue: #0088cb;
  --blue-dark: #036aa0;
  --navy: #0d2537;
  --navy-soft: #143349;
  --ink: #17222b;
  --muted: #5c6b78;
  --line: #e1e8ee;
  --soft: #f4f7f9;
  --wrap: 1120px;
  --radius: 6px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img { width: 190px; }

/* the two menus stack at the right of the logo:
   a small utility row on top, the main product menu underneath */
.header-menus {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.nav-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.nav-utility a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.nav-utility a:hover { color: var(--blue); text-decoration: none; }
.nav-utility a.is-current { color: var(--blue); }

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
}

.nav-main a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover { color: var(--blue); text-decoration: none; }
.nav-main a.is-current { color: var(--blue); border-bottom-color: var(--blue); }

/* ----------------------------------------------------------------- bands -- */

.band { padding: 72px 0; }
.band--soft { background: var(--soft); }
.band--tight { padding: 48px 0; }

.band--dark {
  background: var(--navy);
  color: #fff;
}

.band--dark h1, .band--dark h2, .band--dark h3 { color: #fff; }
.band--dark a { color: #7fd0f5; }

/* ------------------------------------------------------------------ hero -- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

/* heroes that carry a screenshot let it overhang the band instead */
.hero--shot { padding-bottom: 0; }

.hero h1 { color: #fff; max-width: 20ch; margin-inline: auto; }

.hero .lead {
  max-width: 62ch;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: #c6d7e4;
}

.hero .tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: #9fd6f2;
  margin-bottom: 40px;
}

.hero-shot {
  max-width: 860px;
  margin: 0 auto;
  transform: translateY(40px);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -2px 40px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.hero + .band,
.hero + .band--soft { padding-top: 88px; }

/* ------------------------------------------------------------ intro copy -- */

.intro {
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

/* a heading with no sub-line under it needs the spacing itself */
.section-title--spaced { margin-bottom: 48px; }

.section-quote {
  text-align: center;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--blue);
  max-width: 40ch;
  margin: 0 auto 56px;
}

.band--dark .section-quote { color: #7fd0f5; }

/* ---------------------------------------------------------- pillar cards -- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.pillar h3 { color: var(--blue-dark); }
.pillar p { color: var(--muted); font-size: .97rem; margin: 0; }

.band--dark .pillar {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  border-top-color: var(--blue);
}

.band--dark .pillar h3 { color: #7fd0f5; }
.band--dark .pillar p { color: #c6d7e4; }

/* ----------------------------------------------------------- feature row -- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-row + .feature-row { margin-top: 72px; }

.feature-row--flip .feature-text { order: 2; }
.feature-row--flip .feature-media { order: 1; }

.feature-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(13, 37, 55, .13);
}

.feature-text h2, .feature-text h3 { margin-bottom: .35em; }

.feature-text .quote {
  font-style: italic;
  color: var(--blue);
  margin-bottom: 1em;
}

.feature-text p, .feature-text li { color: var(--muted); }
.band--dark .feature-text p, .band--dark .feature-text li { color: #c6d7e4; }

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

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 11px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
}

.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }

.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }

/* ----------------------------------------------------------- people/cards -- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.person img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
}

.person .role { color: var(--muted); font-size: .95rem; margin-bottom: .8em; }
.person .meta { font-size: .9rem; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------- timeline -- */

.timeline {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 32px;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}

.timeline .year {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
}

.timeline .event { color: var(--muted); }

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

.prose { max-width: 78ch; margin: 0 auto; }
.prose h1 { font-size: 2.1rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose .updated { font-size: .9rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p { margin: 0 0 .3em; }

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

@media (max-width: 860px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }

  .band { padding: 52px 0; }
  .hero { padding: 52px 0; }
  .hero--shot { padding-bottom: 0; }
  .hero-shot { transform: translateY(28px); }
  .hero + .band, .hero + .band--soft { padding-top: 64px; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-row + .feature-row { margin-top: 52px; }

  /* keep image above text on narrow screens, whatever the desktop order */
  .feature-row--flip .feature-text,
  .feature-row--flip .feature-media { order: 0; }

  .header-inner { justify-content: center; align-items: center; }
  .header-menus { align-items: center; gap: 8px; width: 100%; }
  .nav-utility, .nav-main { justify-content: center; }
  .nav-main { gap: 4px 18px; }
  .logo img { width: 160px; }
}
