@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Spectral Regular'), url('assets/fonts/spectral-400-latin.woff2') format('woff2');
  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: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spectral-400-latin-ext.woff2') format('woff2');
  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: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Spectral Italic'), url('assets/fonts/spectral-400italic-latin.woff2') format('woff2');
  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: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spectral-400italic-latin-ext.woff2') format('woff2');
  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: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Spectral SemiBold'), url('assets/fonts/spectral-600-latin.woff2') format('woff2');
  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: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/spectral-600-latin-ext.woff2') format('woff2');
  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: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Special Elite'), url('assets/fonts/special-elite-400-latin.woff2') format('woff2');
  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: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/special-elite-400-latin-ext.woff2') format('woff2');
  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: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/courier-prime-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0218-021B;
}
@font-face {
  font-family: 'Architects Daughter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Architects Daughter'), url('assets/fonts/architects-daughter-400-latin.woff2') format('woff2');
  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: 'Architects Daughter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/architects-daughter-400-latin-ext.woff2') format('woff2');
  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: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Patrick Hand'), url('assets/fonts/patrick-hand-400-latin.woff2') format('woff2');
  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: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/patrick-hand-400-latin-ext.woff2') format('woff2');
  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;
}

:root {
  --desk-0: #0a0806;
  --desk-1: #13100d;
  --desk-2: #1c1713;
  --desk-3: #262019;
  --desk-4: #342a21;

  --paper-0: #b9b0a0;
  --paper-1: #c6bcaa;
  --paper-2: #cfc5b2;
  --paper-edge: #8e8676;
  --paper-stain: rgba(74, 58, 38, 0.14);
  --scrap-hi: #d6cdba;
  --scrap-lo: #c4baa7;

  --ink: #211c16;
  --ink-2: #3a332a;
  --ink-dim: #5d5449;
  --ink-ghost: rgba(33, 28, 22, 0.22);

  --slate: #6c7780;
  --sepia: #8d7a5c;
  --teal: #3f6b68;
  --teal-lo: #2c4d4b;
  --rust: #7a4b3a;
  --brass: #7d6636;

  --lamp: 255, 206, 148;
  --lamp-cool: 180, 196, 205;

  --wire-hi: #6d6252;
  --wire-lt: #514839;
  --wire-md: #322b21;
  --wire-dk: #17120e;

  --ember: #d4713a;
  --ember-hot: #ff9a4d;

  --font-hand: "Architects Daughter", "Segoe Script", cursive;
  --font-type: "Special Elite", "Courier New", monospace;
  --font-serif: "Spectral", Georgia, serif;

  --ease-heavy: cubic-bezier(0.3, 0.1, 0.25, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --flip-ms: 820ms;

  --book-ratio: 1.61;

  --chrome-top: 92px;
  --chrome-bot: 58px;
  --chrome-pad: 74px;
  --rail-h: 0px;
  --chrome: calc(
    var(--chrome-top) + var(--chrome-bot) + var(--chrome-pad) + var(--rail-h) + 56px
  );

  --book-max: 1040px;
  --book-vw: 72vw;
  --book-w: min(var(--book-max), var(--book-vw), calc((100svh - var(--chrome)) * var(--book-ratio)));
  --book-h: calc(var(--book-w) / var(--book-ratio));

  --u: clamp(0.58px, calc(var(--book-w) / 1040), 1px);

  --tab-tuck: calc(var(--u) * 14);
  --tab-pull: calc(var(--u) * 9);

  --block: calc(var(--u) * 22);
  --gutter: calc(var(--u) * 5);
  --rule: calc(var(--u) * 24);
  --margin-x: clamp(calc(var(--u) * 30), 6%, calc(var(--u) * 58));
}

html[lang="ro"] { --font-hand: "Patrick Hand", "Architects Daughter", "Segoe Script", cursive; }

html[data-accent="slate"] { --accent: var(--slate); }
html[data-accent="sepia"] { --accent: var(--sepia); }
html[data-accent="teal"] { --accent: var(--teal); }
html[data-accent="rust"] { --accent: var(--rust); }
html:not([data-accent]) { --accent: var(--teal); }

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--desk-0);
}

body {
  min-height: 100svh;
  overflow-x: clip;
  color: var(--paper-1);
  font-family: var(--font-type);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


@media (min-width: 901px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.24s var(--ease-soft);
}

a:hover {
  color: color-mix(in srgb, var(--accent) 68%, #e4d9c2);
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(63, 107, 104, 0.32);
  color: #e7dfcd;
}

/* Only the legal dossier is meant to be selected and quoted. Everywhere else
   the page is a scene, not a document, so dragging across it selects nothing.
   Form fields stay selectable or they cannot be edited. */
body {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable] {
  user-select: text;
  -webkit-user-select: text;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px dashed var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ember) 20%, transparent),
    0 0 16px -1px color-mix(in srgb, var(--ember-hot) 75%, transparent),
    inset 0 0 12px -7px color-mix(in srgb, var(--ember-hot) 70%, transparent);
  animation: emberBreathe 2.1s ease-in-out infinite;
}

@keyframes emberBreathe {
  0%, 100% {
    outline-color: var(--ember);
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--ember) 20%, transparent),
      0 0 16px -1px color-mix(in srgb, var(--ember-hot) 75%, transparent),
      inset 0 0 12px -7px color-mix(in srgb, var(--ember-hot) 70%, transparent);
  }
  50% {
    outline-color: var(--ember-hot);
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--ember) 30%, transparent),
      0 0 26px 1px color-mix(in srgb, var(--ember-hot) 90%, transparent),
      inset 0 0 16px -6px color-mix(in srgb, var(--ember-hot) 85%, transparent);
  }
}

.tab:focus-visible,
.toc__link:focus-visible,
.book__corner:focus-visible {
  outline-offset: 5px;
}

html.no-fx :focus-visible,
html.is-away :focus-visible {
  animation: none;
}


.noscript {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background: var(--desk-1);
  color: var(--paper-1);
}

.noscript ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.shield-host {
  position: relative;
}

.img-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  background: transparent;
  pointer-events: auto;
}

html.no-fx .book::before,
html.no-fx .grime__spot,
html.no-fx .pagegore__spot,
html.no-fx .gore__spot,
html.no-fx .desk-stain--ring,
html.no-fx .photo__img,
html.no-fx .photo__scratch,
html.no-fx .ink__scribble,
html.no-fx .ink__pool,
html.no-fx .tear {
  filter: none;
}

html.no-fx .desk__dust,
html.no-fx .desk__flicker,
html.no-fx .desk__grain {
  display: none;
}

html.no-fx .desk__bloom {
  opacity: 0.5;
}

html.is-away .desk__dust span,
html.is-away .desk__flicker {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --flip-ms: 1ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.ns {
  --ns-bg: #13100d;
  --ns-card: #efe3c6;
  --ns-ink: #2a2118;
  --ns-dim: rgba(42, 33, 24, 0.62);
  --ns-line: rgba(110, 84, 52, 0.26);
  --ns-acc: #7a4b3a;
  --ns-hover: rgba(122, 75, 58, 0.08);
  --ns-font: "Spectral", Georgia, serif;
  --ns-head: "Architects Daughter", "Patrick Hand", cursive;
}
/* ---- noscript card -------------------------------------------------------
   Shared across every Tenfold Luck site. Do not restyle per site: change the
   tokens above and nothing else, or the four fallbacks drift apart again. */
.ns {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: clamp(16px, 5vw, 56px) clamp(14px, 4vw, 32px);
  background: var(--ns-bg);
  color: var(--ns-ink);
  font-family: var(--ns-font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.ns__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ns__card {
  width: 100%;
  max-width: 620px;
  margin: auto;
  padding: clamp(26px, 5vw, 44px) clamp(20px, 5vw, 40px);
  border: 1px solid var(--ns-line);
  border-radius: 14px;
  background: var(--ns-card);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.ns__brand {
  margin: 0;
  font-family: var(--ns-head);
  font-size: clamp(24px, 5vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ns-ink);
}

.ns__kicker {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ns-acc);
}

.ns__lede {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--ns-dim);
}

.ns__rule {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--ns-line);
}

.ns__label {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ns-dim);
}

.ns__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ns__nav a {
  font-size: 14px;
  color: var(--ns-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ns-line);
}

.ns__nav a:hover,
.ns__nav a:focus-visible {
  color: var(--ns-acc);
  border-bottom-color: var(--ns-acc);
}

.ns__socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 6px 10px;
}

/* the notebook's edge tabs and contents page, rebuilt for readers with no
   JavaScript to open the book with */
.ns__book {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 20px;
}

.ns__soc {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ns-ink);
  text-decoration: none;
}

.ns__soc:hover,
.ns__soc:focus-visible {
  border-color: var(--ns-line);
  color: var(--ns-acc);
  background: var(--ns-hover);
}

.ns__ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  opacity: 0.85;
}

.ns__cta {
  display: inline-block;
  margin-top: 4px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ns-acc);
  color: var(--ns-card);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ns__cta:hover,
.ns__cta:focus-visible {
  filter: brightness(1.08);
}

.ns__foot {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--ns-dim);
}

.ns__foot a {
  color: var(--ns-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .ns__soc,
  .ns__nav a,
  .ns__cta {
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, filter 0.18s ease;
  }
}

.ns__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: 12.5px;
}

.ns__legal a {
  color: var(--ns-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ns__legal a:hover,
.ns__legal a:focus-visible {
  color: var(--ns-acc);
  border-bottom-color: var(--ns-acc);
}


:root {
  --sb-size: 12px;
  --sb-mid: var(--desk-4);
  --sb-hi: #453729;
  --sb-rail: rgba(236, 222, 196, 0.09);
  --sb-grip: rgba(20, 14, 9, 0.4);
}

/* ---- scrollbar -----------------------------------------------------------
   Plain and narrow. The track is a flat colour with nothing drawn on it, and
   the thumb is a rounded bar. Only the three tokens above change per site.

   scrollbar-width / scrollbar-color appear ONLY in the @supports block below.
   Setting either on an element makes Chromium prefer it over
   ::-webkit-scrollbar for that same element. */
::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size);
}

/* Nothing sits behind the bar except a hairline rail, and the rail is inset so
   it never reaches the top or the bottom of the viewport. The inset is carried
   by background-size rather than by margin, because a margin on the track also
   shortens how far the thumb can travel. */
::-webkit-scrollbar-track {
  background-color: transparent;
  background-image: linear-gradient(var(--sb-rail), var(--sb-rail));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1px 84%;
}

::-webkit-scrollbar-track:horizontal {
  background-size: 84% 1px;
}

/* Three short rules across the middle of the thumb, the grip. min-height keeps
   the thumb tall enough for them to read on a very long page. */
::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
  background-color: var(--sb-mid);
  background-image:
    linear-gradient(var(--sb-grip), var(--sb-grip)),
    linear-gradient(var(--sb-grip), var(--sb-grip)),
    linear-gradient(var(--sb-grip), var(--sb-grip));
  background-repeat: no-repeat;
  background-position: center calc(50% - 4px), center 50%, center calc(50% + 4px);
  background-size: 4px 1px;
  transition: background-color 0.18s ease;
}

