:root {
  color-scheme: dark;
  --bg: #2d1b18;
  --panel: #431713;
  --panel-soft: #652317;
  --text: #fff9ee;
  --muted: #f0a865;
  --border: #6f2a20;
  --accent: #ffc36f;
  --accent-strong: #fff0b0;
  --bar: #120908;
  --bar-rgb: 18, 9, 8;
  --content-width: 922px;
  --sidebar-width: 220px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 14.4px;
  line-height: 1.65;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

code {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  padding: 0.08rem 0.28rem;
  font-size: 0.94em;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  padding: 1rem;
}

pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--panel);
  padding: 0.8rem 0;
}

.site-title {
  display: inline-block;
  margin-left: 0.55rem;
  margin-bottom: 1.15rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-block {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}

.nav-block + .nav-block {
  margin-top: 0;
}

.nav-heading {
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid var(--border);
  background: var(--bar);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-group > .nav-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
}

.sidebar-group:not([open]) > .nav-heading {
  border-bottom: 0;
  margin-bottom: 0;
}

.sidebar-group > .nav-heading::-webkit-details-marker {
  display: none;
}

.sidebar-group > .nav-heading::before {
  content: "-";
  flex: 0 0 auto;
  width: 1rem;
  border: 1px solid var(--border);
  background: var(--bar);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 0.95rem;
  text-align: center;
}

.sidebar-group:not([open]) > .nav-heading::before {
  content: "+";
}

.sidebar-group > .nav-heading:hover,
.sidebar-group > .nav-heading:focus-visible {
  color: var(--accent-strong);
}

.sidebar-group > .nav-heading:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-group-items {
  padding: 0;
}

.nav-link,
.post-link {
  display: block;
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
}

.nav-link {
  padding: 0.18rem 0.7rem;
}

.post-link {
  padding: 0.32rem 0.7rem;
}

.post-nav-item + .post-nav-item {
  border-top: 1px solid var(--border);
}

.post-link span,
.post-link time {
  display: block;
}

.post-link span {
  color: var(--text);
  line-height: 1.2;
}

.post-link time,
.nav-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.post-toc {
  margin: 0;
  border-top: 1px solid var(--border);
  padding: 0.15rem 0 0.25rem;
  list-style: none;
}

.post-toc-link {
  display: block;
  padding: 0.16rem 0.7rem 0.16rem 1.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.18;
  text-decoration: none;
}

.toc-level-2 .post-toc-link {
  font-weight: 700;
}

.toc-level-3 .post-toc-link {
  padding-left: 1.75rem;
  font-size: 0.74rem;
}

.toc-level-3 .post-toc-link::before {
  content: "- ";
}

.nav-link:hover,
.post-link:hover,
.nav-link.active,
.post-link.active,
.post-toc-link.active,
.post-toc-link:hover,
.post-toc-link:focus-visible {
  background: var(--panel-soft);
  color: var(--text);
}

.article-body :is(h2, h3, h4, h5, h6)[id] {
  scroll-margin-top: 1rem;
}

.content {
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  padding: 3rem 0 5rem;
}

.content > .page-header,
.content > section,
.content > article > .page-header:not(.post-header),
.content > article > .article-body,
.content > .comments {
  width: min(100%, calc(var(--content-width) + 4rem));
  margin-inline: auto;
  padding-inline: 2rem;
}

.page-header {
  margin-bottom: 2.25rem;
}

.post-header {
  position: relative;
}

.post-header.has-banner {
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: clamp(220px, 28vw, 420px);
  width: 100%;
  margin: -3rem 0 0;
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.post-header.has-banner::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(var(--bar-rgb), 1) 0%,
    rgba(var(--bar-rgb), 0.7) 42%,
    rgba(var(--bar-rgb), 0) 100%
  );
  content: "";
  pointer-events: none;
}

.post-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.post-banner-image.banner-top {
  object-position: top;
}

.post-banner-image.banner-center {
  object-position: center;
}

.post-banner-image.banner-bottom {
  object-position: bottom;
}

