/* $HOME — Notes on Linux & Unix
   Palette inspired by Shinobu Oshino / Kiss-shot: gold, amber, blood red, warm brown.
   Single stylesheet, no external fonts or dependencies. */

:root {
  --bg: #f6efe1;        /* parchment */
  --fg: #2b1d14;        /* dark brown ink */
  --muted: #6e5541;     /* faded brown */
  --rule: #e0d2b8;
  --accent: #9b2335;    /* blood red */
  --accent-hover: #741826;
  --gold: #8a5c0c;      /* darkened gold, readable on parchment */
  --code-bg: #efe4cf;
  --selection: #f1d98f;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --measure: 44rem; /* ~704px */
  --space: clamp(1rem, 3vw, 1.5rem);
}

/* Dark palette (Kiss-shot at night): follows the OS unless the user picked a theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1210;
    --fg: #f0e4cc;
    --muted: #b49c80;
    --rule: #3a2a20;
    --accent: #e06a5c;
    --accent-hover: #f09085;
    --gold: #e3b448;
    --code-bg: #241915;
    --selection: #5a2a26;
  }
}

:root[data-theme="dark"] {
  --bg: #1a1210;
  --fg: #f0e4cc;
  --muted: #b49c80;
  --rule: #3a2a20;
  --accent: #e06a5c;
  --accent-hover: #f09085;
  --gold: #e3b448;
  --code-bg: #241915;
  --selection: #5a2a26;
}

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

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

body {
  margin: 0 auto;
  max-width: calc(var(--measure) + 2 * var(--space));
  padding: 3px var(--space) 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 var(--sans);
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.page-scrolled .scroll-progress {
  opacity: 1;
}

::selection {
  background: var(--selection);
}

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

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

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--space);
  top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark-avatar {
  display: block;
  align-self: center;
  width: auto;
  height: 2.7rem;
  max-width: 5rem;
  object-fit: contain;
  transition: filter 220ms ease, transform 220ms ease;
}

.wordmark-avatar:hover {
  filter: brightness(1.12) saturate(1.15)
    drop-shadow(0 0 5px #e3b44899)
    drop-shadow(0 0 12px #e3b44855);
  transform: scale(1.06);
}

.wordmark-name {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.wordmark-user {
  color: var(--gold);
}

.wordmark-blog {
  color: var(--gold);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark-blog::before {
  content: "/";
  margin: 0 0.36em 0 0.28em;
  color: var(--muted);
  font-weight: 400;
}

.wordmark-at {
  color: var(--muted);
}

.wordmark-host {
  color: var(--fg);
}

.wordmark-donut {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  animation: donut-spin 1.6s linear infinite;
  animation-play-state: paused;
}

.wordmark-donut img {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
}

.wordmark-donut:hover {
  animation-play-state: running;
}

@keyframes donut-spin {
  to {
    transform: rotate(1turn);
  }
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-header ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--muted);
  text-decoration: none;
}

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

.theme-toggle {
  display: grid;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--gold);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.theme-toggle:hover {
  color: var(--accent);
  background: var(--code-bg);
}

.theme-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-icon-moon {
  display: none;
}

.theme-toggle[aria-pressed="true"] .theme-icon-sun {
  display: none;
}

.theme-toggle[aria-pressed="true"] .theme-icon-moon {
  display: block;
}

html.theme-changing,
html.theme-changing * {
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease,
    text-decoration-color 240ms ease, fill 240ms ease, stroke 240ms ease !important;
}

/* Sections */

main {
  padding: 1rem 0 2rem;
}

section {
  padding: 1.5rem 0;
}

section + section {
  border-top: 1px solid var(--rule);
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
}

.hash {
  color: var(--gold);
}

/* Intro with portrait */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.5rem;
  align-items: stretch;
}

.intro > div > p:first-child {
  margin-top: 0;
}

.intro p:last-child {
  margin-bottom: 0;
}

.quote {
  margin: 1.25rem 0 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--gold);
  font-family: var(--mono);
}

.quote p {
  margin: 0;
  font-style: italic;
}

.quote footer {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: 1px solid var(--gold);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--accent);
  background: var(--code-bg);
}

.sprite {
  display: block;
  margin: 1rem 0;
  image-rendering: pixelated;
}

.portrait figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: center;
}

/* Post list */

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