::-webkit-scrollbar-thumb:horizontal {
  min-height: 0;
  min-width: 44px;
  background-position: calc(50% - 4px) center, 50% center, calc(50% + 4px) center;
  background-size: 1px 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--sb-hi);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-mid) transparent;
  }
}

body {
  background-color: #140c06;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='820' height='560'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.62' numOctaves='5' seed='11'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1240' height='720'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.085' numOctaves='3' seed='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.38'/%3E%3C/svg%3E"),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42) 0 2px,
      rgba(255, 232, 198, 0.03) 2px 5px,
      rgba(0, 0, 0, 0) 5px 100%
    ),
    radial-gradient(150% 100% at 50% 6%, rgba(126, 76, 40, 0.5), rgba(0, 0, 0, 0) 64%),
    linear-gradient(178deg, #3d2617, #241509 52%, #140c06);
  background-size: 820px 560px, 1240px 720px, auto, auto, auto;
  background-blend-mode: overlay, soft-light, normal, screen, normal;
}

.desk {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.desk > * {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.desk__grain {
  z-index: 1;
  opacity: 0.26;
  background-image:
    radial-gradient(circle at 17% 31%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 12%, rgba(0, 0, 0, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 41% 78%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 61%, rgba(0, 0, 0, 0.35) 0 1px, transparent 2px);
  background-size: 137px 121px, 91px 113px, 163px 149px, 109px 97px;
}

.desk__cone {
  z-index: 2;
  mix-blend-mode: screen;
  background: radial-gradient(
    64% 60% at 50% 48%,
    rgba(var(--lamp), 0.2),
    rgba(var(--lamp), 0.12) 38%,
    rgba(var(--lamp), 0.05) 62%,
    rgba(var(--lamp), 0) 84%
  );
}

.desk__bloom {
  z-index: 3;
  mix-blend-mode: soft-light;
  background: radial-gradient(
    58% 56% at 50% 48%,
    rgba(var(--lamp), 0.64),
    rgba(var(--lamp), 0.32) 44%,
    rgba(var(--lamp), 0) 82%
  );
}

.desk__vignette {
  z-index: 390;
  mix-blend-mode: multiply;
  background: radial-gradient(
    96% 100% at 50% 48%,
    rgba(0, 0, 0, 0) 40%,
    rgba(14, 10, 6, 0.15) 62%,
    rgba(8, 5, 3, 0.4) 82%,
    rgba(0, 0, 0, 0.74) 100%
  );
}

.desk__flicker {
  z-index: 391;
  mix-blend-mode: multiply;
  background: radial-gradient(96% 98% at 50% 48%, rgba(10, 7, 4, 0.34) 20%, rgba(4, 3, 1, 0.92) 100%);
  opacity: var(--flicker, 0);
  transition: opacity 70ms linear;
  will-change: opacity;
}

.desk__dust {
  z-index: 4;
  contain: strict;
}

.desk__dust span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(var(--lamp), 0.9);
  opacity: 0;
  animation: mote var(--t) linear var(--d) infinite;
}

@keyframes mote {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  16% { opacity: var(--o); }
  74% { opacity: var(--o); }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0); }
}

@media (prefers-reduced-motion: reduce) {
  .desk__dust {
    display: none;
  }
}

body.is-away .desk__dust span,
body.is-away .id__dot span:last-child {
  animation-play-state: paused;
}

.desk-stain {
  z-index: 2;
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.desk-stain--ring {
  left: 19%;
  bottom: 21%;
  width: clamp(74px, 7.4vw, 124px);
  aspect-ratio: 1 / 0.93;
  transform: rotate(-8deg);
  opacity: 0.55;
  filter: blur(0.5px);
  background:
    radial-gradient(closest-side, rgba(20, 15, 10, 0) 61%, rgba(74, 50, 26, 0.62) 67%, rgba(112, 80, 44, 0.4) 74%, rgba(20, 15, 10, 0) 83%),
    radial-gradient(closest-side, rgba(52, 38, 20, 0.16) 0 59%, rgba(0, 0, 0, 0) 64%);
}

@media (max-width: 900px) {

  .desk-stain--ring {
    left: 6%;
    bottom: 14%;
    width: 34vw;
    opacity: 0.4;
  }

  .desk__cone,
  .desk__bloom {
    background-position: 50% 30%;
  }

  .desk__vignette {
    background: radial-gradient(
      120% 76% at 50% 30%,
      rgba(0, 0, 0, 0) 26%,
      rgba(10, 7, 4, 0.3) 58%,
      rgba(3, 2, 1, 0.86) 96%
    );
  }
}

.book-stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  perspective: 1500px;
  perspective-origin: 50% 44%;
}

.book {
  position: relative;
  width: var(--book-w);
  height: var(--book-h);
  transform-style: preserve-3d;
  border-radius: 4px;
  transition: transform var(--flip-ms) var(--ease-heavy);
  box-shadow:
    0 70px 120px -34px rgba(0, 0, 0, 0.92),
    0 40px 62px -30px rgba(0, 0, 0, 0.78),
    0 12px 26px -12px rgba(0, 0, 0, 0.7);
}

.book::before {
  content: "";
  position: absolute;
  inset: -12px -18px -26px;
  z-index: 0;
  border-radius: 8px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 76%);
  filter: blur(16px);
  pointer-events: none;
}

.book__block {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.book__cover {
  position: absolute;
  inset: calc(var(--block) * -1);
  border-radius: 7px;
  transition: left var(--flip-ms) var(--ease-heavy);
  background:
    repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.22) 0 2px, rgba(255, 255, 255, 0) 2px 6px),
    linear-gradient(150deg, #241c15, #17120e 46%, #0f0b08);
  box-shadow:
    inset 0 0 0 1px rgba(120, 100, 70, 0.16),
    inset 0 2px 0 rgba(140, 118, 82, 0.1),
    0 24px 44px -20px rgba(0, 0, 0, 0.95);
}

.book__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(96deg, var(--paper-edge), var(--paper-0) 40%, var(--paper-1));
  box-shadow: -2px 0 5px -3px rgba(0, 0, 0, 0.9);
}

.book__edge--1 {
  left: calc(var(--block) * -0.78);
  top: calc(var(--block) * -0.4);
  bottom: calc(var(--block) * -0.4);
  filter: brightness(0.5);
}

.book__edge--2 {
  left: calc(var(--block) * -0.56);
  top: calc(var(--block) * -0.27);
  bottom: calc(var(--block) * -0.27);
  filter: brightness(0.62);
}

.book__edge--3 {
  left: calc(var(--block) * -0.36);
  top: calc(var(--block) * -0.16);
  bottom: calc(var(--block) * -0.16);
  filter: brightness(0.74);
}

.book__edge--4 {
  left: calc(var(--block) * -0.17);
  top: calc(var(--block) * -0.07);
  bottom: calc(var(--block) * -0.07);
  filter: brightness(0.86);
}

.book__gutter {
  position: absolute;
  left: calc(50% - var(--gutter));
  width: calc(var(--gutter) * 2);
  top: calc(var(--block) * -1);
  bottom: calc(var(--block) * -1);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.95) 34%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.95) 66%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.book__page {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 3;
  overflow: hidden;
  background: var(--paper-1);
}

.book__page--left {
  left: 0;
  right: calc(50% + var(--gutter));
  border-radius: 4px 2px 2px 4px;
  box-shadow:
    inset -30px 0 42px -30px rgba(0, 0, 0, 0.8),
    inset -1px 0 0 rgba(255, 250, 236, 0.16),
    inset 0 0 60px -20px rgba(0, 0, 0, 0.45),
    2px 0 5px -2px rgba(0, 0, 0, 0.85);
}

.book__page--right {
  right: 0;
  left: calc(50% + var(--gutter));
  border-radius: 2px 4px 4px 2px;
  box-shadow:
    inset 30px 0 42px -30px rgba(0, 0, 0, 0.8),
    inset 1px 0 0 rgba(255, 250, 236, 0.16),
    inset 0 0 60px -20px rgba(0, 0, 0, 0.45),
    -2px 0 5px -2px rgba(0, 0, 0, 0.85);
}

.sheet {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--paper-1);
  background-image:
    radial-gradient(58% 62% at 34% 22%, rgba(255, 250, 236, 0.24), rgba(255, 250, 236, 0) 68%),
    radial-gradient(38% 30% at 78% 84%, var(--paper-stain), rgba(0, 0, 0, 0) 72%),
    radial-gradient(22% 18% at 14% 68%, rgba(88, 66, 40, 0.1), rgba(0, 0, 0, 0) 74%),
    linear-gradient(168deg, var(--paper-2), var(--paper-0));
}

.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: radial-gradient(
    96% 84% at 50% 30%,
    rgba(0, 0, 0, 0) 34%,
    rgba(22, 16, 10, 0.22) 72%,
    rgba(14, 10, 6, 0.5) 100%
  );
}

.sheet__rules {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 calc(var(--rule) - 1px),
    rgba(40, 30, 18, 0.15) calc(var(--rule) - 1px) var(--rule)
  );
  background-position: 0 var(--rule-offset, 0px);
}

.sheet__margin {
  position: absolute;
  left: var(--margin-x);
  top: 0;
  bottom: 0;
  width: 1.5px;
  z-index: 0;
  pointer-events: none;
  background: rgba(122, 64, 52, 0.26);
}

.sheet__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sheet--identity .sheet__body {
  justify-content: center;
  gap: calc(var(--u) * 18);
  padding: calc(var(--u) * 52) calc(var(--u) * 54) calc(var(--u) * 52)
    clamp(calc(var(--u) * 52), 9%, calc(var(--u) * 96));
}

.sheet--posts .sheet__body {
  padding: calc(var(--u) * 50) calc(var(--u) * 58);
}

.id__head {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 16);
}

.id__badge {
  width: calc(var(--u) * 84);
  height: calc(var(--u) * 84);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  background: linear-gradient(160deg, var(--scrap-hi), var(--scrap-lo));
  border: max(1px, calc(var(--u) * 2)) solid rgba(33, 28, 22, 0.72);
  box-shadow: 3px 4px 0 rgba(20, 15, 10, 0.42), inset 0 0 18px -6px rgba(0, 0, 0, 0.4);
}

.id__badge svg,
.id__badge .mark {
  width: 60%;
  height: 60%;
  display: block;
}

.id__meta {
  min-width: 0;
}

.id__name {
  font-family: var(--font-hand);
  font-size: calc(var(--u) * 44);
  line-height: 1;
  color: var(--ink);
}

.id__handle {
  font-size: calc(var(--u) * 13);
  color: var(--ink-dim);
  margin-top: calc(var(--u) * 6);
}

