@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif.9b8dd1ecf641.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italic.bc891bdd08ad.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --surface: #fffdf9;
  --wash: #efede5;
  --ink: #192923;
  --muted: #57635c;
  --line: #dcded4;
  --field-line: #7d897e;
  --accent: #26594b;
  --accent-dark: #123c32;
  --accent-soft: #e8ede6;
  --focus: #994821;
  --danger: #8a2b29;
  --danger-soft: #faede9;
  --sans: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --latin-display: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shell: 1160px;
  --radius: 8px;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

:where(img) {
  max-inline-size: 100%;
  height: auto;
}

:where(h1, h2, h3, p, ul, ol) {
  margin: 0;
}

:where(h1, h2, h3) {
  line-height: 1.3;
  overflow-wrap: anywhere;
}

:where(input, select, textarea, button) {
  color: inherit;
  font: inherit;
}

.shell {
  width: min(var(--shell), calc(100% - 96px));
  margin-inline: auto;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link:focus {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 2;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 73px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 26px;
}

.site-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
  color: var(--accent-dark);
  font: 400 26px/1 var(--latin-display);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--accent-dark);
  color: #f5f1e4;
  font: 400 italic 28px/.82 var(--latin-display);
  padding-bottom: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.1vw, 43px);
  font-size: .91rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--accent-dark);
}

.site-nav a[aria-current] {
  font-weight: 650;
}

.site-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.site-account {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 7px;
  white-space: nowrap;
}

.account-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--accent-dark);
  font-size: .86rem;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
}

.account-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.account-quiet {
  border-color: transparent;
  color: var(--muted);
}

.site-main {
  flex: 1;
}

.site-main:focus {
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: .86rem;
  color: var(--muted);
}

.footer-brand {
  color: var(--accent-dark);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.home {
  padding-block: clamp(38px, 5.2vw, 80px) clamp(56px, 8vw, 116px);
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 282px);
  align-items: end;
  gap: 14px clamp(24px, 5.2vw, 76px);
  margin-block-end: clamp(26px, 3.65vw, 54px);
}

.home-intro h1 {
  color: var(--accent-dark);
  font: 400 clamp(4.4rem, 9.5vw, 8.8rem)/.82 var(--latin-display);
  letter-spacing: -.035em;
}

.home-intro h1 em {
  color: var(--accent);
  font-weight: 400;
}

.home-intro > p {
  color: var(--muted);
  padding-block-end: 4px;
  line-height: 1.8;
  text-wrap: pretty;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent-dark);
  color: #faf7ee;
}

.feature-text-only {
  grid-template-columns: 1fr;
  min-height: unset;
}

.feature-content {
  align-self: center;
  display: grid;
  justify-items: start;
  padding: clamp(24px, 3.4vw, 48px);
}

.feature-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #e0e8db;
  font-size: .82rem;
  letter-spacing: .13em;
}

.feature-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #adc09d;
}

.feature h2 {
  color: #fffdf6;
  font: 700 clamp(1.9rem, 3.3vw, 3rem)/1.24 var(--serif);
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.feature a {
  text-decoration: none;
}

.feature a:hover {
  color: #fffdf6;
  text-decoration: underline;
}

.feature a:focus-visible {
  outline-color: #f3bb91;
}

.feature-summary {
  margin-top: 13px;
  max-width: 41ch;
  color: #e0e8db;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.feature-meta {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 17px;
  color: #e0e8db;
  font-size: .82rem;
}

:where(.feature-meta, .post-list-item, .article-meta, .comment-meta) time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.feature-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #fffdf6;
  font-weight: 650;
}

.feature-media {
  position: relative;
  min-width: 0;
  background: #526958;
}

.feature-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-columns,
.archive-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(235px, 24vw, 292px);
  align-items: start;
  gap: 34px clamp(36px, 6vw, 84px);
}

