:root {
  --bg: #f5f6f8;
  --bg-surface: #fafbfc;
  --text: #1e2d3d;
  --text-muted: #607080;
  --text-faint: #6e7a88;
  --accent: #005577;
  --line: rgb(from var(--accent) r g b / 0.18);
  --success: #1a7a3a;
  --danger: #b83030;
  --on-accent: var(--bg-surface);
  --content-width: 75rem;
  --reading-width: 64rem;
  --header-height: 3.5rem;
  --code-bg: #1e2d3d;
  --code-text: #e0e6ed;
  --code-inline-bg: rgba(0, 0, 0, 0.05);
  --font-sans: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-autospace: normal;
}

/* ─── Digital corridor background ─── */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    /* Grid dots at intersections */
    radial-gradient(circle 1.5px at 0 0, rgba(150, 180, 210, 0.45) 0.7px, transparent 1.5px),
    /* Horizontal grid lines */
    repeating-linear-gradient(
      180deg,
      rgba(170, 195, 220, 0.18) 0,
      rgba(170, 195, 220, 0.18) 1px,
      transparent 1px,
      transparent 60px
    ),
    /* Vertical grid lines */
    repeating-linear-gradient(
      90deg,
      rgba(170, 195, 220, 0.18) 0,
      rgba(170, 195, 220, 0.18) 1px,
      transparent 1px,
      transparent 60px
    ),
    /* Perspective converging lines every 15deg */
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(150, 185, 220, 0.12) 0.25deg,
      transparent 0.5deg,
      transparent 15deg
    ),
    /* Blue beam - horizontal upper band */
    linear-gradient(180deg, transparent 25%, rgba(80, 170, 255, 0.06) 31%, rgba(120, 200, 255, 0.16) 35%, rgba(80, 170, 255, 0.06) 39%, transparent 45%),
    /* Blue beam - horizontal lower band */
    linear-gradient(180deg, transparent 56%, rgba(80, 170, 255, 0.06) 62%, rgba(120, 200, 255, 0.16) 66%, rgba(80, 170, 255, 0.06) 70%, transparent 76%),
    /* Blue beam - diagonal top-right */
    linear-gradient(28deg, transparent 15%, rgba(70, 160, 255, 0.05) 36%, rgba(110, 195, 255, 0.15) 46%, rgba(70, 160, 255, 0.05) 56%, transparent 75%),
    /* Blue beam - diagonal top-left */
    linear-gradient(-28deg, transparent 15%, rgba(70, 160, 255, 0.05) 36%, rgba(110, 195, 255, 0.15) 46%, rgba(70, 160, 255, 0.05) 56%, transparent 75%),
    /* Blue beam - diagonal bottom-right */
    linear-gradient(152deg, transparent 15%, rgba(70, 160, 255, 0.05) 36%, rgba(110, 195, 255, 0.15) 46%, rgba(70, 160, 255, 0.05) 56%, transparent 75%),
    /* Blue beam - diagonal bottom-left */
    linear-gradient(-152deg, transparent 15%, rgba(70, 160, 255, 0.05) 36%, rgba(110, 195, 255, 0.15) 46%, rgba(70, 160, 255, 0.05) 56%, transparent 75%),
    /* Center glow - brighter focal point */
    radial-gradient(ellipse 55% 45% at 50% 48%, rgba(225, 238, 252, 0.6) 0%, transparent 65%);
  background-size:
    60px 60px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

p {
  margin: 0 0 1rem;
}

strong {
  font-weight: 600;
}

#subscribe,
#archive {
  scroll-margin-block-start: calc(var(--header-height) + 1rem);
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: var(--header-height);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  background: rgb(from var(--bg) r g b / 0.86);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line);
}

.site-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

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

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

/* ─── Index: Hero ─── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-emblem {
  inline-size: clamp(12rem, 30vw, 18rem);
  margin-block-end: 2.5rem;
}

.laughing-man-logo-svg {
  inline-size: 100%;
  block-size: auto;
  display: block;
  filter: drop-shadow(0 2px 16px rgb(from var(--accent) r g b / 0.12));
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-summary {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-stat {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ─── Subscribe form ─── */

.hero > #subscribe {
  align-self: stretch;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  inline-size: 24rem;
  max-inline-size: 100%;
  margin-inline: auto;
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.subscribe-form.is-targeted {
  box-shadow: 0 0 0 6px rgb(from var(--accent) r g b / 0.1);
  transform: translateY(-2px);
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-block-size: 2.75rem;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(from var(--accent) r g b / 0.08);
}