.id__stat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 9);
  padding: calc(var(--u) * 6) calc(var(--u) * 14) calc(var(--u) * 6) calc(var(--u) * 11);
  font-size: calc(var(--u) * 13);
  color: var(--ink-2);
  background: linear-gradient(170deg, var(--scrap-hi), var(--scrap-lo));
  border: max(1px, calc(var(--u) * 1.5)) solid rgba(33, 28, 22, 0.6);
  border-radius: 255px 13px 225px 13px / 13px 225px 13px 255px;
  box-shadow: 1px 2px 0 rgba(20, 15, 10, 0.34);
}

.id__dot {
  position: relative;
  width: calc(var(--u) * 10);
  height: calc(var(--u) * 10);
  flex: none;
  color: var(--tint, var(--teal));
}

.id__dot span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
}

.id__dot span:last-child {
  animation: statRing 2.4s ease-out infinite;
}

@keyframes statRing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.8); opacity: 0; }
}

.id__num {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.id__label {
  opacity: 0.62;
}

.id__desc {
  font-size: calc(var(--u) * 15);
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 38ch;
  margin: calc(var(--u) * 2) 0 calc(var(--u) * 4);
}

.id__go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 9);
  padding: calc(var(--u) * 11) calc(var(--u) * 22);
  font-size: calc(var(--u) * 14);
  color: #e8e0cc;
  background: var(--tint, var(--teal));
  border: max(1px, calc(var(--u) * 1.6)) solid rgba(20, 15, 10, 0.82);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 2px 3px 0 rgba(20, 15, 10, 0.6), 0 12px 22px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.24s var(--ease-soft), box-shadow 0.24s var(--ease-soft), filter 0.24s var(--ease-soft);
}

.id__go:hover {
  color: #f2ecdc;
  transform: translate(-1px, -2px);
  filter: brightness(1.18);
  box-shadow: 3px 5px 0 rgba(20, 15, 10, 0.6), 0 18px 28px -12px rgba(0, 0, 0, 0.72);
}

.id__go svg {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
}

.sheet--toc .sheet__body {
  justify-content: flex-start;
  padding: calc(var(--rule) * 2) calc(var(--u) * 48) calc(var(--u) * 40)
    clamp(calc(var(--u) * 52), 9%, calc(var(--u) * 94));
}

.toc__head {
  height: calc(var(--rule) * 2);
  display: flex;
  align-items: flex-end;
  padding-bottom: calc(var(--u) * 2);
}

.toc__title {
  display: block;
  font-family: var(--font-hand);
  font-size: calc(var(--u) * 38);
  line-height: 1;
  color: var(--ink);
  transform: rotate(-1.4deg);
}

.toc__list {
  display: flex;
  flex-direction: column;

  margin: var(--rule) 0 0;
  padding: 0;
  list-style: none;
}

.toc__row {
  height: var(--rule);
  list-style: none;
}

.toc__cat {
  height: var(--rule);
  display: flex;
  align-items: flex-end;
  padding-bottom: calc(var(--u) * 3);
  font-family: var(--font-serif);
  font-size: calc(var(--u) * 9.5);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tint, var(--sepia)) 70%, var(--ink-dim));
}

.toc__cat--kept {
  color: color-mix(in srgb, var(--rust) 68%, var(--ink-dim));
}

.toc__link {
  display: flex;
  align-items: flex-end;
  width: auto;
  height: var(--rule);
  padding: 0 calc(var(--u) * 6) 0 calc(var(--u) * 10);
  font-family: var(--font-hand);
  font-size: calc(var(--u) * 18);
  line-height: 1;
  color: var(--ink-2);
  transition: color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.toc__link:hover,
.toc__link:focus-visible {
  color: var(--ink);
  transform: translateX(calc(var(--u) * 5));
}

.toc__name {
  position: relative;
  white-space: nowrap;
}

.toc__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: calc(var(--u) * -2);
  height: 1.5px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--tint, var(--sepia)) 60%, var(--ink-dim));
  opacity: 0.6;
  transition: right 0.28s var(--ease-soft);
}

.toc__link:hover .toc__name::after,
.toc__link:focus-visible .toc__name::after {
  right: 0;
}

.sheet--doodle .sheet__body {
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(var(--u) * 44) clamp(calc(var(--u) * 40), 8%, calc(var(--u) * 70))
    calc(var(--u) * 34);
}

.toc__list--support .toc__link {
  font-size: calc(var(--u) * 19);
}

.doodle {
  width: min(58%, calc(var(--u) * 190));
  margin: auto auto calc(var(--u) * 4);
  transform: rotate(-3.5deg);
  opacity: 0.42;
}

.doodle__art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle__ink {
  stroke: #2b4784;
  stroke-width: 2.6;
}

.doodle__faint {
  stroke: #35538d;
  stroke-width: 2;
  opacity: 0.42;
}

.book__contents {
  position: absolute;
  top: calc(var(--u) * 10);
  left: calc(var(--u) * 10);
  z-index: 46;
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 30);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-dim);
  background: color-mix(in srgb, var(--paper-1) 70%, transparent);
  opacity: 0.42;
  transition: opacity 0.24s var(--ease-soft), color 0.24s var(--ease-soft),
    transform 0.24s var(--ease-soft);
}
.book__contents svg {
  width: calc(var(--u) * 17);
  height: calc(var(--u) * 17);
}
.book__contents:hover,
.book__contents:focus-visible {
  opacity: 1;
  color: var(--ink);
  transform: translateX(calc(var(--u) * -2));
}
.book.is-toc .book__contents,
.book.is-closed .book__contents {
  opacity: 0;
  pointer-events: none;
}

.posts__title {
  font-family: var(--font-hand);
  font-size: calc(var(--u) * 32);
  color: var(--ink);
  transform: rotate(-1.6deg);
  margin-bottom: calc(var(--u) * 24);
}

.posts__list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 24);
}

.post {
  position: relative;
  z-index: 1;
  padding: calc(var(--u) * 11);
  border-radius: 3px;
  background: linear-gradient(170deg, var(--scrap-hi), var(--scrap-lo));
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(33, 28, 22, 0.09);
  transform: rotate(var(--rot, 0deg));
}

.post__tape {
  position: absolute;
  top: calc(var(--u) * -11);
  left: calc(var(--u) * 24);
  width: calc(var(--u) * 64);
  height: calc(var(--u) * 22);
  background: linear-gradient(135deg, rgba(226, 218, 198, 0.22), rgba(150, 140, 118, 0.14));
  border-left: 1px solid rgba(255, 250, 236, 0.16);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.7);
}

.post__row {
  display: flex;
  gap: calc(var(--u) * 13);
  align-items: flex-start;
}

.post__thumb {
  position: relative;
  width: calc(var(--u) * 104);
  height: calc(var(--u) * 104);
  flex: none;
  border-radius: 2px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--tint, var(--teal));
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.08));
  box-shadow: inset 0 0 0 1px rgba(33, 28, 22, 0.14);
}

.post__thumb svg,
.post__thumb .mark {
  width: 44%;
  height: 44%;
  opacity: 0.44;
}

.post__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 28% 18%, rgba(255, 250, 236, 0.16), rgba(255, 255, 255, 0) 58%);
}

.post__date {
  font-size: calc(var(--u) * 11);
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.post__head {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: calc(var(--u) * 16);
  line-height: 1.25;
  color: var(--ink);
  margin-top: calc(var(--u) * 3);
}

.post__note {
  font-size: calc(var(--u) * 12.5);
  line-height: 1.65;
  color: var(--ink-2);
  margin-top: calc(var(--u) * 6);
}

.posts__foot {
  margin-top: auto;
  padding-top: calc(var(--u) * 16);
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: calc(var(--u) * 12);
  color: var(--ink-dim);
}

.book__spine {
  position: absolute;
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: calc(var(--u) * 96);
  transform: translateX(-50%);
  z-index: 46;
  pointer-events: none;
}

.book__crease {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(6, 4, 2, 0.1) 22%,
    rgba(6, 4, 2, 0.3) 38%,
    rgba(4, 2, 1, 0.52) 46%,
    rgba(0, 0, 0, 0) 50%,
    rgba(4, 2, 1, 0.52) 54%,
    rgba(6, 4, 2, 0.3) 62%,
    rgba(6, 4, 2, 0.1) 78%,
    rgba(0, 0, 0, 0) 100%
  );
  mix-blend-mode: multiply;
}

.book__coils {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: calc(var(--u) * 16) 0;
}

.coil {
  --hole-w: calc(var(--u) * 9);
  --hole-h: calc(var(--u) * 13);
  position: relative;
  width: var(--coil-w, calc(var(--u) * 76));
  height: var(--hole-h);
  flex: none;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.85));
}

.coil::before,
.coil::after {
  content: "";
  position: absolute;
  left: calc(var(--hole-w) / 2);
  right: calc(var(--hole-w) / 2);
  z-index: 1;
  height: calc(var(--u) * 6);
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    var(--wire-hi),
    var(--wire-lt) 34%,
    var(--wire-md) 72%,
    var(--wire-dk)
  );
  box-shadow: inset 0 1px 1px rgba(190, 176, 148, 0.24);
}

.coil::before {
  top: 0;
}

.coil::after {
  bottom: 0;
  filter: brightness(0.62);
}

.coil > i {
  position: absolute;
  top: 0;
  z-index: 2;
  width: var(--hole-w);
  height: var(--hole-h);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(190, 176, 148, 0.14);
}

.coil > i:first-child { left: 0; }
.coil > i:last-child { right: 0; }

.book__shut {
  position: absolute;
  left: calc(var(--block) * -1);
  top: 66%;
  transform: translateX(-52%);
  z-index: 0;
  width: calc(var(--u) * 48);
  height: calc(var(--u) * 66);
  border-radius: 10px 0 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.75);
  border-right: none;
  background: linear-gradient(90deg, #14100c, #261e16);
  box-shadow: -7px 7px 14px -8px rgba(0, 0, 0, 0.95);
  opacity: 0.85;
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}

.book__shut::after {
  content: "";
  position: absolute;
  left: calc(var(--u) * 11);
  top: 50%;
  width: 2px;
  height: calc(var(--u) * 26);
  transform: translateY(-50%);
  border-radius: 2px;
  background: rgba(186, 162, 114, 0.45);
  box-shadow: 6px 0 0 -1px rgba(186, 162, 114, 0.28);
}

.book__shut:hover,
.book__shut:focus-visible {
  opacity: 1;
  transform: translateX(-94%);
}

