:root {
  --nav-width: 56px;
  --header-overlap: 8px;
  --content-gap: 20px;
  --block-width: 88vw;
  --content-right-gap: -24px;
  --line-width: 1px;
  --ink: #111;
  --highlight: limegreen;
  --paper: #fff3d6;
  --font-scale: 1;
  --quote-font-size: calc(34px * var(--font-scale));
  --quote-font-weight: 300;
  --quote-mark-size: calc(160px * var(--font-scale));
  --quote-mark-left: -10px;
  --quote-mark-top: -20px;
  --quote-mark-color: var(--highlight);
  --accordion-right: calc(50% - (var(--block-width) / 2) + var(--nav-width));
  --accordion-right-pad: calc(var(--accordion-right) + 3vw - 2px);
  --page-swipe-duration: 680ms;
  --page-swipe-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
  cursor: none;
}

::selection {
  background: limegreen;
  color: #fff3d6;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image: none;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  cursor: none;
  overflow-x: hidden;
}

body.content-page {
  scroll-behavior: smooth;
}

body.page-from-left {
  --page-swipe-offset: -12vw;
}

body.page-from-right {
  --page-swipe-offset: 12vw;
}

.page-swipe-layer {
  width: 100%;
}

body.page-swipe-ready .page-swipe-layer {
  opacity: 0;
  transform: translateX(var(--page-swipe-offset));
  transition: none;
}

body.page-swipe-active .page-swipe-layer {
  opacity: 1;
  transform: translateX(0);
  transition: transform var(--page-swipe-duration) var(--page-swipe-ease),
    opacity var(--page-swipe-duration) var(--page-swipe-ease);
  will-change: transform, opacity;
}

body.page-swipe-leave .page-swipe-layer {
  opacity: 0;
  transform: translateX(var(--page-swipe-offset));
  transition: transform var(--page-swipe-duration) var(--page-swipe-ease),
    opacity var(--page-swipe-duration) var(--page-swipe-ease);
  will-change: transform, opacity;
}

body.page-swipe-ready .panel-image-box,
body.page-swipe-active .panel-image-box,
body.page-swipe-leave .panel-image-box {
  animation-play-state: paused;
}

body.page-from-left.page-swipe-ready .navbar,
body.page-from-left.page-swipe-active .navbar,
body.page-from-left.page-swipe-leave .navbar {
  background-color: var(--paper);
}


a,
button,
summary {
  cursor: none;
}

.accordion {
  margin-left: var(--accordion-right);
  width: calc(100% - var(--accordion-right));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.accordion-item {
  border-bottom: var(--line-width) solid #000;
  margin: 0;
  padding: 0;
  width: 100%;
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-left: 0;
  width: 100%;
  padding: 16px var(--accordion-right-pad) 16px 24px;
  font-size: calc(26px * var(--font-scale));
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary span:first-child {
  padding: 0;
  transition: color 260ms ease;
}

.accordion-item summary span:last-child {
  padding: 0;
}

.accordion-arrow {
  display: inline-flex;
  position: relative;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.accordion-item[open] .accordion-arrow {
  transform: rotate(90deg);
}

.material-symbols-outlined {
  font-variation-settings: "opsz" 24, "wght" 400, "FILL" 0, "GRAD" 0;
  font-size: calc(18px * var(--font-scale));
  line-height: 1;
}

.accordion-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0;
  row-gap: 16px;
  padding: 8px 0 0 24px;
  align-items: start;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 600ms ease, opacity 600ms ease;
}

.panel-image {
  position: relative;
  min-height: 180px;
  height: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 760ms ease-in, transform 760ms ease-in;
}

.panel-image-box {
  background-color: #f2e0b1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
  width: 100%;
  height: 100%;
  will-change: background-position;
}

.panel-image-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 243, 214, 0) 58%, rgba(255, 243, 214, 0.45) 86%, #fff3d6 100%),
    linear-gradient(180deg, rgba(255, 243, 214, 0) 58%, rgba(255, 243, 214, 0.45) 86%, #fff3d6 100%);
  pointer-events: none;
}

.panel-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  padding-bottom: 24px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 720ms ease-in, transform 720ms ease-in;
  max-width: 600px;
  width: min(600px, 100%);
}