.post-list > li {
  display: grid;
  grid-template-columns: 1fr 19rem;
  gap: 0 1.5rem;
  align-items: center;
  position: relative;
  margin: 0 -1rem;
  padding: 1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* The whole card is clickable through the title link */
.post-list > li:hover,
.post-list > li:focus-within {
  background: var(--code-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -10px rgb(0 0 0 / 0.45);
}

.post-list > li:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.post-list > li + li {
  border-top: 1px dashed var(--rule);
}

.post-list time,
.meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.post-list time {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.post-title {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.post-title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.post-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.post-title:focus-visible {
  outline: none;
}

.post-list p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  margin: 0.3rem 0 0.4rem;
  color: var(--muted);
}

.post-preview {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

/* Tags */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.tags li::before {
  content: "#";
  color: var(--gold);
}

.tags a {
  color: var(--muted);
  text-decoration: none;
}

.tags a:hover,
.tags a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
}

/* Tags sit above the card's full-size title link */
.post-list .tags {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.tag-filter,
.tag-empty {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
}

.post-list > li[hidden] {
  display: none;
}

/* Article */

.article-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--rule);
}

.article-header .meta {
  display: block;
  margin-top: 0.5rem;
}

.article-header .tags {
  margin-top: 0.75rem;
}

.article-header .shot {
  margin: 1rem 0 0;
}

.article-header .lede {
  margin: 1rem 0 0;
  color: var(--muted);
}

.prose {
  padding: 1rem 0 0;
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.0625rem;
}

.prose h2 .num {
  color: var(--gold);
  margin-right: 0.4em;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose li + li {
  margin-top: 0.25rem;
}

.prose :not(pre) > code {
  padding: 0.05em 0.3em;
  border-radius: 2px;
  background: var(--code-bg);
}

.note {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9375rem;
}

.note strong {
  color: var(--accent);
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: 0.5rem;
}

.prose .note.warn {
  margin: 0 0 0.75rem;
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}

.note.warn strong {
  color: var(--gold);
}

.build-order {
  margin: 0.5rem 0 0;
  padding-left: 1.75rem;
  font-size: 0.875rem;
}

.prose .build-order li + li {
  margin-top: 0;
}



.toc {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem 0.9rem 2.5rem;
  border-left: 2px solid var(--gold);
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 0.875rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.swatches li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.swatches li::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--rule);
  background: var(--c);
}

.back {
  margin: 2.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.875rem;
}

/* Screenshots */

.shot {
  margin: 0 0 1.25rem;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.shot figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* Shown until the screenshot file exists */
.shot.missing img {
  display: none;
}

.shot.missing::before {
  content: "screenshot coming soon";
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--gold);
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
}

/* Code */

code,
pre {
  font-family: var(--mono);
  font-size: 0.875rem;
}

pre {
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--code-bg);
  line-height: 1.55;
}

section > pre:last-child {
  margin: 1.25rem 0 0;
}

.ps1 {
  color: var(--gold);
  user-select: none;
}

.c {
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
}

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

.footer-term {
  display: grid;
  gap: 0.75rem;
}

.footer-bottom {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.site-footer .privacy-note {
  display: block;
}

.term {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--code-bg);
}

.term figcaption {
  padding: 0.3rem 0.8rem;
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
}

.term pre {
  margin: 0;
  border: 0;
  background: none;
  font-size: 0.875rem;
}

.term strong {
  font-weight: 700;
}

/* nvim / config files: gold */
.term-grub {
  border-color: var(--gold);
}

.term-grub figcaption {
  background: var(--gold);
}

.term-grub pre {
  color: var(--fg);
}

.term-grub strong {
  color: var(--gold);
}

/* kitty / shell: red */
.term-shell {
  border-color: var(--accent);
}

.term-shell figcaption {
  background: var(--accent);
}

.term-shell strong {
  color: var(--accent);
}

/* Article code blocks (line numbers + copy button from code.js) */
.code {
  position: relative;
  margin: 0 0 1.25rem;
}

.code pre {
  margin: 0;
  padding: 0.85rem 2.75rem 0.85rem 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--code-bg);
  counter-reset: ln;
}

.code .ln {
  display: block;
  min-height: 1.55em;
  margin-right: -2.75rem;
  padding-right: 2.75rem;
}

.code .ln::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 2.5rem;
  margin-right: 1rem;
  padding-right: 0.75rem;
  border-right: 1px solid var(--rule);
  position: sticky;
  left: 0;
  background: var(--code-bg);
  color: color-mix(in srgb, var(--muted) 65%, var(--code-bg));
  text-align: right;
  user-select: none;
}