.book__lid {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  visibility: hidden;
  transform: rotateY(180deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  pointer-events: none;
  transition: transform var(--flip-ms) var(--ease-heavy),
    z-index 0s linear var(--flip-ms), visibility 0s linear var(--flip-ms);
}

.book.is-closed {
  transform: translateX(-25%);
  box-shadow: none;
}

.book.is-closed .book__lid {
  z-index: 70;
  visibility: visible;
  transform: rotateY(0deg);
  pointer-events: auto;
  cursor: pointer;
  transition: transform var(--flip-ms) var(--ease-heavy),
    z-index 0s linear 0s, visibility 0s linear 0s;
}

.book.is-closed .book__edge,
.book.is-closed::before {
  display: none;
}

.book.is-closed .book__cover {
  left: 50%;
}

.book__page--left,
.book__page--right,
.tabs,
.book__spine,
.book__gutter {
  transition: opacity 0.3s var(--ease-soft) calc(var(--flip-ms) * 0.45);
}

.book.is-closed .book__page--left,
.book.is-closed .book__page--right,
.book.is-closed .tabs,
.book.is-closed .book__corner,
.book.is-closed .book__spine,
.book.is-closed .book__gutter {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft) calc(var(--flip-ms) * 0.4);
}

.book.is-closed .book__shut {
  left: auto;
  right: calc(var(--block) * -1);
  top: 68%;
  z-index: 80;
  opacity: 1;
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(0, 0, 0, 0.78);
  border-left: none;
  background: linear-gradient(270deg, #14100c, #2b2219);
  transform: translateX(48%) translateZ(10px);
  box-shadow:
    9px 10px 18px -8px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(196, 170, 118, 0.2);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft),
    opacity 0.3s var(--ease-soft) calc(var(--flip-ms) * 0.45);
}

.book.is-closed .book__shut::after {
  left: auto;
  right: calc(var(--u) * 11);
  box-shadow: -6px 0 0 -1px rgba(186, 162, 114, 0.28);
}

.book.is-closed .book__shut {
  pointer-events: none;
  cursor: default;
}

.lid__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lid__face--inner {
  transform: rotateY(180deg);
  border-radius: 4px 2px 2px 4px;
  background-color: var(--paper-1);
  background-image:
    radial-gradient(58% 62% at 34% 22%, rgba(255, 250, 236, 0.2), rgba(255, 250, 236, 0) 68%),
    linear-gradient(168deg, var(--paper-2), var(--paper-0));
  box-shadow: inset -30px 0 42px -30px rgba(0, 0, 0, 0.8);
}

.lid__face--outer {
  border-radius: 2px 4px 4px 2px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(93deg, rgba(0, 0, 0, 0.24) 0 2px, rgba(255, 255, 255, 0) 2px 7px),
    radial-gradient(70% 60% at 40% 26%, rgba(120, 98, 64, 0.14), rgba(0, 0, 0, 0) 70%),
    linear-gradient(150deg, #2a2118, #191309 48%, #100c08);
  box-shadow:
    inset 0 0 0 1px rgba(126, 104, 68, 0.2),
    inset 0 0 60px -18px rgba(0, 0, 0, 0.9);
}

.lid__plate {
  cursor: pointer;
  transition: box-shadow 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 22) calc(var(--u) * 30);
  border: 1px solid rgba(146, 122, 80, 0.26);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.16);
}

.lid__title {
  font-family: var(--font-hand);
  font-size: calc(var(--u) * 30);
  color: #b6a887;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.lid__rule {
  width: calc(var(--u) * 54);
  height: 1px;
  background: rgba(146, 122, 80, 0.4);
}

.lid__sub {
  font-family: var(--font-serif);
  font-size: calc(var(--u) * 9);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
}

.lid__coils {
  position: absolute;
  left: calc(var(--u) * -11);
  top: calc(var(--u) * 14);
  bottom: calc(var(--u) * 14);
  width: calc(var(--u) * 26);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  pointer-events: none;
}

.lid__coils .coil {
  --coil-w: calc(var(--u) * 30);
}

.lid__plate.is-pressed {
  animation: plateHold var(--hold-ms, 2600ms) linear forwards;
}

@keyframes plateHold {
  0% {
    border-color: rgba(146, 122, 80, 0.26);
    box-shadow: none;
  }
  100% {
    border-color: rgba(214, 186, 128, 0.8);
    box-shadow: 0 0 30px -2px rgba(var(--lamp), 0.4), inset 0 0 24px -4px rgba(var(--lamp), 0.42);
  }
}

.book__bookmark {
  position: absolute;
  top: calc(var(--block) * -1);
  right: 31%;
  width: calc(var(--u) * 30);
  height: calc(var(--block) + var(--u) * 42);
  z-index: 45;
  padding: calc(var(--u) * 7) 0 calc(var(--u) * 16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 6);
  border: 0;
  cursor: pointer;
  color: #2b2313;
  background:
    linear-gradient(90deg, rgba(255, 244, 214, 0.25), rgba(0, 0, 0, 0) 34%),
    linear-gradient(180deg, #c4a869, #a9884b 40%, #886a35 78%, #b6975a);
  box-shadow: 3px 0 8px -3px rgba(0, 0, 0, 0.85), inset -4px 0 7px -4px rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
  transition: height 0.34s var(--ease-soft), filter 0.34s var(--ease-soft),
    opacity 0.3s var(--ease-soft);
}
.book__bookmark:hover,
.book__bookmark:focus-visible {
  height: calc(var(--block) + var(--u) * 66);
  filter: brightness(1.07);
}
.book__bookmark-icon {
  font-size: calc(var(--u) * 13);
  line-height: 1;
  color: #7c2f35;
}
.book__bookmark-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-size: calc(var(--u) * 10);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book.is-closed .book__bookmark {
  opacity: 0;
  pointer-events: none;
}

.book__ribbon {
  position: absolute;
  top: calc(var(--block) * -1);
  right: 15%;
  width: calc(var(--u) * 26);
  height: calc(var(--block) + var(--u) * 26);
  z-index: 44;
  padding: 0;
  border: 0;
  cursor: pointer;
  background:
    linear-gradient(90deg, rgba(255, 226, 214, 0.2), rgba(0, 0, 0, 0) 34%),
    linear-gradient(180deg, #7c2f35, #9c3c43 18%, #63272c 58%, #8a343a);
  box-shadow: 3px 0 8px -3px rgba(0, 0, 0, 0.9), inset -4px 0 7px -4px rgba(0, 0, 0, 0.7);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
  transition: height 0.34s var(--ease-soft), filter 0.34s var(--ease-soft);
}

.book__ribbon[hidden] {
  display: none;
}

.book__ribbon:hover,
.book__ribbon:focus-visible {
  height: calc(var(--block) + var(--u) * 52);
  filter: brightness(1.24);
}

.book.is-egg .book__ribbon {
  height: 72%;
}

.book.is-egg .book__ribbon:hover,
.book.is-egg .book__ribbon:focus-visible {
  height: 76%;
}

.book.is-closed .book__ribbon {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft) calc(var(--flip-ms) * 0.4);
}

.book__topbind {
  display: none;
}

.coil--h {
  position: relative;
  width: 14px;
  height: 40px;
  flex: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.8));
}

.coil--h::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 0;
  bottom: 8px;
  z-index: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(
    90deg,
    var(--wire-hi),
    var(--wire-lt) 34%,
    var(--wire-md) 72%,
    var(--wire-dk)
  );
  box-shadow: inset 1px 0 1px rgba(190, 176, 148, 0.24);
}

.coil--h > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 11px;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.94), rgba(24, 18, 12, 0.78));
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.95),
    inset 0 -1px 1px rgba(255, 250, 236, 0.28),
    0 1px 0 rgba(255, 250, 236, 0.3);
}

.leaf {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 30;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
  visibility: hidden;
  box-shadow: 0 40px 74px -28px rgba(0, 0, 0, 0.82), 0 16px 34px -18px rgba(0, 0, 0, 0.66);
}

.leaf.is-armed {
  visibility: visible;
}

.leaf.is-next {
  left: 50%;
  transform-origin: left center;
}

.leaf.is-prev {
  left: 0;
  transform-origin: right center;
}

.leaf.is-running {
  transition: transform var(--flip-ms) var(--ease-heavy);
}

.leaf.is-next.is-running { transform: rotateY(-180deg); }
.leaf.is-prev.is-running { transform: rotateY(180deg); }

.leaf__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--paper-1);
}

.leaf.is-next .leaf__face--front { border-radius: 0 4px 4px 0; }
.leaf.is-next .leaf__face--back { border-radius: 4px 0 0 4px; }
.leaf.is-prev .leaf__face--front { border-radius: 4px 0 0 4px; }
.leaf.is-prev .leaf__face--back { border-radius: 0 4px 4px 0; }

.leaf__face--back {
  transform: rotateY(180deg);
}

.leaf__sheet {
  position: absolute;
  inset: 0;
}

.leaf__shade {
  position: absolute;
  inset: 0;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}

.leaf.is-next .leaf__shade--front {
  background: linear-gradient(90deg, rgba(10, 6, 3, 0) 14%, rgba(10, 6, 3, 0.46) 64%, rgba(4, 2, 1, 0.9));
}

.leaf.is-next .leaf__shade--back {
  background: linear-gradient(270deg, rgba(10, 6, 3, 0) 14%, rgba(10, 6, 3, 0.44) 62%, rgba(4, 2, 1, 0.88));
}

.leaf.is-prev .leaf__shade--front {
  background: linear-gradient(270deg, rgba(10, 6, 3, 0) 14%, rgba(10, 6, 3, 0.46) 64%, rgba(4, 2, 1, 0.9));
}

.leaf.is-prev .leaf__shade--back {
  background: linear-gradient(90deg, rgba(10, 6, 3, 0) 14%, rgba(10, 6, 3, 0.44) 62%, rgba(4, 2, 1, 0.88));
}

.leaf.is-running .leaf__shade--front {
  animation: leafShadeIn var(--flip-ms) var(--ease-heavy) forwards;
}

.leaf.is-running .leaf__shade--back {
  animation: leafShadeOut var(--flip-ms) var(--ease-heavy) forwards;
}

@keyframes leafShadeIn {
  0% { opacity: 0; }
  48% { opacity: 0.72; }
  100% { opacity: 0.94; }
}

@keyframes leafShadeOut {
  0% { opacity: 0.94; }
  52% { opacity: 0.66; }
  100% { opacity: 0; }
}

.book.is-flipping .book__corner,
.book.is-flipping .tab {
  pointer-events: none;
}

.book__corner {
  position: absolute;
  bottom: 0;
  width: calc(var(--u) * 74);
  height: calc(var(--u) * 74);
  z-index: 55;
  transition: background 0.3s var(--ease-soft),
    opacity 0.3s var(--ease-soft) calc(var(--flip-ms) * 0.45);
}

.book__corner--next {
  right: 0;
  border-radius: 0 0 4px 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.1) 64%);
}

.book__corner--prev {
  left: 0;
  border-radius: 0 0 0 4px;
  background: linear-gradient(225deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.1) 64%);
}

.book__corner--next:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.14) 70%);
}

.book__corner--prev:hover {
  background: linear-gradient(225deg, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.14) 70%);
}

.book__corner[disabled] {
  background: none;
  pointer-events: none;
}

.mark {
  display: block;
  object-fit: contain;
  filter: saturate(0.88) drop-shadow(0 1px 2px rgba(20, 15, 10, 0.45));
  -webkit-user-drag: none;
}

