/* Reset & Box Model */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Skip Link - Visible on Focus */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #e63946;
  color: #fff;
  padding: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
}

.skip-link:focus {
  top: 6px;
}

/* Body & Typography */
body {
  font-family: 'Libre Baskerville', serif;
  background-color: #000;
  color: #f1faee;
  line-height: 1.8;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
}

/* Headings */
h1, h2 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid #e63946;
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-top: 2rem;
}

/* Text */
p, li {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

strong {
  color: #e63946;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo h1 {
  letter-spacing: -1px;
  margin: 0;
}

.tagline {
  font-style: italic;
  color: #a8dadc;
  font-size: 1.1rem;
  margin-top: 0.3rem;
}

/* Navigation */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 2rem 0;
  gap: 2.5rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.95rem;
  text-transform: lowercase;
  flex-wrap: wrap;
  padding: 0 1rem;
}

nav a {
  color: #f1faee;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

nav a:hover, nav a:focus {
  color: #e63946;
  background-color: #333;
  outline: 2px solid #e63946;
  outline-offset: 2px;
}

/* Links */
a {
  color: #f1faee;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: #e63946;
  outline: 2px solid #e63946;
  outline-offset: 2px;
}

/* Sections */
.section {
  margin: 3rem 0;
  padding: 0 1rem;
}

.list {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.list li {
  margin-bottom: 1.4rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  color: #457b9d;
  font-style: italic;
  font-size: 0.95rem;
  border-top: 1px dashed #457b9d;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

footer p[aria-label] {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #888;
  font-style: normal;
}

/* Mobile First */
@media (max-width: 600px) {
  h1 {
    font-size: 1.9rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  body {
    padding: 1.2rem;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  nav a {
    display: inline-block;
    padding: 0.6rem 1rem;
  }
  .section {
    margin: 2.5rem 0;
  }
  .list {
    margin-left: 1.3rem;
  }
  footer {
    margin-top: 3rem;
    font-size: 0.9rem;
  }
}

/* Improve iOS Scroll */
main {
  overflow-anchor: none;
}