:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --surface: #151518;
  --surface-raised: #1b1b20;
  --border: #33333a;
  --text: #f4f4f5;
  --muted: #b5b5bf;
  --body-copy: #d4d4db;
  --accent: #f3d671;
  --blue: #8bc5fa;
  --green: #b4d991;
  --page-gutter: clamp(14px, 4vw, 36px);
}

.editorial-site {
  background: var(--bg) radial-gradient(ellipse 79% 520px at 67% 0, #272211, transparent) no-repeat;
  color: var(--text);
  font-family: system-ui, "Segoe UI", sans-serif;
}

.editorial-site a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.editorial-header {
  width: min(1080px, calc(100vw - 2 * var(--page-gutter)));
  max-width: 100%;
  margin-inline: auto;
  padding-block: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.editorial-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 740;
  text-decoration: none;
}

.editorial-brand img {
  width: 44px;
  height: 44px;
  border: 1px solid #605b2a;
  border-radius: 12px;
}

.editorial-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px clamp(11px, 2vw, 22px);
}

.editorial-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: .925rem;
  text-decoration: none;
}

.editorial-nav a:first-child { font-weight: 720; }
.editorial-nav a:hover, .editorial-nav a[aria-current] { color: var(--accent); }
.editorial-nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 540px) {
  .editorial-header { padding-block: 14px 8px; gap: 5px 12px; }
  .editorial-nav { gap: 0 12px; }
}

@media (max-width: 420px) {
  .editorial-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