.post__thumb .mark {
  opacity: 0.5;
}

.tabs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.tabgroup {
  position: absolute;
  display: flex;
  gap: calc(var(--u) * 5);
  pointer-events: none;
}

.tabgroup--top {
  bottom: calc(100% - var(--tab-tuck));
  left: 9%;
  max-width: 41%;
  flex-direction: column;
  align-items: flex-start;
}

/* The bottom edge carries two groups: the small one tucked into the left
   corner, Play anchored to the right. Splitting them is what keeps either from
   sprawling across the middle of the book the way one shelf of six did. */
.tabgroup--bottom {
  top: calc(100% - var(--tab-tuck));
  right: 9%;
  max-width: 46%;
  flex-direction: column-reverse;
  align-items: flex-end;
}

.tabgroup--left {
  right: calc(100% - var(--tab-tuck));
  top: 20%;
  flex-direction: column;
  align-items: flex-end;
}

.tabgroup--right {
  left: calc(100% - var(--tab-tuck));
  top: 12%;
  flex-direction: column;
  align-items: flex-start;
}

.tabgroup__cap {
  font-family: var(--font-serif);
  font-size: max(8.5px, calc(var(--u) * 9.5));
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: color-mix(in srgb, var(--tint, var(--slate)) 58%, var(--scrap-hi));
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.7);
}

.tabgroup--right .tabgroup__cap {
  align-self: flex-end;
}

.tabgroup--left .tabgroup__cap {
  align-self: flex-start;
}

.tabgroup--top .tabgroup__cap {
  margin-bottom: 2px;
}

.tabgroup--bottom .tabgroup__cap {
  margin-top: 2px;
}

.tabgroup__set {
  display: flex;
  gap: calc(var(--u) * 7);
}

.tabgroup--top .tabgroup__set,
.tabgroup--bottom .tabgroup__set {
  flex-direction: row;
  flex-wrap: wrap;
  gap: calc(var(--u) * 8);
  max-width: 100%;
}

.tabgroup--bottom .tabgroup__set {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.tabgroup__set:has(> .tab:nth-child(4)) .tab {
  font-size: calc(var(--u) * 10.5);
  gap: calc(var(--u) * 6);
}

.tabgroup--top .tabgroup__set:has(> .tab:nth-child(4)) .tab,
.tabgroup--bottom .tabgroup__set:has(> .tab:nth-child(4)) .tab {
  padding-left: calc(var(--u) * 8);
  padding-right: calc(var(--u) * 8);
}

.tabgroup__set:has(> .tab:nth-child(4)) .tab__dot {
  width: calc(var(--u) * 7);
  height: calc(var(--u) * 7);
}

.tabgroup--left .tabgroup__set,
.tabgroup--right .tabgroup__set {
  flex-direction: column;
}

.tab {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  white-space: nowrap;
  pointer-events: auto;
  font-family: var(--font-type);
  font-size: calc(var(--u) * 12);
  color: #cfc4ae;
  background: linear-gradient(180deg, var(--desk-4), var(--desk-2));
  border: max(1px, calc(var(--u) * 1.5)) solid rgba(0, 0, 0, 0.72);
  transition: transform 0.26s var(--ease-soft), color 0.26s var(--ease-soft), filter 0.26s var(--ease-soft);
}

.tab:hover,
.tab.is-active {
  color: #ece2ca;
  filter: brightness(1.35);
}

.tab__dot {
  width: calc(var(--u) * 9);
  height: calc(var(--u) * 9);
  flex: none;
  border-radius: 50%;
  background: var(--acc, var(--slate));
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.6), 0 0 8px -1px var(--acc, var(--slate));
}

.tabgroup--right .tab {
  border-left: none;
  border-radius: 0 11px 11px 0;
  padding: calc(var(--u) * 7) calc(var(--u) * 13) calc(var(--u) * 7) calc(var(--u) * 11);
  box-shadow: inset 3px 0 0 var(--tint), 4px 3px 10px -3px rgba(0, 0, 0, 0.9);
}

.tabgroup--right .tab:hover,
.tabgroup--right .tab.is-active { transform: translateX(var(--tab-pull)); }

.tabgroup--left .tab {
  border-right: none;
  border-radius: 11px 0 0 11px;
  padding: calc(var(--u) * 7) calc(var(--u) * 11) calc(var(--u) * 7) calc(var(--u) * 13);
  flex-direction: row-reverse;
  box-shadow: inset -3px 0 0 var(--tint), -4px 3px 10px -3px rgba(0, 0, 0, 0.9);
}

.tabgroup--left .tab:hover,
.tabgroup--left .tab.is-active { transform: translateX(calc(var(--tab-pull) * -1)); }

.tabgroup--top .tab {
  border-bottom: none;
  border-radius: 11px 11px 0 0;
  padding: calc(var(--u) * 7) calc(var(--u) * 12) calc(var(--u) * 9);
  box-shadow: inset 0 -3px 0 var(--tint), 3px -3px 10px -3px rgba(0, 0, 0, 0.9);
}

.tabgroup--top .tab:hover,
.tabgroup--top .tab.is-active { transform: translateY(calc(var(--tab-pull) * -1)); }

.tabgroup--bottom .tab {
  border-top: none;
  border-radius: 0 0 11px 11px;
  padding: calc(var(--u) * 9) calc(var(--u) * 12) calc(var(--u) * 7);
  box-shadow: inset 0 3px 0 var(--tint), 3px 4px 10px -3px rgba(0, 0, 0, 0.9);
}

.tabgroup--bottom .tab:hover,
.tabgroup--bottom .tab.is-active { transform: translateY(var(--tab-pull)); }

/* One strip of tabs hanging off the top edge of the notebook, read left to
   right, with the category names standing in as filing dividers. Five stacked
   scrollers read as a navigation bar bolted onto the desk; one strip reads as
   the book's own index tabs. */
.rail {
  display: none;
  position: relative;
  z-index: 1;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  margin-top: calc(var(--tab-tuck) * -1);
  padding: 0 12px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 26px), transparent 100%);
}

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

/* the group wrappers only carry the tint and the aria grouping, so they hand
   their children straight to the strip */
.rail__group,
.rail__set {
  display: contents;
}

.rail__cap {
  flex: none;
  align-self: flex-start;
  height: var(--rail-div);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  padding: 8px 0 9px;
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tint, var(--slate)) 30%, #f3e9d6);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--tint, var(--slate)) 78%, #241c14),
    color-mix(in srgb, var(--tint, var(--slate)) 52%, #1a140e));
  border: 1.5px solid rgba(0, 0, 0, 0.72);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 2px 5px 11px -4px rgba(0, 0, 0, 0.9);
  scroll-snap-align: start;
}

.rail__group:first-child .rail__cap {
  margin-left: 0;
}

.rail .tab {
  flex: none;
  width: 60px;
  height: var(--rail-tab);
  writing-mode: horizontal-tb;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 4px 6px;
  font-size: 9.5px;
  line-height: 1.15;
  text-align: center;
  scroll-snap-align: start;
  border: 1.5px solid rgba(0, 0, 0, 0.72);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 3px 0 var(--tint), 2px 5px 11px -4px rgba(0, 0, 0, 0.9);
}

.rail .tab > span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.rail .tab .mark,
.rail .tab svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.rail .tab__dot {
  display: none;
}

.rail .tab:hover,
.rail .tab.is-active {
  transform: translateY(3px);
}

.rail .tab.is-active {
  background: linear-gradient(180deg, var(--desk-4), var(--desk-3));
  box-shadow:
    inset 0 3px 0 var(--tint),
    0 0 0 1px color-mix(in srgb, var(--tint) 60%, transparent),
    2px 7px 14px -5px rgba(0, 0, 0, 0.9);
}

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

  .rail {
    --rail-tab: 58px;
    --rail-div: 72px;
    display: flex;
  }
}

@media (max-width: 430px) {
  .rail {
    --rail-tab: 54px;
    --rail-div: 66px;
    gap: 4px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .rail .tab {
    width: 54px;
    font-size: 9px;
  }

  .rail .tab .mark,
  .rail .tab svg {
    width: 19px;
    height: 19px;
  }
}

/* The rail hides its own bar. Firefox only: naming scrollbar-width on this
   element makes Chromium ignore the ::-webkit-scrollbar rule above it. */
@supports not selector(::-webkit-scrollbar) {
  .rail {
    scrollbar-width: none;
  }
}

body.is-blackout .desk__cone,
body.is-blackout .desk__bloom {
  opacity: 0.04;
  transition: opacity 2.6s var(--ease-soft);
}

.desk__cone,
.desk__bloom {
  transition: opacity 2.2s var(--ease-soft);
}

body.is-blackout .desk__vignette {
  background: radial-gradient(
    58% 56% at 50% 48%,
    rgba(0, 0, 0, 0.74) 0%,
    rgba(0, 0, 0, 0.93) 46%,
    rgba(0, 0, 0, 0.99) 100%
  );
  transition: background 0.5s var(--ease-soft);
}

body.is-blackout .book__spine {
  cursor: pointer;
  pointer-events: auto;
}

body.is-blackout .book__spine::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(closest-side, rgba(224, 214, 190, 0.55), rgba(224, 214, 190, 0.14) 58%, rgba(224, 214, 190, 0));
  animation: markGlow 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes markGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.85; }
}

.sheet--blank {
  background-image:
    radial-gradient(58% 62% at 34% 22%, rgba(255, 250, 236, 0.2), rgba(255, 250, 236, 0) 68%),
    radial-gradient(38% 30% at 78% 84%, var(--paper-stain), rgba(0, 0, 0, 0) 72%),
    linear-gradient(168deg, var(--paper-2), var(--paper-0));
}

.sheet--egg {
  background-color: #bdb3a1;
  background-image:
    radial-gradient(62% 58% at 40% 26%, rgba(255, 250, 236, 0.16), rgba(255, 250, 236, 0) 70%),
    radial-gradient(44% 36% at 74% 78%, rgba(74, 58, 38, 0.2), rgba(0, 0, 0, 0) 74%),
    radial-gradient(30% 24% at 18% 62%, rgba(88, 66, 40, 0.16), rgba(0, 0, 0, 0) 76%),
    linear-gradient(168deg, #c9bfab, #ada29a);
}

.sheet--egg .sheet__body {
  align-items: center;
  justify-content: center;
  padding: calc(var(--u) * 48);
}

.sheet--egg .sheet__rules {
  opacity: 0.55;
}

.relic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 26);
  width: 100%;
}