.subscribe-form button {
  min-block-size: 2.75rem;
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.subscribe-form button:hover {
  opacity: 0.85;
}

.subscribe-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.subscribe-message {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.subscribe-message.success {
  color: var(--success);
}

.subscribe-message.error {
  color: var(--danger);
}

/* ─── Index: Feed ─── */

.feed {
  max-inline-size: var(--reading-width);
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both 0.12s;
}

.feed-label {
  margin-block-end: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-align: center;
}

.feed-label::before,
.feed-label::after {
  display: none;
}

.feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feed-list li {
  border-block-end: 1px solid var(--line);
}

.feed-row {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding-block: 1.1rem;
}

.feed-marker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.feed-row:not(.feed-teaser):hover .feed-marker {
  color: var(--accent);
}

.feed-issue {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  min-inline-size: 1.8rem;
  flex-shrink: 0;
}

.feed-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.feed-row:not(.feed-teaser):hover .feed-title {
  color: var(--accent);
  text-decoration: underline;
}

.feed-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-inline-start: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.feed-empty {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
  padding: 2rem 0;
}

.feed-teaser {
  color: var(--text-faint);
}

.feed-teaser .feed-marker,
.feed-teaser .feed-issue,
.feed-teaser .feed-title {
  color: var(--text-faint);
}

.feed-end {
  margin: 1.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-align: center;
}

/* ─── Issue: Back link ─── */

.issue-back {
  max-inline-size: var(--reading-width);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) 0;
  text-align: center;
}

.issue-back a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.16em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.issue-back a:hover {
  text-decoration-color: var(--accent);
}

/* ─── 404 ─── */

.not-found-main {
  flex: 1;
  display: grid;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.not-found-hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  min-block-size: min(48rem, calc(100svh - var(--header-height) - 8rem));
  max-inline-size: 58rem;
  inline-size: 100%;
  margin: 0 auto;
  text-align: center;
  animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.not-found-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  pointer-events: none;
  inset-block-start: clamp(3rem, 12vw, 6rem);
  inline-size: min(88vw, 50rem);
  block-size: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgb(from var(--accent) r g b / 0.5), transparent);
  opacity: 0.8;
  animation: scan-sweep 7s linear infinite;
}

.not-found-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
}

.not-found-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.not-found-emblem {
  position: relative;
  z-index: 1;
  inline-size: clamp(7.5rem, 16vw, 10rem);
  margin-block-end: 1.25rem;
}

.not-found-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  max-inline-size: none;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.not-found-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-block-start: 1.5rem;
  margin-block-end: 1.5rem;
}

.not-found-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.85rem;
  padding: 0.75rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text);
  border: 1px solid rgb(from var(--accent) r g b / 0.2);
  border-radius: 999px;
  background: rgb(from var(--bg-surface) r g b / 0.56);
  backdrop-filter: blur(8px);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease;
}

.not-found-action:hover {
  transform: translateY(-1px);
  border-color: rgb(from var(--accent) r g b / 0.4);
  color: var(--accent);
}

.not-found-action-primary {
  color: var(--on-accent);
  background: var(--accent);
  border-color: transparent;
}

.not-found-action-primary:hover {
  color: var(--on-accent);
  background: color-mix(in srgb, var(--accent) 88%, black);
}

/* ─── Footer ─── */

.site-footer {
  margin-block-start: auto;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg-surface);
  border-block-start: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.16em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-credit a:hover {
  text-decoration-color: var(--accent);
}

/* ─── Issue: Hero ─── */

.issue-main {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.issue-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-inline-size: var(--content-width);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.issue-emblem {
  inline-size: clamp(7.5rem, 16vw, 10rem);
  margin-block-end: 1.5rem;
  opacity: 0.95;
}

.issue-meta {
  margin-block-end: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.issue-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ─── Issue: Reading surface ─── */

.issue-reading-surface {
  position: relative;
  max-inline-size: calc(var(--reading-width) + clamp(2rem, 5vw, 5rem));
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem)
    clamp(2rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgb(from var(--bg-surface) r g b / 0.84), rgb(from var(--bg-surface) r g b / 0.92));
  border: 1px solid rgb(from var(--accent) r g b / 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 16px 40px rgba(30, 45, 61, 0.05);
  backdrop-filter: blur(8px);
}

.issue-reading-surface::before {
  content: "";
  display: block;
  inline-size: min(7rem, 20vw);
  block-size: 1px;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ─── Issue: Subscribe ─── */

.issue-subscribe {
  max-inline-size: var(--reading-width);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem) 0;
  text-align: center;
  animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both 0.16s;
}

.issue-subscribe-label {
  margin-block-end: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.issue-subscribe-form {
  margin-inline: auto;
}

/* ─── Issue: Body typography ─── */

.issue-body {
  max-inline-size: var(--reading-width);
  margin-inline: auto;
  font-family: sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
}

.issue-body > h1:first-of-type {
  display: none;
}

.issue-body h2 {
  margin-block: 2.5rem 0.75rem;
  font-size: clamp(1.625rem, 3vw, 1.875rem);
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 70%, var(--text) 30%);
  line-height: 1.2;
}

.issue-body h3 {
  margin-block: 2rem 0.6rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 38%, var(--text) 62%);
  line-height: 1.3;
}

.issue-body p,
.issue-body ul,
.issue-body ol,
.issue-body blockquote,
.issue-body pre,
.issue-body table,
.issue-body iframe {
  margin-block-end: 1.25rem;
}

.issue-body ul,
.issue-body ol {
  padding-inline-start: 1.4rem;
}

.issue-body li {
  margin-block-end: 0.4rem;
}

.issue-body li::marker {
  color: var(--text-muted);
}

.issue-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgb(from var(--accent) r g b / 0.25);
}

