/* Local website fonts served from the static assets root. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-v21-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-v21-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-v20-400-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-v20-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-v20-500-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-v20-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-v40-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-v40-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-v40-italic-latin-ext.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-v40-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-v19-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-v19-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Trajan Pro 3";
  src:
    local("Trajan Pro 3"),
    local("Trajan Pro 3 Regular"),
    url("/assets/fonts/trajan-pro-3-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Default theme is intentionally dark. */
:root {
  color-scheme: dark;
  --font-size-base-fluid: clamp(0.98rem, 0.94rem + 0.28dvw, 1.08rem);
  --font-size-xxxs: calc(var(--font-size-base-fluid) * 0.62);
  --font-size-xxs: calc(var(--font-size-base-fluid) * 0.72);
  --font-size-xs: calc(var(--font-size-base-fluid) * 0.82);
  --font-size-s: calc(var(--font-size-base-fluid) * 0.9);
  --font-size-m: var(--font-size-base-fluid);
  --font-size-l: calc(var(--font-size-base-fluid) * 1.12);
  --font-size-xl: calc(var(--font-size-base-fluid) * 1.36);
  --font-size-xxl: calc(var(--font-size-base-fluid) * 1.78);
  --font-size-xxxl: calc(var(--font-size-base-fluid) * 2.4);
  --font-size-hero: calc(var(--font-size-xxxl) * 2);

  --font-brand: "Trajan Pro 3", "Times New Roman", serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Literata", Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --color-brand-limestone: #D8D0C2;
  --color-brand-ember-bronze: #C89A67;
  --color-brand-aither-glow: #88B6BB;

  --color-transparent: transparent;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-shadow-ink: #020301;
  --color-night: #0b1012;
  --color-ember: #c28d58;
  --color-violet-haze: #1b2b2e;
  --color-panel-top: #141b1e;
  --color-panel-bottom: #141b1e;
  --color-line-warm: #d6c7af;
  --color-text-highlight: #e2d7c5;
  --color-ivory: #f4efe6;
  --color-code-bg: #101618;
  --color-code-text: #f0eadc;

  --color-bg-canvas: #0d1214;
  --color-bg-elevated: #12181b;
  --color-bg-deep: #12181b;
  --color-surface: #151c1f;
  --color-surface-A90: rgba(21, 28, 31, 0.9);
  --color-surface-strong: #1a2326;
  --color-surface-strong-A94: rgba(26, 35, 38, 0.94);
  --color-surface-soft: #202a2e;
  --color-surface-soft-A90: rgba(32, 42, 46, 0.9);
  --color-hero-start: #151c1f;
  --color-hero-start-A96: rgba(21, 28, 31, 0.96);
  --color-hero-end: #1a2326;
  --color-hero-end-A94: rgba(26, 35, 38, 0.94);

  --color-text: #e7e2d7;
  --color-text-strong: #f7f3eb;
  --color-text-muted: #c8c2b4;
  --color-text-faint: #90897b;
  --color-text-on-accent: #1d1611;
  --color-text-A88: rgba(231, 226, 215, 0.88);
  --color-text-A80: rgba(231, 226, 215, 0.8);
  --color-text-A58: rgba(231, 226, 215, 0.58);

  --color-line: #31393d;
  --color-line-A10: rgba(49, 57, 61, 0.1);
  --color-line-A12: rgba(49, 57, 61, 0.12);
  --color-line-strong: #5a686d;
  --color-line-strong-A20: rgba(90, 104, 109, 0.2);
  --color-line-warm-A08: rgba(214, 199, 175, 0.08);

  --color-accent: #c89a67;
  --color-accent-glow: #88b6bb;
  --color-accent-deep: #a67948;
  --color-link: #d6b27e;
  --color-link-visited: #c89a67;
  --color-link-hover: #e7c18f;
  --color-link-active: #f1d3a4;
  --color-accent-A12: rgba(200, 154, 103, 0.12);
  --color-accent-A18: rgba(200, 154, 103, 0.18);
  --color-accent-glow-A55: rgba(136, 182, 187, 0.55);
  --color-accent-glow-A42: rgba(136, 182, 187, 0.42);
  --color-accent-glow-A16: rgba(136, 182, 187, 0.16);
  --color-accent-glow-A08: rgba(136, 182, 187, 0.08);
  --color-accent-glow-A07: rgba(136, 182, 187, 0.07);
  --color-ember-A18: rgba(194, 141, 88, 0.18);
  --color-violet-haze-A12: rgba(27, 43, 46, 0.12);

  --color-white-A12: rgba(255, 255, 255, 0.12);
  --color-white-A06: rgba(255, 255, 255, 0.06);
  --color-white-A05: rgba(255, 255, 255, 0.05);
  --color-white-A03: rgba(255, 255, 255, 0.03);
  --color-white-A015: rgba(255, 255, 255, 0.015);
  --color-night-A92: rgba(11, 16, 18, 0.92);
  --color-night-A78: rgba(11, 16, 18, 0.78);
  --color-panel-top-A98: rgba(20, 27, 30, 0.98);
  --color-panel-bottom-A96: rgba(20, 27, 30, 0.96);
  --color-ivory-A05: rgba(243, 237, 225, 0.05);
  --color-ivory-A02: rgba(243, 237, 225, 0.02);
  --color-code-bg-A82: rgba(16, 22, 24, 0.82);
  --color-shadow-ink-A34: rgba(3, 2, 5, 0.34);
  --color-shadow-ink-A80: rgba(3, 2, 5, 0.8);
  --color-black-A42: rgba(0, 0, 0, 0.42);
  --color-black-A28: rgba(0, 0, 0, 0.28);
  --color-black-A18: rgba(0, 0, 0, 0.18);

  --shadow-soft: 0 18px 40px var(--color-shadow-ink-A34);
  --shadow-strong: 0 24px 70px var(--color-black-A42);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-size: var(--font-size-m);
  color: var(--color-text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background: var(--color-bg-canvas);
}

body::before {
  display: none;
}

.site-shell {
  --page-gutter: clamp(16px, 3vw, 40px);
  --landing-hero-height: clamp(420px, 82svh, 760px);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1em 0;
}

.site-hero-backdrop {
  position: fixed;
  inset: 0;
  bottom: auto;
  height: calc(var(--landing-hero-height) + 56px);
  z-index: 0;
  pointer-events: none;
}

.site-chapter-nav{
  margin: 2em auto 4em auto;
  max-width: 72ch;
  display: flex;
  gap: 2em;

  justify-content: space-between;
}

.site-chapter-nav-link{
  display: inline-flex;
  gap: 0.5em;
  width: 50%;
}

.site-chapter-picker {
  position: relative;
  min-width: 0;
}

.site-chapter-title-button {
  appearance: none;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;

  padding-inline: 0;
  margin: 0;
  border-radius: 0;
  background-color: var(--color-bg-deep);
}

.site-chapter-title-button:hover,
.site-chapter-title-button:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.site-chapter-title-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
  transition: transform 140ms ease, opacity 140ms ease;
}

.site-chapter-title-button[aria-expanded="true"] .site-chapter-title-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.site-chapter-picker-panel {
  position: fixed;
  top: 4em;
  right: 1em;
  z-index: 999;
  width: min(420px, calc(100vw - 32px));
  background: transparent;
  backdrop-filter: blur(2px);
}