.post-header.has-banner .post-header-content {
  position: relative;
  z-index: 2;
  width: min(100%, calc(var(--content-width) + 4rem));
  margin: 0;
  padding-inline: 2rem;
}

.post-layout-image-rail > .post-header.has-banner .post-header-content {
  --rail-gutter: clamp(2rem, 3cqw, 5rem);
  width: 100%;
  padding-left: var(--rail-gutter);
  padding-right: var(--rail-gutter);
}

.post-layout-image-rail > .post-header.has-banner .post-header-content > * {
  max-width: var(--content-width);
}

.post-header.has-banner h1,
.post-header.has-banner .description,
.post-header.has-banner .post-date {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.eyebrow,
.post-date {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.18;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.45rem;
}

h3 {
  margin-top: 2rem;
  font-size: 1.12rem;
}

p {
  margin: 1rem 0;
}

blockquote {
  margin-left: 0;
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
}

.lede,
.description {
  color: var(--muted);
  font-size: 1.04rem;
}

.category-line,
.archive-category {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.post-list {
  display: grid;
  gap: 1.1rem;
}

.post-card {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.post-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.22rem;
}

.post-card a {
  color: var(--text);
  text-decoration: none;
}

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

.post-card p {
  margin: 0.4rem 0 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.1rem 0.55rem;
  font-size: 0.82rem;
}

.archive-list {
  width: 100%;
}

.archive-list li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 0.8rem 0;
}

.archive-list time {
  color: var(--muted);
  font-size: 0.92rem;
}

.archive-category {
  display: block;
  margin-top: 0.12rem;
}

.article-body {
  width: 100%;
}

.article-body > :first-child,
.article-body > .article-section:first-child > :first-child {
  margin-top: 0;
}

.article-section {
  display: flow-root;
}

.article-section:not(:last-child)::after {
  display: block;
  clear: both;
  height: 4rem;
  content: "";
}

.article-section.article-section-collapsed::after {
  display: none;
}

.article-body p {
  margin: 0 0 2rem;
}

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

.article-body [hidden] {
  display: none !important;
}

.aside-block {
  margin: 1rem 0 2rem;
  border: 1px solid var(--border);
  background: var(--bar);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.aside-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.aside-toggle {
  flex: 0 0 auto;
  width: 1.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  line-height: 1.25rem;
  padding: 0;
}

.aside-toggle::before {
  content: "-";
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.25rem;
  text-align: center;
}

.aside-toggle-label {
  color: var(--muted);
  font-weight: 700;
}

.aside-block.aside-collapsed .aside-toggle::before {
  content: "+";
}

.aside-heading:hover .aside-toggle-label,
.aside-heading:has(.aside-toggle:focus-visible) .aside-toggle-label,
.aside-toggle:focus-visible {
  color: var(--accent-strong);
}

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

.aside-content {
  border-top: 1px solid var(--border);
  padding: 0.85rem;
  overflow: visible;
}

.aside-block.aside-collapsed .aside-content {
  max-height: 0;
  overflow: hidden;
  border-top-color: transparent;
  padding-top: 0;
  padding-bottom: 0;
}

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

.aside-content > :last-child {
  margin-bottom: 0;
}

.aside-content p {
  margin: 0 0 1rem;
}

.aside-content h2,
.aside-content h3,
.aside-content h4,
.aside-content h5,
.aside-content h6 {
  margin: 1.25rem 0 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1rem;
  text-align: left;
}

.aside-content .heading-box {
  padding: 0;
  border: 0;
  background: none;
}

.rail-anchor {
  display: block;
  height: 0;
  overflow: hidden;
}

.content > article.post-layout-image-rail > .article-body {
  --rail-gutter: clamp(2rem, 3cqw, 5rem);
  --rail-text-width: min(var(--content-width), calc(100cqw - 360px - (var(--rail-gutter) * 3)));
  --rail-media-width: calc(100cqw - var(--rail-text-width) - (var(--rail-gutter) * 3));
  width: 100%;
  margin-inline: 0;
  padding-inline: var(--rail-gutter);
}

.post-layout-image-rail > .article-body::after {
  display: block;
  clear: both;
  content: "";
}

.post-layout-image-rail > .article-body > .article-top-bar,
.post-layout-image-rail > .article-body > .article-section > .article-top-bar {
  margin-inline: calc(var(--rail-gutter) * -1);
  padding-left: var(--rail-gutter);
  padding-right: calc(100% - var(--rail-text-width) + var(--rail-gutter));
}

.post-layout-image-rail > .article-body > :not(.image-figure):not(.image-row):not(.video-embed):not(.rail-anchor):not(.article-top-bar):not(h2):not(.article-section),
.post-layout-image-rail > .article-body > .article-section > :not(.image-figure):not(.image-row):not(.video-embed):not(.rail-anchor):not(.article-top-bar):not(h2) {
  max-width: var(--rail-text-width);
}

.post-layout-image-rail > .article-body > .image-figure,
.post-layout-image-rail > .article-body > .image-row,
.post-layout-image-rail > .article-body > .video-embed,
.post-layout-image-rail > .article-body > .article-section > .image-figure,
.post-layout-image-rail > .article-body > .article-section > .image-row,
.post-layout-image-rail > .article-body > .article-section > .video-embed {
  float: right;
  clear: right;
  width: var(--rail-media-width);
  margin: 0 0 1.35rem var(--rail-gutter);
}

.post-layout-image-rail > .article-body > .image-figure .image-link,
.post-layout-image-rail > .article-body > .article-section > .image-figure .image-link {
  width: fit-content;
  max-width: 100%;
}

.post-layout-image-rail > .article-body > .image-figure img,
.post-layout-image-rail > .article-body > .article-section > .image-figure img {
  width: auto;
  max-width: 100%;
}

.post-layout-image-rail > .article-body > .image-row .image-link,
.post-layout-image-rail > .article-body > .article-section > .image-row .image-link {
  width: fit-content;
  max-width: 100%;
}

.post-layout-image-rail > .article-body > .image-row img,
.post-layout-image-rail > .article-body > .article-section > .image-row img {
  width: auto;
  max-width: 100%;
}

.post-layout-image-rail > .article-body > .image-thumb .image-link img,
.post-layout-image-rail > .article-body > .image-small .image-link img,
.post-layout-image-rail > .article-body > .article-section > .image-thumb .image-link img,
.post-layout-image-rail > .article-body > .article-section > .image-small .image-link img {
  max-width: min(100%, 420px);
}

.post-layout-image-rail > .article-body > .image-medium .image-link img,
.post-layout-image-rail > .article-body > .article-section > .image-medium .image-link img {
  max-width: min(100%, 720px);
}

.post-layout-image-rail > .article-body > .video-embed,
.post-layout-image-rail > .article-body > .article-section > .video-embed {
  max-width: none;
}

.post-layout-image-rail > .article-body > h2,
.post-layout-image-rail > .article-body > .article-section > h2 {
  clear: both;
  margin-left: calc(var(--rail-gutter) * -1);
  margin-right: calc(var(--rail-gutter) * -1);
  padding-left: var(--rail-gutter);
  padding-right: calc(100% - var(--rail-text-width) + var(--rail-gutter));
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: var(--muted);
  text-align: center;
}

.article-body h2 {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: calc((100% - 100cqw) / 2);
  margin-right: calc((100% - 100cqw) / 2);
  background: var(--bar);
  border-block: 1px solid var(--border);
  font-size: 2rem;
  line-height: 1.2;
  padding: 0.7rem max(1rem, calc((100cqw - var(--content-width)) / 2 + 2rem));
}

.article-top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  max-width: none;
  margin: 0 calc((100% - 100cqw) / 2);
  border-block: 1px solid var(--border);
  background: var(--bar);
  color: var(--muted);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.7rem max(1rem, calc((100cqw - var(--content-width)) / 2 + 2rem));
  text-align: center;
}

.article-section > .article-top-bar + :not(.rail-anchor),
.article-section > h2 + :not(.rail-anchor),
.article-section > .article-top-bar + .rail-anchor + *,
.article-section > h2 + .rail-anchor + * {
  margin-top: max(2rem, var(--section-content-margin-top, 0px));
}

.post-layout-image-rail > .article-body > .article-top-bar ~ p:first-of-type,
.post-layout-image-rail > .article-body > .article-section > .article-top-bar ~ p:first-of-type {
  margin-top: max(2rem, var(--section-content-margin-top, 0px));
}

.section-title {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.article-body h2:has(.section-title:hover) .section-title,
.article-body h2:has(.section-toggle:hover) .section-title,
.article-body h2:has(.section-toggle:focus-visible) .section-title,
.article-top-bar:has(.section-title:hover) .section-title,
.article-top-bar:has(.section-toggle:hover) .section-title,
.article-top-bar:has(.section-toggle:focus-visible) .section-title {
  color: var(--accent-strong);
}

.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  max-width: 100%;
  margin: 3rem 0 1.25rem;
}

.heading-box {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--border);
  background: var(--bar);
  padding: 0.45rem 1rem;
}