.panel-info > .panel-text {
  width: 100%;
}

.accordion-panel.panel-visible .panel-info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 220ms;
}

.accordion-panel.panel-visible .panel-image {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 520ms;
}

.page-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px calc(50% - (var(--block-width) / 2) + var(--nav-width));
  width: calc(100% - (50% - (var(--block-width) / 2) + var(--nav-width)));
  color: #111;
  font-family: "Noto Sans Symbols 2", "Fraunces", serif;
  font-size: calc(26px * var(--font-scale));
  letter-spacing: 0.08em;
}

.accordion:not(:has(details[open])) + .page-ornament {
  margin-top: 6px;
}

.page-ornament img {
  width: 120px;
  height: auto;
}

.panel-text {
  margin: 0;
  font-size: calc(18px * var(--font-scale));
  line-height: 1.5;
  font-weight: 300;
}

.more-button {
  align-self: flex-end;
  border: var(--line-width) solid #000;
  background: transparent;
  padding: 8px 18px;
  font-size: calc(14px * var(--font-scale));
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: inherit;
  text-decoration: none;
  cursor: none;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.more-button:hover {
  background: var(--highlight);
  color: #fff3d6;
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.45);
  animation: cursor-pulse 900ms ease-in-out infinite;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: var(--highlight);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: transform 120ms ease, opacity 120ms ease;
}

.custom-cursor.is-hovering {
  animation: cursor-pulse 900ms ease-in-out infinite;
}

@keyframes cursor-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(50, 205, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(50, 205, 50, 0);
  }
}

@keyframes pan-vertical {
  0%,
  100% {
    background-position: 50% 65%;
  }
  50% {
    background-position: 50% 35%;
  }
}

@keyframes pan-horizontal {
  0%,
  100% {
    background-position: 40% 50%;
  }
  50% {
    background-position: 60% 50%;
  }
}


.panel-image-box.pan-vertical {
  animation: pan-vertical 28s ease-in-out infinite;
}

.panel-image-box.pan-horizontal {
  animation: pan-horizontal 26s ease-in-out infinite;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: calc(50% - (var(--block-width) / 2));
  bottom: 0;
  width: var(--nav-width);
  border-right: var(--line-width) solid #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: var(--paper);
  z-index: 10;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * (50vw - (var(--block-width) / 2)));
  width: calc(50vw - (var(--block-width) / 2));
  background: var(--paper);
  pointer-events: none;
}

body.content-page .navbar::before {
  background: linear-gradient(to bottom, transparent 0 260px, var(--paper) 260px 100%);
}

body.content-page .navbar {
  background: linear-gradient(to bottom, transparent 0 260px, var(--paper) 260px 100%);
}

body.page-from-left.content-page .navbar,
body.page-from-left.content-page .navbar::before {
  background: var(--paper);
}

.nav-title,
.nav-links a {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-decoration: none;
  color: var(--ink);
}

.nav-title {
  font-size: calc(32px * var(--font-scale));
  font-weight: 500;
}

.nav-title.is-outline {
  color: var(--ink);
  opacity: 0.1;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: calc(18px * var(--font-scale));
}

.nav-links a {
  transition: opacity 180ms ease, color 260ms ease;
}

.nav-title:hover {
  color: var(--highlight);
}

.nav-links a:hover {
  opacity: 1;
}

.accordion-item summary:hover span:first-child,
.nav-links a:hover {
  color: var(--highlight);
}

