/* Blue&White Cross Software: one stylesheet for every page. Nothing here loads from another site:
   Manrope (the logo's typeface, SIL Open Font License) is served from /fonts with its licence. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

/* ---------------------------------------------------------------- colors (the icon's blues) */
:root {
  --navy: #08195a;
  --blue: #2c66e8;
  --blue-deep: #1337a6;
  --bg: #f8fafc;
  --surface: #ffffff;
  --tint: #eaf0fd;
  --text: #334155;
  --heading: #08195a;
  --muted: #5b6b85;
  --line: #dde5f2;
  --link: #1d4fc4;
  --mark: #fff0b3;
  --mark-text: #4a3b00;
  --shadow: 0 1px 2px rgba(8, 25, 90, 0.06), 0 10px 28px rgba(8, 25, 90, 0.09);
  --radius: 14px;
  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060d26;
    --surface: #0d1a45;
    --tint: #0a1538;
    --text: #c9d3ea;
    --heading: #ffffff;
    --muted: #93a2c4;
    --line: #1f2f66;
    --link: #93b3ff;
    --mark: #594800;
    --mark-text: #ffe9a3;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

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

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

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

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 2px; }

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

h1, h2, h3 { font-family: var(--display); color: var(--heading); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--heading);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 16px; }

/* ---------------------------------------------------------------- header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font: 700 1.05rem/1.2 var(--display);
  text-decoration: none;
}
.brand img { display: block; }

.site-header nav { display: flex; gap: 24px; }

.site-header nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--link); }

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #fff; }
.site-footer p { margin: 12px 0 0; }
.site-footer .fine { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 8px;
}
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (prefers-color-scheme: dark) {
  .site-footer { background: #040a1e; border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- home: hero */
.hero {
  color: #fff;
  background: var(--blue-deep) url("/img/hero-1920.jpg") right center / cover no-repeat;
}
.hero .wrap { padding-top: 120px; padding-bottom: 132px; }

.hero h1 {
  margin: 0 0 16px;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 0 34px;
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.4;
}

.button {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: 700 1rem/1 var(--display);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(2, 10, 48, 0.25);
}
.button:hover { background: var(--tint); }
@media (prefers-color-scheme: dark) { .button:hover { background: #dfe8fd; } }

@media (max-width: 960px) {
  .hero { background-image: url("/img/hero-1280.jpg"); }
}

@media (max-width: 720px) {
  /* The ribbons run behind the words here, so the left of the picture is deepened to keep them readable. */
  .hero {
    background-image:
      linear-gradient(90deg, rgba(19, 55, 166, 0.94), rgba(19, 55, 166, 0.6)),
      url("/img/hero-1280.jpg");
    background-position: 70% center;
  }
  .hero .wrap { padding-top: 72px; padding-bottom: 84px; }
}

/* ---------------------------------------------------------------- home: sections */
section { padding: 96px 0; }

section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.split p { max-width: 60ch; }

.lockup {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.features { background: var(--tint); }
.features h2 { text-align: center; margin-bottom: 40px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature {
  overflow: hidden;
  padding-bottom: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feature figure { margin: 0; }
.feature img { display: block; width: 100%; }
.feature figcaption { padding: 10px 22px 0; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.feature h3 { margin: 16px 22px 8px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.feature p { margin: 0 22px; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .lockup { max-width: 560px; }
  .grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .site-header nav { gap: 18px; }
}

/* ---------------------------------------------------------------- legal pages */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.legal .dated { margin: 0 0 24px; color: var(--muted); }

.legal h2 {
  margin: 2.2em 0 0.6em;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 24px;
}

.legal ul { padding-left: 1.2em; }
.legal li { margin: 0.4em 0; }
.legal li::marker { color: var(--blue); }

.legal .draft {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid #d9a800;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contents {
  margin: 0 0 40px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contents h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contents ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.contents li { margin: 0 0 6px; break-inside: avoid; }
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; }

mark.todo {
  padding: 0 0.2em;
  border-radius: 4px;
  background: var(--mark);
  color: var(--mark-text);
}

@media (max-width: 640px) {
  .legal { padding: 40px 16px 72px; }
  .contents ul { columns: 1; }
}

/* ---------------------------------------------------------------- 404 */
.notice h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800; }
