/* Nanomatch static site – single stylesheet, no JavaScript required. */
:root {
  --accent: #e8554e;
  --accent-dark: #c63f39;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --bg-soft: #f5f5f5;
  --dark: #1f1f1f;
  --max: 1100px;
}

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

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

body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent-dark); }
a:hover, a:focus { color: var(--accent); }

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

h1, h2, h3, h4 { line-height: 1.25; color: #111; margin: 1.6em 0 .6em; }
h1 { font-size: 2rem; margin-top: .4em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

blockquote {
  margin: 1.5em 0;
  padding: .2em 1.2em;
  border-left: 4px solid var(--accent);
  color: var(--muted);
}

/* ---- Header & menu --------------------------------------------------- */
.site-header {
  background: var(--dark);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 4px; }
.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu a {
  display: block;
  padding: 6px 10px;
  color: #d6d6d6;
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a:focus { color: #fff; }
.menu a[aria-current] { color: #fff; border-bottom-color: var(--accent); }

/* ---- Breadcrumbs ------------------------------------------------------ */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin: 0 .5em; }
.crumbs a { color: var(--muted); }

/* ---- Content pages ----------------------------------------------------- */
main { padding-bottom: 48px; }
.page { max-width: 960px; }
.page::after { content: ""; display: block; clear: both; }

figure { margin: 1.5em 0; }
figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .4em; }

.aligncenter { margin-left: auto; margin-right: auto; text-align: center; display: block; }
.aligncenter img { margin: 0 auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.ta-center { text-align: center; }
.ta-left { text-align: left; }
.ta-right { text-align: right; }

table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
td, th { padding: 6px 10px; vertical-align: top; border: 1px solid var(--line); }
table.NMCenteredTable td, table.NMCenteredTable th { border: 0; padding: 0 8px; vertical-align: middle; }
figure table, .page > table { display: block; overflow-x: auto; }
table.NMCenteredTable { display: table; }

video { display: block; width: 100%; max-width: 860px; margin: 1.5em 0; background: #000; }

.video-link a {
  position: relative;
  display: inline-block;
  max-width: 480px;
  text-decoration: none;
}
.video-link img { display: block; border-radius: 4px; }
.video-link .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 18px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.video-link a:hover .play { background: var(--accent); }

/* ---- Home page ------------------------------------------------------- */
.wide { max-width: var(--max); }
.hero { margin: 0 -20px; }
.hero img { display: block; width: 100%; }
.mission {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: center;
  margin: 40px 0;
}
.mission img { border-radius: 4px; }
.mission h1 { margin-top: 0; }
section > h2 { margin-top: 1.8em; }
.lead { color: var(--muted); margin-top: -.3em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards a {
  display: block;
  height: 100%;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.cards a:hover, .cards a:focus { border-color: var(--accent); }
.cards img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cards span { display: block; padding: 12px 14px; font-weight: 600; line-height: 1.4; }
.cards a:hover span { color: var(--accent-dark); }

.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin: 48px 0;
  padding: 24px 32px;
  background: var(--bg-soft);
  border-left: 5px solid var(--accent);
  border-radius: 4px;
}
.promo h2 { margin: 0 0 .2em; }
.promo p { margin: 0; }
.button {
  display: inline-block;
  padding: 10px 26px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.button:hover, .button:focus { background: var(--accent-dark); color: #fff; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: #a8a8a8;
  font-size: .9rem;
  padding: 24px 0;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.site-footer a { color: #d6d6d6; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

/* ---- Small screens --------------------------------------------------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .mission { grid-template-columns: 1fr; }
  .alignleft, .alignright { float: none; margin: 1em auto; display: block; }
  table.NMCenteredTable, table.NMCenteredTable tbody,
  table.NMCenteredTable tr, table.NMCenteredTable td { display: block; width: auto !important; }
  table.NMCenteredTable td { padding: 4px 0; text-align: left !important; }
  .promo { padding: 20px; }
}