.content-shell {
  margin-left: calc(50% - (var(--block-width) / 2) + var(--nav-width));
  width: calc(100% - (50% - (var(--block-width) / 2) + var(--nav-width)));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.content-header {
  position: relative;
  width: 100%;
  padding: 200px 24px 56px;
  padding-left: var(--content-gap);
  z-index: 0;
  background-image: url("images/the-two-cultures_zoya-yasmine_4500x3182.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  margin-left: -10px;
  width: calc(100% + 10px);
  padding-left: calc(var(--content-gap) + 10px);
}

.vita-header {
  padding-top: 260px;
  padding-bottom: 96px;
  background-image: url("JASCHA-BAREIS-PORTRAIT.png");
  background-position: right 50%;
  margin-left: 0;
  width: 100%;
  padding-left: var(--content-gap);
}

.content-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--header-overlap));
  right: 0;
  background: transparent;
  z-index: -1;
}

.content-title {
  margin: 0 0 8px;
  font-size: calc(36px * var(--font-scale));
  font-weight: 600;
}

.content-intro {
  margin: 0 0 24px;
  max-width: 560px;
  font-size: calc(30px * var(--font-scale));
  line-height: 1.2;
  font-weight: 300;
}

.content-body {
  width: 100%;
  max-width: var(--block-width);
  padding: 32px 24px 64px;
  padding-left: var(--content-gap);
  padding-right: var(--content-right-gap);
  font-weight: 300;
}

.scroll-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.page-swipe-ready .page-swipe-layer,
  body.page-swipe-active .page-swipe-layer,
  body.page-swipe-leave .page-swipe-layer {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.page-swipe-ready .panel-image-box,
  body.page-swipe-active .panel-image-box,
  body.page-swipe-leave .panel-image-box {
    animation-play-state: running;
  }

  .scroll-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .vita-letter {
    animation: none;
  }
}

@media (max-width: 720px) {
  .secondary-text {
    column-count: 1;
  }
}

.content-body h2 {
  margin: 20px 0 12px;
  font-size: calc(28px * var(--font-scale));
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.content-body h2::after {
  content: "";
  display: block;
  width: 80%;
  height: var(--line-width);
  background: #000;
  margin-top: 6px;
}

.content-body p {
  margin: 0 0 0px;
  max-width: 100%;
  font-size: calc(16px * var(--font-scale));
  line-height: 1.2;
  font-weight: 300;
}

.secondary-text {
  column-count: 2;
  column-gap: 24px;
  max-width: 100%;
  margin: 8px 0 18px;
}

.secondary-text p {
  margin: 0 0 12px;
  break-inside: avoid;
}

.content-body p a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.content-body p a:hover {
  color: var(--highlight);
}

.content-body p a.footnote-link {
  text-decoration: none;
  text-underline-offset: 0;
}

.media-note {
  margin: 8px 0 18px;
  max-width: 100%;
  font-size: calc(16px * var(--font-scale));
  line-height: 1.3;
  font-weight: 300;
}

.vita-page .content-body {
  padding-top: 0;
}

.vita-hero {
  position: relative;
  display: block;
  padding: 0 0 24px;
  background: transparent;
  margin-bottom: 28px;
  margin-top: -36px;
  z-index: 2;
}

.vita-hero::before {
  content: none;
}

.vita-portrait {
  position: relative;
  overflow: hidden;
  justify-self: end;
  align-self: start;
  grid-column: 2;
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin-left: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.vita-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 243, 214, 0) 60%, var(--paper) 100%);
  pointer-events: none;
  z-index: 2;
}

.vita-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 243, 214, 0) 55%, var(--paper) 100%);
  pointer-events: none;
  z-index: 2;
}

.vita-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  object-position: top right;
}

.vita-float-headline {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  margin: 8px 0 12px;
  font-size: calc(46px * var(--font-scale));
  font-weight: 500;
}

.vita-copy-page .vita-hero {
  margin-top: 0;
  padding-top: 16px;
}