.home-columns {
  margin-top: clamp(36px, 4.5vw, 66px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  font: 700 clamp(1.55rem, 3vw, 1.9rem)/1.35 var(--serif);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

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

.post-list-item {
  border-bottom: 1px solid var(--line);
}

.post-list-item article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  padding-block: 19px 17px;
}

.post-list-item h3 {
  font-size: clamp(1.05rem, 1.75vw, 1.24rem);
  font-weight: 690;
  line-height: 1.45;
}

.post-list-item h3 a {
  text-decoration: none;
}

.post-list-item h3 a:hover {
  text-decoration: underline;
}

.post-list-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .91rem;
  overflow-wrap: anywhere;
}

.post-list-item time {
  padding-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  white-space: nowrap;
}

.post-list-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin-top: 5px;
}

.post-list-tags a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  color: var(--accent);
  font-size: .78rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.post-list-tags a::before {
  content: "#";
}

.post-list-tags a:hover {
  text-decoration: underline;
}

.topic-panel {
  padding: 19px clamp(16px, 2vw, 25px) 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.topic-panel h2,
.rail-reading h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.topic-compact,
.rail-reading ul {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.topic-compact li + li,
.rail-reading li + li {
  border-top: 1px solid var(--line);
}

.topic-compact a,
.rail-reading li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-block: 5px;
  font-size: .9rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.topic-compact a:hover,
.rail-reading li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.topic-compact a[aria-current] {
  color: var(--accent-dark);
  font-weight: 700;
}

.topic-compact a[aria-current] > :first-child::before {
  content: "•";
  margin-right: .4em;
}

.topic-count {
  flex: none;
  color: var(--muted);
  font: .78rem/1 var(--mono);
}

.topic-panel > .text-link {
  margin-top: 4px;
}

.rail-reading {
  padding: 0 9px;
  margin-top: 27px;
}

.rail-reading li a span {
  flex: none;
  color: var(--accent);
}

.inner-page {
  padding-block: clamp(33px, 5vw, 72px) clamp(52px, 7.8vw, 102px);
}

.page-intro {
  margin-bottom: clamp(22px, 3.5vw, 43px);
}

.page-intro h1,
.auth-card h1 {
  color: var(--accent-dark);
  font: 700 clamp(2.2rem, 5.5vw, 4rem)/1.15 var(--serif);
  letter-spacing: -.04em;
}

.error-code {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: .85rem/1.2 var(--mono);
}

.error-page .page-intro p {
  margin-top: 16px;
  color: var(--muted);
}

.search-form {
  display: grid;
  gap: 7px;
  margin-bottom: 24px;
}

.search-form label,
.form-field label {
  color: var(--ink);
  font-size: .91rem;
  font-weight: 650;
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-controls input,
.form-field :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--field-line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}

.search-controls input::placeholder {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 5px;
  background: var(--accent-dark);
  color: #fffdf6;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf6;
}

.button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  padding: 10px 0 0;
  color: var(--muted);
  font-size: .88rem;
  overflow-wrap: anywhere;
}

.filter-summary strong {
  color: var(--ink);
}

.empty-note {
  padding-block: 17px;
  color: var(--muted);
}

.tag-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 9px;
  padding: 0;
  list-style: none;
}

.tag-directory a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  align-items: baseline;
  min-height: 55px;
  height: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  text-decoration: none;
}

.tag-directory a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tag-directory-name {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.tag-directory-count,
.tag-directory-arrow {
  color: var(--muted);
  font-size: .81rem;
  white-space: nowrap;
}

.tag-directory-count {
  font-variant-numeric: tabular-nums;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 67ch) minmax(120px, 205px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(23px, 5vw, 72px);
}

.about-card {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.about-card .brand-mark {
  width: 48px;
  height: 48px;
  font-size: 40px;
}

.about-handle {
  font: 400 2rem/1 var(--latin-display);
}

.back-nav {
  margin-top: -12px;
  margin-bottom: clamp(14px, 2.3vw, 30px);
}

.preview-label {
  display: inline-block;
  margin-inline-start: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .8rem;
}

.article-intro {
  max-width: 925px;
}

.tag-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  padding: 0;
  list-style: none;
}

.tag-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .8rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tag-links a:hover {
  text-decoration: underline;
}

.article-intro h1 {
  color: var(--accent-dark);
  font: 700 clamp(2.1rem, 5.4vw, 4.25rem)/1.18 var(--serif);
  letter-spacing: -.028em;
  text-wrap: pretty;
}

.article-dek {
  margin-top: 13px;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.16rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 17px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .87rem;
  overflow-wrap: anywhere;
}

.article-author {
  color: var(--accent-dark);
  font-weight: 650;
}

.article-cover {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
}

.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2.9;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(160px, 23vw, 260px);
  column-gap: clamp(24px, 6.2vw, 88px);
  align-items: start;
  margin-top: clamp(27px, 4.3vw, 52px);
}

