:root {
  --primary: #183153;
  --secondary: #2f6690;
  --accent: #d9e9f7;
  --surface: #ffffff;
  --page: #f4f7fb;
  --text: #1f2933;
  --muted: #52606d;
  --border: #cbd2d9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--page);
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  text-align: center;
  padding: 2.5rem 1.25rem;
}

main {
  width: 88%;
  max-width: 68rem;
  margin: 2rem auto;
}

section,
article,
form,
blockquote,
figure {
  background-color: var(--surface);
  border: 0.08rem solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  text-shadow: 0.08rem 0.08rem 0.18rem rgba(0, 0, 0, 0.12);
}

header h1,
header h2 {
  color: #ffffff;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

h2 {
  font-size: 1.45rem;
  margin-top: 0;
}

p,
ul,
ol,
dl {
  font-size: 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
  list-style-position: outside;
}

ul {
  list-style-type: square;
}

ol {
  list-style-type: upper-roman;
}

nav {
  background-color: var(--primary);
  padding: 0.9rem 1rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

nav li {
  margin: 0;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.45rem 0.8rem;
  border-radius: 0.45rem;
}

nav a:hover,
nav a:focus {
  background-color: rgba(255, 255, 255, 0.18);
}

a {
  color: var(--secondary);
}

a:hover,
a:focus {
  color: var(--primary);
}

footer {
  text-align: center;
  background-color: var(--accent);
  padding: 1rem;
  margin-top: 2rem;
  border-top: 0.12rem solid var(--border);
}

.highlight {
  background-color: #fff3bf;
  font-style: italic;
  font-weight: bold;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

#intro {
  border-left: 0.35rem solid var(--secondary);
}

#current-page {
  background-color: rgba(255, 255, 255, 0.22);
}

input,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
textarea {
  padding: 0.75rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.5rem;
  margin-top: 0.35rem;
}

button {
  background-color: var(--secondary);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
}

button:hover,
button:focus {
  background-color: var(--primary);
}

img {
  width: 100%;
  max-width: 25rem;
  height: auto;
  border-radius: 0.6rem;
  border: 0.08rem solid var(--border);
}

figure {
  text-align: center;
}

time {
  display: inline-block;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

blockquote {
  font-style: italic;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 48rem) {
  header {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  main {
    width: 92%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}