.vita-copy-name {
  margin: 0 0 6px;
  font-size: calc(14px * var(--font-scale));
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vita-copy-title {
  margin-bottom: 14px;
}

.vita-traditional-header {
  width: 100%;
  max-width: var(--block-width);
  padding: 48px 24px 16px;
  padding-left: var(--content-gap);
  padding-right: var(--content-right-gap);
}

.vita-copy2-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 24px 32px;
  padding-left: var(--content-gap);
  padding-right: var(--content-right-gap);
  border-top: var(--line-width) solid #000;
  border-bottom: var(--line-width) solid #000;
  background: linear-gradient(135deg, #fff7e4 0%, #f6e2b6 45%, #fff7e4 100%);
  margin-bottom: 32px;
}

.vita-copy2-image {
  border: var(--line-width) solid #000;
  padding: 10px;
  background: #f4e2b8;
  box-shadow: 8px 8px 0 #000;
}

.vita-copy2-image img {
  width: 100%;
  height: auto;
  display: block;
  border: var(--line-width) solid #000;
}

.vita-copy2-text .vita-intro {
  max-width: 560px;
}

@media (max-width: 860px) {
  .vita-copy2-hero {
    grid-template-columns: 1fr;
  }

  .vita-copy2-image {
    max-width: 320px;
  }
}

.vita-toggle-group {
  position: fixed;
  right: 18px;
  bottom: 58px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.vita-toggle {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.6);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-decoration: none;
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.vita-toggle:hover {
  background: var(--highlight);
  color: #fff3d6;
}

.vita-letter {
  display: inline-block;
  --float: -6px;
  --r: -2deg;
  animation: vita-letter-idle 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.12s);
  animation-play-state: paused;
  will-change: transform;
}

.vita-page .vita-letter {
  opacity: 0;
  transition: opacity 220ms ease;
}

.vita-page.vita-name-ready .vita-letter {
  opacity: 1;
  animation-play-state: running;
}

.vita-float-headline.is-wiggling .vita-letter {
  animation: vita-letter-wiggle 520ms ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.06s);
}

@keyframes vita-letter-wiggle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  35% {
    transform: translateY(-10px) rotate(calc(var(--r) * 2)) scale(1.04);
  }
  70% {
    transform: translateY(6px) rotate(calc(var(--r) * -1.6)) scale(0.98);
  }
}

.vita-space {
  display: inline-block;
  width: 10px;
}

.vita-fly-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.vita-fly-letter {
  position: absolute;
  color: var(--ink);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.vita-name-break {
  display: none;
}

@keyframes vita-letter-idle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(var(--float)) rotate(var(--r));
  }
}

