:root {
  --shell-ink: #1C2421;
  --shell-muted: #4A5D54;
  --shell-brand: #0B7285;
  --shell-stroke: #EAE3D5;
  --shell-hover: rgba(11, 114, 133, 0.06);
  --shell-focus: rgba(16, 152, 173, 0.18);
  --shell-shadow: 0 4px 10px rgba(11, 114, 133, 0.2);
  --shell-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(234, 227, 213, 0.65);
  margin-bottom: 2rem;
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--shell-ink);
  text-decoration: none;
  transition: color var(--shell-transition);
}

.brand:hover {
  color: var(--shell-brand);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem;
}

.nav a {
  text-decoration: none;
  color: var(--shell-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.48rem 0.86rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: var(--shell-transition);
}

.nav a:hover {
  background: var(--shell-hover);
  color: var(--shell-brand);
}

.nav a:focus-visible,
.footer-links a:focus-visible,
.brand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--shell-focus);
}

.nav a.active,
.nav a[aria-current="page"] {
  background: var(--shell-brand);
  color: #ffffff;
  border-color: var(--shell-brand);
  box-shadow: var(--shell-shadow);
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--shell-muted);
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid var(--shell-stroke);
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.25rem;
  margin: 0 0 0.9rem;
}

.footer-links a {
  color: var(--shell-brand);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .container {
    width: min(1160px, calc(100% - 1.5rem));
  }

  .site-header {
    padding: 1.25rem 0;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    gap: 0.42rem;
  }

  .nav a {
    padding: 0.44rem 0.8rem;
    font-size: 0.82rem;
  }
}
