:root {
  --bg: #f3eeeb;
  --bg-deep: #e7dfd8;
  --ink: #1f1c1a;
  --muted: #5c534c;
  --accent: #f26e3f;
  --accent-deep: #d4552a;
  --accent-rgb: 242, 110, 63;
  --side-bg: #f3eeeb;
  --side-bg-deep: #e7dfd8;
  --code-bg: #241f1c;
  --code-ink: #f4ebe4;
  --line: rgba(31, 28, 26, 0.14);
  --line-strong: rgba(31, 28, 26, 0.28);
  --shell-pad: 0;
  --side: 300px;
  /* Space Grotesk is Latin-only; Manrope covers Cyrillic so mixed titles stay one weight. */
  --display: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  /* Manrope first: Cyrillic coverage (Host Grotesk / Space Grotesk are Latin-only). */
  --sans: "Manrope", "Host Grotesk", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --theme-ease: background-color 0.7s ease, color 0.55s ease, border-color 0.55s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  display: flex;
  align-items: stretch;
  transition: var(--theme-ease);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(var(--accent-rgb), 0.1), transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  transition: background 0.8s ease;
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(31, 28, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 28, 26, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  animation: grid-in 1.1s ease both;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--shell-pad);
  box-sizing: border-box;
  container-type: inline-size;
  container-name: shell;
}

.side {
  position: sticky;
  top: 0;
  flex: 0 0 var(--side);
  width: var(--side);
  max-width: var(--side);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem 1.75rem;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), transparent 40%),
    linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-deep) 100%);
  z-index: 40;
  transition: var(--theme-ease);
  overflow-x: hidden;
  overflow-y: auto;
}

.side-head {
  position: relative;
  margin-bottom: 1.75rem;
}

.branding {
  text-align: center;
  max-width: 100%;
  min-width: 0;
  container-type: inline-size;
}

.brand-logo-link {
  display: block;
  margin: 0 auto 1em;
  text-decoration: none;
  max-width: 100%;
}

.brand-logo {
  display: block;
  width: min(180px, 100%);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.brand-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: center;
  line-height: 1.05;
  font-family: "Syne", "Arial Narrow", sans-serif;
  font-size: clamp(1.25rem, 10.5cqi, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}

.brand-title a {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.2em 0;
  text-decoration: none;
  transition: border-color 0.35s ease;
}

.brand-title a:hover {
  border-color: transparent;
  color: var(--ink);
  text-decoration: none;
}

.brand-title a span,
.stage-brand__owner,
.brand-mobile .accent {
  color: var(--accent);
}

.brand-desc {
  display: block;
  margin: 0.75em auto 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.brand-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Syne", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand-mobile:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mobile img {
  width: 32px;
  height: auto;
  display: block;
}

.side-nav {
  flex: 1;
  margin-top: 0.5rem;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.side-nav li {
  margin: 0;
  overflow: visible;
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
  overflow: visible;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.side-nav a::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
  flex: 0 0 auto;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.side-nav a:hover {
  color: var(--accent-deep);
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.22);
  text-decoration: none;
}

.side-nav a:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
  transform: scale(1.15);
}

.side-search {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.side-search__row {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.06);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.side-search__row:focus-within {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.side-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.side-search input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

.side-search input[type="search"]:focus {
  outline: none;
}

.side-search input[type="search"]::-webkit-search-decoration,
.side-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.side-search button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(var(--accent-rgb), 0.2);
  background: transparent;
  color: var(--accent-deep);
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease;
}

.side-search button:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.side-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-deep);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(31, 28, 26, 0.04);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.35s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.12);
  transform: rotate(-12deg) scale(1.06);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.18);
}

.theme-toggle:active {
  transform: rotate(-28deg) scale(0.96);
}

.theme-toggle svg {
  display: block;
}

.side-note {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.nav-dismiss,
.nav-scrim,
.mobile-bar {
  display: none;
}

.content {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  overflow: visible;
  padding-left: 3rem;
  padding-right: 3rem;
  box-sizing: border-box;
}

.site-embed {
  margin: 0.35rem 0 0;
}

.site-embed iframe {
  display: block;
  width: 100%;
  height: 2.1rem;
  border: 0;
  background: transparent;
  color-scheme: light;
}

.site-embed + .main .article,
.site-embed + .main .page-head,
.site-embed + .main .index {
  padding-top: 0.85rem;
}

.main {
  padding: 0 0 5rem;
}

.stage {
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--line-strong);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  container-type: inline-size;
  container-name: stage;
}