.site-chapter-picker-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--color-line-A10);
  border-radius: 18px;
  background: var(--color-night-A92);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(1em);
  overflow: clip scroll;
  max-height: calc(100dvh - 6em);
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-deep) var(--color-white-A03);
}

.site-chapter-picker-item {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.site-chapter-picker-item:hover,
.site-chapter-picker-item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.site-chapter-picker-item.is-active {
  background: var(--color-accent-A12);
}

.site-chapter-picker-index {
  color: var(--color-text-faint);
  font-family: var(--font-ui);
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-chapter-picker-text {
  min-width: 0;
  color: var(--color-text-strong);
  font-family: var(--font-ui);
  font-size: var(--font-size-m);
  font-weight: 600;
  line-height: 1.25;
}

.site-hero-backdrop-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.86) contrast(1.02) brightness(0.7);
  transform: scale(1.06);
  transform-origin: center top;
}

.site-hero-backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(13, 18, 20, 0.14) 0%,
      rgba(13, 18, 20, 0.24) 36%,
      rgba(13, 18, 20, 0.44) 66%,
      rgba(13, 18, 20, 0.82) 100%
    );
}

.site-bar {
  position: sticky;
  top: 16px;
  z-index: 30;
  width: min(calc(100% - (var(--page-gutter) * 2)), 1560px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.6em 1.2em;
  margin: 0 auto 22px;
  border: 1px solid var(--color-line);
  border-radius: 2em;
  background: var(--color-violet-haze);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  transition: top 160ms ease, 
    transform 160ms ease, 
    background-color 300ms ease, 
    box-shadow 160ms ease,
    padding 160ms ease;
}

.site-shell[data-scrolled="true"] .site-bar {
  top: 0;
  transform: translateY(-1px);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: var(--color-surface);
  box-shadow: 0 20px 42px var(--color-shadow-ink-A80);
}

.site-brand {
  color: var(--color-text-strong);
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: var(--font-size-l);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}

.site-brand-text {
  display: inline-block;
  font-family: var(--font-brand);
  font-style: normal;
  font-weight: normal !important;
  letter-spacing: 0.01em;
  color: var(--color-brand-limestone);
}

.site-brand-footer {
  color: var(--color-text-strong);
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: var(--font-size-xs);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.site-nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a,
.site-nav-toggle,
.site-menu-toggle,
.site-volume-chapterbar{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 0;
  border-radius: 1em;
  color: var(--color-text);
  background: var(--color-bg-deep);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--font-size-m);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.site-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav-label {
  white-space: nowrap;
  padding: 0.5em;
}

.site-nav-link.is-active,
.site-nav-link.is-active:hover,
.site-nav-link.is-active:focus-visible {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  box-shadow: 0 10px 24px var(--color-black-A28);
}

.site-nav-link--home {
  border: 1px solid var(--color-line-A12);
  padding-inline: 1em;
}

.site-nav a.site-nav-link--page {
  padding-inline: 1em;
  gap: 0.5em;
}

.site-nav-discord {
  background: var(--color-accent-deep);
  color: var(--color-text-on-accent);
}

.site-frame {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1180px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.site-frame--with-toc {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1480px);
  min-height: 100vh;
}


.site-chapter-title{
    padding: 0.6em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}
.site-chapter-step{
    cursor: pointer;
    font-size: var(--font-size-l);
    border: unset;
    border-radius: 0.2em;
    padding: 0.1em;
    min-width: 2rem;
    min-height: 2.5rem;
    color: var(--color-link-active);
    background-color: var(--color-black);
    transition: color 150ms ease-out,
      background-color 150ms ease-out;
}
.site-chapter-step[disabled]{
  color: var(--color-line-strong-A20);
  background-color: var(--color-bg-deep);
  cursor: default;
}
.site-chapter-step:hover{
  color: var(--color-link-hover);
}
.site-chapter-step[disabled]:hover{
  color: var(--color-link-active);
  background-color: var(--color-bg-deep);
}

.site-chapter-bar {
  position: sticky;
  top: 74px;
  z-index: 24;
  width: min(calc(100% - (var(--page-gutter) * 2)), 1480px);
  margin: -6px auto 18px;
}

.site-chapter-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 4px;
  scrollbar-width: none;
}

.site-chapter-rail::-webkit-scrollbar {
  display: none;
}

.site-chapter-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--color-line-A10);
  border-radius: 1em;
  background: rgba(12, 17, 19, 0.82);
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.site-chapter-link:hover,
.site-chapter-link:focus-visible {
  color: var(--color-text-strong);
  background: rgba(18, 25, 28, 0.92);
  border-color: var(--color-line-strong-A20);
}

.site-chapter-link.is-active {
  color: var(--color-text-on-accent);
  background: var(--color-accent);
  border-color: transparent;
}

.site-chapter-nav-link--next{
  text-align: right;
  justify-content: end;
}

.site-footer {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1560px);
  position: relative;
  z-index: 4;
  margin: 1em auto 0;
  padding-bottom: 0;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  padding: 0.6em 1.2em;
  border: 1px solid var(--color-line-A10);
  border-radius: 2em;
  background: rgba(12, 17, 19, 0.78);
  box-shadow: var(--shadow-soft);
}

.site-footer-copy {
  margin: 0;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: var(--font-size-m);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer-icon-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line-A12);
  border-radius: 1em;
  color: var(--color-text-muted);
  background: var(--color-white-A03);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.site-footer-icon-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer-icon-link:hover,
.site-footer-icon-link:focus-visible {
  color: var(--color-text-strong);
  border-color: var(--color-line-strong-A20);
  background: var(--color-white-A06);
}

.site-body {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--color-line-A10);
  border-radius: var(--radius-xl);
  background: var(--color-surface-A90);
  box-shadow: var(--shadow-strong);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-body[data-loading="true"] {
  opacity: 0.56;
  transform: translateY(8px);
}

.site-body section.level1 {
  scroll-margin-top: 110px;
}

.site-body section.level2 {
  scroll-margin-top: 110px;
}

.site-body h1,
.site-body h2,
.site-body h3,
.site-body h4 {
  margin: 1.3em 0 0.45em;
  color: var(--color-text-strong);
  font-family: var(--font-display);
  line-height: 1.02;
  text-wrap: balance;
}

.site-body h1 {
  font-size: var(--font-size-xxl);
  font-weight: 600;
}

.site-body h2 {
  font-size: var(--font-size-xxxl);
  font-weight: 600;
}

