:root {
  --blue: #1d4ed8;
  --blue-deep: #1e40af;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.82);
  --white-faint: rgba(255, 255, 255, 0.35);
  --line: rgba(255, 255, 255, 0.18);
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  background: var(--blue);
  color: var(--white);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--white); }

/* Header and footer, the same on every page. The header stays at the top while the page scrolls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: var(--blue);
  padding: 16px max(16px, calc((100% - 1048px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-link { display: block; }
.home-link .logo { width: 96px; }
.site-header nav { display: flex; gap: 24px; margin-left: auto; }
.site-header nav a {
  color: var(--white-soft);
  text-decoration: none;
  font-size: 0.98rem;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.site-footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--white-soft);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--white-soft); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.logo {
  display: block;
  width: min(300px, 70vw);
  aspect-ratio: 831 / 423;
  background-color: var(--white);
  -webkit-mask: url('/meric-logo.png') no-repeat center / contain;
  mask: url('/meric-logo.png') no-repeat center / contain;
}

/* Home */
.hero {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pitch {
  margin-top: 48px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--white-soft);
  max-width: 30em;
}
.field {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--white-faint);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  outline: none;
}
.field::placeholder { color: rgba(255, 255, 255, 0.6); }
.field:focus { border-color: var(--white); background: rgba(255, 255, 255, 0.14); }
textarea.field {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.5;
}
.primary {
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 0;
  background: var(--white);
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.primary:hover { background: #eff6ff; }
.primary:disabled { opacity: 0.7; cursor: default; }
.status { margin-top: 14px; min-height: 1.4em; font-size: 0.95rem; color: var(--white-soft); }
#contact {
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
#contact .row { display: flex; gap: 8px; }
#contact > .field { flex: none; }
#contact .primary { align-self: flex-end; }
.hp { position: absolute; left: -9999px; }

/* Reading pages (mission, contact, team) */
.page {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-soft);
}
.statement {
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.25;
  font-weight: 700;
}
.page section { margin-top: 44px; }
.page h2 { font-size: 1.3rem; font-weight: 600; }
.page p { margin-top: 14px; font-size: 1.08rem; line-height: 1.65; color: var(--white-soft); }
.page .status { font-size: 0.95rem; }
/* The mission page's text runs 20% wider than the other pages' */
.page-wide { max-width: 858px; }

/* Team */
.people { margin-top: 32px; display: grid; gap: 20px; }
.person {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.person img {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}
.person h2 { font-size: 1.2rem; }
.person .role { margin-top: 2px; font-size: 0.95rem; color: var(--white-soft); }
.person p { margin-top: 10px; font-size: 1rem; }

@media (max-width: 480px) {
  #contact .row { flex-direction: column; }
  #contact .row .field { flex: none; width: 100%; }
  .primary, #contact .primary { width: 100%; align-self: stretch; justify-content: center; }
  .pitch { font-size: 1.08rem; margin-top: 40px; }
  .site-header nav { gap: 18px; }
  .person { flex-direction: column; }
}