.article-layout-single {
  grid-template-columns: minmax(0, 780px);
}

.article-rail {
  position: sticky;
  top: 24px;
  grid-column: 2;
  grid-row: 1;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 4px 4px 4px 14px;
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
}

.article-prose {
  grid-column: 1;
  grid-row: 1;
  overflow-x: auto;
}

.article-toc-mobile {
  display: none;
}

.article-toc h2,
.article-toc-mobile summary {
  color: var(--accent-dark);
  font-size: .93rem;
  font-weight: 700;
}

.toc-list {
  margin-top: 7px;
  padding: 0;
  list-style: none;
}

.toc-list .toc-level-3 {
  padding-inline-start: 10px;
}

.toc-list :is(.toc-level-4, .toc-level-5, .toc-level-6) {
  padding-inline-start: 19px;
}

.toc-list a {
  display: block;
  padding-block: 4px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.toc-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.prose {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.095rem);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

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

.prose :where(p, ul, ol, pre, blockquote, table, figure, .table-scroll, .code-example) {
  margin: 0 0 1.15em;
}

.prose :where(h1, h2, h3, h4, h5, h6) {
  margin: 1.6em 0 .55em;
  color: var(--accent-dark);
  font-weight: 700;
  line-height: 1.38;
  scroll-margin-top: 20px;
}

.prose h1,
.prose h2 {
  font-size: 1.55em;
}

.prose h3 {
  font-size: 1.28em;
}

.prose li > :where(ul, ol, p:last-child) {
  margin-bottom: 0;
}

.prose :where(ul, ol) {
  padding-inline-start: 1.5em;
}

.prose a,
.comment-signin a,
.auth-switch a {
  color: var(--accent);
}

.prose :where(img, video) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: .7em auto;
  border-radius: 4px;
}

.prose figcaption {
  color: var(--muted);
  font-size: .86em;
  text-align: center;
}

.prose hr {
  margin-block: 2em;
  border: 0;
  border-block-start: 1px solid var(--line);
}

