html {
  scroll-behavior: smooth;
}

:root {
  --bg: #ffffff;
  --text: #1b1b1b;
  --accent: #0078d4;
  --border: #e3e3e3;
  --max-width: 670px;
  --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 800px;
            margin: 0 auto;
            padding: 20px;
}

.page {
  width: 95%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}

/* Header */
.header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 1rem;
}

.brand img {
  display: block;
  height: 50px;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a,
footer a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

nav a::after,
footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover::after,
nav a:focus::after,
footer a:hover::after,
footer a:focus::after {
  width: 100%;
}

nav a:hover,
nav a:focus {
  color: var(--accent);
  outline: none;
}

/* Main content */
main {
  padding: 2rem 0;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}

p {
  margin: 0.5rem 0 0;
  color: #222;
}

/* Section spacing */
section {
  margin-bottom: 3rem;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
}

footer small {
  color: #555;
}

.footer-content a {
  margin: 0 0.25rem;
  font-weight: 500;
}

/* Focus outline */
:focus {
  outline: 3px solid rgba(0,120,212,0.18);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 480px) {
  nav ul {
    gap: 0.75rem;
    font-size: 0.95rem;
  }
}