* {
  box-sizing: border-box;
}

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #f4f6f7;
  line-height: 1.6;
}

body {
  margin: 0;
}

.wrap {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: #23313d;
  color: white;
  border-bottom: 4px solid #526b7a;
}

.site-header .wrap {
  padding: 22px 0 16px;
}

.site-title {
  display: inline-block;
  margin-bottom: 12px;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

nav a {
  color: #e9f1f5;
  text-decoration: none;
}

nav a:hover,
nav a:focus,
nav a[aria-current="page"] {
  text-decoration: underline;
}

.content {
  margin-top: 32px;
  margin-bottom: 48px;
  padding: 28px 34px;
  background: white;
  border: 1px solid #d9dfe3;
  border-radius: 8px;
}

h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

h2 {
  margin-top: 2rem;
  color: #334e5c;
}

a {
  color: #0645ad;
}

a:visited {
  color: #551a8b;
}

.site-footer {
  padding: 22px 0 36px;
  border-top: 1px solid #ccd3d8;
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 24px, 900px);
  }

  .content {
    padding: 22px 20px;
  }

  nav {
    flex-direction: column;
    gap: 6px;
  }
}


/* Keep the site title readable regardless of visited-link state. */
.site-title,
.site-title:visited,
.site-title:hover,
.site-title:focus {
  color: white;
}

/* Prominent privacy link at the top of the main content. */
.top-links {
  margin: 0 0 22px;
}

.privacy-button,
.privacy-button:visited {
  display: inline-block;
  padding: 10px 16px;
  background: #334e5c;
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
}

.privacy-button:hover,
.privacy-button:focus {
  text-decoration: underline;
}


/* Keep every link in the dark header readable, including visited links. */
.site-header a,
.site-header a:visited,
.site-header a:hover,
.site-header a:focus,
.site-header nav a,
.site-header nav a:visited,
.site-header nav a:hover,
.site-header nav a:focus {
  color: white;
}