.prose blockquote {
  padding: .65em .95em;
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  background: var(--accent-soft);
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

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

.prose :not(pre) > :is(code, kbd) {
  padding: .16em .32em;
  border-radius: 3px;
  background: var(--accent-soft);
  font-size: .84em;
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 5px;
  background: #1c2927;
  color: #f4f5e9;
  font-size: .81em;
  line-height: 1.6;
  white-space: pre;
  tab-size: 4;
}

.prose pre code {
  overflow-wrap: normal;
}

.code-example {
  position: relative;
}

.code-example pre {
  margin: 0;
  padding-top: 42px;
}

.copy-code {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 34px;
  padding: 3px 10px;
  border: 1px solid #a0ada8;
  border-radius: 4px;
  background: #1c2927;
  color: #f4f5e9;
  font: .76rem/1.3 var(--sans);
  cursor: pointer;
}

.copy-code:hover {
  background: #344542;
}

.copy-code:focus-visible {
  outline-color: #f3bb91;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88em;
  line-height: 1.55;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll table {
  margin: 0;
}

.prose :where(pre, .table-scroll):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.prose :is(th, td) {
  padding: .48em .65em;
  border: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  background: var(--wash);
  text-align: left;
}

.article-comments {
  max-width: 780px;
  margin-top: 47px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.article-comments h2 {
  font: 700 1.7rem/1.3 var(--serif);
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-block: 17px 4px;
}

.comment-form > .button {
  justify-self: start;
}

.comment-form textarea {
  min-height: 115px;
}

.comment-signin {
  margin-block: 13px 4px;
  padding: 10px 13px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--ink);
}

.comment-list {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.comment-list li {
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 14px;
}

.comment-meta strong {
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}

.comment-meta time {
  color: var(--muted);
  font-size: .76rem;
}

.comment-body {
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.auth-page {
  display: grid;
  place-items: start center;
}

.auth-card {
  width: min(100%, 458px);
  padding: clamp(21px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.auth-card h1 {
  font-size: clamp(1.95rem, 4vw, 2.65rem);
}

.auth-card header p {
  margin-top: 9px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-form > .button {
  width: 100%;
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
  font-size: .875rem;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.form-field textarea {
  resize: vertical;
}

.form-field-invalid :is(input, select, textarea) {
  border-color: var(--danger);
}

.field-hint {
  color: var(--muted);
  font-size: .81rem;
}

.field-hint ul {
  padding-inline-start: 1.35em;
}

.errorlist {
  display: grid;
  gap: 3px;
  padding: 0;
  color: var(--danger);
  font-size: .86rem;
  list-style: none;
}

.errorlist.nonfield {
  padding: 8px 11px;
  border-radius: 4px;
  background: var(--danger-soft);
}

.site-notices {
  padding-top: 16px;
}

.alerts {
  display: grid;
  gap: 5px;
  padding: 0;
  list-style: none;
}

.alert {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.alert.error {
  background: var(--danger-soft);
  color: var(--danger);
}

@media (max-width: 900px) {
  .shell {
    width: min(var(--shell), calc(100% - 64px));
  }

  .header-inner {
    gap: 15px;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 248px;
  }

  .feature-text-only {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(135px, 24%);
    gap: 24px;
  }

  .article-layout-single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 36px);
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand account" "nav nav";
    gap: 0 8px;
  }

  .site-brand {
    grid-area: brand;
    min-height: 54px;
    font-size: 23px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }

  .site-nav {
    grid-area: nav;
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    justify-content: center;
    flex: 1;
    min-height: 44px;
  }

  .site-nav a[aria-current]::after {
    inset-inline: 32%;
    bottom: 3px;
  }

  .site-account {
    grid-area: account;
  }

  .account-link {
    min-height: 44px;
    padding-inline: 8px;
  }

  .home {
    padding-top: 32px;
  }

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

  .home-intro h1 {
    font-size: clamp(3.25rem, 12.5vw, 5.2rem);
  }

  .home-intro > p {
    padding: 0;
    font-size: .92rem;
  }

  .feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature-content {
    padding: 18px 19px 13px;
  }

  .feature-label {
    margin-bottom: 9px;
  }

  .feature-summary {
    margin-top: 9px;
    font-size: .91rem;
  }

  .feature-meta {
    margin-top: 7px;
  }

  .feature-media {
    min-height: 124px;
    aspect-ratio: 2.6;
  }

  .home-columns,
  .archive-columns,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-columns {
    margin-top: 24px;
  }

  .post-list-item article {
    padding-block: 14px 8px;
    column-gap: 10px;
  }

  .post-list-item time {
    padding-top: 5px;
    font-size: .7rem;
  }

  .post-list-tags a,
  .topic-compact a,
  .rail-reading li a,
  .tag-links a,
  .text-link {
    min-height: 44px;
  }

  .about-card {
    justify-self: start;
    min-width: min(100%, 160px);
  }

  .article-cover img {
    aspect-ratio: 1.8;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  .article-rail {
    display: none;
  }

  .article-prose {
    grid-row: auto;
  }

  .article-toc-mobile {
    display: block;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--wash);
  }

  .article-toc-mobile summary {
    padding-block: 11px;
    cursor: pointer;
  }

  .article-toc-mobile .toc-list {
    margin: 0 0 7px;
  }

  .article-toc-mobile a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .prose pre {
    padding-inline: 12px;
  }

  .copy-code {
    min-height: 44px;
  }

  .code-example pre {
    padding-top: 54px;
  }

  .footer-inner {
    padding-block: 10px;
  }
}

@media (max-width: 365px) {
  .shell {
    width: calc(100% - 28px);
  }

  .site-brand {
    gap: 7px;
    font-size: 20px;
  }

  .site-account {
    gap: 0;
  }

  .account-link {
    font-size: .76rem;
    padding-inline: 5px;
  }
}