.stage-brand {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: "Syne", "Arial Narrow", sans-serif;
  font-weight: 800;
  /* Syne ExtraBold "saniaowner" ≈ 9.2em wide; size from .stage container */
  font-size: clamp(1.5rem, 10.5cqi, 4.6rem);
  letter-spacing: -0.07em;
  line-height: 1.05;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.stage-lede {
  margin: 1.1rem auto 0;
  max-width: min(36rem, 100%);
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  text-align: center;
  animation: rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
}

.page-head {
  padding: 3rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.55s ease both;
}

.page-head__label,
.index-label {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-head h1 {
  margin: 0;
  /* Manrope: same face for Latin + Cyrillic (Space Grotesk has no Cyrillic glyphs). */
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-head__desc {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.index {
  padding-top: 2rem;
}

.index-label {
  margin-bottom: 1rem;
}

.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.post-grid > li {
  min-width: 0;
  max-width: 100%;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 11.5rem;
  padding: 1.35rem 1.4rem 1.25rem;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition:
    border-color 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  animation: rise 0.55s ease both;
}

.post-grid li:nth-child(2) .post-card { animation-delay: 0.06s; }
.post-grid li:nth-child(3) .post-card { animation-delay: 0.12s; }
.post-grid li:nth-child(4) .post-card { animation-delay: 0.18s; }
.post-grid li:nth-child(5) .post-card { animation-delay: 0.24s; }

.post-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s ease;
}

.post-card:hover {
  text-decoration: none;
  color: var(--ink);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 28, 26, 0.08);
}

.post-card:hover::before {
  transform: scaleY(1);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-bottom: 0.65rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.post-card__meta span {
  color: var(--accent-deep);
}

.post-card h2 {
  margin: 0 0 0.55rem;
  /* Manrope: same face for Latin + Cyrillic (Space Grotesk has no Cyrillic glyphs). */
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.035em;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-bottom: 0.08em;
}

.post-card__excerpt {
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-height: 11.5rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-card__excerpt > :first-child {
  margin-top: 0;
}

.post-card__excerpt > :last-child {
  margin-bottom: 0;
}

.post-card__excerpt h3,
.post-card__excerpt h4 {
  margin: 0.55rem 0 0.3rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
}

.post-card__excerpt h3:first-child,
.post-card__excerpt h4:first-child {
  margin-top: 0;
}

.post-card__excerpt p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.post-card__excerpt code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: rgba(31, 28, 26, 0.07);
  padding: 0.08em 0.3em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-card__excerpt pre {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 0;
  overflow: hidden;
  max-width: 100%;
  max-height: 5.2rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-card__excerpt pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-card__more {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.empty {
  margin: 2.5rem 0 0;
  color: var(--muted);
}

.article {
  padding-top: 1.5rem;
  animation: rise 0.55s ease both;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--accent);
}

.article-head {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.article-head__meta a {
  color: var(--accent-deep);
  text-decoration: none;
}

.article-head h1 {
  margin: 0;
  /* Manrope: same face for Latin + Cyrillic (Space Grotesk has no Cyrillic glyphs). */
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.prose {
  margin-top: 2rem;
  font-size: 1.05rem;
}

.prose img,
.prose video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.prose iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 12rem;
  margin: 1rem 0;
  border: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0;
  margin: 1.35rem 0 0.55rem;
  line-height: 1.35;
  color: var(--ink);
}

.prose h2:first-child,
.prose h3:first-child,
.prose h4:first-child {
  margin-top: 0;
}

.prose pre,
.prose code {
  font-family: var(--mono);
}

.prose code {
  font-size: 0.9em;
  background: rgba(31, 28, 26, 0.06);
  padding: 0.1em 0.35em;
}

.prose pre {
  overflow-x: auto;
  padding: 1.1rem 1.2rem;
  background: var(--code-bg);
  color: var(--code-ink);
  border: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.55) rgba(255, 255, 255, 0.08);
}

.prose pre::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.prose pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.prose pre::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.45);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.prose pre::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.75);
  background-clip: padding-box;
}

.prose pre::-webkit-scrollbar-corner {
  background: transparent;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.prose a {
  text-decoration: underline;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.contact {
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  animation: rise 0.65s ease both;
}

.contact-brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.contact-lede {
  margin: 1rem 0 2.5rem;
  color: var(--muted);
  max-width: 24rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.75rem;
}

.contact-list div {
  display: grid;
  gap: 0.35rem;
}

.contact-list dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: -0.03em;
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.footer-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes grid-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.35;
  }
}

@media (max-width: 960px) {
  body {
    display: block;
  }

  .shell {
    width: 100%;
    padding-inline: 0;
  }

  .content {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 25;
    min-height: 3.5rem;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    transition: var(--theme-ease);
  }

  .nav-open,
  .nav-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    user-select: none;
  }

  .nav-open {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border-radius: 0;
    transition: color 0.2s ease;
  }

  .nav-open__icon {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
  }

  .nav-dismiss {
    position: absolute;
    top: 0;
    right: 0;
  }

  .nav-open:hover,
  .nav-dismiss:hover {
    color: var(--accent);
  }

  .side {
    position: fixed;
    left: 0;
    top: 0;
    flex: none;
    width: min(84vw, 280px);
    max-width: min(84vw, 280px);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    background:
      linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), transparent 40%),
      linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-deep) 100%);
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(31, 28, 26, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 35;
  }

  .nav-toggle:checked ~ .side {
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .stage {
    padding: 1.5rem 0 1.75rem;
  }

  .stage-brand {
    font-size: clamp(1.45rem, 9.8cqi, 3.1rem);
    letter-spacing: -0.075em;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .side {
    width: min(92vw, 300px);
  }

  .contact-brand {
    font-size: clamp(2.4rem, 16vw, 3.6rem);
  }

  .article-head h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
