/* Site styles. No external fonts, scripts or stylesheets are loaded. */

:root {
  --brand: #015bab;
  --brand-strong: #013f78;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --text: #1c1f24;
  --muted: #5b6470;
  --border: #dde1e6;
  --measure: 44rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6aa8ea;
    --brand-strong: #9cc6f3;
    --bg: #121418;
    --surface: #1b1e24;
    --text: #e7e9ec;
    --muted: #a3abb6;
    --border: #2c313a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font);
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Masthead */

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem 0;
  text-align: center;
}

.masthead-link {
  display: block;
  width: min(100%, 26rem);
  margin: 0 auto;
}

.masthead-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.12);
}

.site-nav ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { color: var(--brand); }

.site-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Content */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

h1, h2, h3, h4, h5 { line-height: 1.25; margin: 2rem 0 0.75rem; }
h1 { font-size: 2rem; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4, h5 { font-size: 1.05rem; }

p, ul, ol { margin: 0 0 1rem; }
.page li + li { margin-top: 0.35rem; }

a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-strong); }

/* Home page: the welcome heading and tagline */
.page h1:first-child + p {
  color: var(--muted);
  font-size: 1.15rem;
}

/* Contact form */

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form label { display: grid; gap: 0.35rem; font-weight: 500; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.contact-form button {
  justify-self: start;
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .contact-form button { color: #0b1320; }
}

.contact-form button:hover { background: var(--brand-strong); }

.form-note { color: var(--muted); font-size: 0.95rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.25rem 1rem;
}

.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: inherit; }
