/* Min Projects – site styles
   Colours, type and spacing follow the Min Projects design system (tokens.json).
   Edit freely in BBEdit. Keep text colours as they are: each pair has been checked
   for WCAG 2.2 AA contrast. */

/* ---------- Fonts: Barlow, SIL Open Font License, see fonts/OFL.txt ---------- */
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --surface: #f5f8fb;
  --line: #cfd9e5;
  --ink: #0a192f;
  --ink-muted: #475a73;
  --navy: #0a192f;
  --on-navy: #e6f1ff;
  --on-navy-muted: #94a8c4;
  --accent: #b5471a;
  --accent-on-navy: #f2742a;
  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-max: 1200px;
  --gutter: 48px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}
img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.on-navy a { color: var(--accent-on-navy); }
.on-navy a:hover { color: var(--on-navy); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.on-navy a:focus-visible { outline-color: var(--accent-on-navy); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Header ---------- */
.site-header, .hero {
  background: var(--navy);
  color: var(--on-navy);
}
.site-header .wrap { padding-top: 32px; }
.hero .wrap { padding-top: 64px; padding-bottom: 96px; }
.logo { display: block; height: 40px; width: auto; margin-left: -10px; }
.hero-text { max-width: 860px; }
.bar {
  width: 96px;
  height: 6px;
  background: var(--accent-on-navy);
  margin-bottom: 32px;
}
.hero h1 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-on-navy);
}
.headline {
  margin: 16px 0 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.lead {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: 20px;
  line-height: 30px;
}
.headline + .lead { margin-top: 40px; }
.hero-cta { margin: 40px 0 0; }

/* ---------- Sections ---------- */
.section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding-top: 96px;
}
.section h2 {
  flex: 1 1 260px;
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--accent);
}
.section-body {
  flex: 999 1 520px;
  min-width: 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 28px;
}
.section-body p { margin: 24px 0 0; }
.section-body > :first-child { margin-top: 0; }

.services {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.services li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.services h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.services p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
}

.questions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 16px;
}
.questions li { border-top: 1px solid var(--ink); padding-top: 16px; }
.questions .label {
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.questions .text {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
}
.section-body .after-list { margin-top: 40px; }
.section-body .payoff {
  margin-top: 40px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}

/* ---------- Contact band ---------- */
.contact {
  margin-top: 96px;
  background: var(--navy);
  color: var(--on-navy);
}
.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.portrait { flex: 0 0 auto; display: block; width: 200px; height: 200px; }
.contact-text { flex: 1 1 320px; min-width: 0; }
.contact h2 { margin: 0; font-size: 36px; line-height: 42px; font-weight: 600; }
.contact .email { margin: 16px 0 0; font-size: 20px; line-height: 30px; }
.contact .links { margin: 8px 0 0; }
.contact .sep { color: var(--on-navy-muted); }
.print-only { display: none; }

/* ---------- Footer ---------- */
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}
.site-footer p { margin: 0; }
.footer-notes {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.footer-notes details { flex: 1 1 320px; max-width: 520px; }
.footer-notes summary {
  color: var(--ink);
  font-weight: 600;
  min-height: 24px;
  cursor: pointer;
}
.footer-notes details p { margin-top: 8px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  :root { --gutter: 24px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .lead { font-size: 18px; line-height: 28px; }
  .section { padding-top: 64px; }
  .contact { margin-top: 64px; }
  .contact .wrap { padding-top: 48px; padding-bottom: 48px; }
  .portrait { width: 160px; height: 160px; }
  .contact h2 { font-size: 30px; line-height: 36px; }
}

/* ---------- Respect reduced motion (nothing animates, kept for future edits) ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 15mm; }
  body { background: #fff; font-size: 11pt; line-height: 1.45; }
  .skip-link, .hero-cta, .portrait { display: none; }
  .wrap { padding-left: 0; padding-right: 0; max-width: none; }
  .site-header, .hero, .contact { background: #fff; color: #000; }
  .on-navy a, a { color: #000; }
  .site-header .wrap { padding-top: 0; }
  .hero .wrap { padding-top: 16pt; padding-bottom: 24pt; }
  .logo { filter: invert(1) hue-rotate(180deg); }
  .bar { background: var(--accent); }
  .hero h1 { color: var(--accent); }
  .section { padding-top: 24pt; break-inside: avoid; }
  .contact { margin-top: 24pt; }
  .contact .wrap { padding: 0; }
  .print-only { display: block; margin: 8pt 0 0; }
  .contact .links a::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .footer-notes details > *:not(summary) { display: block; }
  .footer-notes summary { list-style: none; }
}
