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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--type-base);
  line-height: 1.5;
  color: var(--color-fg);
  background: var(--color-bg);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.twentyonepress-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.twentyonepress-main {
  flex: 1;
}

/* Theme-default chrome (used when no header/footer template is assigned). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: var(--layout-max);
  margin-inline: auto;
  padding: 0.9rem var(--layout-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-header__brand {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-fg);
  text-decoration: none;
}

.site-header__brand .21press-site-logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 12rem;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.25rem;
}

.site-header__nav a {
  font-size: var(--type-sm);
  font-weight: 500;
  color: var(--color-fg-muted);
  text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  color: var(--color-fg);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--layout-gutter);
  color: var(--color-fg-muted);
  font-size: var(--type-sm);
}

.site-footer__inner {
  max-width: var(--layout-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-fg);
}

/* Soft navigation */
html.is-soft-nav {
  cursor: progress;
}

html.is-soft-nav .twentyonepress-main {
  opacity: 0.72;
  transition: opacity 0.12s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.is-soft-nav .twentyonepress-main {
    transition: none;
  }
}

.t21-soft-nav-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