.site-body h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.site-body h4 {
  font-size: var(--font-size-m);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-body p,
.site-body li {
  max-width: 74ch;
  font-size: var(--font-size-m);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.site-body p {
  margin: 0 0 1rem;
  padding: 0;
}

.site-body ul,
.site-body ol {
  padding-left: 1.3rem;
}

.site-body :where(a),
.site-body :where(a:visited) {
  color: var(--color-link);
  text-decoration-color: var(--color-ember-A18);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.site-body :where(a:hover),
.site-body :where(a:focus-visible),
.site-body :where(a:active) {
  color: var(--color-link-hover);
  text-decoration-color: currentColor;
}

.site-action-row {
  display: grid;
  gap: 12px;
  margin: 1.4rem 0 0;
}

.site-action-row p {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  width: 100%;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 12px;
  transition: box-shadow 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.site-body a.site-cta,
.site-body a.site-cta:hover,
.site-body a.site-cta:focus-visible {
  text-decoration: none;
}

.site-body a.site-cta--primary,
.site-body a.site-cta--primary:hover,
.site-body a.site-cta--primary:focus-visible {
  color: var(--color-text-on-accent);
}

.site-body a.site-cta--secondary,
.site-body a.site-cta--secondary:hover,
.site-body a.site-cta--secondary:focus-visible {
  color: var(--color-night);
}

.site-cta-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-body img.site-cta-icon--asset {
  display: block;
  object-fit: contain;
  margin: 0;
  height: 1em;
  width: 1em;
  border-radius: unset;
  border: unset;
  box-shadow: unset;
}

.site-cta--primary {
  border: 1px solid transparent;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  box-shadow: 0 14px 28px rgba(200, 154, 103, 0.24);
}

.site-cta--secondary {
  border: 1px solid var(--color-line-warm);
  background: var(--color-ivory);
  color: var(--color-night);
  box-shadow: 0 14px 28px rgba(9, 12, 14, 0.18);
}

.site-cta--secondary:hover,
.site-cta--secondary:focus-visible {
  background: #fbf7ef;
  border-color: #e4d8c4;
}

.site-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.site-entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 100%;
  padding: clamp(26px, 3.8vw, 34px);
  border: 1px solid var(--color-line-strong-A20);
  border-radius: 30px;
  background: rgba(13, 18, 20, 0.78);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}

.site-entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-accent);
}

.site-entry-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-entry-card h3 {
  margin: 0;
  text-align: center;
}

.site-entry-card p {
  margin: 0;
  max-width: 38ch;
  text-align: center;
}

.site-entry-card .site-cta {
  margin-top: auto;
}

.site-entry-copy {
  display: grid;
  gap: 12px;
  width: 100%;
}

.site-entry-card--volume {
  align-items: stretch;
}

.site-volume-cover {
  position: relative;
  aspect-ratio: 7 / 10;
  width: min(100%, 248px);
  margin: 0 auto;
  overflow: visible;
}

.site-volume-cover-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transform: scale(1) rotateZ(0deg);
  transition: transform 150ms ease !important;
}

.site-volume-cover-link:hover,
.site-volume-cover-link:focus-visible {
  transform: rotateZ(1deg) scale(1.1);
}

.site-volume-cover::before {
  content: "";
  position: absolute;
  inset: 1px 0 4px auto;
  right: -4%;
  width: 4%;
  border-right: 1px solid rgba(180,180,180,0.7);
  background: linear-gradient(
    to right,
    #f9f9f9 30%,
    #f0f0f0 60%,
    #f9f9f9 90%,
    #0b120d 90% 100%
  );
  z-index: 0;
}

.site-body img {
  display: block;
  max-width: min(100%, 980px);
  height: auto;
  margin: 1.6rem 0;
  border-radius: 18px;
  border: 1px solid var(--color-line-A12);
  box-shadow: 0 18px 42px var(--color-black-A28);
}

.site-body .site-volume-cover img {
  position: relative;
  z-index: 1;
  border-radius: 0;
  display: block;
  width: auto;
  height: auto;
  object-fit: cover;  
  margin: 0;
  border: 1px solid rgba(200,200,200,0.2);
  /* border-image: linear-gradient(90deg, #fff, #888) 1; */
  box-shadow:
    14px 20px 34px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    -1px 0 0 rgba(255, 255, 255, 0.06) inset;
  cursor: pointer;
}

.site-volume-badges {
  position: absolute;
  inset: auto auto 4px 0;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

.site-body blockquote {
  margin: 1.2rem 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 3px solid var(--color-accent-glow-A55);
  color: var(--color-text);
  background: transparent;
}

.site-body hr {
  height: 1px;
  border: 0;
  margin: 2rem 0;
  background: var(--color-line-A12);
}

.site-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  border: 1px solid var(--color-line-A10);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-ivory-A02);
}

.site-body th,
.site-body td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.site-body th {
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  background: var(--color-ivory-A05);
}

.site-body td {
  color: var(--color-text-muted);
}

.site-fullpage-image {
  position: relative;
  overflow: clip;
  width: min(100%, 1120px);
  margin: clamp(2.2rem, 4vw, 3.6rem) auto;
  border-radius: 28px;
  border: 1px solid var(--color-line-A14);
  background: var(--color-night-A90);
  box-shadow: 0 26px 60px var(--color-black-A34);
  margin-top: 0;
  min-height: clamp(720px, 100vh, 1080px);
}

.site-fullpage-image-media {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  min-height: inherit;
}

.site-fullpage-bg {
  position: relative;
  overflow: clip;
  width: min(100%, 1120px);
  margin: clamp(2.2rem, 4vw, 3.6rem) auto;
  border-radius: 28px;
  border: 1px solid var(--color-line-A14);
  background: var(--color-night-A90);
  box-shadow: 0 26px 60px var(--color-black-A34);
  min-height: clamp(360px, 100vh, 1080px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  max-width: 72ch;
}

.site-fullpage-bg:first-child {
  margin-top: 0;
}

.site-fullpage-bg-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.site-fullpage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 12, 0.28);
  z-index: 0;
}

img.site-fullpage-bg-image {
  margin: 0;
  object-fit: cover;
  height: 100%;
  object-position: 33% 33%;
}

.site-fullpage-bg-content {
  --margin-fpbg: clamp(0.5em, 2dvw, 3em);
  --margin-fpbgh: calc(var(--margin-fpbg) / 2);
  position: relative;
  z-index: 1;
  width: min(100%, 74ch);
  margin: var(--margin-fpbg);
  padding: var(--margin-fpbg);
  background: rgba(9, 14, 17, 0.5);
  box-shadow: 0 0 var(--margin-fpbgh) var(--margin-fpbgh) rgba(9, 14, 17, 0.5);
  border-radius: 2em;
}

.site-fullpage-bg-content > :first-child {
  margin-top: 0;
}

.site-fullpage-bg-content > :last-child {
  margin-bottom: 0;
}

.site-fullpage-bg-content h1,
.site-fullpage-bg-content h2,
.site-fullpage-bg-content h3,
.site-fullpage-bg-content h4,
.site-fullpage-bg-content p,
.site-fullpage-bg-content li,
.site-fullpage-bg-content blockquote {
  color: var(--color-ivory);
}

.site-fullpage-bg-content h1{
  font-size: var(--font-size-xxxl);
  margin: 0 0 2em 0 !important;
}


.site-fullpage-bg-content p{
  line-height: 1.5 !important;
}

.site-fullpage-bg-content :where(a),
.site-fullpage-bg-content :where(a:visited) {
  color: var(--color-accent-strong);
}

.site-body > :where(section.level1:first-of-type) {
  margin: -10px -10px 34px;
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid var(--color-line-warm-A08);
  border-radius: calc(var(--radius-xl) - 8px);
  background: var(--color-surface-strong-A94);
  color: var(--color-text);
  box-shadow: inset 0 1px 0 var(--color-white-A05);
}

.site-body > :where(section.level1:first-of-type)::after {
  content: "";
  display: block;
  clear: both;
}

.site-body > :where(section.level1:first-of-type) h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  color: var(--color-text-strong);
  font-family: var(--font-display);
  font-size: var(--font-size-xxxl);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.site-body > :where(section.level1:first-of-type) p,
.site-body > :where(section.level1:first-of-type) li,
.site-body > :where(section.level1:first-of-type) blockquote {
  color: var(--color-text-A88);
}