@keyframes vita-letter-break {
  0% {
    transform: translateY(-18px) rotate(-12deg) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

.vita-overline {
  margin: 0 0 8px;
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.vita-title {
  margin-bottom: 12px;
}

.vita-intro {
  margin: 0;
  font-size: calc(20px * var(--font-scale));
  line-height: 1.4;
  max-width: 560px;
}

.vita-section {
  margin: 32px 0;
}

.vita-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.vita-list li {
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.vita-item-title {
  font-size: calc(18px * var(--font-scale));
  font-weight: 600;
}

.vita-item-meta {
  font-size: calc(14px * var(--font-scale));
  font-weight: 300;
}

.vita-link-note {
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #000;
  padding-bottom: 1px;
}

.vita-term {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: var(--line-width) solid #000;
  font-size: calc(11px * var(--font-scale));
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vita-visit-list {
  position: relative;
  display: grid;
  --visit-gap: 28px;
  gap: var(--visit-gap);
  margin-top: 24px;
  padding-left: 28px;
}

.vita-visit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.vita-visit::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #000;
}

.vita-visit::after {
  content: "";
  position: absolute;
  left: -22px;
  top: 13px;
  width: 2px;
  height: calc(100% + var(--visit-gap));
  background: #000;
}

.vita-visit:last-child::after {
  display: none;
}

.vita-visit-date {
  font-size: calc(12px * var(--font-scale));
  font-weight: 500;
}

.vita-visit-role {
  font-size: calc(14px * var(--font-scale));
  font-weight: 300;
}

.vita-visit-establishment {
  font-size: calc(18px * var(--font-scale));
  font-weight: 600;
}

.vita-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.vita-tags span {
  border: var(--line-width) solid #000;
  padding: 6px 10px;
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff3d6;
}

@media (max-width: 720px) {
  .vita-float-headline {
    flex-wrap: nowrap;
    font-size: calc(38px * var(--font-scale));
  }

  .vita-name-break {
    display: none;
  }

  .vita-letter {
    animation: vita-letter-idle 3.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.12s);
  }

  .vita-visit-list {
    margin-top: 12px;
  }

  .vita-visit {
    padding: 2px 0;
  }
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-top: 12px;
}

.contact-label {
  font-size: calc(14px * var(--font-scale));
  letter-spacing: 0.04em;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: var(--line-width) solid #000;
  background: #fff3d6;
  padding: 10px 12px;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: calc(16px * var(--font-scale));
}

.contact-input:focus-visible,
.contact-textarea:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-submit {
  justify-self: end;
  border: var(--line-width) solid #000;
  background: transparent;
  padding: 8px 18px;
  font-size: calc(14px * var(--font-scale));
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  cursor: none;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.contact-submit:hover {
  background: var(--highlight);
  color: #fff3d6;
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.45);
}

.media-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
  margin: 12px 0 32px;
}

.media-pair img {
  width: 100%;
  height: auto;
  display: block;
  border: var(--line-width) solid var(--highlight);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.35);
}

.media-text {
  max-width: 420px;
  font-weight: 300;
}

.media-text p {
  margin: 0;
  font-size: calc(18px * var(--font-scale));
  line-height: 1.2;
}

.media-pair.is-reversed {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.media-pair.is-reversed img {
  order: 2;
}

.media-pair.is-reversed .media-text {
  order: 1;
  text-align: right;
  justify-self: end;
}

.image-slider {
  position: relative;
  margin: 10px 0 36px;
  padding: 0px 42px 18px 14px;
  overflow: hidden;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.slider-track::-webkit-scrollbar {
  height: 0;
}

.slider-track::-webkit-scrollbar-thumb {
  background: transparent;
}

.slider-track img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  scroll-snap-align: start;
  border: var(--line-width) solid var(--highlight);
  box-shadow: 0 12px 22px rgba(50, 205, 50, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}

.slider-track img:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 32px rgba(50, 205, 50, 0.28);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.slider-arrow .material-symbols-outlined {
  color: #fff3d6;
  font-size: calc(18px * var(--font-scale));
}

.slider-arrow-left .material-symbols-outlined {
  transform: rotate(180deg);
}

.slider-arrow-left {
  left: 8px;
}

.slider-arrow-right {
  right: 10px;
}

.slider-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 9998;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  width: min(92vw, 960px);
  max-height: 80vh;
  object-fit: contain;
  border: var(--line-width) solid var(--highlight);
  box-shadow: 0 24px 48px rgba(50, 205, 50, 0.28);
  background: #fff9e6;
}

.lightbox-image.is-swipe-next {
  animation: lightbox-swipe-next 320ms ease;
}

.lightbox-image.is-swipe-prev {
  animation: lightbox-swipe-prev 320ms ease;
}

@keyframes lightbox-swipe-next {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lightbox-swipe-prev {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--line-width) solid var(--highlight);
  background: #fff3d6;
  font-size: calc(22px * var(--font-scale));
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 22px rgba(50, 205, 50, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, opacity 200ms ease;
  opacity: 0.85;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
  opacity: 1;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-nav .material-symbols-outlined {
  color: #fff3d6;
  font-size: calc(18px * var(--font-scale));
  line-height: 1;
}

.lightbox-prev .material-symbols-outlined {
  transform: rotate(180deg);
}

.content-page .media-pair img,
.content-page .slider-track img,
.content-page .slider-track img:hover,
.content-page .slider-arrow,
.content-page .slider-arrow:hover,
.content-page .lightbox-image,
.content-page .lightbox-close,
.content-page .lightbox-nav {
  box-shadow: none;
}


.content-quote {
  margin: 24px 0 32px;
  padding: 18px 20px 18px 18px;
  font-size: var(--quote-font-size);
  font-style: italic;
  font-weight: var(--quote-font-weight);
  max-width: 640px;
  position: relative;
  z-index: 0;
}

.content-quote::before {
  content: "\201C";
  position: absolute;
  left: var(--quote-mark-left);
  top: var(--quote-mark-top);
  font-size: var(--quote-mark-size);
  line-height: 1;
  color: var(--quote-mark-color);
  z-index: -1;
}

.content-ornament {
  width: min(420px, 100%);
  margin: 24px 0 32px;
  display: flex;
  justify-content: center;
}

.content-ornament img {
  width: 100%;
  height: auto;
  display: block;
}

.video-embed {
  position: relative;
  margin: 12px 0 36px;
  padding: 0;
  width: min(720px, 100%);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  border-radius: 8px;
}

.video-embed video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
  box-shadow: none;
  cursor: pointer;
  border-radius: 8px;
}

.video-embed video::-webkit-media-controls {
  display: none !important;
}

.audio-embed {
  margin: 12px 0 36px;
  width: min(720px, 100%);
  position: relative;
}

.audio-embed audio {
  display: none;
}

.media-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff3d6;
  background: rgba(0, 0, 0, 0.6);
  font-size: calc(18px * var(--font-scale));
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  z-index: 5;
  gap: 2px;
}

.media-error-face {
  font-size: calc(32px * var(--font-scale));
  font-weight: 700;
  line-height: 1;
}

.media-error-text {
  font-size: calc(14px * var(--font-scale));
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.video-embed .media-error,
.audio-embed .media-error {
  border-radius: 8px;
}

.video-embed.has-error .media-error,
.audio-embed.has-error .media-error {
  opacity: 1;
}

.video-embed.has-error .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.audio-header {
  padding: 8px 12px 10px;
  background: #000;
  border-radius: 8px 8px 0 0;
}

.audio-controls {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #000;
  border-radius: 0 0 8px 8px;
}

.audio-btn {
  border: 0;
  background: #000;
  color: #fff3d6;
  padding: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.audio-btn:active {
  transform: translate(2px, 2px);
}

.audio-icon {
  font-variation-settings: "opsz" 24, "wght" 500, "FILL" 1, "GRAD" 0;
  font-size: calc(20px * var(--font-scale));
  line-height: 1;
}

.audio-time {
  color: #fff3d6;
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.04em;
  font-weight: 600;
}

.audio-title {
  color: #fff3d6;
  font-size: calc(20px * var(--font-scale));
  letter-spacing: 0.04em;
  font-weight: 400;
}

.audio-progress {
  position: relative;
  height: 18px;
  background: #2b2b2b;
  cursor: pointer;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--highlight);
  transition: width 120ms linear;
}

.audio-progress:focus-visible {
  outline: 2px dashed #fff3d6;
  outline-offset: 3px;
}

.audio-volume-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.audio-volume-range {
  width: 0;
  height: 16px;
  background: transparent;
  appearance: none;
  cursor: pointer;
  opacity: 0;
  transition: width 240ms ease, opacity 240ms ease;
}

.audio-volume-group:hover .audio-volume-range,
.audio-volume-group:focus-within .audio-volume-range {
  width: 120px;
  opacity: 1;
}

.audio-volume-range::-webkit-slider-runnable-track {
  height: 6px;
  background: #111;
  border: 1px solid #fff3d6;
}

.audio-volume-range::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--highlight);
  border: 1px solid #fff3d6;
  margin-top: -4px;
}

.audio-volume-range::-moz-range-track {
  height: 6px;
  background: #111;
  border: 1px solid #fff3d6;
}

.audio-volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--highlight);
  border: 1px solid #fff3d6;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  background-position: center;
  background-size: cover;
  opacity: 1;
  transition: opacity 360ms ease;
  z-index: 2;
  border-radius: 8px;
}

