/* Changerail Software LLC — site stylesheet.
   One file, no build step, no JavaScript. Colour values mirror the Changerail
   application's own two themes so the company site and the product read as one
   hand; the site follows the visitor's system setting rather than offering a
   toggle of its own. */

:root {
  --ground:    #f0f2f5;
  --surface:   #ffffff;
  --heading:   #0d1117;
  --body:      #1d2530;
  --muted:     #5b6470;
  --hairline:  #d5dae1;
  --accent:    #2563eb;
  --accent-hi: #1d4ed8;
  /* Links on the raised card surface. Light needs no separate stop — #2563eb
     measures 5.17:1 on white — so it simply tracks the accent. */
  --accent-card:    var(--accent);
  --accent-card-hi: var(--accent-hi);

  --measure: 34rem;
  --gutter: 1.5rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:    #14171c;
    --surface:   #232833;
    --heading:   #eef1f6;
    --body:      #d4d9e2;
    --muted:     #9ca3af;
    --hairline:  #363b45;
    --accent:    #3b82f6;
    --accent-hi: #5a95f7;
    /* The resting accent measures 4.01:1 against the raised card — under AA for
       normal text, and the address in that card is the site's one real call to
       action. Cards therefore take the ramp's next stop up (4.97:1), with a
       lightened tint above it for hover. */
    --accent-card:    #5a95f7;
    --accent-card-hi: #7fb0f9;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── shell ───────────────────────────────────────────────────────────────── */

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

.site-header {
  border-bottom: 1px solid var(--hairline);
  padding: 1.75rem 0;
}

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

.wordmark {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-decoration: none;
}

.wordmark:hover { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

main { flex: 1 0 auto; padding: 3.5rem 0 4.5rem; }

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 1.75rem 0 2.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.footer-links { display: flex; gap: 1.25rem; }

/* ── type ────────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h1 { font-size: 1.875rem; font-weight: 650; }
h2 { font-size: 1.125rem; font-weight: 600; margin-top: 2.5rem; }
h3 { font-size: 1rem;     font-weight: 600; margin-top: 1.75rem; }

p { margin: 0 0 1.125rem; }

.lede {
  font-size: 1.1875rem;
  color: var(--body);
  margin-bottom: 2rem;
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hi); }

ul { padding-left: 1.25rem; margin: 0 0 1.125rem; }
li { margin-bottom: 0.4rem; }

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.5rem 0;
}

/* ── contact card ────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.25rem 1.375rem;
  margin: 2rem 0;
}

.card p:last-child { margin-bottom: 0; }

.card .label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.card .value {
  font-size: 1.0625rem;
  font-weight: 500;
}

.card a { color: var(--accent-card); }
.card a:hover { color: var(--accent-card-hi); }

/* ── focus, for keyboard users ───────────────────────────────────────────── */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.625rem; }
  main { padding: 2.75rem 0 3.5rem; }
}
