/* FlexSense site styles.
   One stylesheet for the whole site — every page links this file and nothing else.
   Colour lives in custom properties on :root so the dark override below is the only
   place light/dark diverges. Add new colours here, in both blocks. */

:root {
  --bg: #ffffff;
  --fg: #12161c;
  --muted: #59636f;
  --line: #e3e7ec;
  --accent: #0f8f76;
  --navy: #042550;
  --card: #f7f9fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1216;
    --fg: #e9edf1;
    --muted: #9aa5b1;
    --line: #232a32;
    --accent: #3ecf9a;
    --navy: #cfe0ff;
    --card: #151b21;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ------------------------------------------------------------ */

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }

/* Standard vertical rhythm for a content section. */
.section { padding-bottom: 4rem; }

/* First section on an interior page — stands in for the homepage hero's top space. */
.section-head { padding-top: 3rem; }

/* ---- Header ------------------------------------------------------------ */

header {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}
/* The icon PNG has an opaque white background, so it sits on its own
   white tile rather than trying to blend into the page. */
.logo img {
  width: 2rem;
  height: 2rem;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}
.logo .wordmark { color: var(--fg); }
.logo .wordmark span { color: var(--accent); }

nav a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; font-size: 0.95rem; }
nav a:hover { color: var(--fg); }
/* Marks the nav item for the page you are on. */
nav a[aria-current="page"] { color: var(--fg); }

/* ---- Typography -------------------------------------------------------- */

.hero { padding: 5rem 0 4rem; }

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 20ch;
}

/* Page heading for interior pages — smaller than the homepage hero. */
.page-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-title { letter-spacing: -0.02em; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 0 0 2rem; }

/* Running body copy. */
.prose { color: var(--muted); max-width: 60ch; }

a.link { color: var(--accent); }

/* ---- Components -------------------------------------------------------- */

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.cta:hover { filter: brightness(1.08); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding-bottom: 4rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}
.card h2 { font-size: 1.05rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Footer ------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin: 0.25rem 0; }