.video-embed.has-played .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-overlay-play {
  width: 72px;
  height: 72px;
  border: 2px solid #fff3d6;
  background: rgba(0, 0, 0, 0.6);
  color: #fff3d6;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
}

.video-icon-lg {
  font-size: calc(40px * var(--font-scale));
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 360ms ease, opacity 360ms ease;
  z-index: 3;
  border-radius: 0 0 8px 8px;
}

.video-embed:hover .video-controls,
.video-embed:focus-within .video-controls {
  transform: translateY(0);
  opacity: 1;
}

.video-embed.is-fullscreen .video-controls {
  transform: translateY(0);
  opacity: 1;
}

.video-embed.is-fullscreen.is-idle .video-controls {
  transform: translateY(100%);
  opacity: 0;
}

.video-btn {
  border: 0;
  background: #000;
  color: #fff3d6;
  padding: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.video-icon {
  font-variation-settings: "opsz" 24, "wght" 500, "FILL" 1, "GRAD" 0;
  font-size: calc(20px * var(--font-scale));
  line-height: 1;
}

.video-btn:active {
  transform: translate(2px, 2px);
}

.video-time {
  color: #fff3d6;
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.04em;
  font-weight: 600;
}

.video-progress {
  position: relative;
  height: 18px;
  background: #2b2b2b;
  cursor: pointer;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--highlight);
  transition: width 120ms linear;
}

