/* Welcome gate. Look taken from the paper / blue Georgia / bookshelf design.
   Animate only transform and opacity. No filter or backdrop-filter animation. */
#ws-gate {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: #edebe6;
  color: #141414;
  font: 500 16px Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
  box-sizing: border-box;
}
#ws-gate *, #ws-gate *::before, #ws-gate *::after { box-sizing: border-box; }
#ws-gate button {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  font-family: Arial, sans-serif;
}
html[data-gate="off"] #ws-gate {
  display: none;
}
html[data-gate="on"] {
  overflow: hidden;
}
html[data-gate="on"] body {
  overflow: hidden;
}
.gate-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.14;
  background: url("../img/gate-grain.webp") repeat;
}
.gate-bar,
.gate-foot {
  position: absolute;
  left: 32px;
  right: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gate-bar { top: 0; height: 84px; }
.gate-foot {
  bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.09em;
  font-weight: 600;
  text-transform: uppercase;
  color: #141414;
}
.gate-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gate-wordmark svg { width: 32px; height: 32px; flex: none; }
.gate-wordmark strong {
  font: 700 clamp(14px, 2vw, 22px) Georgia, serif;
  letter-spacing: -0.025em;
}
.gate-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.gate-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid #787770;
  background: transparent;
  color: #141414;
  font: 600 14px Arial, sans-serif;
  cursor: pointer;
}
.gate-access.primary {
  color: #fff;
  background: #1f3fb0;
  border-color: #1f3fb0;
}
.gate-access:focus-visible {
  outline: 3px solid #9260ba;
  outline-offset: 3px;
}
.gate-brand {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  text-align: center;
  color: #1f3fb0;
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
}
.gate-brand b {
  display: block;
  font: italic 26px Georgia, serif;
  font-weight: 500;
}
.gate-brand small {
  display: block;
  font: 700 9px Arial, sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.gate-nav {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--gate-h, min(46vh, 31vw)) / 2 - 82px);
  transform: translateX(-50%);
  display: flex;
  isolation: isolate;
  z-index: 5;
}
.gate-nav button {
  border: 1px solid #141414;
  background: transparent;
  color: inherit;
  font: 600 11px/1 Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-left: -1px;
  cursor: pointer;
  white-space: nowrap;
}
.gate-nav button[aria-current="true"] { color: #fff; }
.gate-indicator {
  position: absolute;
  inset: 0 auto 0 0;
  background: #1f3fb0;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
#gate-shelf {
  position: absolute;
  top: calc(50% - var(--gate-h, min(46vh, 31vw)) / 2 - 40px);
  width: 100%;
  height: calc(var(--gate-h, min(46vh, 31vw)) + 80px);
  perspective: 2200px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}
#gate-stage,
.gate-book {
  position: absolute;
  transform-style: preserve-3d;
  width: 0;
  height: 0;
}
#gate-stage { top: 50%; left: 50%; }
.gate-face {
  position: absolute;
  top: calc(var(--gate-h, min(46vh, 31vw)) / -2);
  height: var(--gate-h, min(46vh, 31vw));
  border-radius: 2px;
  backface-visibility: hidden;
  overflow: hidden;
}
.gate-face:after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--shade, 0);
  pointer-events: none;
}
.gate-front {
  left: calc(var(--gate-d, 140px) / -2);
  width: var(--gate-d, 140px);
  transform: rotateY(90deg) translateZ(calc(var(--gate-ws, 28px) / 2));
  background-size: 100% 100%;
  background-color: #2a2830;
  box-shadow: 0 30px 60px -28px rgba(23, 18, 29, 0.55);
}
.gate-spine {
  left: calc(var(--gate-ws, 28px) / -2);
  width: var(--gate-ws, 28px);
  transform: translateZ(calc(var(--gate-d, 140px) / 2));
  background: linear-gradient(90deg, #101014, #36343a 12%, #1d1b20 32%, #17161a 90%, #37343c);
  color: #f5efdf;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12% 0;
}
.gate-spine b {
  font: 500 calc(var(--gate-ws, 28px) * 0.52) Georgia, serif;
  color: #cab3dc;
  border-bottom: 1px solid #766481;
  padding: 8px 0;
}
.gate-spine strong {
  writing-mode: vertical-rl;
  font: 500 calc(var(--gate-ws, 28px) * 0.46) Georgia, serif;
  letter-spacing: 0.04em;
}
.gate-spine small {
  writing-mode: vertical-rl;
  letter-spacing: 0.13em;
  font-size: clamp(8px, 0.68vw, 12px);
  margin-bottom: 9px;
}
.gate-caption {
  position: absolute;
  top: calc(50% + var(--gate-h, min(46vh, 31vw)) / 2 + 32px);
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 3;
}
.gate-caption h1 {
  font: 400 34px/1.15 Georgia, serif;
  margin: 0;
  color: #141414;
}
.gate-caption .gate-sub {
  margin: 8px 0 0;
  color: #1f3fb0;
  font: 600 11px Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.gate-arrow {
  position: absolute;
  top: calc(50% + var(--gate-h, min(46vh, 31vw)) / 2 + 27px);
  width: 44px;
  height: 44px;
  font-size: 23px;
  z-index: 5;
  background: transparent;
  border: 0;
  color: #141414;
  cursor: pointer;
}
.gate-prev { left: 18px; }
.gate-next { right: 18px; }
.gate-guest-link {
  font: 600 11px Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1f3fb0;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-motion="off"] .gate-indicator,
html[data-motion="off"] .gate-book {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .gate-indicator { transition-duration: 0s; }
}
@media (max-width: 680px) {
  :root, #ws-gate { --gate-h: min(58vw, 38svh); }
  .gate-bar, .gate-foot { left: 10px; right: 10px; }
  .gate-bar { height: auto; min-height: 56px; padding-top: 10px; flex-wrap: wrap; }
  .gate-brand { display: none; }
  .gate-wordmark strong { display: none; }
  .gate-nav { top: calc(50% - var(--gate-h, min(58vw, 38svh)) / 2 - 72px); }
  .gate-caption h1 { font-size: 24px; padding: 0 48px; }
  .gate-access { min-height: 38px; padding: 7px 10px; font-size: 13px; }
  .gate-wordmark svg { width: 24px; height: 24px; }
  .gate-actions { width: 100%; justify-content: flex-end; }
}
@media (max-height: 480px) {
  :root, #ws-gate { --gate-h: 36vh; }
  .gate-bar { height: 48px; }
  .gate-brand small { display: none; }
  .gate-nav { top: calc(50% - 18vh - 39px); }
  .gate-caption { top: calc(50% + 18vh + 12px); }
  .gate-caption h1 { font-size: 22px; }
  .gate-foot { bottom: 8px; }
}

.gate-book { cursor: pointer; }
#gate-detail {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #f6e2cc;
  color: #3f1224;
  overflow: hidden;
  color-scheme: light;
}
#gate-detail[hidden] { display: none; }
.gate-page-bar {
  position: relative;
  z-index: 2;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.gate-page-wordmark {
  font: italic 22px/1 Georgia, "Times New Roman", serif;
  color: #3f1224;
  letter-spacing: -0.01em;
}
.gate-page-wordmark strong {
  font-style: italic;
  font-weight: 700;
}
.gate-page-close {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  color: #3f1224;
  font: 400 15px/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
  padding: 8px 0;
}
.gate-page-close:focus-visible,
.gate-page-guest:focus-visible,
.gate-page-link:focus-visible {
  outline: 3px solid #9260ba;
  outline-offset: 3px;
}
.gate-page-rule {
  height: 1px;
  margin: 0 36px;
  background: #5a2a36;
  opacity: 0.45;
}
.gate-page-body {
  display: flex;
  align-items: stretch;
  height: calc(100% - 68px);
  min-height: 0;
}
.gate-page-photo {
  flex: 0 0 46%;
  max-width: 46%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
 .gate-page-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
 .gate-page-copy {
  flex: 1;
  max-width: 620px;
  padding: 20px 7vw 40px 2.4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gate-page-kicker {
  font: 600 11px/1 Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f1224;
  margin: 0 0 10px;
}
#gate-detail-title {
  font: 400 clamp(40px, 5.2vw, 68px)/1.05 Georgia, "Times New Roman", serif;
  margin: 0 0 12px;
  color: #3f1224;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
 .gate-page-meta {
  margin: 0 0 22px;
  font: 400 17px/1.4 Georgia, "Times New Roman", serif;
  color: #3f1224;
}
.gate-page-fact-label {
  font: 600 11px/1 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
#gate-detail-fact {
  margin: 0 0 18px;
  font: 400 17px/1.45 Georgia, "Times New Roman", serif;
}
 .gate-page-quote {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}
#gate-detail-quote {
  display: inline;
  margin: 0;
  font: italic 17px/1.5 Georgia, "Times New Roman", serif;
}
#gate-detail-author {
  display: inline;
  margin-left: 8px;
  font: 400 16px/1.5 Georgia, "Times New Roman", serif;
  font-style: normal;
  white-space: nowrap;
}
 .gate-page-blank {
  font: 400 32px/1.15 Georgia, "Times New Roman", serif;
  margin: 0 0 14px;
  color: #3f1224;
}
 .gate-page-tip {
  margin: 0 0 10px;
  font: 400 16.5px/1.5 Georgia, "Times New Roman", serif;
  max-width: 36em;
}
.gate-page-tip strong { font-weight: 700; }
 .gate-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}
 .gate-page-guest {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: #44122a;
  color: #fff;
  font: 500 16px/1 Georgia, "Times New Roman", serif;
  padding: 16px 26px;
  cursor: pointer;
  border-radius: 3px;
  min-height: 50px;
}
.gate-page-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  color: #3f1224;
  font: 400 16px/1 Georgia, "Times New Roman", serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 0;
}
#ws-gate.is-opening .gate-bar,
#ws-gate.is-opening .gate-brand,
#ws-gate.is-opening .gate-nav,
#ws-gate.is-opening .gate-caption,
#ws-gate.is-opening .gate-arrow,
#ws-gate.is-opening .gate-foot,
#ws-gate.is-opening .gate-grain {
  opacity: 0;
  pointer-events: none;
}
#gate-open-fx {
  position: absolute;
  inset: 0;
  z-index: 9;
  perspective: 1600px;
  pointer-events: none;
  overflow: hidden;
}
#gate-open-fx[hidden] { display: none; }
.gofx-book {
  position: absolute;
  transform-style: preserve-3d;
  transform-origin: left center;
}
.gofx-page,
.gofx-cover {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.gofx-page { background: #f7f1e8; }
.gofx-shade {
  position: absolute;
  inset: 0;
  background: #1a0a10;
  opacity: 0.4;
  pointer-events: none;
}
.gofx-cover {
  background-color: #1a1618;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform-origin: left center;
  box-shadow: 0 18px 40px rgba(20, 10, 15, 0.35);
}
.gofx-wipe {
  position: absolute;
  inset: 0;
  background: #f6e2cc;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}
@media (max-width: 680px) {
  .gate-page-bar { height: 52px; padding: 0 16px; flex-shrink: 0; }
  .gate-page-wordmark { font-size: 18px; }
  .gate-page-rule { margin: 0 16px; flex-shrink: 0; }
  #gate-detail {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }
  .gate-page-body {
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .gate-page-photo {
    flex: none;
    max-width: none;
    width: 100%;
    height: 28vh;
    max-height: 230px;
  }
  .gate-page-photo img {
    object-fit: contain;
    object-position: center bottom;
    height: 100%;
    width: 100%;
    background: #f6e2cc;
  }
  .gate-page-copy {
    max-width: none;
    padding: 10px 18px 18px;
    justify-content: flex-start;
  }
  #gate-detail-title { font-size: 32px; white-space: nowrap; }
  .gate-page-meta { margin-bottom: 12px; }
  #gate-detail-fact { margin-bottom: 12px; }
  .gate-page-quote { margin-bottom: 14px; }
  #gate-detail-author { white-space: normal; }
  .gate-page-blank { font-size: 22px; margin-bottom: 8px; }
  .gate-page-tip { margin-bottom: 8px; font-size: 15px; }
  .gate-page-guest { width: 100%; }
  .gate-page-actions {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 3;
    gap: 12px 20px;
    margin-top: 12px;
    padding-top: 8px;
    padding-bottom: 4px;
    background: #f6e2cc;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ws-gate.is-opening .gate-bar,
  #ws-gate.is-opening .gate-brand,
  #ws-gate.is-opening .gate-nav,
  #ws-gate.is-opening .gate-caption,
  #ws-gate.is-opening .gate-arrow,
  #ws-gate.is-opening .gate-foot,
  #ws-gate.is-opening .gate-grain { transition: none; }
}
/* gate-open-v2 */
