/* Scenery and the editorial layout surround the native browser studies. */
:root {
  --section-space: clamp(5.25rem, 10vw, 11rem);
  --chapter-space: clamp(6.5rem, 12vw, 13rem);
  --bg: #141216;
  --header: #141216;
  --panel: #201d22;
  --panel-2: #2a252d;
  --text: #f8f4ef;
  --muted: #bbb3bd;
  --line: #3c353e;
  --accent: #ffc0b2;
  --accent-ink: #35201f;
}
:root[data-theme="light"] {
  --bg: #fcf9fc;
  --header: #f4edf6;
  --panel: #fffdfd;
  --panel-2: #efe7f2;
  --text: #322a38;
  --muted: #645a69;
  --line: #ddcfdf;
  --accent: #8a465e;
  --accent-ink: #fff;
  --heading-ink: #513950;
  --rose-surface: #fae8ed;
  --lilac-surface: #f0eafa;
}
:root[data-theme="light"]
  :is(.distro-intro h2, .section-intro h2, .chapter h3, .contribute-intro h2, .build-section h3) {
  color: var(--heading-ink);
}
:root[data-theme="light"] .distro-section {
  background: linear-gradient(145deg, var(--rose-surface), var(--bg) 64%, var(--lilac-surface));
}
:root[data-theme="light"] .playground-section {
  background: linear-gradient(125deg, var(--lilac-surface), var(--bg) 75%);
}
:root[data-theme="light"] .contribute-section {
  background: linear-gradient(125deg, var(--rose-surface), var(--bg) 70%);
}
:root[data-theme="light"] .chapter-index a {
  background: var(--panel-2);
  color: var(--heading-ink);
}
:root[data-theme="light"] .chapter-index a:is(:hover, :focus-visible) {
  background: var(--rose-surface);
  border-color: var(--accent);
}
:root[data-theme="light"] .architecture-intro {
  color: var(--heading-ink);
  background:
    linear-gradient(95deg, #f4eaf6 5%, #f6eff8f5 46%, #f7e9f178 100%),
    url("./assets/nature/stack.webp") center 45% / cover;
}
:root[data-theme="light"] .architecture-intro :is(.eyebrow, h2 em) {
  color: var(--accent);
}
:root[data-theme="light"] .architecture-intro p:last-child {
  color: var(--heading-ink);
}
[data-wall="default"] {
  --wall: url("./assets/Default.jpg");
}
[data-wall="highland"] {
  --wall: url("./assets/highland.webp");
}
.hero {
  background: #5c384d;
}
.hero:after {
  background:
    linear-gradient(90deg, #261421dc 0%, #301827aa 25%, #3c17374a 54%, transparent 82%),
    linear-gradient(0deg, #26152c91, transparent 25%);
}
.hero-art {
  background-position: center 53%;
}
.hero-eyebrow {
  color: #ffdbcf;
}
.hero h1 em {
  color: #ffd2bd;
}
.hero .button.primary {
  background: #ffcfba;
  color: #3a2323;
}
.hero .button.ghost {
  background: #291a2a45;
  border-color: #fff7;
}
.hero .button.ghost:hover {
  background: #40223794;
}
.hero .wall-select {
  background: #29172adb;
  border-color: #f6e5dd54;
}
.chapter-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(4.25rem, 7vw, 7.5rem);
}
.chapter-index a {
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 0.8rem;
  color: var(--muted);
  transition:
    color 0.15s,
    background 0.15s;
}
.chapter-index a:hover,
.chapter-index a:focus-visible {
  color: var(--text);
  background: var(--panel-2);
}
.features {
  display: flex;
  flex-direction: column;
  gap: var(--chapter-space);
}
.chapter {
  display: grid;
  grid-template-columns: minmax(245px, 0.72fr) minmax(0, 1.6fr);
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  gap: clamp(30px, 5vw, 82px);
  align-items: center;
  scroll-margin-top: 30px;
}
.chapter:nth-child(even) {
  grid-template-columns: minmax(0, 1.6fr) minmax(245px, 0.72fr);
}
.chapter:nth-child(even) .feature-copy {
  grid-column: 2;
  grid-row: 1;
}
.chapter:nth-child(even) .chapter-media {
  grid-column: 1;
  grid-row: 1;
}
.chapter .feature-copy {
  padding: 0;
  transform: translateY(var(--copy-y, 0px));
}
.chapter .feature-copy .eyebrow {
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin: 0 0 18px;
}
.chapter h3 {
  font-size: clamp(2.15rem, 3.25vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.061em;
  font-weight: 570;
  text-wrap: balance;
}
.chapter .feature-copy .chapter-prose {
  color: var(--muted);
  line-height: 1.67;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.12vw, 1.13rem);
  max-width: 46ch;
}
.chapter .hint {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 21px;
  line-height: 1.55;
  color: var(--text);
  font:
    480 0.79rem/1.55 Inter,
    sans-serif;
  align-items: flex-start;
}
.chapter .hint .icon {
  margin-top: 2px;
  color: var(--accent);
}
.chapter-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(350px, 34vw, 510px);
  border: 1px solid #ffffff22;
  box-shadow: 0 15px 38px #09050b21;
  color: #fff;
  container-type: inline-size;
}
.chapter-media > .scene-image {
  position: absolute;
  inset: -30px -5px;
  z-index: -2;
  transform: translateY(var(--land-y, 0px));
}
.scene-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 17, 26, 0.3), transparent 40%);
}
.chapter-media:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px #ffffff24;
  z-index: 5;
}
.chapter .demo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
  background: transparent;
  padding: clamp(16px, 3.2cqw, 40px);
  transform: translate(var(--prop-x, 0px), var(--prop-y, 0px)) scale(var(--prop-scale, 1));
}
.chapter .demo:before {
  content: none;
}
#settings .chapter-media,
#files .chapter-media {
  height: clamp(400px, 36vw, 560px);
}
.app-art.native-art {
  display: block;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(0 1px 1px #18251d20);
}
.app-art.trash-art {
  background: url("./assets/shell/user-trash.svg") center / contain no-repeat;
  scale: 0.88;
}
[data-ui="dark"] .trash-art {
  background-image: url("./assets/shell/user-trash-dark.svg");
}
[data-full-trash="true"] .trash-art {
  background-image: url("./assets/shell/user-trash-full.svg");
}
[data-ui="dark"] [data-full-trash="true"] .trash-art {
  background-image: url("./assets/shell/user-trash-full-dark.svg");
}
.surface .trash-window {
  width: min(680px, 89%);
  height: min(425px, 94%);
}
.surface .trash-window.zoomed {
  width: calc(100% - 18px);
  height: calc(100% - 8px);
}
.app-web {
  background: linear-gradient(145deg, #92e1ff, #186ed1 90%);
}
.web-links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.web-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ui-text);
}
.folder-art {
  background: url("./assets/shell/folder.svg") center/contain no-repeat;
}
.folder-art:before,
.folder-art:after {
  content: none;
}
.dock {
  gap: calc(8px * var(--dock-scale, 1));
  padding: calc(12px * var(--dock-scale, 1)) calc(15px * var(--dock-scale, 1));
  border-radius: calc(25px * var(--dock-scale, 1));
  background: linear-gradient(145deg, #e0e5ec77, #c5ccd451 60%, #cbd6d75c);
}
.dock-item {
  width: calc(48px * var(--dock-scale, 1));
  height: calc(48px * var(--dock-scale, 1));
}
.dock-item:after {
  bottom: -8px;
}
.dock-demo .dock-slot {
  margin: 0;
  position: relative;
}
.dock-demo {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 15px;
}
.dock-readout {
  min-height: 38px;
}
.dock-readout:empty {
  visibility: hidden;
}
.study-control,
.study-button,
.context-toolbar {
  background: #171820cf;
  border: 1px solid #ffffff5b;
  color: #fff;
  border-radius: 24px;
  backdrop-filter: blur(16px);
}
.study-control {
  display: flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  padding: 4px;
  font-size: 0.75rem;
}
.study-control > span {
  padding: 0 7px;
}
.study-control button {
  padding: 4px 10px;
  border-radius: 18px;
  color: #fff;
}
.study-control button[aria-pressed="true"] {
  background: #f6f4ef;
  color: #232329;
}
.trash-choices {
  margin-top: 5px;
}
.stack-popover {
  bottom: calc(100% + 12px);
  right: 0;
  min-width: 176px;
  padding: 10px;
  color: var(--ui-text);
}
.stack-popover strong,
.stack-popover p {
  display: block;
  margin: 3px 7px 7px;
  font-size: 0.8rem;
}
.os-brand .icon:last-child,
[data-glyph="tux"] .os-brand .icon:first-child {
  display: none;
}
[data-glyph="tux"] .os-brand .icon:last-child {
  display: inline-block;
}
.chapter .menu-demo {
  transform: none;
  padding: 0;
}
.menu-scene {
  width: 100%;
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}
.menu-demo .mini-menubar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 16;
  margin: 0;
}
.menu-demo .menubar,
.full-desktop .menubar {
  background: linear-gradient(#1520319c, #1a253e37);
  color: #fff;
  text-shadow: 0 1px 2px #1015239c;
  box-shadow: none;
  height: 32px;
}
.menubar button {
  font-size: clamp(0.68rem, 1.5cqw, 0.82rem);
  text-shadow: inherit;
}
.menubar button:is(:hover, [aria-expanded="true"]) {
  background: #ffffff3d;
}
.popover {
  padding: 5px;
  border-radius: 10px;
}
.popover hr {
  height: 1px;
  border: 0;
  background: var(--ui-line);
  margin: 3px 6px;
}
.menubar-slot .popover,
.mini-menubar .popover,
.native-context {
  min-width: 200px;
}
.popover button:disabled {
  opacity: 0.5;
  cursor: default;
}
.popover button:disabled:hover {
  background: transparent;
  color: inherit;
}
.popover button kbd {
  font:
    400 0.65rem Inter,
    sans-serif;
  color: var(--ui-muted);
  margin-left: auto;
  white-space: nowrap;
}
.scene-file-host,
.scene-file-host.native-app-host.nf-standalone {
  position: absolute;
  inset: 40px 7% 38px;
  display: grid;
  align-items: center;
  justify-items: center;
}
.scene-file-host.enlarged {
  inset: 34px 1% 26px;
}
.scene-file-host > .df-native {
  max-height: 100%;
}
.session-sheet {
  z-index: 25;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #141b234c;
  backdrop-filter: blur(8px);
}
.session-sheet > div {
  color: var(--ui-text);
  background: var(--ui);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 25px #10162045;
  width: min(90%, 280px);
  text-align: center;
}
.session-sheet > div > .icon {
  width: 30px;
  height: 30px;
  color: var(--desk-accent);
}
.session-sheet h4 {
  margin: 7px 0;
}
.session-sheet p {
  font-size: 0.8rem;
  color: var(--ui-muted);
  margin-bottom: 13px;
}
.session-sheet button {
  font-size: 0.8rem;
  background: var(--side);
  border-radius: 6px;
  padding: 5px 11px;
  margin: 3px;
}
.demo .popover,
.surface .popover {
  background: color-mix(in srgb, var(--ui) var(--menu-opacity, 83%), transparent);
}
.dock {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, #e4e9ec var(--glass-overlay, 44%), transparent),
    color-mix(in srgb, #b6bbcc var(--glass-overlay, 44%), transparent)
  );
}
.drawer-panel {
  width: min(94%, 630px);
  max-width: none;
  min-height: 0;
  padding: clamp(14px, 3.2cqw, 26px);
  border-radius: 20px;
  background: color-mix(in srgb, var(--ui) 77%, transparent);
  backdrop-filter: blur(26px) saturate(1.15);
}
.drawer-search {
  display: flex;
  gap: 7px;
  align-items: center;
  position: relative;
}
.drawer-search .search-field {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
}
.drawer-back,
.drawer-options {
  border-radius: 50%;
  background: var(--field);
  border: 1px solid var(--ui-line);
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-size: 0.73rem;
  padding: 0;
}
.drawer-more {
  top: 100%;
  right: 0;
}
.filters {
  flex-wrap: nowrap;
  overflow: auto;
  scrollbar-width: thin;
  padding: 3px 0;
  margin: 12px 0;
  gap: 5px;
}
.filter {
  white-space: nowrap;
}
.app-grid {
  grid-template-columns: repeat(auto-fit, minmax(57px, 1fr));
  gap: 6px;
}
.launch-app .app-art {
  width: clamp(33px, 7cqw, 49px);
  height: clamp(33px, 7cqw, 49px);
}
.drawer-panel.drawer-launch {
  height: min(96%, 330px);
  padding: 0;
}
.drawer-app-body .nf-settings-body,
.drawer-app-body .nf-file-grid {
  min-height: 0;
}
.chapter .controls-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.sample-window {
  width: min(68%, 325px);
  border-radius: 12px;
}
.sample-window.zoomed {
  width: min(92%, 520px);
}
.empty-window-body {
  height: clamp(125px, 11vw, 180px);
}
.sample-window.zoomed .empty-window-body {
  height: clamp(175px, 16vw, 260px);
}
.component-status {
  padding: 4px 9px;
  background: #101b27a6;
  border-radius: 20px;
}
.traffic button {
  width: 23px;
}
.traffic button i {
  width: 13px;
  height: 13px;
}
.chapter .context-demo {
  padding: 0;
}
.context-desk {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.context-tiles {
  position: absolute;
  inset: 14px auto 53px 12px;
  width: 81px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  overflow: auto;
  scrollbar-width: thin;
}
.context-tiles .desktop-file {
  flex: none;
}
.context-menu-host .popover {
  position: absolute;
  min-width: min(210px, calc(100% - 92px));
}
.context-toolbar {
  position: absolute;
  bottom: 15px;
  left: 14px;
  max-width: calc(100% - 112px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  font-size: 0.71rem;
}
.context-toolbar span:empty {
  display: none;
}
.context-toolbar span {
  padding-right: 5px;
}
.study-button {
  padding: 6px 10px;
  font-size: 0.75rem;
}
.context-toolbar .study-button {
  border: 0;
  background: transparent;
}
.context-browser {
  position: absolute;
  inset: 8% 6% 12%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.context-browser-body {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}
.context-browser-body > .df-native {
  max-height: 100%;
}
.architecture-section {
  padding-bottom: var(--section-space);
}
.architecture-intro {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #181922ed, #25252ca6 70%, #17191b59),
    url("./assets/nature/stack.webp") center 45% / cover;
  color: #fff;
  padding: var(--section-space) 0;
}
.architecture-intro .eyebrow {
  color: #ffd1bc;
}
.architecture-intro h2 {
  font-weight: 570;
  font-size: clamp(3.1rem, 5.7vw, 7rem);
  letter-spacing: -0.07em;
  line-height: 1.05;
}
.architecture-intro h2 em {
  font:
    italic 400 1.04em Georgia,
    serif;
  color: #ffd1bc;
  letter-spacing: -0.06em;
}
.architecture-intro p:last-child {
  max-width: 610px;
  font-size: 1.05rem;
  line-height: 1.64;
  color: #e6e3e1;
  margin-top: 17px;
}
.architecture-content {
  padding-top: var(--section-space);
}
.build-section {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8%;
  align-items: center;
  margin-top: var(--section-space);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.25rem, 5.5vw, 6rem);
}
.build-section h3 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.build-section p:not(.eyebrow) {
  color: var(--muted);
  margin: 13px 0 19px;
  max-width: 560px;
}
.full-desktop {
  container-type: inline-size;
}
.full-desktop .sim-window[data-app="files"],
.full-desktop .sim-window[data-app="settings"] {
  width: min(680px, 89%);
  height: min(425px, 94%);
}
.sim-window[data-app="drawer"] {
  width: min(610px, 94%);
  height: max-content;
  max-height: 100%;
}
.sim-window[data-app="drawer"] > .titlebar {
  display: none;
}
.sim-window[data-app="drawer"] .drawer-panel {
  border: 0;
}
.sim-window.zoomed[data-app] {
  width: calc(100% - 18px);
  height: calc(100% - 8px);
}
@container (max-width:575px) {
  .menubar {
    gap: 0;
    padding-inline: 4px;
  }
  .menubar button {
    padding: 0 4px;
  }
  .bar-status .icon {
    width: 12px;
  }
  .bar-status {
    gap: 4px;
  }
  .chapter .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1020px) {
  .chapter,
  .chapter:nth-child(even) {
    gap: 25px;
    grid-template-columns: minmax(215px, 0.72fr) minmax(0, 1.5fr);
  }
  .chapter:nth-child(even) {
    grid-template-columns: minmax(0, 1.5fr) minmax(215px, 0.72fr);
  }
  .chapter-media {
    height: 355px;
  }
  .chapter .feature-copy .chapter-prose {
    font-size: 0.96rem;
  }
  .chapter .hint {
    font-size: 0.76rem;
  }
  .dock {
    gap: calc(6px * var(--dock-scale, 1));
    padding: calc(10px * var(--dock-scale, 1));
  }
  .dock-item {
    width: calc(40px * var(--dock-scale, 1));
    height: calc(40px * var(--dock-scale, 1));
  }
}
@media (max-width: 800px) {
  .chapter,
  .chapter:nth-child(even) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .chapter .feature-copy {
    padding: 0;
  }
  .chapter h3 {
    max-width: 21ch;
  }
  .chapter .hint {
    border: 0;
    margin-top: 10px;
    padding: 0;
  }
  .chapter .feature-copy .eyebrow {
    margin-bottom: 8px;
  }
  .chapter .feature-copy .chapter-prose {
    max-width: 66ch;
    margin-top: 10px;
  }
  .chapter .chapter-media {
    height: clamp(325px, 54vw, 416px);
  }
  #settings .chapter-media,
  #files .chapter-media {
    height: clamp(360px, 61vw, 440px);
  }
  .chapter-index {
    gap: 6px;
  }
  .chapter-index a {
    font-size: 0.76rem;
    padding: 4px 11px;
  }
  .build-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
@media (max-width: 520px) {
  .hero:after {
    background:
      linear-gradient(90deg, #2c1928b5, #4a273873 75%), linear-gradient(0deg, #2d193d94, transparent 40%);
  }
  .chapter h3 {
    font-size: 2.35rem;
  }
  .chapter .hint {
    font-size: 0.76rem;
  }
  .chapter-media {
    border-radius: 13px;
  }
  .chapter .demo {
    padding: 11px;
  }
  .chapter .menu-demo,
  .chapter .context-demo {
    padding: 0;
  }
  .dock {
    gap: calc(5px * var(--dock-scale, 1));
    padding: calc(8px * var(--dock-scale, 1));
    border-radius: 18px;
  }
  .dock-item {
    width: calc(clamp(26px, 8.3vw, 38px) * var(--dock-scale, 1));
    height: calc(clamp(26px, 8.3vw, 38px) * var(--dock-scale, 1));
  }
  .dock-item:after {
    bottom: -6px;
  }
  .menubar button {
    font-size: 0.65rem;
    padding: 0 3px;
  }
  .bar-status .icon {
    display: none;
  }
  .bar-status time {
    font-size: 0.63rem;
  }
  .menu-scene .scene-file-host {
    inset: 40px 4px 28px;
  }
  .filters {
    margin: 7px 0;
  }
  .drawer-panel {
    padding: 12px;
    width: min(100%, 630px);
  }
  .sample-window {
    width: 81%;
  }
  .context-toolbar {
    bottom: 8px;
    left: 7px;
  }
  .context-toolbar span {
    font-size: 0.65rem;
  }
  .architecture-intro p:last-child {
    font-size: 0.96rem;
  }
  .project-links {
    gap: 12px;
  }
  .hero .wall-select {
    color: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chapter .demo,
  .chapter .scene-image,
  .chapter .feature-copy {
    transform: none !important;
  }
}

/* Keep both menu bars at the top edge of their own desktop. Only the scenery scrolls in depth. */
.full-desktop > .menubar-slot {
  position: absolute;
  inset: 0 0 auto;
  z-index: 16;
}
.menu-study {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
#menubar .chapter-media {
  height: clamp(270px, 30vw, 405px);
}
#menubar .scene-file-host {
  inset: 40px clamp(8px, 4cqw, 38px) 29px;
  min-height: 0;
}
#menubar .scene-file-host > .df-native {
  height: min(100%, 345px);
  width: min(100%, 670px);
}
#menubar .scene-file-host:has(.nf-zoom) {
  inset: 34px 3px 4px;
}
#menubar .scene-file-host .nf-zoom {
  width: 100%;
  height: 100%;
}
.glyph-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: clamp(12px, 1.3vw, 20px);
  margin: 12px auto 0;
  width: fit-content;
  max-width: 100%;
}
.glyph-caption {
  max-width: 23ch;
  min-width: 0;
}
.glyph-picker h4 {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 610;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.glyph-picker p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 4px 0 0;
  text-wrap: pretty;
}
.glyph-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(5px, 0.75vw, 10px);
  border: 0;
  min-width: 0;
  width: clamp(105px, 15vw, 166px);
  flex: none;
  padding: 0;
  margin: 0;
}
.glyph-card {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(46px, 4.3vw, 60px);
  border-radius: 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.glyph-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.glyph-card svg {
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.glyph-card:hover {
  border-color: var(--muted);
  color: var(--text);
}
.glyph-card:has(:checked) {
  color: var(--accent);
  border: 2px solid currentColor;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}
.glyph-card:has(:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
#demo-controls [aria-disabled="true"] {
  cursor: default;
}
#demo-controls .sample-window {
  background: var(--ui);
}
.empty-window-body {
  transition: height 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .glyph-card,
  .empty-window-body,
  #demo-controls .sample-window {
    transition: none;
  }
}
@media (forced-colors: active) {
  .glyph-card:has(:checked) {
    border-color: Highlight;
    color: Highlight;
  }
}
.tour,
.playground-section {
  padding-block: var(--section-space);
}
.contribute-section {
  border-block-start: 1px solid var(--line);
  background: linear-gradient(125deg, color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg) 60%);
  padding-block: var(--section-space);
}
.contribute-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  gap: clamp(42px, 9vw, 146px);
}
.contribute-intro h2 {
  font-size: clamp(3.1rem, 5.5vw, 6.3rem);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.065em;
}
.contribute-intro h2 em {
  display: block;
  color: var(--accent);
  font:
    italic 400 1.03em Georgia,
    serif;
  letter-spacing: -0.055em;
}
.contribute-intro > p:not(.eyebrow) {
  margin: 24px 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.7;
}
.contribute-intro .button {
  width: max-content;
}
.contribute-paths {
  border-top: 1px solid var(--line);
}
.contribute-paths > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contribute-paths h3 {
  margin: 0 0 5px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.contribute-paths h3 a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.contribute-paths h3 a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.contribute-paths p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.contribute-paths code {
  font-size: 0.82rem;
}
@media (max-width: 800px) {
  .contribute-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .contribute-intro h2 em {
    display: inline;
  }
}
:root {
  --site-header-height: 65px;
  --tour-bar-height: 55px;
}
html {
  scroll-padding-top: calc(var(--site-header-height) + var(--tour-bar-height) + 12px);
}
.site-header {
  position: sticky;
  top: 0;
}
.tour-nav {
  top: var(--site-header-height);
}
@media (max-width: 840px) {
  :root {
    --site-header-height: 58px;
  }
}
@media (max-width: 520px) {
  :root {
    --tour-bar-height: 49px;
  }
}

.distro-section {
  padding-block: var(--section-space);
  background: var(--panel);
  min-width: 0;
}
.distro-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 22px;
}
.distro-intro h2 {
  font-size: clamp(1.85rem, 3.6vw, 3.5rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
  font-weight: 570;
  text-wrap: balance;
}
.distro-intro p {
  margin: 12px 0 0;
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.55;
}
.distro-controls {
  display: flex;
  gap: 7px;
}
.distro-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}
.distro-controls button:hover:not([aria-disabled="true"]) {
  border-color: var(--accent);
  color: var(--accent);
}
.distro-controls [aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
.distro-track {
  list-style: none;
  padding: 3px 0 13px;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  --distro-gap: clamp(10px, 1.2vw, 18px);
  grid-auto-columns: max(164px, calc((100% - 4 * var(--distro-gap)) / 5));
  gap: var(--distro-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}
.distro-card {
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.distro-art {
  height: clamp(99px, 9.2vw, 135px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  background: radial-gradient(
    ellipse at 50% 102%,
    color-mix(in srgb, var(--brand) 27%, #fbfaf8),
    #f5f3ef 115%
  );
}
:root[data-theme="light"] .distro-card {
  background: color-mix(in srgb, var(--brand) 4%, var(--panel));
}
:root[data-theme="light"] .distro-art {
  background: radial-gradient(
    ellipse at 50% 104%,
    color-mix(in srgb, var(--brand) 24%, var(--panel)),
    color-mix(in srgb, var(--brand) 7%, var(--panel)) 92%
  );
}
.distro-art:before,
.distro-art:after {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 19%, transparent);
  z-index: -1;
}
.distro-art:after {
  width: 112%;
}
.distro-art img {
  display: block;
  width: clamp(44px, 5vw, 68px);
  height: clamp(44px, 5vw, 68px);
  object-fit: contain;
  transition: transform 0.28s ease;
}
.distro-card:hover img {
  transform: translateY(-3px) scale(1.04);
}
.distro-caption {
  padding: 14px clamp(12px, 1.2vw, 18px) 18px;
}
.distro-caption > span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.distro-caption h3 {
  font-size: clamp(1.14rem, 1.6vw, 1.48rem);
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 3px 0 5px;
}
.distro-caption p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}
.distro-more a {
  display: block;
  height: 100%;
}
.distro-more a:focus-visible {
  outline-offset: -4px;
  border-radius: inherit;
}
.distro-more .distro-art {
  color: #743750;
}
.distro-more .distro-caption {
  padding-top: 16px;
}
.distro-more a:is(:hover, :focus-visible) p {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .distro-intro {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
  }
  .distro-controls {
    margin-left: auto;
  }
  .distro-track {
    grid-auto-columns: clamp(150px, 54%, 210px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .distro-art img,
  .distro-card:hover img {
    transition: none;
    transform: none;
  }
}