.photo {
  position: relative;
  flex: none;
  width: calc(var(--u) * 124);
  aspect-ratio: 3 / 4;
  padding: calc(var(--u) * 7) calc(var(--u) * 7) calc(var(--u) * 20);
  transform: rotate(-6deg);
  background: linear-gradient(168deg, #cdc3ae, #b6ac98);
  box-shadow: 0 14px 22px -14px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(33, 28, 22, 0.12);
}

.photo__img {
  position: absolute;
  inset: calc(var(--u) * 7) calc(var(--u) * 7) calc(var(--u) * 20);
  overflow: hidden;
  background:
    repeating-linear-gradient(-38deg, rgba(24, 32, 58, 0.5) 0 3px, rgba(24, 32, 58, 0) 3px 7px),
    repeating-linear-gradient(41deg, rgba(24, 32, 58, 0.46) 0 3px, rgba(24, 32, 58, 0) 3px 8px),
    repeating-linear-gradient(88deg, rgba(24, 32, 58, 0.34) 0 2px, rgba(24, 32, 58, 0) 2px 6px),
    linear-gradient(150deg, #6e6553, #4a4335);
  filter: blur(0.3px);
}

.photo__crack {
  position: absolute;
  inset: calc(var(--u) * 7) calc(var(--u) * 7) calc(var(--u) * 20);
  pointer-events: none;
  background:
    linear-gradient(72deg, transparent calc(50% - 1px), rgba(226, 218, 198, 0.5) 50%, transparent calc(50% + 1px)),
    linear-gradient(-51deg, transparent calc(38% - 1px), rgba(226, 218, 198, 0.34) 38%, transparent calc(38% + 1px)),
    linear-gradient(24deg, transparent calc(68% - 1px), rgba(226, 218, 198, 0.28) 68%, transparent calc(68% + 1px));
}

.photo__scratch {
  position: absolute;
  inset: calc(var(--u) * 7) calc(var(--u) * 7) calc(var(--u) * 20);
  pointer-events: none;
  opacity: 0.72;
  background-image:
    repeating-linear-gradient(-18deg, rgba(20, 34, 74, 0.62) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(23deg, rgba(20, 34, 74, 0.58) 0 2px, transparent 2px 7px);
  filter: blur(0.4px);
}

.photo__tape {
  position: absolute;
  z-index: 3;
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 17);
  background: linear-gradient(135deg, rgba(226, 218, 198, 0.3), rgba(150, 140, 118, 0.18));
  border-left: 1px solid rgba(255, 250, 236, 0.22);
  border-right: 1px solid rgba(0, 0, 0, 0.24);
  box-shadow: 0 3px 7px -4px rgba(0, 0, 0, 0.8);
}

.photo__tape--tl {
  top: calc(var(--u) * -8);
  left: calc(var(--u) * -14);
  transform: rotate(-42deg);
}

.photo__tape--br {
  bottom: calc(var(--u) * -6);
  right: calc(var(--u) * -14);
  transform: rotate(-42deg);
}

.tulip {
  position: relative;
  flex: none;
  width: calc(var(--u) * 156);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55));
  transform: rotate(-3.5deg);
}

.tulip__art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tulip__stem {
  fill: none;
  stroke: #6b6d55;
  stroke-width: 3.4;
  stroke-linecap: round;
  opacity: 0.82;
}

.tulip__leaf {
  fill: #7c7d61;
  opacity: 0.6;
}

.tulip__petal {
  fill: #ddd5c3;
  stroke: #9c9382;
  stroke-width: 1.1;
  opacity: 0.9;
}

.tulip__petal--mid {
  fill: #e6dfce;
}

.tulip__tape {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: calc(var(--u) * 62);
  height: calc(var(--u) * 20);
  background: linear-gradient(135deg, rgba(226, 218, 198, 0.3), rgba(150, 140, 118, 0.18));
  border-left: 1px solid rgba(255, 250, 236, 0.24);
  border-right: 1px solid rgba(0, 0, 0, 0.24);
  box-shadow: 0 3px 7px -4px rgba(0, 0, 0, 0.8);
}

.tulip__tape--top {
  top: 12%;
  transform: translateX(-50%) rotate(-24deg);
}

.tulip__tape--bottom {
  bottom: 8%;
  transform: translateX(-52%) rotate(16deg);
}

.ink {
  --pen: #26407a;
  position: relative;
  display: block;
  width: 100%;
  padding: 0 calc(var(--u) * 18);
  font-family: var(--font-hand);
  font-size: calc(var(--u) * 16);
  color: var(--pen);
}

.ink__line {
  display: block;
  height: var(--rule);
  line-height: var(--rule);
  transform: rotate(var(--r, 0deg)) translateX(var(--x, 0));
  transform-origin: left center;
  text-shadow: 0 0 1px rgba(38, 64, 122, 0.45);
  white-space: nowrap;
}

.ink__line:nth-child(odd) {
  color: #2b4784;
}

.ink__line:nth-child(3n) {
  color: #223a70;
}

.ink__cross {
  position: relative;
  margin-right: 2px;
  text-decoration: none;
  color: #35538d;
  opacity: 0.55;
}

.ink__cross::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-1.6deg);
  box-shadow: 0 3px 0 -1px currentColor;
}

.ink__sign {
  margin-top: calc(var(--u) * 26);
  padding-right: calc(var(--u) * 18);
  text-align: right;
  font-family: var(--font-hand);
  font-size: calc(var(--u) * 17);
  color: #2b4784;
  opacity: 0.78;
  transform: rotate(-0.8deg);
}

.ink__cross--faint {
  color: rgba(72, 68, 60, 0.3);
  opacity: 1;
  text-shadow: none;
}

.ink__cross--faint::after {
  box-shadow: none;
  opacity: 0.85;
}

.ink__scribble {
  position: relative;
  display: inline-block;
  width: var(--w, 3ch);
  height: 0.86em;
  margin-right: 3px;
  vertical-align: -0.12em;
  opacity: 0.66;
  background-image:
    repeating-linear-gradient(-14deg, currentColor 0 2px, transparent 2px 5px),
    repeating-linear-gradient(15deg, currentColor 0 2px, transparent 2px 6px),
    linear-gradient(currentColor, currentColor);
  background-size: 100% 100%, 100% 100%, 100% 62%;
  background-position: 0 0, 0 0, 0 55%;
  background-repeat: no-repeat;
  border-radius: 2px;
  filter: blur(0.35px);
}

.ink__blot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 58, 112, 0.5), rgba(34, 58, 112, 0));
  pointer-events: none;
}

.ink__blot--a {
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 11);
  top: 22%;
  right: 11%;
  transform: rotate(14deg);
}

.ink__blot--b {
  width: calc(var(--u) * 9);
  height: calc(var(--u) * 8);
  bottom: 17%;
  left: 7%;
}

.ink__pool {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 40, 84, 0.72), rgba(22, 40, 84, 0.28) 62%, rgba(22, 40, 84, 0));
  filter: blur(0.6px);
}

.ink__pool--a {
  width: calc(var(--u) * 7);
  height: calc(var(--u) * 6);
  top: 8%;
  left: 33%;
}

.ink__pool--b {
  width: calc(var(--u) * 10);
  height: calc(var(--u) * 7);
  top: 47%;
  left: 12%;
  transform: rotate(-8deg);
}

.ink__pool--c {
  width: calc(var(--u) * 6);
  height: calc(var(--u) * 9);
  bottom: 26%;
  right: 24%;
}

.sheet__tears {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tear {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(120, 96, 58, 0.22), rgba(120, 96, 58, 0.07) 62%, rgba(120, 96, 58, 0) 78%),
    radial-gradient(closest-side, rgba(255, 250, 236, 0.16), rgba(255, 250, 236, 0) 58%);
  box-shadow: inset 0 0 8px -3px rgba(74, 58, 38, 0.5);
  filter: blur(0.5px);
}

.tear::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(96, 76, 46, 0.16);
}

.tear--a {
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 40);
  top: 26%;
  left: 18%;
  transform: rotate(-12deg);
}

.tear--b {
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 27);
  top: 58%;
  right: 20%;
}

.tear--c {
  width: calc(var(--u) * 62);
  height: calc(var(--u) * 34);
  bottom: 13%;
  left: 34%;
  transform: rotate(6deg);
}

@media (max-width: 900px) {
  .sheet--egg .sheet__body {
    padding: calc(var(--u) * 26) calc(var(--u) * 18);
  }

  .relic {
    gap: calc(var(--u) * 14);
  }

  .tulip {
    width: calc(var(--u) * 132);
  }

  .photo {
    width: calc(var(--u) * 104);
  }

  .ink {
    font-size: calc(var(--u) * 13.2);
    padding: 0 calc(var(--u) * 10);
  }

  .ink__sign {
    padding-right: calc(var(--u) * 10);
  }
}

.gore {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
}

.gore--dry {
  z-index: 392;
  filter: saturate(0.55) brightness(0.6);
}

.gore--dry .gore__spot,
.gore--dry .gore__drip {
  animation: none;
  opacity: var(--o);
  transform: translate(-50%, -50%) rotate(var(--r)) scale(1);
}

.gore--dry .gore__drip {
  height: var(--len);
  transform: none;
}

.grime {
  position: fixed;
  inset: 0;
  z-index: 393;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.44;
}

.grime__spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%) rotate(var(--r));
  border-radius: 48% 52% 42% 58% / 55% 45% 58% 42%;
  background: radial-gradient(closest-side, rgba(150, 138, 112, 0.3), rgba(120, 110, 88, 0.12) 58%, rgba(0, 0, 0, 0) 82%);
  filter: blur(7px);
}

.pagegore {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  filter: saturate(0.6) brightness(0.62);
}

.pagegore__spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: calc(var(--s) * 0.86);
  opacity: var(--o);
  transform: translate(-50%, -50%);
  border-radius: 46% 54% 38% 62% / 58% 42% 61% 39%;
  background: radial-gradient(closest-side at 40% 36%, rgba(104, 10, 12, 0.9), rgba(72, 6, 8, 0.7) 62%, rgba(48, 3, 4, 0) 100%);
  filter: blur(0.3px);
}

.heartpulse {
  position: fixed;
  inset: 0;
  z-index: 8200;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0) 30%,
    rgba(4, 1, 1, 0.5) 66%,
    rgba(2, 0, 0, 0.92) 100%
  );
}

.heartpulse.is-beat {
  animation: heartVignette 0.7s ease-out;
}

@keyframes heartVignette {
  0% { opacity: 0; }
  10% { opacity: calc(var(--beat, 0.5) * 0.9); }
  26% { opacity: calc(var(--beat, 0.5) * 0.32); }
  42% { opacity: calc(var(--beat, 0.5) * 0.78); }
  100% { opacity: 0; }
}

.blackfall {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 4s cubic-bezier(0.45, 0, 0.7, 0.5);
}

.blackfall.is-on {
  opacity: 1;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 9700;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 2.4s var(--ease-soft);
}

.veil.is-on {
  opacity: 1;
}

.gore__spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(0.2);
  border-radius: 46% 54% 38% 62% / 58% 42% 61% 39%;
  background:
    radial-gradient(closest-side at 38% 34%, rgba(126, 12, 14, 0.95), rgba(92, 6, 8, 0.86) 58%, rgba(58, 3, 5, 0.7) 82%, rgba(40, 2, 3, 0) 100%);
  filter: blur(0.4px);
  animation: goreHit 340ms cubic-bezier(0.15, 0.85, 0.3, 1) var(--d) forwards;
}