.article-body h2.section-collapsed {
  margin-bottom: 0;
}

.article-top-bar.section-collapsed {
  margin-bottom: 0;
}

.article-body h2.after-collapsed-section,
.article-top-bar.after-collapsed-section {
  margin-top: 0;
}

.article-body > .aside-block:has(+ h2),
.article-section > .aside-block:last-child {
  margin-bottom: 0;
}

.article-body > .aside-block[hidden] + h2.after-collapsed-section,
.article-section:has(> .aside-block:last-child) + .article-section > h2.after-collapsed-section {
  margin-top: 0;
}

.section-toggle {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transform: translateY(-50%);
}

.section-toggle:hover,
.article-body h2:has(.section-title:hover) .section-toggle,
.article-body h2:has(.section-toggle:focus-visible) .section-toggle,
.article-top-bar:has(.section-title:hover) .section-toggle,
.article-top-bar:has(.section-toggle:focus-visible) .section-toggle {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.image-figure {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  background: var(--bar);
  padding: 0.65rem 0.65rem 0.35rem;
  text-align: center;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.25rem 0;
  text-align: center;
}

.image-row > .image-figure {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.image-row > .video-embed {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.image-figure img {
  margin: 0 auto !important;
}

.image-figure figcaption,
.video-embed figcaption {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.image-link {
  display: block;
  width: auto;
  margin: 0 auto;
  cursor: zoom-in;
  text-decoration: none;
}

.image-row > .image-figure .image-link {
  margin: auto auto;
}

.image-row > .video-embed .video-frame {
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
}

.image-figure.media-text-active,
.video-embed.media-text-active {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent);
}

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

.image-thumb .image-link img,
.image-small .image-link img {
  max-width: min(100%, 420px);
}

.image-medium .image-link img {
  max-width: min(100%, 720px);
}

.image-crop .image-link {
  width: 100%;
  overflow: hidden;
}

.image-crop .image-link img {
  width: 100%;
  height: 240px;
  max-width: none;
  object-fit: cover;
}

.video-embed {
  width: 100%;
  max-width: 960px;
  margin: 1.75rem auto;
  border: 1px solid var(--border);
  background: var(--bar);
  padding: 0.65rem 0.65rem 0.35rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
}

mark {
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.text-note {
  position: relative;
  cursor: help;
  outline: none;
}

.text-note::after {
  position: absolute;
  z-index: 40;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  width: max-content;
  max-width: min(30rem, calc(100vw - 2rem));
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  background: var(--bar);
  color: var(--text);
  content: attr(data-note);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, -0.3rem);
  visibility: hidden;
  white-space: normal;
}

.text-note:hover::after,
.text-note:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

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

.media-text-link {
  cursor: default;
}

.media-text-link:hover,
.media-text-link-active {
  color: var(--accent-strong);
}

.article-body img {
  margin: 1.25rem auto;
}

@container (min-width: 981px) and (max-width: 1540px) {
  .post-layout-image-rail > .article-body > .image-row,
  .post-layout-image-rail > .article-body > .article-section > .image-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@container (min-width: 981px) {
  .post-layout-image-rail > .article-body > .image-row.image-row-stacked,
  .post-layout-image-rail > .article-body > .article-section > .image-row.image-row-stacked {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@container (max-width: 980px) {
  .content > article.post-layout-image-rail > .article-body {
    padding-inline: 1.25rem;
  }

  .post-layout-image-rail > .article-body > .article-top-bar,
  .post-layout-image-rail > .article-body > .article-section > .article-top-bar {
    margin-inline: -1.25rem;
    padding-inline: 3.7rem 1.25rem;
  }

  .post-layout-image-rail > .article-body > :not(.image-figure):not(.image-row):not(.video-embed):not(.rail-anchor):not(.article-top-bar):not(h2):not(.article-section),
  .post-layout-image-rail > .article-body > .article-section > :not(.image-figure):not(.image-row):not(.video-embed):not(.rail-anchor):not(.article-top-bar):not(h2) {
    max-width: none;
  }

  .post-layout-image-rail > .article-body > .image-figure,
  .post-layout-image-rail > .article-body > .image-row,
  .post-layout-image-rail > .article-body > .video-embed,
  .post-layout-image-rail > .article-body > .article-section > .image-figure,
  .post-layout-image-rail > .article-body > .article-section > .image-row,
  .post-layout-image-rail > .article-body > .article-section > .video-embed {
    float: none;
    clear: none;
    width: auto;
    margin: 1.25rem 0;
  }

  .post-layout-image-rail > .article-body > .image-figure .image-link,
  .post-layout-image-rail > .article-body > .article-section > .image-figure .image-link {
    width: auto;
  }

  .post-layout-image-rail > .article-body > h2,
  .post-layout-image-rail > .article-body > .article-section > h2 {
    clear: none;
    margin-inline: -1.25rem;
    padding-inline: 3.7rem 1.25rem;
  }
}

.comments {
  width: 100%;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.comment-list {
  display: grid;
  gap: 1rem;
}

.comment {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  padding: 0.9rem 1rem;
}

.comment-meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-meta strong {
  color: var(--text);
}

.comment-body {
  margin: 0;
}

.comment-status,
.comment-note {
  color: var(--muted);
}

.comment-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.comment-form label {
  display: grid;
  gap: 0.28rem;
}

.comment-form span {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 0.65rem 0.75rem;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

button {
  justify-self: start;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0.58rem 0.85rem;
}

button:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.comment-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .site-title {
    margin-bottom: 1rem;
  }

  .nav-block + .nav-block {
    margin-top: 0;
  }

  .content {
    padding: 2rem 0 4rem;
  }

  .content > .page-header,
  .content > section,
  .content > article > .page-header:not(.post-header),
  .content > article > .article-body,
  .content > .comments {
    padding-inline: 1.25rem;
  }

  .post-header.has-banner {
    width: 100%;
    margin: -2rem 0 0;
    min-height: 220px;
    padding: 2rem 0 1.5rem;
  }

  .post-header.has-banner .post-header-content {
    padding-inline: 1.25rem;
  }

  .post-layout-image-rail > .post-header.has-banner .post-header-content {
    padding-inline: 1.25rem;
  }

  .article-body h2 {
    margin-inline: -1.25rem;
    padding-inline: 3.7rem 1.25rem;
  }

  .article-top-bar {
    padding-inline: 3.7rem 1.25rem;
  }

  .section-toggle {
    left: 1.25rem;
  }

  .article-top-bar,
  .post-layout-image-rail > .article-body > .article-top-bar,
  .post-layout-image-rail > .article-body > .article-section > .article-top-bar {
    margin-inline: -1.25rem;
  }

  .archive-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
