:root {
  --redwall-main: #b22222;
  --redwall-accent: #b22222;
  --redwall-bg: #e6e0d8;
  --redwall-text: #222;
}

body {
  margin: 0 auto;
  max-width: 53.75rem;
  padding: 1.5rem;
  letter-spacing: -0.02rem;
  font: 400 1rem/1.7 "Inter", "Noto Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", sans-serif;
  background: var(--redwall-bg);
  color: var(--redwall-text);
  text-align: justify;
}

a {
  color: var(--redwall-main);
  text-decoration: none;
}
a:hover {
  color: var(--redwall-accent);
  text-decoration: underline;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}
header img {
  max-width: 18.75rem;
  height: auto;
  margin-bottom: 1rem;
}
header h1 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--redwall-main);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 0;
  font-size: 1rem;
}

nav li {
  display: inline-flex;
  align-items: center;
}

nav li:not(:last-child)::after {
  content: "•";
  margin: 0 0.6rem;
  color: var(--redwall-main);
  line-height: 1;
}

nav a {
  color: var(--redwall-text);
  transition: color 0.2s, text-decoration 0.2s;
}
nav a:hover {
  color: var(--redwall-main);
  text-decoration: underline;
}

section {
  margin: 2.5rem 0;
  padding-top: 1rem;
  border-top: 0.125rem solid var(--redwall-main);
}

section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--redwall-main);
}

footer {
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 0.1rem;
  color: var(--redwall-text);
  font-size: 1rem;           
}

ul {
  margin: 1rem 0;
  padding-left: 1.4rem;
}
li {
  margin: 0.6rem 0;
}

b {
  font-weight: 600;
  color: var(--redwall-text);
}
.highlight {
  color: var(--redwall-main);
}

.redwall {
  color: var(--redwall-main);
  font-weight: normal;
}

.fade-in {
  opacity: 0;
  transform: translateY(0.94rem);
  animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section:nth-of-type(1) { animation-delay: 0.2s; }
section:nth-of-type(2) { animation-delay: 0.4s; }
section:nth-of-type(3) { animation-delay: 0.6s; }
section:nth-of-type(4) { animation-delay: 0.8s; }
section:nth-of-type(5) { animation-delay: 1s; }
section:nth-of-type(6) { animation-delay: 1.2s; }

@media (max-width: 48rem) {
  html { font-size: 75%; }
}

html, body {
  scroll-behavior: smooth;
}
