:root {
  color-scheme: light dark;
  --bg: #c9cac5;
  --paper: #fff;
  --text: #090909;
  --muted: #8d8d8d;
  --line: #EBEBEB;
  --accent: #f96a5b;
  --caret: #f96a5b;
  --focus: #246bfe;
  --logo: #050505;
  --chrome-text: #fff;
  --control-bg: rgba(255, 255, 255, 0.82);
  --control-text: #111;
  --control-icon: #b7b7b7;
  --menu-hover: #f5f5f5;
  --caption: #c9c9c9;
  --image-placeholder: #eeeeee;
  --table-head: #f4f4f2;
  --table-row-alt: #fafafa;
  --scroll-thumb: #d6d6d2;
  --code-bg: #f7f7f4;
  --syntax-comment: #7b7b74;
  --syntax-punctuation: #6f6f68;
  --syntax-keyword: #b83a2f;
  --syntax-selector: #1f6f86;
  --syntax-property: #8b5314;
  --syntax-string: #6f6514;
  --syntax-function: #6d5794;
  --soft-text: rgba(0, 0, 0, 0.42);
  --nav-muted: #c6c6c6;
  --toc-muted: #9a9a9a;
  --media-dark: #111;
  --audio-control-scheme: light;
  --avatar-bg: #ffd511;
  --paper-radius-left: 7px;
  --paper-radius-right: 30px;
  --paper-border-width: 2px;
  --paper-border: 2px solid var(--line);
  --font-base: "Plus Jakarta Sans", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --shell: 840px;
  --home-card-gap: 11px;
  --article-text-width: 620px;
  --paper-pad-x: 55px;
  --paper-pad-y: clamp(2.25rem, 5vw, 4.4rem);
  --ring-size: 22px;
  --ring-pitch: 92px;
  --header-height: 78px;
  --media-caption-gap: 0.38rem;
  --media-caption-size: 11px;
  --media-caption-line-height: 1.45;
  --motion-quick: all 700ms cubic-bezier(0.2, 0.91, 0.85, 0.96) 0s;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #20221f;
  --paper: #292a27;
  --text: #e2ded4;
  --muted: #a19d94;
  --line: #3d3e39;
  --caret: #ff8a7f;
  --focus: #9cbcff;
  --logo: #e6e1d7;
  --chrome-text: #dedad1;
  --control-bg: #343631;
  --control-text: #e2ded4;
  --control-icon: #aaa69d;
  --menu-hover: #343631;
  --caption: #8f8b83;
  --image-placeholder: #343631;
  --table-head: #333530;
  --table-row-alt: #2d2e2a;
  --scroll-thumb: #55564f;
  --code-bg: #242520;
  --syntax-comment: #8f8b83;
  --syntax-punctuation: #b8b3aa;
  --syntax-keyword: #ff9a8f;
  --syntax-selector: #8ab4c8;
  --syntax-property: #e0b37a;
  --syntax-string: #c9c06a;
  --syntax-function: #c3a8e8;
  --soft-text: rgba(226, 222, 212, 0.48);
  --nav-muted: #8f8b83;
  --toc-muted: #918d85;
  --media-dark: #181916;
  --audio-control-scheme: dark;
  --avatar-bg: #d8b80f;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #20221f;
    --paper: #292a27;
    --text: #e2ded4;
    --muted: #a19d94;
    --line: #3d3e39;
    --caret: #ff8a7f;
    --focus: #9cbcff;
    --logo: #e6e1d7;
    --chrome-text: #dedad1;
    --control-bg: #343631;
    --control-text: #e2ded4;
    --control-icon: #aaa69d;
    --menu-hover: #343631;
    --caption: #8f8b83;
    --image-placeholder: #343631;
    --table-head: #333530;
    --table-row-alt: #2d2e2a;
    --scroll-thumb: #55564f;
    --code-bg: #242520;
    --syntax-comment: #8f8b83;
    --syntax-punctuation: #b8b3aa;
    --syntax-keyword: #ff9a8f;
    --syntax-selector: #8ab4c8;
    --syntax-property: #e0b37a;
    --syntax-string: #c9c06a;
    --syntax-function: #c3a8e8;
    --soft-text: rgba(226, 222, 212, 0.48);
    --nav-muted: #8f8b83;
    --toc-muted: #918d85;
    --media-dark: #181916;
    --audio-control-scheme: dark;
    --avatar-bg: #d8b80f;
  }
}