.site-body > :where(section.level1:first-of-type) blockquote {
  max-width: 56ch;
  margin: 0 0 18px;
  padding: 0;
  border-left: 0;
  font-size: var(--font-size-l);
}

.site-body > :where(section.level1:first-of-type) > h2 {
  margin-top: 28px;
  color: var(--color-text-highlight);
}

.site-body img.site-emoji-symbol {
  display: inline-block;
  width: 1em;
  height: 1em;
  max-width: none;
  margin: 0 0.05em;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  vertical-align: -0.12em;
  object-fit: contain;
  filter: brightness(0) invert(0.96);
  opacity: 0.92;
}

.site-body pre,
.site-body code {
  font-family: var(--font-mono);
}

.site-body pre {
  overflow: auto;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--color-line-A10);
  background: var(--color-code-bg-A82);
  color: var(--color-code-text);
}

.site-body code {
  padding: 0.1rem 0.32rem;
  border-radius: 6px;
  background: var(--color-accent-A12);
  color: var(--color-text);
}

.site-body pre code {
  padding: 0;
  background: transparent;
}

.site-toc {
  --toc-footer-shift: 0px;
  position: fixed;
  inset: 84px 16px 16px auto;
  width: min(340px, calc(100vw - 32px));
  z-index: 25;
  transform: translateX(calc(100% + 24px));
  transition: transform 180ms ease;
}

.site-toc[data-open="true"] {
  transform: translateX(0);
}

.site-toc-card {
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  border: 1px solid var(--color-line-A10);
  border-radius: var(--radius-lg);
  background: var(--color-night-A92);
  color: var(--color-text);
  box-shadow: var(--shadow-strong);
}

.site-toc-content {
  min-width: 0;
  overflow: clip auto;
  padding: 1em 0 6em;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-deep) var(--color-white-A03);
}

.site-toc-content::-webkit-scrollbar {
  width: 10px;
}

.site-toc-content::-webkit-scrollbar-track {
  background: var(--color-white-A03);
  border-radius: 999px;
}

.site-toc-content::-webkit-scrollbar-thumb {
  background: var(--color-accent-deep);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.site-toc-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
  background-clip: padding-box;
}

.site-toc-kicker {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-A58);
}

.site-toc-meta {
  margin: -4px 0 14px;
  color: var(--color-text-faint);
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
  line-height: 1.45;
}

.site-toc-empty {
  margin: 0;
  color: var(--color-text-muted);
}

.site-toc-search {
  display: block;
  margin: 0 0 14px;
}

.site-toc-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-toc-search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-line-A12);
  border-radius: 14px;
  background: var(--color-white-A03);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--font-size-m);
  outline: none;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.site-toc-search-input::placeholder {
  color: var(--color-text-faint);
}

.site-toc-search-input:focus {
  border-color: var(--color-accent-A18);
  background: var(--color-white-A06);
  box-shadow: 0 0 0 3px var(--color-accent-A12);
}

.site-discord-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--color-line-strong-A20);
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft-A90);
}

.site-discord-copy {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.site-discord-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px var(--color-black-A28);
  transition: box-shadow 140ms ease, filter 140ms ease;
}

.site-discord-cta:hover,
.site-discord-cta:focus-visible {
  filter: saturate(1.06);
  box-shadow: 0 16px 30px var(--color-black-A28);
}

.site-toc-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-toc-content ul ul {
  margin-top: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--color-line-A12);
}

.site-toc-content li + li {
  margin-top: 8px;
}

.site-toc-content a,
.site-toc-content a:visited {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  color: var(--color-link);
  text-decoration: none;
  line-height: 1.45;
  transition: color 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav-toggle:hover,
.site-nav-toggle:focus-visible,
.site-menu-toggle:hover,
.site-menu-toggle:focus-visible {
  background: var(--color-white-A12);
}

.site-toc-content a::before {
  content: "|";
  position: absolute;
  top: 50%;
  left: 0;
  color: var(--color-link-active);
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 140ms ease;
}

.site-toc-content a:hover,
.site-toc-content a:focus-visible {
  color: var(--color-link-hover);
  transform: translateX(2px);
}

.site-toc-content a.is-match {
  color: var(--color-link-visited);
}

.site-toc-content a.is-active {
  color: var(--color-link-active);
  transform: translateX(2px);
}

.site-toc-content a.is-active::before {
  opacity: 1;
}

.site-shell[data-page="landing"] .site-frame,
.site-shell[data-page="community"] .site-frame,
.site-shell[data-page="volumes"] .site-frame {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1080px);
}

.site-volume-controls{
  display: flex;
  gap: 1em;
}


.site-shell[data-page-type="volume"] .site-body {
  padding: clamp(14px, 2vw, 24px) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-psyche-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin: 1.8rem 0 2.8rem;
  align-items: start;
}

.site-psyche-card {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  aspect-ratio: 63 / 88;
  max-width: none;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 20px 44px var(--color-black-A26);
}

.site-psyche-card-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #141619;
  isolation: isolate;
}

.site-psyche-card--impulse .site-psyche-card-stage {
  background: #231714;
}

.site-psyche-card--meaning .site-psyche-card-stage {
  background: #162026;
}

.site-psyche-card--bounds .site-psyche-card-stage {
  background: #20191e;
}

.site-psyche-card--insight .site-psyche-card-stage {
  background: #171922;
}

.site-psyche-card-copy {
  position: absolute;
  z-index: 3;
  top: 60.8%;
  left: 19%;
  right: 19%;
  bottom: 11.35%;
}

.site-psyche-card-sigil {
  position: absolute;
  z-index: 3;
  top: 5.1%;
  left: 8.7%;
  display: inline-flex;
  gap: 0.32rem;
  align-items: center;
}

.site-psyche-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  color: #1b150e;
}

.site-psyche-card-icon .site-emoji-symbol {
  width: 1em;
  height: 1em;
  margin: 0;
  filter: none;
  opacity: 0.9;
}

.site-psyche-card-art-wrap {
  position: absolute;
  z-index: 1;
  top: 12.5%;
  left: 3.2%;
  width: 93.6%;
  height: 33%;
  overflow: hidden;
  border-radius: 14px 14px 18px 18px;
}

