/* bolinder-engines.co.uk — Stage 1 confirmation · navy / brass heritage */
:root,
[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-elevated: #fffdf8;
  --text: #1a2430;
  --text-muted: #5c6670;
  --border: #d8d0c0;
  --primary: #1e4d6b;
  --primary-hover: #163a52;
  --accent: #b8860b;
  --hero-grad: linear-gradient(145deg, #1e4d6b 0%, #0f2a3d 55%, #0a1a24 100%);
  --shadow: 0 10px 28px rgba(26, 36, 48, 0.1);
  --focus: #1e4d6b;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 960px;
  --header-h: 4rem;
}

[data-theme="dark"] {
  --bg: #0d141c;
  --bg-elevated: #15202b;
  --text: #e8eef4;
  --text-muted: #9aabba;
  --border: #2a3a48;
  --primary: #6eb6d9;
  --primary-hover: #92cce8;
  --accent: #d4a84b;
  --hero-grad: linear-gradient(145deg, #163a52 0%, #0f2433 55%, #0a1218 100%);
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  --focus: #6eb6d9;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--primary-hover); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}
.skip-link:focus { left: 0.5rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container.narrow { max-width: 40rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); font-weight: 600; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.theme-toggle:hover { border-color: var(--primary); }

.hero {
  background: var(--hero-grad);
  color: #f5f8fb;
  padding: 3.5rem 0 3.25rem;
}

.hero .badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero .lead {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: 1.1rem;
  color: rgba(245, 248, 251, 0.9);
}

.status-pill {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: rgba(184, 134, 11, 0.22);
  border: 1px solid rgba(212, 168, 75, 0.45);
  color: #f5e6c0;
  font-size: 0.92rem;
}

.section { padding: 2.75rem 0; }
.section-alt { background: var(--bg-elevated); border-block: 1px solid var(--border); }

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }

.card .icon {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.roadmap {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.roadmap li {
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.roadmap li.done {
  color: var(--text);
}

.roadmap li.done strong {
  color: var(--accent);
}

.note {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-inner p { margin: 0; }
.muted { color: var(--text-muted); }
