:root {
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-border: rgba(27, 24, 20, 0.12);
  --header-text: var(--ink, #1b1814);
  --header-muted: var(--muted, rgba(27, 24, 20, 0.6));
  --header-hover: rgba(27, 24, 20, 0.06);
  --footer-border: rgba(27, 24, 20, 0.08);
  --brand-mark-bg: rgba(226, 91, 63, 0.14);
  --brand-mark-border: rgba(226, 91, 63, 0.32);
  --brand-mark-text: var(--accent, #e25b3f);
  --focus-ring: rgba(226, 91, 63, 0.45);
}

html,
body {
  height: 100%;
}

.site-body {
  margin: 0;
  min-height: 100%;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--header-text);
}

.skip-link:focus {
  left: 16px;
  z-index: 50;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--header-text);
  text-decoration: none;
}

.site-header .brand-text {
  color: inherit;
}

.site-header .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-mark-bg);
  border: 1px solid var(--brand-mark-border);
  color: var(--brand-mark-text);
  font-family: var(--brand-mark-font, "Bebas Neue", "Impact", sans-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--header-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--header-text);
  background: var(--header-hover);
}

.nav-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-link--active {
  color: var(--header-text);
  background: var(--header-hover);
  font-weight: 600;
}

.site-main {
  flex: 1;
  padding: 24px 0 40px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--footer-border);
  padding: 20px 0 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fineprint {
  margin: 12px 0 0;
  color: var(--header-muted);
  font-size: 0.95rem;
}

.fineprint--tight {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
  }

  .header-nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