.video-progress:focus-visible {
  outline: 2px dashed #fff3d6;
  outline-offset: 3px;
}

.video-volume-range {
  width: 0;
  height: 16px;
  background: transparent;
  appearance: none;
  cursor: pointer;
  opacity: 0;
  transition: width 240ms ease, opacity 240ms ease;
}

.video-volume-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.video-volume-group:hover .video-volume-range,
.video-volume-group:focus-within .video-volume-range {
  width: 120px;
  opacity: 1;
}

.video-volume-range::-webkit-slider-runnable-track {
  height: 6px;
  background: #111;
  border: 1px solid #fff3d6;
}

.video-volume-range::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--highlight);
  border: 1px solid #fff3d6;
  margin-top: -4px;
}

.video-volume-range::-moz-range-track {
  height: 6px;
  background: #111;
  border: 1px solid #fff3d6;
}

.video-volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--highlight);
  border: 1px solid #fff3d6;
}

.video-fullscreen {
  margin-left: 4px;
}

.deck-embed {
  margin: 12px 0 36px;
  width: min(720px, 100%);
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.deck-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.deck-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.deck-viewer {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0d0d0d;
  transform-origin: top left;
  transform: scale(var(--deck-scale, 1));
}

.deck-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff3d6;
  font-size: calc(14px * var(--font-scale));
  font-weight: 600;
  letter-spacing: 0.08em;
  gap: 6px;
  transition: opacity 240ms ease;
  z-index: 2;
}

.deck-embed.has-loaded .deck-fallback {
  opacity: 0;
  pointer-events: none;
}

.deck-fallback-face {
  font-size: calc(30px * var(--font-scale));
  letter-spacing: 0;
}

.deck-fallback-link {
  color: #fff3d6;
  text-decoration: none;
  border-bottom: 1px solid #fff3d6;
  padding-bottom: 2px;
}

.deck-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #000;
  border-radius: 0 0 8px 8px;
}

.deck-btn {
  border: 0;
  background: #000;
  color: #fff3d6;
  padding: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}

.deck-btn:active {
  transform: translate(2px, 2px);
}

.deck-icon {
  font-variation-settings: "opsz" 24, "wght" 500, "FILL" 1, "GRAD" 0;
  font-size: calc(20px * var(--font-scale));
  line-height: 1;
}

.deck-icon-flip {
  transform: rotate(180deg);
}

.deck-slide,
.deck-zoom-level {
  color: #fff3d6;
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.08em;
  font-weight: 600;
}

.deck-slide {
  margin-right: auto;
}

.deck-embed.is-fullscreen .deck-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
}

