/* =========================
   Design Tokens
   ========================= */

:root {
  /* Backgrounds */
  --bg: #f8f9fb;
  --bg-alt: #ffffff;

  /* Text */
  --text: #0f172a;
  --muted: #475569;

  /* Borders */
  --border: #e2e8f0;

  /* Brand */
  --brand: #0b1f3a;
  --brand-soft: #1e3a5f;
  --accent: #9a6a2f;

  /* Links */
  --link: #0b3a6a;
  --link-hover: #092c52;
}

/* =========================
   Base / Reset
   ========================= */

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

html {
  font-size: 17px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background-color: #f8f9fb;
  background: var(--bg);
  color: #0f172a;
  color: var(--text);
  line-height: 1.65;
}

/* =========================
   Layout
   ========================= */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #ffffff;
  background: var(--bg-alt);
  min-height: 100vh;
}

.container {
  max-width: 80ch;
  margin: 0;
  padding: 4rem 0;
}

.section {
  margin-bottom: 3rem;
}

section {
  margin-bottom: 4rem;
}

section + section {
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  border-top-color: var(--border);
}

/* =========================
   Dark Authority Section
   ========================= */

.section-dark {
  background-color: #0b1f3a;
  background: var(--brand);
  color: #ffffff;
}

.section-dark .page {
  background: transparent;
}

.section-dark h1,
.section-dark h2,
.section-dark p {
  color: #ffffff;
}

.section-dark p.muted {
  color: #cbd5e1;
}

.section-dark a {
  color: #93c5fd;
}

.section-dark a:hover {
  color: #ffffff;
}

/* =========================
   Panels (Editorial Style)
   ========================= */

.panel {
  padding: 2rem 0;
}

.panel + .panel {
  border-top: 1px solid #e2e8f0;
  border-top-color: var(--border);
}

.panel h3 {
  margin-top: 0;
}

.panel h3 a {
  text-decoration: none;
}

.panel h3 a:hover {
  text-decoration: underline;
}

.panel p:last-child {
  margin-bottom: 0;
}

/* =========================
   Section Frame
   ========================= */

.section-frame {
  background-color: #ffffff;
  background: var(--bg-alt);
  border-left: 4px solid #1e3a5f;
  border-left-color: var(--brand-soft);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

/* =========================
   Typography
   ========================= */

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
  color: #0b1f3a;
  color: var(--brand);
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem 0;
  color: #0b1f3a;
  color: var(--brand);
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
  color: #0f172a;
  color: var(--text);
}

p {
  margin: 0 0 1.25rem 0;
  color: #0f172a;
  color: var(--text);
}

p.muted,
.muted {
  color: #475569;
  color: var(--muted);
}

strong {
  font-weight: 600;
}

/* =========================
   Lists
   ========================= */

ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

li {
  margin-bottom: 0.5rem;
}

/* =========================
   Links
   ========================= */

a {
  color: #0b3a6a;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #092c52;
  color: var(--link-hover);
}

/* =========================
   Header
   ========================= */

header {
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f0;
  border-bottom-color: var(--border);
}

.logo {
  display: inline-block;
  text-decoration: none;
}

.logo img {
  display: block;
  height: auto;
  width: 220px;
  max-width: 100%;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b1f3a;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  text-decoration: none;
}

/* =========================
   Navigation
   ========================= */

nav {
  margin-top: 1rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: #475569;
  color: var(--muted);
}

nav a:hover,
nav a.active {
  color: #0b1f3a;
  color: var(--brand);
}

nav a.active {
  font-weight: 600;
}

/* =========================
   Main Content
   ========================= */

main {
  margin-top: 0.5rem;
}


/* =========================
   Status Labels
   ========================= */

.status {
  display: inline-block;
  font-size: 0.85rem;
  color: #475569;
  color: var(--muted);
  font-style: italic;
}

/* =========================
   Contact
   ========================= */

.contact-email {
  font-size: 1.2rem;
}

/* =========================
   Forms
   ========================= */

.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #0f172a;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  color: #0f172a;
  color: var(--text);
  background-color: #ffffff;
  background: var(--bg-alt);
  border: 1px solid #e2e8f0;
  border-color: var(--border);
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid #0b1f3a;
  outline-color: var(--brand);
  outline-offset: 1px;
  border-color: #0b1f3a;
  border-color: var(--brand);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

button[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background-color: #0b1f3a;
  background: var(--brand);
  border: none;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #0b3a6a;
  background: var(--link);
}

button[type="submit"]:focus {
  outline: 2px solid #0b1f3a;
  outline-color: var(--brand);
  outline-offset: 2px;
}

/* =========================
   Footer
   ========================= */

footer {
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #475569;
  color: var(--muted);
  border-top: 1px solid #e2e8f0;
  border-top-color: var(--border);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: auto;
  width: 160px;
  max-width: 100%;
}

footer p {
  margin: 0 0 0.5rem 0;
}

footer a {
  color: #475569;
  color: var(--muted);
}

footer a:hover {
  color: #0b1f3a;
  color: var(--brand);
}

.footer-links {
  margin-top: 0.75rem;
}

.footer-links a {
  margin-right: 1.5rem;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  nav ul {
    gap: 1rem;
  }
}
