:root {
  --navy: #17324d;
  --blue: #315b7d;
  --green: #4c806e;
  --cream: #f6f5f0;
  --white: #ffffff;
  --text: #25313b;
  --muted: #5b6872;
  --border: #dce3e6;
  --focus: #d49b36;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100% - 1120px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.logo__mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

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

header nav a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

main {
  width: min(100% - 2rem, 1120px);
  margin: 2rem auto 4rem;
}

main > section {
  margin: 1.5rem 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--white);
}

main > section:first-child {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--navy);
  color: var(--white);
}

main > section:first-child h1 {
  max-width: 15ch;
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1.08;
}

main > section:first-child a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: 0.4rem;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

main > section:first-child a:hover {
  background: #3d6c5c;
}

h2 {
  margin-top: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

main > section:first-child h2 {
  color: var(--white);
}

p,
li {
  max-width: 70ch;
}

details {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
}

footer {
  padding: 2rem max(1.25rem, calc((100% - 1120px) / 2));
  background: var(--navy);
  color: var(--white);
}

footer a {
  color: var(--white);
}

@media (max-width: 700px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 0.5rem 1rem;
  }

  main {
    width: min(100% - 1rem, 1120px);
    margin-top: 0.5rem;
  }

  main > section {
    border-radius: 0.6rem;
  }
}