* {
  box-sizing: border-box;
}

[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;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-height) + 34px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  overflow-x: clip;
}

body,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.js .fade-image {
  opacity: 0;
  transition: opacity 140ms ease;
}

.js .fade-image.is-loaded {
  opacity: 1;
}

:root[data-theme="dark"] img,
:root[data-theme="dark"] video,
:root[data-theme="dark"] canvas {
  filter: brightness(0.9);
}

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

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  left: 1rem;
  top: 1rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  padding: 0;
  display: flex;
  align-items: center;
  background: var(--bg);
}


.site-header__inner,
.site-actions {
  display: flex;
  align-items: center;
}

.site-header__inner {
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  color: var(--logo);
  display: inline-flex;
  width: 115px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 263;
  fill: currentColor;
}

.brand-logo path {
  fill: currentColor;
}

.site-actions {
  gap: 0.62rem;
  color: var(--chrome-text);
  font-weight: 400;
}

.header-search,
.listing-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  background: var(--control-bg);
  border: 0;
  overflow: hidden;
}

.header-search {
  width: 184px;
  overflow: visible;
}

.listing-search {
  width: min(380px, 100%);
  margin-inline: auto;
}

.header-search input,
.listing-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 0.3rem 0 0.9rem;
  color: var(--control-text);
  caret-color: var(--caret);
  outline: 0;
}

.has-soft-caret input {
  caret-color: transparent;
}

.search-caret {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: var(--control-icon);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.has-soft-caret.is-caret-visible .search-caret {
  animation: soft-caret-blink 1.15s steps(1) infinite;
  opacity: 1;
}

@keyframes soft-caret-blink {
  0%,
  52% {
    opacity: 1;
  }

  53%,
  100% {
    opacity: 0;
  }
}

.header-search .search-box__input {
  padding-right: 32px;
}

.header-search button,
.listing-search button,
.icon-button,
.theme-toggle,
.language-menu__button,
.inline-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.header-search button,
.listing-search button {
  width: 32px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--control-icon);
}

.header-search button {
  position: absolute;
  top: 0;
  right: 0;
}

.header-search button span,
.listing-search button span {
  display: block;
  width: 15px;
  height: 15px;
  color: inherit;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0' /%3E%3Cpath d='M21 21l-6 -6' /%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0' /%3E%3Cpath d='M21 21l-6 -6' /%3E%3C/svg%3E") no-repeat center / contain;
}

.listing-search.is-clearable button span {
  width: 14px;
  height: 14px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18'/%3E%3Cpath d='M6 6L18 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18'/%3E%3Cpath d='M6 6L18 18'/%3E%3C/svg%3E");
}

.search-box__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: var(--paper-border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
}

.search-box__results[hidden] {
  display: none;
}

