:root {
  color-scheme: light;
  --ink: #17324a;
  --muted: #5d7182;
  --deep-blue: #123653;
  --water-blue: #287b9c;
  --ice: #edf4f7;
  --line: #d1dee5;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #f4f8fa 0%, var(--ice) 52%, #dce8ee 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

a {
  color: #176b8b;
}

a:hover {
  color: #0d4c6c;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem max(1rem, calc((100% - 1120px) / 2));
  color: #f5fbff;
  background: linear-gradient(105deg, #102f49, #1b536f);
  border-bottom: 4px solid #68aabe;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: clamp(64px, 10vw, 88px);
  height: auto;
  border-radius: 50%;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
}

.brand-copy p {
  margin: 0.25rem 0 0;
  color: #d2e6ef;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-nav .nav-link {
  padding: 0.55rem 0.9rem;
  color: var(--deep-blue);
  font-weight: 700;
  border-radius: 0.35rem;
  text-decoration: none;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: #0d4c6c;
  background: #e9f3f7;
}

.site-nav [aria-current="page"] {
  color: #fff;
  background: var(--water-blue);
}

.page-main.container {
  display: flex;
  flex: 1 0 auto;
  align-items: stretch;
  gap: 1.25rem;
  width: min(100% - 2rem, 1120px);
  max-width: 1120px;
  padding: 2rem 0;
}

.content-panel {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-top: 4px solid #4a91a9;
  border-radius: 0.6rem;
  box-shadow: 0 12px 28px rgba(25, 59, 79, 0.08);
}

.content-panel h2 {
  margin: 0 0 0.65rem;
  color: var(--deep-blue);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.content-panel > p {
  color: var(--muted);
  line-height: 1.65;
}

form {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

form label {
  margin-top: 0.25rem;
  color: var(--deep-blue);
  font-weight: 700;
}

.form-control {
  min-width: 0;
  border-color: #b9cbd5;
}

.form-control:focus {
  border-color: #3785a2;
  box-shadow: 0 0 0 0.2rem rgba(55, 133, 162, 0.2);
}

.btn-primary {
  justify-self: start;
  margin-top: 0.45rem;
  padding-inline: 1.35rem;
  background: var(--water-blue);
  border-color: var(--water-blue);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #1b637f;
  border-color: #1b637f;
}

.btn:disabled,
.form-control:disabled {
  cursor: not-allowed;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding: 1rem max(1rem, calc((100% - 1120px) / 2));
  color: #d4e2e9;
  background: #102f49;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #a8d9e8;
}

.site-footer p:last-child {
  flex-basis: 100%;
  color: #f5fbff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  text-align: center;
}

:focus-visible {
  outline: 3px solid #80c5d8;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .site-header {
    padding: 1rem;
  }

  .page-main.container {
    flex-direction: column;
    gap: 1rem;
    padding-block: 1.25rem;
  }

  .content-panel {
    flex-basis: auto;
  }

  .site-footer {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header .brand-copy p {
    max-width: 22ch;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav .nav-link {
    padding-inline: 0.65rem;
  }
}