.site-psyche-card-layout {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.site-body img.site-psyche-card-art,
.site-body img.site-psyche-card-layout {
  max-width: none;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.site-body img.site-psyche-card-art {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

.site-shell[data-page-type="volume"] .site-body .site-psyche-card-title {
  position: absolute;
  z-index: 3;
  top: 5.95%;
  left: 17.5%;
  right: 17.5%;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--font-size-s);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: #18120b;
  text-shadow: none;
}

.site-shell[data-page-type="volume"] .site-body .site-psyche-card-motto {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 16%;
  right: 16%;
  margin: 0;
  max-width: none;
  transform: translateY(-50%);
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-xxs);
  line-height: 1.12;
  text-align: center;
  color: #31241a;
  text-shadow: none;
}

.site-shell[data-page-type="volume"] .site-body .site-psyche-card-copy-text {
  margin: 0;
  max-width: none;
  color: #1c150e;
  font-size: var(--font-size-xxxs);
  line-height: 1.18;
  font-family: var(--font-body);
  font-weight: 400;
  text-wrap: pretty;
  text-shadow: none;
}

.site-shell[data-page-type="volume"] .site-body .site-psyche-card-copy-label-inline {
  font-weight: 700;
  color: #1c150e;
}

@media (max-width: 900px) {
  .site-psyche-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .site-psyche-card {
    width: min(100%, 320px);
  }

  .site-shell[data-page-type="volume"] .site-body .site-psyche-card-title {
    font-size: var(--font-size-xs);
  }

  .site-psyche-card-copy {
    top: 60.2%;
    left: 18%;
    right: 18%;
    bottom: 10.8%;
  }
}

.site-shell[data-page-type="volume"] .site-body > section:last-of-type {
  padding: 0 0 4dvh;
}

.site-shell[data-page-type="volume"] .site-body section.level1,
.site-shell[data-page-type="volume"] .site-body section.level2,
.site-shell[data-page-type="volume"] .site-body section.level3,
.site-shell[data-page-type="volume"] .site-body section.level4 {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 168px;
}

.site-shell[data-page-type="volume"] .site-body p,
.site-shell[data-page-type="volume"] .site-body li {
  color: var(--color-text);
  max-width: none;
  font-size: var(--font-size-l);
  line-height: 1.78;
}

.site-shell[data-page-type="volume"] .site-body h1,
.site-shell[data-page-type="volume"] .site-body h2,
.site-shell[data-page-type="volume"] .site-body h3,
.site-shell[data-page-type="volume"] .site-body h4 {
  margin: 0;
}

.site-shell[data-page-type="volume"] .site-body h1,
.site-shell[data-page-type="volume"] .site-body h2,
.site-shell[data-page-type="volume"] .site-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
}

.site-shell[data-page-type="volume"] .site-body h2 {
  margin-top: 3.65rem;
  margin-bottom: 1.35rem;
  font-size: var(--font-size-xxl);
  line-height: 1;
}

.site-shell[data-page-type="volume"] .site-body h3 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-size: var(--font-size-xl);
  line-height: 1.08;
}

.site-shell[data-page-type="volume"] .site-body h4 {
  margin-top: 1.95rem;
  margin-bottom: 0.78rem;
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
}

.site-shell[data-page-type="volume"] .site-body h2 + :where(p),
.site-shell[data-page-type="volume"] .site-body h2 + :where(ul),
.site-shell[data-page-type="volume"] .site-body h2 + :where(ol),
.site-shell[data-page-type="volume"] .site-body h3 + :where(p),
.site-shell[data-page-type="volume"] .site-body h3 + :where(ul),
.site-shell[data-page-type="volume"] .site-body h3 + :where(ol),
.site-shell[data-page-type="volume"] .site-body h4 + :where(p),
.site-shell[data-page-type="volume"] .site-body h4 + :where(ul),
.site-shell[data-page-type="volume"] .site-body h4 + :where(ol) {
  margin-top: 0;
}

.site-shell[data-page-type="volume"] .site-body blockquote {
  max-width: none;
  margin: 1.45rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-line-A10);
  border-radius: 18px;
  background: var(--color-white-A03);
  box-shadow: none;
  color: var(--color-text-highlight);
  font-size: var(--font-size-s);
}

.site-shell[data-page-type="volume"] .site-body blockquote > :last-child {
  margin-bottom: 0;
}

.site-shell[data-page-type="volume"] .site-body blockquote :where(p),
.site-shell[data-page-type="volume"] .site-body blockquote :where(li) {
  font-size: var(--font-size-s);
  line-height: 1.68;
  color: var(--color-text-muted);
}

.site-shell[data-page-type="volume"] .site-body blockquote :where(h1),
.site-shell[data-page-type="volume"] .site-body blockquote :where(h2),
.site-shell[data-page-type="volume"] .site-body blockquote :where(h3),
.site-shell[data-page-type="volume"] .site-body blockquote :where(h4){
  margin-top: 0;
}

.site-shell[data-page-type="volume"] .site-body blockquote.site-hint {
  font-size: var(--font-size-xs);
  margin: 2em;
  padding: 1em;
  border-color: var(--color-line-strong) !important;
  border-radius: 0.5em;
  background: var(--color-surface);
  color: var(--color-text-muted) !important;
  min-width: calc(100% - 4em);
  box-sizing: border-box;
}

.site-shell[data-page-type="volume"] .site-body blockquote.site-hint > * {
  color: var(--color-night);
}

.site-shell[data-page-type="volume"] .site-body blockquote.site-hint > :where(p),
.site-shell[data-page-type="volume"] .site-body blockquote.site-hint > :where(ul),
.site-shell[data-page-type="volume"] .site-body blockquote.site-hint > :where(ol) {
  margin-left: 1.55rem;
}

.site-shell[data-page-type="volume"] .site-body blockquote.site-hint :where(p),
.site-shell[data-page-type="volume"] .site-body blockquote.site-hint :where(li) {
  font-size: inherit;
  line-height: 1.56;
  color: inherit;
}

.site-shell[data-page-type="volume"] .site-body blockquote.site-hint > :where(p:first-child) {
  position: relative;
}

.site-shell[data-page-type="volume"] .site-body blockquote.site-hint > :where(p:first-child),
.site-shell[data-page-type="volume"] .site-body blockquote.site-hint > :not(:first-child) {
  margin-top: 0;
}

.site-shell[data-page-type="volume"] .site-body blockquote.site-hint .site-hint-icon {
  position: absolute;
  left: -2.25em;
  top: 0.125em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: auto;
  color: var(--color-text);
  line-height: 1;
}