.gore__spot::after {
  content: "";
  position: absolute;
  left: 62%;
  top: 18%;
  width: 34%;
  height: 30%;
  border-radius: 50% 40% 60% 40%;
  background: radial-gradient(closest-side, rgba(112, 8, 10, 0.8), rgba(70, 4, 6, 0));
}

@keyframes goreHit {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(0.2); }
  70% { opacity: var(--o); transform: translate(-50%, -50%) rotate(var(--r)) scale(1.08); }
  100% { opacity: var(--o); transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
}

.gore__drip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: 0;
  border-radius: 0 0 60% 60%;
  background: linear-gradient(180deg, rgba(104, 8, 10, 0.9), rgba(66, 4, 6, 0.72));
  animation: goreDrip var(--dur) cubic-bezier(0.4, 0, 0.6, 1) var(--d) forwards;
}

@keyframes goreDrip {
  0% { height: 0; opacity: 0; }
  12% { opacity: 0.9; }
  100% { height: var(--len); opacity: var(--o, 0.82); }
}

body.is-shock {
  animation: shockShake 1.5s steps(2, end);
}

body.is-shock .shell,
body.is-shock .desk {
  animation: shockGlitch 1.5s steps(3, end);
}

@keyframes shockShake {
  0% { transform: translate(0, 0); }
  6% { transform: translate(-22px, 14px) rotate(-1.1deg); }
  12% { transform: translate(19px, -16px) rotate(0.9deg); }
  19% { transform: translate(-26px, -9px) rotate(1.4deg); }
  27% { transform: translate(14px, 21px) rotate(-0.7deg); }
  36% { transform: translate(-11px, -13px) rotate(0.5deg); }
  48% { transform: translate(8px, 7px) rotate(-0.3deg); }
  62% { transform: translate(-5px, -4px); }
  78% { transform: translate(3px, 2px); }
  100% { transform: translate(0, 0); }
}

@keyframes shockGlitch {
  0% { filter: none; opacity: 1; }
  4% { filter: invert(1) contrast(3) saturate(0); opacity: 1; }
  9% { filter: none; opacity: 0.06; }
  15% { filter: brightness(3.4) saturate(0) contrast(2.2); }
  22% { filter: none; opacity: 1; }
  30% { filter: hue-rotate(-38deg) saturate(2.6) contrast(1.6); }
  38% { opacity: 0.1; }
  46% { filter: brightness(0.3) contrast(2); opacity: 1; }
  60% { filter: hue-rotate(12deg) saturate(1.5); }
  78% { filter: brightness(0.7); }
  100% { filter: none; opacity: 1; }
}

body.is-stained .desk__cone,
body.is-stained .desk__bloom {
  opacity: 0.9;
}

body.is-stained .desk__vignette {
  background: radial-gradient(
    92% 94% at 50% 48%,
    rgba(0, 0, 0, 0) 34%,
    rgba(12, 8, 5, 0.22) 60%,
    rgba(7, 4, 2, 0.52) 80%,
    rgba(0, 0, 0, 0.84) 100%
  );
}

body.is-stained .shell {
  filter: saturate(0.8);
}

body.is-stained .masthead__mark img {
  filter: brightness(0.7) saturate(0.34);
}

body.is-aftermath .desk__cone,
body.is-aftermath .desk__bloom {
  opacity: 0.68;
  transition: opacity 5s var(--ease-soft);
}

body.is-aftermath .desk__vignette {
  background: radial-gradient(
    96% 94% at 50% 48%,
    rgba(0, 0, 0, 0) 40%,
    rgba(6, 4, 3, 0.24) 66%,
    rgba(3, 2, 1, 0.6) 100%
  );
  transition: background 5s var(--ease-soft);
}

body.is-aftermath .shell {
  filter: saturate(0.58) brightness(0.92);
  transition: filter 6s var(--ease-soft);
}

body.is-aftermath .masthead,
body.is-aftermath .deskfooter {
  opacity: 0.6;
  transition: opacity 4s var(--ease-soft);
}

body.is-lettinggo .shell {
  filter: saturate(0.4) brightness(0.82);
  transition: filter 4s var(--ease-soft);
}

body.is-lettinggo .desk__vignette {
  background: radial-gradient(
    78% 74% at 50% 48%,
    rgba(0, 0, 0, 0.16) 28%,
    rgba(5, 3, 2, 0.62) 60%,
    rgba(2, 1, 1, 0.9) 100%
  );
  transition: background 4s var(--ease-soft);
}

body.is-lettinggo .desk__cone,
body.is-lettinggo .desk__bloom {
  opacity: 0.5;
  transition: opacity 4s var(--ease-soft);
}

@media (prefers-reduced-motion: reduce) {
  body.is-shock,
  body.is-shock .shell,
  body.is-shock .desk {
    animation: none;
  }

  .gore__spot,
  .gore__drip {
    animation-duration: 1ms;
  }
}

.shell {
  position: relative;
  z-index: 5;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.masthead,
.book-stage,
.rail,
.deskfooter .legal {
  pointer-events: auto;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 400;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(13, 10, 8, 0.97), rgba(13, 10, 8, 0.86) 62%, rgba(13, 10, 8, 0.58));
  border-bottom: 1px solid rgba(120, 104, 78, 0.14);
  box-shadow: 0 18px 30px -26px rgba(0, 0, 0, 0.95);
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  cursor: pointer;
  border-radius: 10px;
  transition: opacity 0.2s var(--ease-soft);
}

.masthead__brand:hover {
  opacity: 0.82;
}

.masthead__mark {
  display: inline-block;
  flex: none;
  width: clamp(52px, 5vw, 68px);
  transform-origin: 50% 88%;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s var(--ease-soft), filter 0.3s var(--ease-soft);
}

.masthead__mark img {
  width: 100%;
  height: auto;
  /* Each site carries its own mark artwork, and the variants are not all the
     same ratio. Pinning the box ratio keeps the masthead row exactly the same
     height on every site, so the menu button lands on the same baseline;
     object-fit letterboxes an odd variant rather than stretching it. */
  aspect-ratio: 1243 / 848;
  object-fit: contain;
  transform-origin: 50% 88%;
  transform: rotate(-3deg);
  filter: brightness(0.82) saturate(0.6);
}

.masthead__mark:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.9));
}

.masthead__mark:active {
  transform: scale(0.93);
}

.masthead__text {
  min-width: 0;
  line-height: 1;
}

.masthead__name {
  font-family: var(--font-hand);
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 400;
  color: #ddd2ba;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.masthead__tag {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-top: 5px;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.icon-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1.8px solid rgba(222, 211, 187, 0.28);
  background: none;
  box-shadow: none;
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--slate) 55%, #ded3bb);
  transition:
    transform 0.18s var(--ease-soft),
    color 0.18s var(--ease-soft),
    border-color 0.2s var(--ease-soft),
    box-shadow 0.2s var(--ease-soft);
}

/* Pinned so the menu button is the same box as on legal, blog and team.
   Deliberately not on the shared .icon-btn rule above, which would have
   resized every icon button as a side effect. */
.ghost-btn {
  line-height: 1.65;
  min-height: 38px;
}


.icon-btn:hover,
.icon-btn:focus-visible,
.ghost-btn:hover,
.ghost-btn:focus-visible {
  transform: translateY(-1px);
  color: #ece1c9;
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}

.icon-btn[aria-checked="true"] {
  color: color-mix(in srgb, var(--accent) 76%, #ded3bb);
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
}

.icon-btn__glyph {
  font-size: 13px;
  line-height: 1;
}

.stage {
  position: relative;
  z-index: 5;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(70px, 8vw, 150px) 18px;
}

@media (min-width: 901px) {
  .shell {
    height: 100svh;
  }
}

.stage > * {
  flex: none;
}

.deskfooter {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(16px, 4vw, 46px) 22px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--slate) 62%, transparent);
}

.deskfooter__made {
  min-width: 0;
}

.legal {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  margin-left: auto;
}

.legal__link {
  font-family: var(--font-type);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--slate);
  text-decoration: none;
  opacity: 0.42;
  transition: opacity 0.3s var(--ease-soft), color 0.3s var(--ease-soft),
    text-shadow 0.3s var(--ease-soft);
}

.legal__link:hover,
.legal__link:focus-visible {
  opacity: 1;
  color: var(--paper-1);
  text-shadow: 0 0 8px color-mix(in srgb, var(--ember-hot) 48%, transparent);
}

.legal__sep {
  color: var(--slate);
  opacity: 0.28;
  font-size: 10px;
}

.legal__all {
  display: none;
}

@media (max-width: 560px) {
  .legal__sep,
  .legal .legal__link:not(.legal__all) {
    display: none;
  }
  .legal__all {
    display: inline;
  }
}

@keyframes preFade {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---- right-click menu ----------------------------------------------------
   Shared by hub, socials and legal. A torn scrap of ruled paper, same on all
   three. Deliberately hard-coded: this is the one element meant NOT to take
   the local palette, so do not swap these for site variables. */
.ctx {
  position: fixed;
  z-index: 9500;
  min-width: 244px;
  max-width: 292px;
  padding: 18px 10px 20px;
  background-color: #f2e9d2;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(64, 52, 42, 0.055) 25px 26px),
    radial-gradient(120% 80% at 12% 0%, rgba(255, 252, 242, 0.85), transparent 60%);
  clip-path: polygon(0% 2.2%, 6% 0.5%, 13% 1.8%, 21% 0.3%, 29% 1.6%, 38% 0.4%, 47% 1.7%, 56% 0.5%, 65% 1.8%, 74% 0.4%, 83% 1.6%, 92% 0.6%, 100% 2%, 98.9% 12%, 100% 24%, 98.6% 36%, 100% 48%, 98.8% 60%, 100% 72%, 98.7% 84%, 100% 96%, 93% 98.4%, 85% 100%, 76% 98.2%, 67% 99.8%, 58% 98.4%, 49% 100%, 40% 98.5%, 31% 99.9%, 22% 98.3%, 13% 99.8%, 5% 98.4%, 0% 97%, 1.2% 86%, 0% 74%, 1.4% 62%, 0% 50%, 1.1% 38%, 0% 26%, 1.3% 14%);
  filter: drop-shadow(0 16px 26px rgba(20, 12, 4, 0.6));
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) rotate(-0.7deg);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.15s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.15s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0s linear 0.15s;
}

.ctx.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(-0.7deg);
  pointer-events: auto;
  transition-delay: 0s;
}

.ctx.is-flip-x { transform-origin: top right; }
.ctx.is-flip-y { transform-origin: bottom left; }
.ctx.is-flip-x.is-flip-y { transform-origin: bottom right; }

.ctx__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 11px;
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a5a2e;
}

