html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 24px 32px;
  background: white;
  color: #0000cc;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.45;
}

header {
  text-align: center;
  border-bottom: 2px solid #0000cc;
  padding-bottom: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
}

.subtitle {
  font-size: 28px;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 650px;
}

nav {
  padding: 30px 22px 30px 0;
  border-right: 2px solid #0000cc;
}

nav a {
  display: block;
  margin-bottom: 13px;
}

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

main {
  padding: 30px 48px;
  max-width: 900px;
}

h2 {
  font-size: 38px;
  margin-top: 0;
}

h3 {
  font-size: 26px;
  margin-top: 38px;
}

section {
  margin-bottom: 55px;
}

hr {
  border: 0;
  border-top: 2px solid #0000cc;
  margin: 50px 0;
}

a {
  color: #0000cc;
  text-decoration: underline;
}

a:visited {
  color: #0000cc;
}

.thanks {
  text-align: center;
  margin: 55px 0 10px;
}

footer {
  border-top: 2px solid #0000cc;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 700px) {
  body {
    padding: 16px;
    font-size: 17px;
  }

  .layout {
    display: block;
    min-height: 0;
  }

  nav {
    border-right: 0;
    border-bottom: 2px solid #0000cc;
    padding: 18px 0;
  }

  nav a {
    display: inline-block;
    margin: 0 18px 8px 0;
  }

  main {
    padding: 28px 0;
  }

  h2 {
    font-size: 32px;
  }

  footer {
    display: block;
  }

  footer span {
    display: block;
    margin-bottom: 6px;
  }
}