.site-shell[data-page-type="volume"] .site-body blockquote.site-hint .site-hint-icon .site-hint-icon-mask {
  width: 1.5em;
  height: 1.5em;
  display: block;
  background-color: currentColor;
  -webkit-mask-image: var(--site-hint-icon-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--site-hint-icon-url);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.site-shell[data-page-type="volume"] .site-body :where(section.level1 + section.level1) {
  margin-top: 5.2rem;
}

.site-shell[data-page-type="volume"] .site-body :where(section.level1 + section.level1) > :where(h1:first-child) {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.site-shell[data-page-type="volume"] .site-body :where(section.level2 + section.level2) {
  margin-top: 4.4rem;
}

.site-shell[data-page-type="volume"] .site-body > :where(section.level1:first-of-type) > :where(section.level2:first-of-type) {
  margin-top: 3.2rem;
}

.site-shell[data-page-type="volume"] .site-body section.level3 + section.level3 {
  margin-top: 3rem;
}

.site-shell[data-page-type="volume"] .site-body section.level4 + section.level4 {
  margin-top: 2.2rem;
}

.site-shell[data-page-type="volume"] .site-body section.level2 > section.level3:first-of-type {
  margin-top: 2.1rem;
}

.site-shell[data-page-type="volume"] .site-body section.level3 > section.level4:first-of-type {
  margin-top: 1.5rem;
}

.site-shell[data-page-type="volume"] .site-body > :where(section.level1:first-of-type) {
  max-width: 72ch;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-shell[data-page-type="volume"] .site-body > :where(section.level1:first-of-type) > :where(*:first-child),
.site-shell[data-page-type="volume"] .site-body section.level2 > :where(*:first-child),
.site-shell[data-page-type="volume"] .site-body section.level3 > :where(*:first-child),
.site-shell[data-page-type="volume"] .site-body section.level4 > :where(*:first-child) {
  margin-top: 0;
}

.site-shell[data-page-type="volume"] .site-body > :where(section.level1:first-of-type) p,
.site-shell[data-page-type="volume"] .site-body > :where(section.level1:first-of-type) li,
.site-shell[data-page-type="volume"] .site-body > :where(section.level1:first-of-type) blockquote {
  color: var(--color-text);
}

.site-shell[data-page-type="volume"] .site-body > :where(section.level1:first-of-type) h1 {
  max-width: none;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-xxl);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.site-shell[data-page-type="volume"] .site-body :where(section#assets-karty-zasobow) {
  max-width: min(100%, 1100px);
}

.site-shell[data-page-type="volume"] .site-body :where(section#assets-karty-zasobow) > h1,
.site-shell[data-page-type="volume"] .site-body :where(section#assets-karty-zasobow) > blockquote {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.site-shell[data-page="landing"] .site-body,
.site-shell[data-page="community"] .site-body,
.site-shell[data-page="volumes"] .site-body,
.site-shell[data-page="news"] .site-body {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-shell[data-page="landing"] .site-body {
  position: relative;
  padding-top: 0;
}

.site-shell[data-page="community"] .site-body {
  position: relative;
  padding-top: 0;
}

.site-shell[data-page="community"] .site-hero-backdrop {
  min-height: 100dvh;
  height: calc(var(--landing-hero-height) + clamp(80px, 12vw, 180px));
}

.site-shell[data-page="community"] .site-hero-backdrop-image {
  object-position: center 34%;
  filter: saturate(0.84) contrast(1.02) brightness(0.56);
  transform: scale(1.04);
}

.site-shell[data-page="community"] .site-hero-backdrop-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(13, 18, 20, 0.2) 0%,
      rgba(13, 18, 20, 0.34) 34%,
      rgba(13, 18, 20, 0.58) 72%,
      rgba(13, 18, 20, 0.78) 100%
    );
}

.site-shell[data-page="volumes"] .site-hero-backdrop {
  min-height: 100dvh;
  height: calc(var(--landing-hero-height) + clamp(150px, 18vw, 260px));
}

.site-shell[data-page="volumes"] .site-hero-backdrop-image {
  object-position: center 20%;
  filter: saturate(0.84) contrast(1.01) brightness(0.62);
  transform: scale(1.045);
}

.site-shell[data-page="volumes"] .site-hero-backdrop-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(13, 18, 20, 0.16) 0%,
      rgba(13, 18, 20, 0.28) 32%,
      rgba(13, 18, 20, 0.46) 66%,
      rgba(13, 18, 20, 0.76) 100%
    );
}

.site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type),
.site-shell[data-page="community"] .site-body > :where(section.level1:first-of-type),
.site-shell[data-page="volumes"] .site-body > :where(section.level1:first-of-type),
.site-shell[data-page="news"] .site-body > :where(section.level1:first-of-type) {
  margin: 0;
  padding: clamp(22px, 5vw, 44px) 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) {
  position: relative;
  z-index: 1;
  padding-top: clamp(46px, 8vw, 84px);
  padding-bottom: clamp(24px, 4vw, 44px);
  text-align: center;
}

.site-shell[data-page="volumes"] .site-body > :where(section.level1:first-of-type) h1 {
  max-width: 8ch;
  font-size: var(--font-size-xxxl);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) h1 {
  max-width: none;
  width: 100%;
  margin-inline: auto;
  font-family: var(--font-brand);
  margin-bottom: 0.32rem;
  font-size: var(--font-size-hero);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-align: center;
  text-transform: uppercase;
}

.site-landing-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: fit-content;
  margin: 0 auto 4rem;
  color: var(--color-text-highlight);
  font-family: var(--font-ui);
  font-size: var(--font-size-m);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-landing-kicker span + span::before {
  content: "|";
  margin-inline: 0.8em;
  color: var(--color-text-faint);
}

.site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) blockquote,
.site-shell[data-page="community"] .site-body > :where(section.level1:first-of-type) blockquote,
.site-shell[data-page="volumes"] .site-body > :where(section.level1:first-of-type) blockquote {
  max-width: 42ch;
  margin-top: 0;
  margin-bottom: 4.8rem;
  background: transparent;
}

.site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) blockquote {
  margin: 4em auto;
}

.site-shell[data-page="landing"] .site-entry-grid--landing {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "community volumes news";
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}

.site-shell[data-page="landing"] .site-entry-card--landing-primary {
  grid-area: volumes;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  padding: clamp(28px, 3.2vw, 38px);
  transform: translateY(-10px);
  border-color: var(--color-line-warm-A08);
  background: rgba(13, 18, 20, 0.88);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.3);
}

.site-shell[data-page="landing"] .site-entry-card--landing-primary .site-entry-copy,
.site-shell[data-page="landing"] .site-entry-card--landing-secondary .site-entry-copy {
  gap: 10px;
}

.site-shell[data-page="landing"] .site-entry-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-shell[data-page="landing"] .site-entry-head .site-entry-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.site-shell[data-page="landing"] .site-entry-head h3 {
  margin: 0;
  line-height: 1;
}

.site-shell[data-page="landing"] .site-entry-card--landing-primary h3,
.site-shell[data-page="landing"] .site-entry-card--landing-primary p,
.site-shell[data-page="landing"] .site-entry-card--landing-secondary h3,
.site-shell[data-page="landing"] .site-entry-card--landing-secondary p {
  text-align: left;
}

.site-shell[data-page="landing"] .site-entry-card--landing-primary p,
.site-shell[data-page="landing"] .site-entry-card--landing-secondary p {
  max-width: none;
}

.site-shell[data-page="landing"] .site-entry-card--landing-primary .site-cta,
.site-shell[data-page="landing"] .site-entry-card--landing-secondary .site-cta {
  width: 100%;
}

.site-shell[data-page="landing"] .site-entry-card--landing-secondary {
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  padding: clamp(24px, 2.8vw, 30px);
}

.site-shell[data-page="landing"] .site-entry-card--landing-community {
  grid-area: community;
}

.site-shell[data-page="landing"] .site-entry-card--landing-news {
  grid-area: news;
}

.site-shell[data-page="landing"] .site-body::before {
  display: none;
}

@media (min-width: 721px) {
  .site-shell[data-page="landing"] .site-hero-backdrop {
    height: calc(var(--landing-hero-height) + clamp(140px, 16vw, 240px));
  }

  .site-shell[data-page="landing"] .site-hero-backdrop-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(13, 18, 20, 0.1) 0%,
        rgba(13, 18, 20, 0.18) 30%,
        rgba(13, 18, 20, 0.3) 56%,
        rgba(13, 18, 20, 0.48) 76%,
        rgba(13, 18, 20, 0.66) 100%
      );
  }
}