.ctx__item {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border-radius: 7px;
  font-family: "Spectral", Georgia, serif;
  font-size: 14.5px;
  color: #241f18;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.16s cubic-bezier(0.33, 1, 0.68, 1),
    color 0.16s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.16s cubic-bezier(0.33, 1, 0.68, 1);
}

.ctx__item:hover,
.ctx__item:focus-visible {
  background: rgba(138, 90, 46, 0.14);
  color: #5d3a17;
  transform: translateX(3px);
}

.ctx__ico {
  flex: none;
  width: 18px;
  text-align: center;
  font-size: 13px;
  opacity: 0.72;
}

/* The drawn icons in the context menu, sized to sit with the label. */
.ctx__svg {
  width: 15px;
  height: 15px;
  display: block;
}

.ctx__item:hover .ctx__ico {
  opacity: 1;
}

.ctx__ext {
  margin-left: auto;
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(36, 31, 24, 0.45);
}

.ctx__sep {
  height: 2px;
  margin: 8px 12px;
  background: repeating-linear-gradient(90deg, rgba(28, 26, 22, 0.22) 0 5px, transparent 5px 12px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 9600;
  transform: translate(-50%, 14px);
  padding: 11px 20px;
  font-size: 12.5px;
  color: #d5caB2;
  background: linear-gradient(180deg, var(--desk-3), var(--desk-1));
  border: 1px solid rgba(0, 0, 0, 0.85);
  border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}

.toast.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1400px) {
  :root {
    --book-max: 980px;
    --book-vw: 78vw;
    --chrome-pad: 72px;
  }

  .stage {
    padding: 54px clamp(58px, 7vw, 110px) 18px;
  }
}

@media (max-width: 1180px) {
  :root {
    --book-vw: 76vw;
    --chrome-pad: 68px;
  }

  .stage {
    padding: 52px clamp(52px, 9vw, 100px) 16px;
  }
}

@media (max-width: 1100px) {
  :root {
    --book-max: 860px;
    --book-vw: 92vw;
    --chrome-pad: 30px;
    --rail-h: 118px;
  }

  .stage {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 14px clamp(16px, 4vw, 32px);
  }
}

@media (max-width: 900px) {
  :root {
    --u: clamp(0.84px, calc(100vw / 470), 0.98px);
    --panel-h: clamp(424px, 116vw, 486px);
  }

  body {
    overflow-x: hidden;
  }

  .masthead {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
  }

  .masthead__mark {
    width: 52px;
    height: auto;
  }

  .masthead__nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .ghost-btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  .stage {
    justify-content: flex-start;
    padding: 18px 14px 40px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .book-stage {
    perspective: none;
    display: block;
    width: 100%;
  }

  .book {
    width: 100%;
    height: auto;
    transform: none !important;
    transform-style: flat;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 10px 14px;
    box-shadow: none;
  }

  .book__gutter {
    display: none;
  }

  .book::before {
    display: none;
  }

  .book__block {
    inset: 0;
  }

  .book__cover {
    inset: 11px 0 0 !important;
    transition: none !important;
    border-radius: 8px;
    background:
      repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.22) 0 2px, rgba(255, 255, 255, 0) 2px 6px),
      linear-gradient(160deg, #241c15, #14100c);
    box-shadow:
      inset 0 0 0 1px rgba(120, 100, 70, 0.18),
      0 26px 44px -22px rgba(0, 0, 0, 0.95);
  }

  .book__edge {
    display: none;
  }

  .book__topbind {
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 40px;
    z-index: 48;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
  }

  .book__page {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    right: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .book__page--left {
    border-radius: 3px 3px 0 0;
  }

  .book__page--right {
    border-radius: 0 0 3px 3px;
  }

  .book__page--right .sheet::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    z-index: 5;
    background: rgba(40, 30, 18, 0.15);
  }

  .book__lid {
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    transform-style: flat;
    transition: opacity 0.34s var(--ease-soft), visibility 0s linear 0.34s;
    opacity: 0;
  }

  .book.is-closed .book__lid {
    transform: none;
    opacity: 1;
    transition: opacity 0.34s var(--ease-soft), visibility 0s linear 0s;
  }

  .lid__face--inner,
  .lid__coils {
    display: none;
  }

  .lid__face--outer {
    border-radius: 8px;
  }

  .book.is-closed .book__page {
    display: none;
  }

  .book.is-closed {
    min-height: calc(var(--panel-h) * 1.25);
  }

  .book.is-closed .book__topbind {
    z-index: 90;
  }

  .book__shut,
  .book.is-closed .book__shut {
    display: none;
  }

  .book__ribbon {
    top: 4px;
    right: 13%;
    width: 22px;
    height: 46px;
  }

  .book__ribbon:hover,
  .book__ribbon:focus-visible {
    height: 68px;
  }

  .book.is-egg .book__ribbon {
    height: 300px;
  }

  .book.is-egg .book__ribbon:hover,
  .book.is-egg .book__ribbon:focus-visible {
    height: 320px;
  }

  .book__page {
    height: var(--panel-h);
  }

  .book.is-toc .book__page--left {
    height: auto;
    min-height: var(--panel-h);
  }

  .book.is-toc .book__page--right {
    height: calc(var(--panel-h) * 0.72);
  }

  .sheet,
  .sheet__body {
    height: 100%;
  }

  .sheet--identity .sheet__body {
    justify-content: center;
    gap: 12px;
    padding: 22px 20px 22px 40px;
  }

  .sheet--posts .sheet__body {
    padding: 22px 20px;
  }

  .sheet__margin {
    left: 26px;
  }

  .id__desc {
    max-width: none;
  }

  .book__spine,
  .leaf,
  .book__corner {
    display: none;
  }

  .deskfooter {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 14px 30px;
  }

  .legal {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
  }

  .legal__link {
    opacity: 0.55;
  }

  .ctx {
    min-width: 200px;
  }
}

@media (max-width: 420px) {
  .masthead__name {
    font-size: 20px;
  }

  .ghost-btn span:last-child {
    font-size: 11.5px;
  }
}

@media (min-width: 901px) and (max-height: 900px) {
  :root {
    --chrome-top: 62px;
    --chrome-bot: 40px;
    --chrome-pad: 34px;
  }

  .masthead {
    padding: 8px clamp(14px, 3vw, 34px);
  }

  .masthead__mark {
    width: clamp(38px, 3.4vw, 46px);
  }

  .masthead__brand {
    gap: 11px;
  }

  .masthead__name {
    font-size: clamp(18px, 2vw, 23px);
  }

  .masthead__tag {
    font-size: 9.5px;
    letter-spacing: 0.26em;
    margin-top: 3px;
  }

  .icon-btn {
    padding: 7px 11px;
    font-size: 11px;
  }

  .ghost-btn {
    padding: 8px clamp(11px, 1.6vw, 16px);
    font-size: 12px;
  }

  .stage {
    padding: 24px clamp(48px, 6vw, 116px) 10px;
  }

  .deskfooter {
    padding: 10px clamp(14px, 3vw, 34px) 14px;
    font-size: 10px;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  :root {
    --chrome-top: 54px;
    --chrome-bot: 32px;
    --chrome-pad: 22px;
  }

  .masthead {
    padding: 6px clamp(12px, 2.4vw, 28px);
  }

  .masthead__mark {
    width: 40px;
  }

  .masthead__name {
    font-size: 18px;
  }

  .masthead__tag {
    font-size: 9px;
    letter-spacing: 0.22em;
    margin-top: 2px;
  }

  .icon-btn {
    padding: 6px 9px;
    font-size: 10.5px;
  }

  .ghost-btn {
    padding: 7px 12px;
    font-size: 11.5px;
  }

  .stage {
    padding: 16px clamp(40px, 5vw, 96px) 6px;
  }

  .deskfooter {
    padding: 7px clamp(12px, 2.4vw, 28px) 10px;
    font-size: 9.5px;
  }
}


/* ---- options panel -------------------------------------------------------
   Identical on legal, blog and socials, deliberately. Every colour and size is
   literal rather than a var(), because this block used to inherit each site's
   palette and so rendered a different colour and a different height on each of
   them. A settings dialog belongs to the studio, not to the page behind it.

   If you restyle it, restyle it in all three or it drifts again. */
.opt {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.opt[hidden] {
  display: none;
}

.opt__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.opt__panel {
  position: relative;
  width: min(92vw, 360px);
  box-sizing: border-box;
  padding: 22px 22px 18px;
  border-radius: 6px;
  background: #f7efd9;
  border: 1px solid rgba(120, 96, 54, 0.16);
  box-shadow: 0 26px 60px -30px rgba(20, 16, 10, 0.8);
  color: #1c1a16;
}

.opt__head {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1c1a16;
}

.opts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(120, 96, 54, 0.14);
}

.opt-row:last-child {
  border-bottom: 0;
}

.opt__text {
  min-width: 0;
}

.opt__name {
  font-size: 13.5px;
  color: #1c1a16;
}

.opt__ctl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* the switch */
.tickbox {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex: none;
}

.tickbox__box {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid rgba(28, 26, 22, 0.4);
  background: rgba(255, 253, 244, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tickbox__tick {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  color: #456628;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tickbox[aria-checked="true"] .tickbox__tick {
  opacity: 1;
  transform: none;
}

.tickbox[aria-checked="true"] .tickbox__box {
  border-color: #5f8a3a;
  background: rgba(95, 138, 58, 0.14);
}

.tickbox:hover .tickbox__box {
  border-color: rgba(28, 26, 22, 0.7);
}

.tickbox:focus-visible {
  outline: 2px solid #5f8a3a;
  outline-offset: 3px;
  border-radius: 5px;
}

/* the volume dial */
.dial {
  -webkit-appearance: none;
  appearance: none;
  width: 116px;
  height: 20px;
  flex: none;
  background: none;
  cursor: pointer;
}

.dial::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a8842f, rgba(120, 96, 54, 0.24));
}

.dial::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a8842f, rgba(120, 96, 54, 0.24));
}

.dial::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e3c07a, #a8842f);
  border: 1px solid rgba(28, 26, 22, 0.35);
}

.dial::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e3c07a, #a8842f);
  border: 1px solid rgba(28, 26, 22, 0.35);
}

.dial:focus-visible {
  outline: 2px solid #5f8a3a;
  outline-offset: 4px;
}

.dial__val {
  min-width: 2.6ch;
  font-size: 11.5px;
  color: rgba(28, 26, 22, 0.62);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.opt__foot {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(28, 26, 22, 0.62);
}

.opt__credit {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: rgba(28, 26, 22, 0.42);
}

.opt__close {
  margin-top: 16px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 4px;
  border: 1px solid rgba(28, 26, 22, 0.4);
  background: rgba(255, 253, 244, 0.6);
  color: #1c1a16;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.opt__close:hover {
  background: rgba(95, 138, 58, 0.12);
  border-color: #5f8a3a;
}

.opt__close:focus-visible {
  outline: 2px solid #5f8a3a;
  outline-offset: 2px;
}