.issue-body a:hover {
  text-decoration-color: var(--accent);
}

.issue-body img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}

.issue-body iframe {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}

blockquote {
  margin-block: 1.5rem;
  margin-inline: 0;
  padding: 0.25rem 0 0.25rem 1.2rem;
  border-inline-start: 2px solid var(--text-muted);
  color: var(--text-muted);
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--line);
  line-height: 1;
}

/* Shiki wraps highlighted code in its own <pre>, let it control colors */
pre.shiki {
  background-color: var(--shiki-bg, var(--code-bg));
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

p code,
li code {
  padding: 0.12rem 0.38rem;
  border-radius: 0.25rem;
  color: var(--text);
  background: var(--code-inline-bg);
}

pre code {
  background: transparent;
  color: inherit;
}

hr {
  border: 0;
  border-block-start: 1px dashed var(--line);
  margin-block: 2rem;
}

table {
  inline-size: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 0.5rem;
  border-block-end: 1px solid var(--line);
  text-align: start;
}

th {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

del {
  color: var(--text-faint);
}

/* ─── Utilities ─── */

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  inset-block-start: 0.5rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 20;
  inline-size: auto;
  block-size: auto;
  padding: 0.5rem 1.2rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 0.25rem;
}

/* ─── Animations ─── */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scan-sweep {
  from {
    transform: translateX(-50%) translateY(-4rem);
    opacity: 0;
  }

  12% {
    opacity: 0.7;
  }

  50% {
    transform: translateX(-50%) translateY(12rem);
    opacity: 0.9;
  }

  88% {
    opacity: 0.45;
  }

  to {
    transform: translateX(-50%) translateY(27rem);
    opacity: 0;
  }
}

/* ─── Responsive ─── */

@media (max-width: 640px) {
  :root {
    --header-height: 5.5rem;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    padding-block: 0.3rem 0.35rem;
    text-align: center;
  }

  .site-name {
    inline-size: 100%;
    font-size: 0.92rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    padding-block: 0.55rem 0.95rem;
  }

  .site-nav {
    inline-size: 100%;
    min-block-size: 2.4rem;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding-block: 0.2rem 0;
    border-block-start: 1px solid color-mix(in srgb, var(--line) 88%, var(--bg));
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-block: 0;
    padding-inline: 0.25rem;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .feed-row {
    gap: 0.5rem;
  }

  .issue-main {
    padding-inline: 0.875rem;
  }

  .issue-reading-surface {
    border-radius: 1rem;
    padding-inline: 1rem;
  }

  .issue-subscribe {
    padding-inline: 0.5rem;
  }

  .issue-body {
    font-size: 1rem;
  }

  .issue-emblem {
    inline-size: 5.5rem;
    margin-block-end: 1.1rem;
  }

  .not-found-main {
    padding-inline: 0.875rem;
  }

  .not-found-hero {
    min-block-size: auto;
    padding-block: clamp(3rem, 12vw, 5rem);
  }

  .not-found-hero h1 {
    white-space: normal;
  }

  .not-found-hero::after {
    inline-size: min(96vw, 26rem);
  }

  .not-found-actions {
    inline-size: 100%;
  }

  .not-found-action {
    inline-size: 100%;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
  }

  .footer-name {
    inline-size: 100%;
    font-size: 0.92rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
  }

  .footer-sep {
    display: none;
  }

  .footer-credit {
    line-height: 1.5;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111b26;
    --bg-surface: #1a2a3a;
    --text: #d8dee6;
    --text-muted: #8a9baa;
    --text-faint: #748898;
    --accent: #2299bb;
    --success: #2ebd5c;
    --danger: #e04848;
    --on-accent: #f0f4f8;
    --code-bg: #0a1520;
    --code-text: #d8dee6;
    --code-inline-bg: rgba(255, 255, 255, 0.08);
  }

  .issue-reading-surface {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 16px 40px rgba(0, 0, 0, 0.2);
  }

  body::before {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}