.reference-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  counter-reset: reference-item;
}

.reference-item {
  padding: 5px 0 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  counter-increment: reference-item;
  border-radius: 6px;
  scroll-margin-top: 120px;
}

.reference-link {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: color 200ms ease;
}

.reference-link::before {
  content: "[" counter(reference-item) "]";
  font-size: calc(12px * var(--font-scale));
  color: var(--ink);
  opacity: 0.6;
}

.reference-title {
  font-size: calc(18px * var(--font-scale));
  font-weight: 500;
}

.reference-author {
  font-size: calc(14px * var(--font-scale));
  font-weight: 300;
}

.reference-link:hover {
  color: var(--highlight);
}

.reference-item:target {
  animation: reference-flash 1400ms ease-out 2;
}

@keyframes reference-flash {
  0%,
  30% {
    background: transparent;
  }
  100% {
    background: transparent;
  }
}

.reference-item:target .reference-link {
  animation: reference-text-flash 1400ms ease-out 2;
}

@keyframes reference-text-flash {
  0%,
  30% {
    color: var(--highlight);
  }
  100% {
    color: var(--ink);
  }
}

.footnote-link {
  font-size: calc(12px * var(--font-scale));
  text-decoration: none;
  vertical-align: super;
  margin-left: 2px;
  color: var(--ink);
  border-bottom: none;
}

.footnote-link:hover {
  color: var(--highlight);
}

@media (max-width: 640px) {
  :root {
    --block-width: 100vw;
  }

  .accordion {
    padding: 18px 0 32px;
  }

  .accordion-panel {
    grid-template-columns: 1fr;
    padding: 8px 24px 0;
  }

  .accordion-item summary {
    padding: 14px 24px;
  }

  .panel-info {
    order: 1;
  }

  .panel-image {
    order: 2;
    margin: 0 -24px;
  }

  .panel-image-fade {
    background:
      linear-gradient(90deg, rgba(255, 243, 214, 0) 45%, rgba(255, 243, 214, 0.35) 70%, #fff3d6 100%),
      linear-gradient(180deg, #fff3d6 0%, rgba(255, 243, 214, 0.0) 55%);
  }

  .content-page .content-body {
    padding-right: 32px;
  }

  .media-pair {
    grid-template-columns: 1fr;
  }

  .slider-track img {
    height: 220px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
  }

  .slider-arrow-left {
    left: 6px;
  }

  .slider-arrow-right {
    right: 6px;
  }
}

@media (min-width: 820px) {
  :root {
    --content-right-gap: 20vw;
  }

  .panel-info {
    max-width: 480px;
  }
}

@media (min-width: 1000px) {
  :root {
    --block-width: 72vw;
    --accordion-right-pad: calc(var(--accordion-right) + 6vw - 2px);
    --font-scale: 1.08;
  }

  .panel-info {
    max-width: 420px;
  }

  .panel-image {
    min-height: 300px;
    margin-left: 18px;
  }

  .panel-image-fade {
    background:
      linear-gradient(90deg, #fff3d6 0%, rgba(255, 243, 214, 0.45) 18%, rgba(255, 243, 214, 0) 42%),
      linear-gradient(180deg, #fff3d6 0%, rgba(255, 243, 214, 0.0) 45%);
  }

  .more-button {
    align-self: flex-start;
  }
}

@media (min-width: 520px) and (max-width: 999px) {
  .accordion-panel {
    grid-template-columns: 1fr;
    padding: 8px 24px 0;
  }

  .panel-info {
    order: 1;
  }

  .panel-image {
    order: 2;
    margin: 0 -24px;
  }

  .panel-image-fade {
    background:
      linear-gradient(90deg, rgba(255, 243, 214, 0) 45%, rgba(255, 243, 214, 0.35) 70%, #fff3d6 100%),
      linear-gradient(180deg, #fff3d6 0%, rgba(255, 243, 214, 0.0) 62%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion-panel {
    transition: none;
  }

  .panel-image-box {
    animation: none;
  }
}