.site-shell[data-page="landing"] .site-body section.level2,
.site-shell[data-page="community"] .site-body section.level2 {
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-shell[data-page="landing"] .site-body section.level2 h2,
.site-shell[data-page="community"] .site-body section.level2 h2 {
  margin-top: 0;
}

.site-shell[data-page="landing"] .site-body :where(section.level2 + section.level2),
.site-shell[data-page="community"] .site-body :where(section.level2 + section.level2) {
  padding-top: 20px;
  border-top: 1px solid var(--color-line-A12);
}

.site-shell[data-page="community"] .site-body > :where(section.level1:first-of-type),
.site-shell[data-page="volumes"] .site-body > :where(section.level1:first-of-type),
.site-shell[data-page="news"] .site-body > :where(section.level1:first-of-type) {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(10px, 2vw, 22px);
}

.site-shell[data-page="community"] .site-body > :where(section.level1:first-of-type) h1 {
  max-width: 9ch;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-xxxl);
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.site-shell[data-page="community"] .site-body > :where(section.level1:first-of-type) blockquote {
  max-width: 40ch;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 3.4rem;
}

.site-shell[data-page="community"] .site-entry-grid {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  gap: 22px;
}

.site-shell[data-page="community"] .site-entry-card,
.site-shell[data-page="volumes"] .site-entry-card {
  align-items: flex-start;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: 26px;
}

.site-shell[data-page="community"] .site-entry-card h3,
.site-shell[data-page="community"] .site-entry-card p,
.site-shell[data-page="volumes"] .site-entry-card h3,
.site-shell[data-page="volumes"] .site-entry-card p {
  text-align: left;
}

.site-shell[data-page="community"] .site-entry-card p,
.site-shell[data-page="volumes"] .site-entry-card p {
  max-width: none;
}

.site-shell[data-page="community"] .site-entry-card .site-cta,
.site-shell[data-page="volumes"] .site-entry-card .site-cta {
  width: auto;
  min-width: 220px;
}

.site-shell[data-page="community"] .site-entry-card--community {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(24px, 3vw, 32px);
  background: rgba(11, 16, 18, 0.82);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

.site-shell[data-page="community"] .site-entry-card--community h3,
.site-shell[data-page="community"] .site-entry-card--community p {
  text-align: left;
}

.site-shell[data-page="community"] .site-entry-card--community .site-entry-copy {
  width: 100%;
  gap: 14px;
}

.site-shell[data-page="community"] .site-entry-card--community .site-entry-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-shell[data-page="community"] .site-entry-card--community .site-entry-head .site-entry-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}

.site-shell[data-page="community"] .site-entry-card--community .site-entry-head h3 {
  margin: 0;
  line-height: 1;
}

.site-community-eyebrow {
  margin: 0;
  color: var(--color-text-faint);
  font-family: var(--font-ui);
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-community-points {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.1rem;
}

.site-shell[data-page="community"] .site-entry-card--community .site-community-points li {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.site-shell[data-page="community"] .site-entry-card--community .site-cta {
  width: 100%;
  min-width: 0;
}

.site-shell[data-page="volumes"] .site-entry-grid {
  max-width: 980px;
  margin: 0 auto 1.5rem;
  gap: 22px;
}

.site-shell[data-page="volumes"] .site-action-row p {
  grid-template-columns: 1fr;
  width: 100%;
}

.site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) blockquote p {
  line-height: 1.72;
}

.site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) > .site-entry-grid {
  margin-top: 0;
}

.site-shell[data-page="volumes"] .site-action-row {
  width: 100%;
  margin-top: auto;
}

.site-shell[data-page="volumes"] .site-action-row .site-cta {
  width: 100%;
}

.site-volume-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  max-width: 100%;
  padding: 0 10px 0 8px;
  border: 1px solid transparent;
  border-radius: 0 12px 0 0;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-family: var(--font-ui);
  font-size: var(--font-size-xxxs);
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: lowercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.site-shell[data-page="community"] .site-body section.level2 {
  max-width: 72ch;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--color-line-A10);
  border-radius: 28px;
  background: rgba(12, 17, 19, 0.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.site-shell[data-page="community"] .site-body section.level2 h2 {
  margin-bottom: 0.9rem;
  font-size: var(--font-size-xxl);
}

.site-shell[data-page="community"] .site-body :where(section.level2 + section.level2) {
  margin-top: 18px;
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 0;
}

.site-news-date {
  margin: 0 0 0.55rem;
  color: var(--color-text-faint);
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-news-signoff {
  margin-top: 1.25rem;
  color: var(--color-text-strong);
  font-family: var(--font-ui);
  font-size: var(--font-size-m);
  font-weight: 600;
}

.site-news-years {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
  margin: 0 auto 1.4rem;
}

.site-news-years--footer {
  margin: 1.6rem auto 0;
  justify-content: flex-end;
}

.site-news-year-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-line-A12);
  border-radius: 999px;
  background: rgba(12, 17, 19, 0.72);
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.site-news-year-link:hover,
.site-news-year-link:focus-visible {
  color: var(--color-text-strong);
  border-color: var(--color-line-strong-A20);
  background: rgba(18, 25, 28, 0.88);
}

.site-body a.site-news-year-link.is-active {
  color: var(--color-text-on-accent);
  border-color: transparent;
  background: var(--color-accent);
}

.site-news-feed {
  display: grid;
  gap: 18px;
}

.site-news-empty {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.site-shell[data-page="news"] .site-body > :where(section.level1:first-of-type) {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(10px, 2vw, 22px);
}

.site-shell[data-page="news"] .site-body > :where(section.level1:first-of-type) h1 {
  max-width: 9ch;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-xxxl);
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.site-shell[data-page="news"] .site-body > :where(section.level1:first-of-type) blockquote {
  max-width: 42ch;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 3.4rem;
}

.site-shell[data-page="news"] .site-body :where(section.level2) {
  max-width: 72ch;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--color-line-A10);
  border-radius: 28px;
  background: rgba(12, 17, 19, 0.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.site-shell[data-page="news"] .site-body section.level2 h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: var(--font-size-xxl);
}

.site-shell[data-page="news"] .site-hero-backdrop {
  min-height: 100dvh;
  height: calc(var(--landing-hero-height) + clamp(80px, 12vw, 180px));
}

.site-shell[data-page="news"] .site-hero-backdrop-image {
  object-position: center 18%;
  filter: saturate(0.86) contrast(1.02) brightness(0.58);
  transform: scale(1.04);
}

.site-shell[data-page="news"] .site-hero-backdrop-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(13, 18, 20, 0.18) 0%,
      rgba(13, 18, 20, 0.32) 34%,
      rgba(13, 18, 20, 0.54) 72%,
      rgba(13, 18, 20, 0.8) 100%
    );
}

@media (min-width: 1100px) {
  .site-frame--with-toc {
    --toc-width: 320px;
    --frame-width: min(calc(100vw - (var(--page-gutter) * 2)), 1480px);
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .site-toc {
    position: fixed;
    top: 94px;
    right: calc((100vw - var(--frame-width)) / 2);
    bottom: auto;
    left: auto;
    width: var(--toc-width);
    max-height: calc(100vh - 110px - var(--toc-footer-shift));
    transform: translateY(calc(var(--toc-footer-shift) * -1));
  }

  .site-toc-card {
    max-height: calc(100vh - 110px - var(--toc-footer-shift));
  }

  .site-nav-toggle {
    display: none;
  }
}

@media (min-width: 1100px) {
  .site-menu-toggle {
    display: none;
  }
}

@media (max-width: 1099px) {
  .site-bar {
    gap: 10px;
    padding: 0.55em 0.9em;
  }

  .site-brand {
    font-size: var(--font-size-m);
    letter-spacing: 0.02em;
  }

  .site-nav-wrap {
    margin-left: auto;
    gap: 6px;
  }

  .site-menu-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
    font-size: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: min(280px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--color-line-A10);
    border-radius: 18px;
    background: var(--color-night-A92);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
    flex-direction: column;
    align-items: stretch;
    gap: 1em;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav-toggle {
    justify-content: flex-start;
    padding: 11px 13px;
    border-radius: 1em;
    font-size: var(--font-size-m);
  }

  .site-nav-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .site-nav-label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
  }

  .site-menu-toggle .site-nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .site-body {
    padding: 16px;
  }

  .site-body > section.level1:first-of-type {
    margin: -6px -6px 26px;
    padding: 22px;
  }

  .site-shell[data-page="landing"] .site-body > section.level1:first-of-type{
    margin: 0;
    padding: 7.5em 0 0;
  }

  .site-shell[data-page="community"] .site-body > section.level1:first-of-type {
    margin: 0;
    padding: 4em 0 0;
  }

  .site-shell {
    --landing-hero-height: clamp(360px, 72svh, 620px);
  }

  .site-footer-inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer-links {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  :root {
    --font-size-base-fluid: clamp(0.94rem, 0.92rem + 0.22dvw, 1rem);
    --font-size-hero: calc(var(--font-size-xxl) * 2);
  }

  .hide-on-mobile {
    display: none;
  }

  .site-shell {
    --page-gutter: 1em;
    --landing-hero-height: 100svh;
    padding-bottom: 2em;
  }

  .site-hero-backdrop {
    height: var(--landing-hero-height);
  }

  .site-hero-backdrop-image {
    object-position: center center;
    filter: saturate(0.9) contrast(1.01) brightness(0.76);
    transform: scale(1.12);
  }

  .site-hero-backdrop-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(13, 18, 20, 0.08) 0%,
        rgba(13, 18, 20, 0.16) 34%,
        rgba(13, 18, 20, 0.34) 62%,
        rgba(13, 18, 20, 0.76) 100%
      );
  }

  .site-bar {
    top: 10px;
    width: calc(100dvw);
    padding: 0.5em 1em;
    margin: 0;
    border-radius: 0;        
    border-left: 0;
    border-right: 0;
  }

  .site-shell[data-scrolled="true"] .site-bar {
    top: 1px;
    transform: translateY(-1px);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background: var(--color-surface);
    box-shadow: 0 20px 42px var(--color-shadow-ink-A80);
    padding-bottom: 0;
  }

   .site-chapter-title-button {
    padding-inline: 10px;
  }

  .site-chapter-picker-panel {
    left: 0;
    right: 0;
    width: min(420px, calc(100vw - 24px));
    transform: none;
  }

  .site-chapter-picker-item {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px 11px;
  }

  .site-chapter-title-icon{
    display: none;
  }

  .site-chapter-picker-text {
    font-size: var(--font-size-m);
  }  

  .site-chapter-bar {
    top: 66px;
    margin: -2px auto 14px;
  }

  .site-chapter-rail {
    gap: 8px;
    padding: 6px 0 2px;
  }

  .site-chapter-link {
    min-height: 34px;
    padding: 0 14px;
    font-size: var(--font-size-xs);
    letter-spacing: 0.07em;
  }

  .site-brand {
    font-size: var(--font-size-m);
    letter-spacing: 0.03em;
  }

  .site-body p,
  .site-body li {
    font-size: var(--font-size-m);
    line-height: 1.6;
  }

  .site-action-row {
    gap: 10px;
  }

  .site-cta {
    min-height: 50px;
    padding: 0 18px;
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
  }

  .site-entry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-entry-card {
    padding: 24px 18px 20px;
    border-radius: 2em;
    gap: 14px;
  }

  .site-footer {
    margin-top: 6em;
  }

  .site-footer-inner {
    padding: 1em;
    border-radius: 1.5em;
  }

  .site-footer-copy {
    font-size: var(--font-size-xs);
    line-height: 1.55;
  }

  .site-footer-links {
    width: auto;
    gap: 6px;
  }

  .site-footer-icon-link {
    width: 38px;
    height: 38px;
  }

  .site-entry-icon {
    width: 50px;
    height: 50px;
  }

  .site-shell[data-page="landing"] .site-body,
  .site-shell[data-page="community"] .site-body,
  .site-shell[data-page="volumes"] .site-body {
    padding-top: 0;
  }

  .site-shell[data-page="landing"] .site-body {
    padding-top: 0;
  }

  .site-shell[data-page="landing"] .site-body :where(section.level2 + section.level2),
  .site-shell[data-page="community"] .site-body :where(section.level2 + section.level2) {
    padding-top: 16px;
  }

  .site-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-shell[data-page="landing"] .site-body section.level2,
  .site-shell[data-page="community"] .site-body section.level2 {
    padding: 0;
    border-radius: 0;
  }

  .site-shell[data-page="community"] .site-entry-card .site-cta,
  .site-shell[data-page="volumes"] .site-entry-card .site-cta {
    width: 100%;
    min-width: 0;
  }

  .site-shell[data-page="volumes"] .site-action-row p {
    grid-template-columns: 1fr;
  }

  .site-shell[data-page="community"] .site-body section.level2 {
    padding: clamp(22px, 2.6vw, 30px);
    border-radius: 28px;
  }

  .site-body p.site-landing-kicker {
    font-size: var(--font-size-xs);
    letter-spacing: 0.05em;
  }

  .site-landing-kicker span + span::before {
    margin-inline: 0.8em;
  }

  .site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) {
    padding-top: 18px;
    padding-bottom: 8px;
  }

  .site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) h1 {
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
  }

  .site-shell[data-page="landing"] .site-body > :where(section.level1:first-of-type) blockquote {
    margin: 4em auto;
    max-width: 37ch;
  }

  .site-shell[data-page="landing"] .site-entry-grid--landing {
    grid-template-columns: 1fr;
    grid-template-areas:
      "volumes"
      "community"
      "news";
  }

  .site-shell[data-page="landing"] .site-entry-card--landing-primary {
    transform: none;
  }

  .site-shell[data-page-type="volume"] .site-brand {
    display: none;
  }

  .site-shell[data-page-type="volume"] .site-nav-wrap {
    width: 100%;
  }

  .site-shell[data-page-type="volume"] .site-volume-controls {
    width: calc(100% - 0.5em);
    justify-content: space-between;
  }