.search-results__heading,
.search-results__clear {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.search-result,
.search-results__clear {
  border: 0;
  background: transparent;
  font: inherit;
}

.search-result {
  display: grid;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 5px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible,
.search-result.is-active {
  background: var(--menu-hover);
  outline: 0;
}

.search-result__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.search-result__summary {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.search-results__clear {
  justify-self: end;
  padding: 2px 4px;
  cursor: pointer;
}

.icon-button {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: color-mix(in srgb, var(--chrome-text) 55%, transparent);
}

.theme-toggle__icon .icon {
  width: 14px;
  height: 14px;
}

:root[data-theme="light"] .theme-toggle [data-theme-icon="moon"],
:root[data-theme="system"] .theme-toggle [data-theme-icon="moon"],
:root[data-theme="dark"] .theme-toggle [data-theme-icon="sun"],
.theme-toggle[data-theme="light"] [data-theme-icon="moon"],
.theme-toggle[data-theme="dark"] [data-theme-icon="sun"] {
  color: var(--chrome-text);
}

:root[data-theme="light"] .theme-toggle [data-theme-icon="sun"],
:root[data-theme="system"] .theme-toggle [data-theme-icon="sun"],
:root[data-theme="dark"] .theme-toggle [data-theme-icon="moon"],
.theme-toggle[data-theme="light"] [data-theme-icon="sun"],
.theme-toggle[data-theme="dark"] [data-theme-icon="moon"] {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .theme-toggle [data-theme-icon="sun"] {
    display: inline-flex;
    color: var(--chrome-text);
  }

  :root[data-theme="system"] .theme-toggle [data-theme-icon="moon"] {
    display: none;
  }
}

@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .theme-toggle [data-theme-icon="moon"] {
    display: inline-flex;
    color: var(--chrome-text);
  }

  :root[data-theme="system"] .theme-toggle [data-theme-icon="sun"] {
    display: none;
  }
}

.language-menu {
  position: relative;
}

.language-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  color: var(--chrome-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.language-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 118px;
  padding: 6px;
  border: var(--paper-border);
  border-radius: 9px;
  background: var(--paper);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
}

.language-menu__list::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-left: var(--paper-border);
  border-top: var(--paper-border);
  background: var(--paper);
  transform: rotate(45deg);
}

.language-menu.is-open .language-menu__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu__list a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  gap: 10px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.language-menu__list a:hover,
.language-menu__list a:focus-visible {
  background: var(--menu-hover);
  outline: 0;
}

.language-menu__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.language-menu__chevron svg {
  width: 10px;
  height: 10px;
}

.language-menu.is-open .language-menu__chevron {
  transform: rotate(180deg);
}

.language-menu__current {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-mark {
  min-height: 168px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-mark__logo {
  width: min(280px, 66vw);
  margin: 0;
  color: var(--logo);
}

.bound-paper {
  position: relative;
  background: var(--paper);
  border: var(--paper-border);
  border-radius: var(--paper-radius-left) var(--paper-radius-right) var(--paper-radius-right) var(--paper-radius-left);
  color: var(--text);
}

.bound-paper__rings {
  --ring-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cg transform='matrix(1 0 0 1 0 -6.1)'%3E%3Cg transform='matrix(.577794 0 0 .577794 -33.88385 465.778241)'%3E%3Cg transform='matrix(7.726187 0 0 6.152828 -1006.632771 -1706.339353)'%3E%3Cpath fill='%23000' d='M161.708 190.471h-17.993v-12.884h17.993c2.064-6.743 7.273-11.533 13.366-11.533 7.9 0 14.315 8.054 14.315 17.975 0 9.92-6.415 17.975-14.315 17.975-6.093 0-11.302-4.791-13.366-11.533Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  position: absolute;
  left: -12px;
  top: 34px;
  bottom: 34px;
  width: 48px;
  pointer-events: none;
  background: var(--bg);
  -webkit-mask-image: var(--ring-mask);
  mask-image: var(--ring-mask);
  -webkit-mask-repeat: repeat-y;
  mask-repeat: repeat-y;
  -webkit-mask-size: 48px var(--ring-pitch);
  mask-size: 48px var(--ring-pitch);
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.bound-paper__rings.is-enhanced {
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

.bound-paper__ring {
  position: absolute;
  left: 0;
  width: 48px;
  height: var(--ring-pitch);
  background: var(--bg);
  -webkit-mask-image: var(--ring-mask);
  mask-image: var(--ring-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 48px var(--ring-pitch);
  mask-size: 48px var(--ring-pitch);
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.profile-paper {
  width: 100%;
  margin: 0 0 76px;
  padding: 42px 70px 32px 128px;
}

.profile-paper__inner {
  width: 100%;
}

.profile-paper__summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-paper__avatar {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--avatar-bg);
  overflow: hidden;
  font-weight: 700;
  font-size: 48px;
}

.profile-paper__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-paper__body {
  min-width: 0;
  padding-top: 7px;
}

.profile-paper h2,
.profile-paper h3,
.article__header h1,
.related-section h2,
.page-card__title {
  margin: 0;
  line-height: 1.35;
}

.profile-paper h2 {
  font-size: 18px;
  font-weight: 700;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 1.05em;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.profile-paper p {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.profile-paper h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.profile-paper__details {
  min-width: 0;
  margin-top: 22px;
}

.profile-paper__places {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.profile-paper__places li {
  --list-line-height: 1.6;
  --list-marker-size: 5px;
  position: relative;
  margin: 6px 0 0;
  padding-left: 15px;
  font-size: 13px;
  font-weight: 500;
  line-height: var(--list-line-height);
  overflow-wrap: anywhere;
}

.profile-paper__places li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc((1em * var(--list-line-height) - var(--list-marker-size)) / 2);
  width: var(--list-marker-size);
  height: var(--list-marker-size);
  border-radius: 50%;
  background: var(--accent);
}

.profile-paper__places a {
  font-weight: 600;
}

.bar-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.bar-links {
  justify-content: flex-start;
}

.bar-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  line-height: 1;
}

.bar-links a::before,
.bar-links a:last-of-type::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 999px;
  background: var(--line);
  transform: translateY(-50%);
}

.bar-links a::before {
  left: 0;
}

.bar-links a:last-of-type::after {
  right: 0;
}

.bar-links--large,
.bar-links--home {
  justify-content: center;
}

.bar-links--large a {
  gap: 6px;
  min-height: 42px;
  padding: 0 30px;
  font-size: 26px;
  font-weight: 700;
}

.bar-links--large a::before,
.bar-links--large a:last-of-type::after {
  width: 4px;
  height: 30px;
}

.bar-links--home a {
  gap: 2px;
  min-height: 18px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
}

.bar-links--home a::before,
.bar-links--home a:last-of-type::after {
  width: 2px;
  height: 14px;
}

.profile-paper__links {
  justify-content: flex-start;
  margin-top: 6px;
}

.profile-paper__links a {
  gap: 4px;
}

.profile-paper__links a:first-child {
  padding-left: 9px;
}

.social-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.social-icon--brand-twitter {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c0 -.249 1.51 -2.772 1.818 -4.013l0 .001' /%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c0 -.249 1.51 -2.772 1.818 -4.013l0 .001' /%3E%3C/svg%3E");
}

.social-icon--brand-github {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5' /%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5' /%3E%3C/svg%3E");
}

.social-icon--brand-reddit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 8c2.648 0 5.028 .826 6.675 2.14a2.5 2.5 0 0 1 2.326 4.36c0 3.59 -4.03 6.5 -9 6.5c-4.875 0 -8.845 -2.8 -9 -6.294l-1 -.206a2.5 2.5 0 0 1 2.326 -4.36c1.646 -1.313 4.026 -2.14 6.674 -2.14l.999 0' /%3E%3Cpath d='M12 8l1 -5l6 1' /%3E%3Cpath d='M18 4a1 1 0 1 0 2 0a1 1 0 1 0 -2 0' /%3E%3Cpath d='M8.5 13a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0' fill='currentColor' /%3E%3Cpath d='M14.5 13a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0' fill='currentColor' /%3E%3Cpath d='M10 17c.667 .333 1.333 .5 2 .5s1.333 -.167 2 -.5' /%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 8c2.648 0 5.028 .826 6.675 2.14a2.5 2.5 0 0 1 2.326 4.36c0 3.59 -4.03 6.5 -9 6.5c-4.875 0 -8.845 -2.8 -9 -6.294l-1 -.206a2.5 2.5 0 0 1 2.326 -4.36c1.646 -1.313 4.026 -2.14 6.674 -2.14l.999 0' /%3E%3Cpath d='M12 8l1 -5l6 1' /%3E%3Cpath d='M18 4a1 1 0 1 0 2 0a1 1 0 1 0 -2 0' /%3E%3Cpath d='M8.5 13a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0' fill='currentColor' /%3E%3Cpath d='M14.5 13a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0' fill='currentColor' /%3E%3Cpath d='M10 17c.667 .333 1.333 .5 2 .5s1.333 -.167 2 -.5' /%3E%3C/svg%3E");
}

.tag-link__icon,
.related-section h2 span {
  color: var(--accent);
}

.page-listing {
  padding-bottom: 5.5rem;
}

.listing-controls {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tag-strip {
  width: 100%;
  max-width: none;
  row-gap: 3px;
}

.tag-strip .tag-link {
  padding-inline: 9px;
}

.tag-strip .tag-link.is-active {
  color: var(--accent);
}

.muted {
  margin: 0;
  color: var(--soft-text);
  font-size: 13px;
  font-weight: 400;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--home-card-gap);
  row-gap: 2rem;
}

.page-card {
  min-width: 0;
}

.page-card__thumb {
  display: block;
  aspect-ratio: 16 / 9.6;
  background: var(--image-placeholder);
  border: var(--paper-border);
  border-radius: 9px;
  overflow: hidden;
}

.page-card .page-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.page-card:hover .page-card__thumb img,
.page-card:focus-within .page-card__thumb img,
.page-card__thumb:hover img,
.page-card__thumb:focus-visible img {
  transform: scale(1.14);
  transition-duration: 0.3s;
}

.page-card__thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.page-card__title {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.article-shell {
  position: relative;
}

.article-paper {
  position: relative;
  z-index: 0;
  color: var(--text);
}

.article-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--paper);
  border: var(--paper-border);
  border-radius: var(--paper-radius-left) var(--paper-radius-right) var(--paper-radius-right) var(--paper-radius-left);
  pointer-events: none;
}

.article-paper__top {
  position: sticky;
  top: var(--header-height);
  z-index: 1;
  height: 34px;
  margin-bottom: -34px;
  pointer-events: none;
}

.article-paper__top::before,
.article-paper__top::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.article-paper__top::before {
  inset: calc(var(--paper-border-width) * -1) calc(var(--paper-border-width) * -1) 0;
  background: var(--bg);
}

.article-paper__top::after {
  inset: 0;
  background: var(--paper);
  border: var(--paper-border);
  border-bottom: 0;
  border-radius: var(--paper-radius-left) var(--paper-radius-right) 0 0;
}

.article-paper__rings {
  z-index: 3;
}

.article {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: var(--paper-pad-y) var(--paper-pad-x) 2.2rem;
}

.article__header {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 3.1rem;
}

.article__header h1 {
  max-width: 19em;
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 700;
  letter-spacing: 0;
}

.article__dates {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  color: var(--soft-text);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.article__date-item {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  line-height: 1;
}

.article__date-item svg {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article__date-item span {
  line-height: 1;
}

.article__cover {
  width: 120px;
  aspect-ratio: 1;
  margin: 8px 0 0;
  background: var(--image-placeholder);
  overflow: hidden;
}

.article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__tags {
  justify-content: center;
  margin: 0;
}

.bar-links--small a {
  min-height: 18px;
  padding: 0 12px;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
}

.bar-links--small a::before,
.bar-links--small a:last-of-type::after {
  width: 2px;
  height: 14px;
}

.article__body {
  width: min(100%, var(--article-text-width));
  margin-inline: auto;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.72;
}

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

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

.prose table {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1.35rem 0 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  font-size: 13px;
  line-height: 1.48;
  -webkit-overflow-scrolling: touch;
}

.prose th,
.prose td {
  min-width: 7rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.62rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th:last-child,
.prose td:last-child {
  border-right: 0;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--table-head);
  font-weight: 700;
}

.prose tbody tr:nth-child(even) td {
  background: var(--table-row-alt);
}

.prose table strong {
  color: var(--accent);
  font-weight: 700;
}

.prose table + p:has(> em:only-child) {
  margin-top: 0.35rem;
}

.prose table + p:has(> em:only-child) em {
  display: block;
  margin-top: 0;
}

.prose table::-webkit-scrollbar {
  height: 5px;
}

.prose table::-webkit-scrollbar-track {
  background: transparent;
}

.prose table::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--scroll-thumb);
}

.prose h2 {
  position: relative;
  margin: 3.15rem 0 0.8rem;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.prose h3 {
  margin: 2.45rem 0 0.65rem;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.prose h4 {
  margin: 1.4rem 0 0.5rem;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.prose a {
  color: inherit;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: auto;
}

.prose strong a,
.prose a strong {
  font-weight: 700;
}

.prose h3 a {
  color: inherit;
}

.prose blockquote {
  margin: 1.15rem 0;
  padding: 0.78rem 0.9rem 0.78rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

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

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

.article__body a[href^="http"]::after,
.profile-paper__places a[href^="http"]::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.2em;
  vertical-align: -0.14em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4L10 14M20 4V10M20 4H14M10 4H4V20H20V14'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4L10 14M20 4V10M20 4H14M10 4H4V20H20V14'/%3E%3C/svg%3E") no-repeat center / contain;
}

.prose ul,
.prose ol {
  padding-left: 0;
  list-style: none;
}

.prose ol {
  counter-reset: prose-ordered-list;
}

.prose li {
  --list-line-height: 1.72;
  --list-marker-size: 5px;
  position: relative;
  padding-left: 15px;
  margin: 0.4rem 0;
  line-height: var(--list-line-height);
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc((1em * var(--list-line-height) - var(--list-marker-size)) / 2);
  width: var(--list-marker-size);
  height: var(--list-marker-size);
  border-radius: 50%;
  background: var(--accent);
}

.prose ol > li {
  counter-increment: prose-ordered-list;
  padding-left: 1.8rem;
}

.prose ol > li::before {
  content: counter(prose-ordered-list) ".";
  position: absolute;
  left: 0;
  top: 0;
  min-width: 1.25rem;
  color: var(--accent);
  font-size: 0.88em;
  font-weight: 700;
  line-height: var(--list-line-height);
  text-align: right;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.prose :not(pre) > code {
  padding: 0.1em 0.32em;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--text));
  border-radius: 4px;
  background: color-mix(in srgb, var(--code-bg) 82%, var(--paper));
  color: var(--text);
  font-size: 0.88em;
  line-height: 1;
  white-space: nowrap;
}

.code-block {
  position: relative;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--code-bg);
}

.prose pre {
  max-width: 100%;
  margin: 0;
  padding: 0.85rem 0.9rem 0.95rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--code-bg);
  line-height: 1.65;
}

.code-block pre {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-right: 2.75rem;
}

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

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

.prose pre::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--scroll-thumb);
}

.prose pre code {
  font-size: 13px;
  white-space: pre;
}

.prose pre .token.comment,
.prose pre .token.prolog,
.prose pre .token.doctype,
.prose pre .token.cdata {
  color: var(--syntax-comment);
}

.prose pre .token.punctuation,
.prose pre .token.operator {
  color: var(--syntax-punctuation);
}

.prose pre .token.keyword,
.prose pre .token.atrule,
.prose pre .token.rule,
.prose pre .token.important {
  color: var(--syntax-keyword);
}

.prose pre .token.selector,
.prose pre .token.tag,
.prose pre .token.class-name,
.prose pre .token.builtin {
  color: var(--syntax-selector);
}

.prose pre .token.property,
.prose pre .token.attr-name,
.prose pre .token.variable,
.prose pre .token.constant,
.prose pre .token.symbol,
.prose pre .token.macro-name,
.prose pre .token.number,
.prose pre .token.boolean {
  color: var(--syntax-property);
}

.prose pre .token.string,
.prose pre .token.attr-value,
.prose pre .token.char,
.prose pre .token.regex {
  color: var(--syntax-string);
}

.prose pre .token.function,
.prose pre .token.method {
  color: var(--syntax-function);
}

.code-copy {
  position: absolute;
  top: 0.48rem;
  right: 0.42rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: color-mix(in srgb, var(--code-bg) 84%, var(--paper));
  color: var(--muted);
  cursor: pointer;
  opacity: 0.72;
  transition: color 140ms ease, opacity 140ms ease, background-color 140ms ease;
}

.code-copy:hover,
.code-copy:focus-visible,
.code-copy.is-copied {
  color: var(--accent);
  opacity: 1;
}

.code-copy svg {
  width: 16px;
  height: 16px;
}

.code-copy::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--paper);
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

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

.code-copy.is-copied::after {
  content: attr(data-success-label);
  opacity: 1;
}

.prose img {
  margin-inline: auto;
}

.inline-image-frame {
  display: inline-grid;
  width: min(100%, var(--image-width, 100%));
  max-width: 100%;
  overflow: hidden;
  background: var(--image-placeholder);
}

.inline-image-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.prose p:has(> img:only-child),
.prose p:has(> img + em),
.prose p:has(> .inline-image-frame:only-child),
.prose p:has(> .inline-image-frame + em),
.prose p:has(> .article-media:only-child),
.prose p:has(> .article-media + em),
.prose p:has(> .article-video:only-child),
.prose p:has(> .article-video + em) {
  display: grid;
  justify-items: center;
  margin: 1.3rem 0 0.2rem;
}

.prose p:has(> img:only-child) img,
.prose p:has(> img + em) img {
  border: var(--paper-border);
  background: var(--image-placeholder);
}

.prose p:has(> em:only-child),
.prose p:has(> img + em) em,
.prose p:has(> .inline-image-frame + em) em,
.prose p:has(> .article-media + em) em,
.prose p:has(> .article-video + em) em {
  margin-top: var(--media-caption-gap);
  color: var(--caption);
  font-size: var(--media-caption-size);
  font-weight: 600;
  font-style: normal;
  line-height: var(--media-caption-line-height);
}

.prose p:has(> em:only-child) em,
.prose p:has(> img + em) em {
  font-style: normal;
}

.article-media,
.article-video {
  display: grid;
  gap: var(--media-caption-gap);
  justify-items: center;
}

.article-audio {
  display: grid;
  gap: var(--media-caption-gap);
  margin: 1.1rem 0;
}

.article-audio audio {
  width: 100%;
  color-scheme: var(--audio-control-scheme);
  accent-color: var(--accent);
}

.article-media--image {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.article-media--image .article-media__frame {
  width: 100%;
}

.article-media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.3rem 0 0;
}

.article-media-row .article-media,
.article-media-row .article-video,
.article-media-row .inline-image-frame,
.article-media-row > img {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.article-media-row > img {
  height: auto;
  border: var(--paper-border);
  background: var(--image-placeholder);
}

.article-media--row-image > img {
  width: 100%;
  height: auto;
  border: var(--paper-border);
  background: var(--image-placeholder);
}

.article-media__frame {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: var(--paper-border);
  background: var(--image-placeholder);
}

.article-media__frame img {
  width: 100%;
  height: auto;
}

.article-video__frame {
  width: min(100%, var(--image-width, 100%));
  max-width: 100%;
  overflow: hidden;
  border: var(--paper-border);
  background: var(--media-dark);
  aspect-ratio: var(--video-aspect, 16 / 9);
}

.article-video__frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-media figcaption,
.article-video figcaption,
.article-audio figcaption {
  justify-self: start;
  margin-top: 0;
  color: var(--caption);
  font-size: var(--media-caption-size);
  font-weight: 600;
  line-height: var(--media-caption-line-height);
}

.article-embed {
  display: grid;
  gap: var(--media-caption-gap);
  margin: 1.35rem 0;
}

.article-embed__frame {
  position: relative;
  overflow: hidden;
  border: var(--paper-border);
  background: var(--media-dark);
  aspect-ratio: 16 / 9;
}

.article-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-embed figcaption {
  color: var(--caption);
  font-size: var(--media-caption-size);
  font-weight: 600;
  line-height: var(--media-caption-line-height);
}

.media-inline {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.media-inline--reverse {
  flex-direction: row-reverse;
}

.media-inline__media-stack {
  flex: 0 0 var(--media-inline-width, 36%);
  min-width: 180px;
}

.media-inline__body {
  flex: 1 1 auto;
  min-width: 0;
}

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

.media-inline__footer {
  color: var(--muted);
  font-size: 12px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: min(100%, var(--article-text-width));
  margin: 3.2rem auto 0;
  color: var(--nav-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.article-nav div:last-child {
  text-align: right;
}

.article-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  color: inherit;
}

.article-nav__link span {
  overflow-wrap: anywhere;
}

.article-nav__icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.toc-rail {
  position: fixed;
  top: 50%;
  left: calc(50% + (var(--shell) / 2) + 34px);
  transform: translateY(-50%);
  width: 190px;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
}

.toc-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-rail a {
  position: relative;
  display: block;
  padding: 4px 0 4px 11px;
  color: var(--toc-muted);
  font-weight: 600;
  line-height: 1.35;
}

.toc-rail a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
}

.toc-rail a.is-active {
  color: var(--text);
  font-weight: 600;
}

.toc-rail a.is-active::before {
  background: var(--accent);
}

.toc-rail__item--h2 + .toc-rail__item--h3 {
  margin-top: 2px;
}

.toc-rail__item--h3 a {
  padding-left: 22px;
  font-size: 12px;
  font-weight: 500;
}

.related-sections {
  display: grid;
  gap: 2.6rem;
  width: 100%;
  margin: 2rem 0 5.5rem;
}

.related-section h2 {
  margin-bottom: 0.65rem;
  font-size: 16px;
}

.site-footer {
  padding: 3rem 0 2.4rem;
  text-align: center;
}

.site-footer__logo {
  display: inline-flex;
  width: 140px;
  color: var(--logo);
}

.site-footer__links {
  justify-content: center;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .toc-rail {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    align-items: flex-start;
  }

  .site-actions {
    gap: 0.45rem;
  }

  .header-search {
    width: min(180px, 38vw);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-paper__summary {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 1.4rem;
  }

  .profile-paper__avatar {
    width: 104px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
    --paper-pad-x: 1.35rem;
    --paper-pad-y: 2rem;
    --ring-size: 18px;
    --ring-pitch: 58px;
  }

  .shell {
    width: min(100% - 16px, var(--shell));
  }

  .site-title {
    width: 115px;
  }

  .site-header__inner {
    align-items: center;
    gap: 0.75rem;
  }

  .site-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: 0;
  }

  .header-search {
    order: 0;
    width: clamp(116px, 34vw, 150px);
    flex: 0 1 auto;
  }

  .hero-mark {
    min-height: 128px;
  }

  .profile-paper {
    padding: 30px 24px 30px 42px;
  }

  .profile-paper__summary {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-paper__avatar {
    width: 96px;
    justify-self: center;
  }

  .profile-paper h2,
  .profile-paper h3,
  .profile-paper p {
    min-width: 0;
  }

  .profile-paper__links {
    justify-content: flex-start;
  }

  .profile-paper__links a {
    font-size: 11px;
    padding-inline: 8px;
  }

  .listing-search {
    width: min(300px, 100%);
  }

  .tag-strip {
    max-width: none;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article {
    padding-left: 2rem;
  }

  .media-inline,
  .media-inline--reverse {
    flex-direction: column;
  }

  .media-inline__media-stack {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 420px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .article-nav div:last-child {
    text-align: left;
  }
}