/* Diff blocks: tint whole lines */
.code .ln:has(> .d-add) {
  background: color-mix(in srgb, #3f9a5a 16%, transparent);
}

.code .ln:has(> .d-del) {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.d-add {
  color: color-mix(in srgb, #2f7a45 70%, var(--fg));
}

.d-del {
  color: var(--accent);
}

.d-hdr {
  color: var(--muted);
  font-weight: 600;
}

.copy-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--muted);
  cursor: pointer;
  opacity: 0.55;
}

.copy-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

.copy-btn:hover {
  border-color: var(--rule);
  color: var(--fg);
}

.copy-btn.done {
  color: var(--gold);
  opacity: 1;
}

.cursor {
  margin-left: 0.2em;
  color: var(--fg);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Small screens */

@media (max-width: 42rem) {
  .site-header {
    justify-content: center;
  }
}

@media (max-width: 34rem) {
  .wordmark-name {
    font-size: 1.125rem;
  }

  .wordmark-avatar {
    height: 2.25rem;
  }

  .wordmark-donut {
    width: 2.25rem;
    height: 2.25rem;
  }

  .wordmark-donut img {
    width: 2rem;
    height: 2rem;
  }

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

  .portrait {
    order: -1;
    width: min(100%, 18rem);
  }

  .portrait img {
    position: static;
    height: auto;
  }

  .post-list > li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .post-preview {
    order: -1;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .scroll-progress,
  .site-header nav,
  .skip,
  .portrait {
    display: none;
  }

  body {
    border: 0;
    background: #fff;
    color: #000;
  }
}

/* Progressive search and accessible text */
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.post-search {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0;
}

.post-search label {
  color: var(--muted);
  font: 0.8125rem var(--mono);
}

.post-search input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--fg);
  font: inherit;
}

.post-search input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.visit-count {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Admin uses the same palette, type, spacing, and theme controls as the blog. */
.admin-main { min-height: 45vh; }
.login-panel { max-width: 26rem; margin: 1rem auto 2rem; }
.login-panel > p { color: var(--muted); }
.login-form { display: grid; gap: 0.65rem; margin-top: 1.5rem; }
.login-form label { font: 0.875rem var(--mono); color: var(--muted); }
.login-form input {
  width: 100%; min-width: 0; margin-bottom: 0.6rem; padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule); border-radius: 4px;
  background: var(--code-bg); color: var(--fg); font: inherit;
}
.login-form button {
  padding: 0.75rem 1rem; border: 1px solid var(--accent); border-radius: 4px;
  background: var(--accent); color: var(--bg); font: 600 0.95rem var(--mono); cursor: pointer;
}
.login-form button:hover { background: var(--accent-hover); }
.login-form button:disabled { opacity: 0.65; cursor: wait; }
.login-form :is(input, button):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#login-status { margin: 0.5rem 0 0; color: var(--accent); }
.related-list { padding-left: 1.4rem; }

/* Breadcrumbs share the site's quiet terminal typography. */
.breadcrumbs { margin-block: 1.25rem 0; font: 0.8125rem/1.6 var(--mono); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.65rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: baseline; gap: 0.65rem; max-width: 100%; }
.breadcrumbs li + li::before { content: ""; width: 0.4rem; height: 0.4rem; flex: 0 0 auto; align-self: center; border-block-start: 1px solid var(--muted); border-inline-end: 1px solid var(--muted); transform: rotate(45deg); }
.breadcrumbs a { overflow-wrap: anywhere; }
.breadcrumbs [aria-current="page"] { color: var(--fg); font-weight: 600; text-decoration: none; }
.breadcrumbs a:focus-visible { position: relative; z-index: 1; }
@media (forced-colors: active) {
  .breadcrumbs [aria-current="page"] { text-decoration: underline; }
}

/* The public admin page contains only its sign-in form. */
.admin-main { display: grid; place-items: center; min-height: calc(100vh - 3px); min-height: calc(100svh - 3px); padding-block: 2rem; }
.login-panel { width: min(100%, 26rem); margin: 0; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); }
.login-form { margin-top: 0; }
.login-form h1 { margin: 0 0 1rem; }

/* A real error page, using the same parchment, ink, gold and red tokens. */
.not-found-main { padding-block: clamp(2rem, 7vw, 4rem); }
.not-found-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); align-items: center; gap: 1.5rem; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--rule); border-radius: 8px; }
.error-code { margin: 0 0 0.75rem; color: var(--gold); font: 600 0.8125rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.not-found-copy > p:not(.error-code) { color: var(--muted); }
.not-found-illustration { display: block; width: 100%; height: auto; }
.home-link { display: inline-block; margin-block: 0.75rem; padding: 0.7rem 1rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--bg); font: 600 0.875rem/1.4 var(--mono); text-decoration: none; }
.home-link:hover { background: var(--accent-hover); color: var(--bg); }
.not-found-note { font-size: 0.875rem; }
@media (max-width: 36rem) {
  .not-found-panel { grid-template-columns: 1fr; }
  .not-found-illustration { grid-row: 1; width: min(100%, 15rem); margin-inline: auto; }
}
