/* Verifiable Machines — shared stylesheet.
   Hand-written, no build step. Light/dark aware, responsive, accessible.
   Palette and type follow the two-gear logo: blue-forward (brand #1559c0,
   deep navy #072a66), white ground with grey text, DM Sans + Inter. */

/* The two typefaces, served from this site (SIL OFL 1.1, licences in
   fonts/), not from Google Fonts: no visitor's address reaches a third
   party. Variable fonts, latin and latin-ext subsets only. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  --bg:        #ffffff;
  --bg-soft:   #ebf3fe;   /* light blue tint */
  --bg-card:   #ffffff;
  --fg:        #20242a;
  --fg-muted:  #53585a;
  --border:    #d6e3f7;
  --accent:    #1559c0;   /* brand blue: the logo's big gear */
  --accent-fg: #ffffff;
  --accent-ink:#0b3f93;   /* deeper blue for link/text on white (9.7:1) */
  --navy:      #072a66;   /* deep navy: the logo's gear core */

  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --head-font: "DM Sans", var(--body-font);

  --maxw: 60rem;
  --gutter: 1rem;
  --radius: 10px;

  /* One spacing scale for layout rhythm, the same idea as the type scale.
     Heading margins stay in em so they track their own font size. */
  --sp-1: 0.5rem;  --sp-2: 1rem;  --sp-3: 1.5rem;
  --sp-4: 2rem;    --sp-5: 3rem;  --sp-6: 4rem;

  /* readable measure: running text capped near 65 characters */
  --measure: 42rem;

  /* One type scale, ratio ~1.2, anchored at 1rem (= 17px body).
     Every element below uses a step; no ad-hoc sizes. */
  --fs-xs:  0.75rem;   /* eyebrow labels */
  --fs-sm:  0.875rem;  /* meta: footer, notes, code blocks */
  --fs-md:  1.2rem;    /* lead paragraphs, h3 */
  --fs-lg:  1.45rem;   /* h2 */
  --fs-xl:  1.75rem;   /* h1 on small screens */
  --fs-2xl: 2.1rem;    /* h1 */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #061225;   /* deep navy ground */
    --bg-soft:   #0b1f40;
    --bg-card:   #0e2447;
    --fg:        #e9f1fe;
    --fg-muted:  #9fb3cf;
    --border:    #1c3760;
    --accent:    #4f8cf0;
    --accent-fg: #ffffff;
    --accent-ink:#9cc0fb;
    --navy:      #020d1f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--body-font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: var(--head-font); }

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

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

h1, h2, h3 { line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-2xl); margin: 0 0 .4em; }
h2 { font-size: var(--fs-lg); margin: 2.2em 0 .6em; }
h3 { font-size: var(--fs-md); margin: 1.6em 0 .4em; }

p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin: .3em 0; }

/* running text keeps a comfortable measure; headings and cards span the width */
.section .wrap p,
.section .wrap ul { max-width: var(--measure); }

code {
  font: 0.9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .08em .35em;
}

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

.site-head {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-lg);   /* same step as the landing headings */
  line-height: 1.25;
  font-weight: 650;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px;
  flex: none;
}
.nav {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  /* same typography as the brand name, on the same line */
  font-family: var(--head-font);
  font-size: var(--fs-lg);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.nav a { color: var(--fg); }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }

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

.hero { padding: var(--sp-6) 0 var(--sp-4); }
.hero h1 { letter-spacing: -0.02em; }
.hero p.lead {
  font-size: var(--fs-md);
  color: var(--fg-muted);
  max-width: 42rem;
}

/* home hero: soft blue wash, X-Silicon style */
.hero-home {
  background:
    radial-gradient(60rem 22rem at 70% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-5);
}
/* The landing page's statement blocks ("Our mission", "What we do") share one
   heading treatment: the h2 step. The logo, not the headline, is the focal point. */
.hero-home h1 {
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  margin-bottom: .6em;
}

/* home hero: copy on the left, the logo as the focal point on the right */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;  /* art column sized by the image */
  gap: var(--sp-5);
  align-items: center;
}
.hero-art {
  width: 10rem;
  max-width: 100%;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 10px 24px rgba(5, 25, 70, .18));
}
@media (max-width: 46rem) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-art { width: 7rem; }
}

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

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius);
  padding: .6rem 1.1rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: var(--sp-3); }

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--sp-2);
  margin: var(--sp-4) 0;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.kind {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: .5rem;
}
.card p { color: var(--fg-muted); }
.card .more { margin-top: auto; font-weight: 600; }

/* ---- content sections ---- */

main { padding-bottom: var(--sp-5); }
.section { padding: var(--sp-5) 0; }
.section.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* a heading that opens a section rides on the section's padding, not its own */
.section .wrap > h2:first-child { margin-top: 0; }
.lede { font-size: var(--fs-md); color: var(--fg-muted); max-width: 42rem; }

/* brand emphasis inside the hero lead ("trustworthy by design") */
.lead strong {
  font-weight: 600;
  background: linear-gradient(100deg, var(--accent-ink), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .lead strong {
    background: linear-gradient(100deg, #cfe0ff, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: .5em 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list strong { color: var(--fg); }

pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2);
  overflow-x: auto;
  font: var(--fs-sm)/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre code { background: none; border: 0; padding: 0; }

.note {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  border-left: 3px solid var(--border);
  padding: .2rem 0 .2rem 1rem;
  margin: var(--sp-3) 0;
}

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

.site-foot {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  padding: var(--sp-4) 0;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-foot a { color: var(--fg-muted); }

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

/* keep the brand and the nav on one line longer: step both down together */
@media (max-width: 46rem) { .brand, .nav { font-size: var(--fs-md); } }

@media (max-width: 34rem) {
  :root { --gutter: 16px; }
  .hero { padding: var(--sp-5) 0 var(--sp-3); }
  h1 { font-size: var(--fs-xl); }
  .hero p.lead { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color .12s, filter .12s; }
}