.site-shell[data-page-type="volume"]  .site-volume-chapterbar{
    max-width: 82%;
    gap: 0.125em;
    font-size: var(--font-size-xs);
  }
}

.website-shell--404 {
  background: var(--color-bg-canvas);
  position: relative;
  min-height: 100dvh;
  overflow: clip;
}

.site-error-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-error-backdrop-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.88) contrast(1.02) brightness(0.74);
  transform: scale(1.04);
}

.site-error-backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 12, 0.54) 0%, rgba(8, 11, 12, 0.72) 56%, rgba(8, 11, 12, 0.9) 100%),
    linear-gradient(90deg, rgba(8, 11, 12, 0.5) 0%, rgba(8, 11, 12, 0.16) 36%, rgba(8, 11, 12, 0.46) 100%);
}

.site-error-main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 48px);
}

.site-error-page {
  width: min(100%, 42rem);
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--color-line-strong-A20);
  border-radius: 30px;
  background: rgba(11, 16, 18, 0.72);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
  text-align: center;
}

.site-error-code {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-error-page :where(h1) {
  margin: 0;
  max-width: 12ch;
  color: var(--color-text-strong);
  font-family: var(--font-display);
  font-size: var(--font-size-xxxl);
  line-height: 0.94;
  text-wrap: balance;
}

.site-error-lead {
  margin: 0;
  max-width: 36ch;
  color: var(--color-text);
  font-size: var(--font-size-l);
  line-height: 1.65;
}

.site-error-cta {
  width: min(100%, 20rem);
  margin-top: 0.5rem;
}
