/* ==============================
   GLOBAL
================================= */

:root {
  --bg-1: #120b27;
  --bg-2: #19081f;
  --bg-3: #240816;
  --ink: #efe9e6;
  --ink-soft: rgba(239, 233, 230, 0.8);
  --ink-faint: rgba(239, 233, 230, 0.6);
  --line: rgba(255, 235, 245, 0.15);
  --line-soft: rgba(255, 235, 245, 0.085);
  --panel: rgba(255, 235, 245, 0.04);
  --panel-strong: rgba(255, 235, 245, 0.058);
  --shadow-1: 0 12px 28px rgba(0, 0, 0, 0.48);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, 0.46);
  --shadow-3: 0 30px 60px rgba(0, 0, 0, 0.78), 0 8px 20px rgba(0, 0, 0, 0.5);
  --content-max: 1400px;
  --measure: 700px;
  --sidebar-w: 220px;
  --page-pad-x: 60px;
  --page-pad-y: 40px;
  --anchor-offset-desktop: 70px;
  --anchor-offset-mobile: 24px;
  --year-header-bg: rgba(24, 8, 24, 0.78);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset-mobile);
}

@media (min-width: 701px) {
  html {
    scroll-padding-top: var(--anchor-offset-desktop);
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Baskerville, "Libre Baskerville", "Times New Roman", serif;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 235, 245, 0.012) 0,
      rgba(255, 235, 245, 0.012) 1px,
      transparent 1px,
      transparent 96px
    ),
    linear-gradient(
      180deg,
      var(--bg-1) 0%,
      var(--bg-2) 42%,
      var(--bg-3) 100%
    );
  background-color: var(--bg-3);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.layout,
.sidebar,
.content,
.gallery,
.timeline,
.questions-list,
#archive,
#writing,
#trip-reports,
#photo-archive,
#exhibits-archive,
#margins-list,
#quotes-list {
  position: relative;
  z-index: 2;
}

/* dedicated animated background layer */

.bg-motion {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-motion::before,
.bg-motion::after {
  content: "";
  position: absolute;
  inset: -18%;
  will-change: transform, opacity, background-position;
}

.bg-motion::before {
  opacity: 0.58;
  background:
    linear-gradient(
      118deg,
      transparent 0%,
      rgba(124, 72, 170, 0) 24%,
      rgba(124, 72, 170, 0.1) 34%,
      rgba(102, 46, 128, 0.18) 46%,
      rgba(72, 26, 82, 0.24) 55%,
      rgba(102, 46, 128, 0.15) 64%,
      rgba(124, 72, 170, 0.07) 73%,
      rgba(124, 72, 170, 0) 82%,
      transparent 100%
    ),
    linear-gradient(
      236deg,
      transparent 0%,
      rgba(132, 44, 78, 0) 22%,
      rgba(132, 44, 78, 0.05) 34%,
      rgba(92, 34, 92, 0.11) 47%,
      rgba(54, 18, 68, 0.16) 58%,
      rgba(92, 34, 92, 0.09) 69%,
      rgba(132, 44, 78, 0) 84%,
      transparent 100%
    );
  background-size: 170% 170%;
  background-position: 0% 50%, 100% 50%;
  filter: blur(10px);
  animation: bgDriftBand 7s ease-in-out infinite alternate;
}

.bg-motion::after {
  opacity: 0.44;
  background:
    radial-gradient(circle at 20% 28%, rgba(138, 88, 176, 0.18), transparent 30%),
    radial-gradient(circle at 76% 24%, rgba(104, 42, 116, 0.16), transparent 28%),
    radial-gradient(circle at 54% 80%, rgba(82, 24, 66, 0.16), transparent 32%),
    radial-gradient(circle at 42% 46%, rgba(168, 58, 88, 0.08), transparent 24%);
  filter: blur(20px);
  animation: bgDriftBloom 10s ease-in-out infinite alternate;
}

@keyframes bgDriftBand {
  0% {
    transform: translate3d(-52px, 4px, 0) scale(1.02) rotate(-0.5deg);
    background-position: 0% 50%, 100% 50%;
  }
  50% {
    transform: translate3d(14px, -18px, 0) scale(1.06) rotate(0.6deg);
    background-position: 24% 46%, 76% 54%;
  }
  100% {
    transform: translate3d(56px, -28px, 0) scale(1.08) rotate(1deg);
    background-position: 44% 54%, 56% 46%;
  }
}

@keyframes bgDriftBloom {
  0% {
    transform: translate3d(-8px, 0, 0) scale(1.02);
  }
  50% {
    transform: translate3d(-26px, 18px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(30px, -22px, 0) scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-motion::before,
  .bg-motion::after {
    animation: none;
  }

  * {
    transition: none !important;
  }
}

/* ==============================
   LAYOUT
================================= */

.layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar,
.content {
  position: relative;
  z-index: 2;
}

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  padding: var(--page-pad-y) 30px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content {
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--page-pad-y) var(--page-pad-x);
  display: flex;
  flex-direction: column;
  font-size: 19px;
  line-height: 1.75;
  hanging-punctuation: first allow-end;
  hyphens: auto;
}

.content::after {
  content: none;
}

.content > * {
  width: 100%;
}

.content h1 {
  max-width: 1100px;
  line-height: 1.15;
}

.content h1::after {
  content: "";
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255, 235, 245, 0.9);
  margin-top: 14px;
  margin-bottom: 20px;
}

.page-header {
  max-width: 1100px;
  margin-bottom: 0;
}

.content p,
.page-intro,
.buy-link,
.writing-intro,
.exhibit-statement,
#writing-description,
.guestbook-intro,
.question-form,
.questions-list,
.now-section,
.dictum,
.homepage,
.intro p,
.intro h2,
.margins-list,
.quotes-list {
  max-width: var(--measure);
}

h1,
h2,
h3,
h4,
.writing-item h3 {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.3;
}

main h1 {
  margin-bottom: 10px;
}

h2 {
  font-weight: 400;
  margin-top: 0;
}

.underline {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ==============================
   SIDEBAR
================================= */

.sidebar h1 {
  font-size: 18px;
  margin: 0 0 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.sidebar a {
  text-decoration: none;
  color: #f4eeeb;
  opacity: 0.72;
  position: relative;
  transition: opacity 0.2s ease;
}

.sidebar a:hover {
  opacity: 1;
}

.sidebar a.active {
  opacity: 1;
  font-weight: 600;
}

.sidebar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.sidebar a:hover::after {
  width: 100%;
}

.sidebar a.nav-sub {
  margin-left: 18px;
  font-size: 0.95em;
  opacity: 0.6;
}

.sidebar a.nav-sub.active {
  opacity: 1;
  font-weight: 500;
}

.sidebar-social {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-external {
  margin-top: auto;
  opacity: 0.45;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding-top: 12px;
}

.sidebar-external:hover {
  opacity: 0.8;
}

/* ==============================
   GENERAL PAGE PIECES
================================= */

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

.list li {
  margin: 12px 0;
}

.art-back {
  margin-bottom: 25px;
}

.art-back a {
  text-decoration: none;
  font-size: 14px;
  opacity: 0.7;
}

.art-back a:hover {
  opacity: 1;
}

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

.content a:hover {
  opacity: 0.75;
}

.nav-link {
  text-decoration: none;
  position: relative;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-intro-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.page-intro {
  margin: 0;
}

.secret-link {
  display: inline-block;
  margin-left: 6px;
  width: 0.45em;
  overflow: hidden;
  vertical-align: baseline;
  text-decoration: none !important;
  color: transparent;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.secret-link:hover,
.secret-link:focus {
  color: inherit;
  opacity: 0.08;
}

.hidden-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==============================
   HOME
================================= */

.homepage {
  max-width: 800px;
}

.home-anchor {
  margin-top: 120px;
  opacity: 0.75;
}

.home-line {
  font-size: 20px;
  letter-spacing: 0.4px;
}

.intro h2 {
  margin-top: 40px;
  font-weight: normal;
  opacity: 0.9;
}

.intro p {
  max-width: 600px;
  margin: 20px 0;
  opacity: 0.82;
}

.explore {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.explore-button {
  background: #f2ece8;
  color: #120a12;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.explore-button:hover {
  background: #dfd3d6;
}

/* ==============================
   TIMELINE / LEFT RULE
================================= */

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before,
.gallery::before,
#archive::before,
#writing::before,
#trip-reports::before,
#photo-archive::before,
.questions-list::before,
#exhibits-archive::before,
#margins-list::before,
#quotes-list::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(168, 102, 190, 0.1) 0%,
    rgba(255, 235, 245, 0.08) 18%,
    rgba(118, 58, 124, 0.14) 40%,
    rgba(255, 235, 245, 0.06) 62%,
    rgba(120, 38, 72, 0.12) 100%
  );
}

/* ==============================
   FULL-WIDTH CONTENT CONTAINERS
================================= */

.gallery,
#archive,
#writing,
#trip-reports,
#photo-archive,
#exhibits-archive,
#margins-list,
#quotes-list,
.essay-pdf,
.pdf-container,
.art-page,
.art-navigation,
.media-row,
.exhibit-gallery,
.writing-list,
.archive-list,
.margins-list,
.quotes-list {
  width: 100%;
  max-width: var(--content-max);
}

/* ==============================
   YEAR NAV / COLLAPSIBLE YEARS
================================= */

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin: 4px 0 18px;
  width: 100%;
  max-width: var(--content-max);
  font-size: 15px;
  opacity: 0.82;
}

.year-nav a {
  color: inherit;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  opacity: 0.75;
}

.year-nav a:hover {
  opacity: 1;
  text-decoration-thickness: 1.5px;
}

.expand-all-button {
  appearance: none;
  border: 1px solid rgba(255, 235, 245, 0.2);
  background: rgba(255, 235, 245, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.84;
  margin-right: 12px;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.expand-all-button:hover {
  opacity: 1;
  border-color: rgba(255, 235, 245, 0.34);
  background: rgba(255, 235, 245, 0.08);
}

.gallery-year,
.archive-year,
.writing-year,
.margins-year,
.quotes-year {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 0 44px;
  scroll-margin-top: var(--anchor-offset-mobile);
}

.gallery-year h2,
.archive-year h2,
.writing-year h2,
.margins-year h2,
.quotes-year h2 {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  width: 100%;
  margin: 32px 0 0;
  padding: 0;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 1px;
  background: var(--year-header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 235, 245, 0.5);
}

.year-heading {
  width: 100%;
  cursor: pointer;
}

.year-heading-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 12px 0 14px;
}

.year-heading-label {
  display: block;
  min-width: 0;
}

.year-heading-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.year-toggle,
.year-scroll-top {
  appearance: none;
  border: 1px solid rgba(255, 235, 245, 0.18);
  background: rgba(255, 235, 245, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  padding: 8px 11px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.82;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.year-toggle:hover,
.year-scroll-top:hover {
  opacity: 1;
  border-color: rgba(255, 235, 245, 0.34);
  background: rgba(255, 235, 245, 0.08);
}

.year-content {
  display: block;
  width: 100%;
  padding-top: 18px;
}

.gallery-year.is-collapsed,
.archive-year.is-collapsed,
.writing-year.is-collapsed,
.margins-year.is-collapsed,
.quotes-year.is-collapsed {
  margin-bottom: 20px;
}

.gallery-year.is-collapsed .year-content,
.archive-year.is-collapsed .year-content,
.writing-year.is-collapsed .year-content,
.margins-year.is-collapsed .year-content,
.quotes-year.is-collapsed .year-content {
  display: none;
}

@media (min-width: 701px) {
  .gallery-year,
  .archive-year,
  .writing-year,
  .margins-year,
  .quotes-year {
    scroll-margin-top: var(--anchor-offset-desktop);
  }
}

/* ==============================
   TAG NAV
================================= */

.filter-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  max-width: var(--content-max);
}

.filter-row {
  display: flex;
  gap: 8px;
}

.filter-label {
  flex: 0 0 92px;
  padding-top: 7px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.58;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.tag-pill {
  appearance: none;
  border: 1px solid rgba(255, 235, 245, 0.18);
  background: rgba(255, 235, 245, 0.035);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 999px;
  opacity: 0.8;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.tag-pill:hover {
  opacity: 1;
  border-color: rgba(255, 235, 245, 0.32);
  background: rgba(255, 235, 245, 0.06);
}

.tag-pill.active {
  opacity: 1;
  background: rgba(255, 235, 245, 0.11);
  border-color: rgba(255, 235, 245, 0.38);
}

.tag-pill.tag-pill-clear {
  opacity: 0.62;
}

.tag-pill.tag-pill-clear.active {
  opacity: 1;
}

.item-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.item-tag-inline {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.74;
  border: 1px solid rgba(255, 235, 245, 0.14);
  background: rgba(255, 235, 245, 0.03);
}

/* ==============================
   ARCHIVE / WRITING INDEX ROWS
================================= */

.archive-year {
  margin-bottom: 40px;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  position: relative;
  width: 100%;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
  line-height: 1.5;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.archive-row::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 235, 245, 0.6);
}

.archive-row:hover .archive-title,
.archive-row:hover .archive-title a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.archive-title {
  min-width: 0;
  margin-right: 20px;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.archive-title a {
  text-decoration: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.archive-title a:hover {
  text-decoration: underline;
}

.archive-meta-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}

.archive-meta {
  min-width: 92px;
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.6;
  white-space: nowrap;
}

.archive-thumb,
.archive-row img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: rgba(255, 235, 245, 0.02);
}

.archive-badge {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 235, 245, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.75;
  flex-shrink: 0;
  padding: 6px;
  overflow: hidden;
}

.archive-badge--wide {
  width: 60px;
  height: 60px;
  font-size: 0.55rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
}

/* ==============================
   GALLERY / ART INDEX
================================= */

.gallery-intro {
  opacity: 0.72;
  margin-top: -6px;
  margin-bottom: 30px;
  font-size: 16px;
}

.gallery-header {
  margin-bottom: 30px;
}

.gallery {
  display: block;
  margin-top: 25px;
  position: relative;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 18px;
  width: 100%;
  align-items: start;
}

.gallery-grid a,
.gallery-grid .gallery-item {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.gallery img,
.gallery-item img,
.exhibit-gallery img,
.archive-thumb,
.photo-viewer img,
.art-image img {
  background: #12060d;
  padding: 12px;
  border-radius: 3px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(120, 60, 90, 0.18);
}

.gallery-item img,
.exhibit-gallery img,
.archive-thumb {
  background: rgba(255, 235, 245, 0.02);
}

.gallery img {
  width: 100%;
  display: block;
  background: #120e14;
  padding: 12px;
  border-radius: 3px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.22s ease;
  transform: none;
}

.gallery-item img {
  width: 100%;
  display: block;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.22s ease;
  transform: none;
}

#photo-archive .gallery-item img,
.photo-viewer img,
.media-row .media-image img,
.art-image img {
  background: #120e14;
  padding: 12px;
  border-radius: 4px;
  box-shadow:
    var(--shadow-3),
    0 0 0 1px rgba(255, 235, 245, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-grid a:hover img,
  .gallery-grid .gallery-item:hover img {
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.62),
      0 0 20px rgba(255, 235, 245, 0.05);
  }
}

/* ==============================
   RANDOM / CONTROLS
================================= */

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.random-button {
  appearance: none;
  border: 1px solid rgba(255, 235, 245, 0.22);
  background: rgba(255, 235, 245, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.random-button:hover {
  background: rgba(255, 235, 245, 0.08);
  border-color: rgba(255, 235, 245, 0.34);
}

/* ==============================
   ART / PHOTO DETAIL
================================= */

.art-page {
  width: 100%;
}

.art-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 0 28px;
  max-width: var(--content-max);
  font-size: 0.95rem;
}

.nav-left,
.nav-center,
.nav-right {
  min-width: 0;
}

.nav-left {
  text-align: left;
}

.nav-center {
  text-align: center;
}

.nav-right {
  text-align: right;
}

#art-layout,
#photo-layout {
  width: 100%;
  max-width: var(--content-max);
}

.art-image,
.photo-viewer {
  width: 100%;
}

.art-image img,
.photo-viewer img {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  cursor: zoom-in;
}

.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.media-image {
  min-width: 0;
}

.media-image img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.media-note {
  position: sticky;
  top: calc(var(--anchor-offset-desktop) + 18px);
  padding: 18px 18px 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 235, 245, 0.05),
    rgba(255, 235, 245, 0.025)
  );
  border: 1px solid rgba(255, 235, 245, 0.11);
  box-shadow: var(--shadow-1);
}

.media-note h3 {
  margin: 0 0 10px;
  font-weight: 400;
}

.media-note p:first-child {
  margin-top: 0;
}

/* ==============================
   LIGHTBOX
================================= */

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 4, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.image-viewer img {
  display: block;
  max-width: min(94vw, 1500px);
  max-height: 94vh;
  width: auto;
  height: auto;
  background: #120e14;
  padding: 10px;
  box-shadow: var(--shadow-3);
}

/* ==============================
   EXHIBITS
================================= */

.exhibit-statement {
  margin-bottom: 20px;
  opacity: 0.82;
}

.exhibit-gallery {
  width: 100%;
  max-width: var(--content-max);
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid rgba(255, 235, 245, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 235, 245, 0.03),
    rgba(255, 235, 245, 0.02)
  );
  box-shadow: var(--shadow-1);
}

.exhibit-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 52vw);
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.exhibit-card {
  display: block;
  scroll-snap-align: start;
  padding: 1rem;
  border: 1px solid rgba(255, 235, 245, 0.08);
  background: rgba(255, 235, 245, 0.025);
}

.exhibit-lightbox {
  display: block;
  text-decoration: none;
}

.exhibit-card figure {
  margin: 0;
}

.exhibit-card img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  cursor: zoom-in;
}

.exhibit-caption {
  margin-top: 0.8rem;
  line-height: 1.45;
}

.exhibit-caption-title {
  display: block;
  font-size: 0.98rem;
  opacity: 0.9;
}

.exhibit-caption-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0.58;
}

.exhibit-grid,
.exhibit-pair {
  display: contents;
}

/* ==============================
   WRITING / TRIPS
================================= */

.writing-intro {
  margin-bottom: 25px;
  opacity: 0.72;
}

.writing-list {
  max-width: var(--content-max);
}

.writing-entry {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 6px 0;
}

.writing-entry::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 235, 245, 0.6);
}

.writing-entry:hover .writing-title a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.writing-meta {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-right: 20px;
  white-space: nowrap;
}

.writing-title {
  flex: 1;
  margin-right: 20px;
  min-width: 0;
}

.writing-title a {
  text-decoration: none;
}

.writing-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.writing-format {
  font-size: 0.72rem;
  letter-spacing: 1px;
  opacity: 0.55;
  text-align: right;
  min-width: 36px;
}

.essay-pdf {
  width: 100%;
  max-width: var(--content-max);
}

.writing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

#download-link {
  margin-left: auto;
}

.pdf-container,
.pdf-viewer iframe {
  width: 100%;
  height: 78vh;
  min-height: 78vh;
  border: 0;
  background: rgba(255, 235, 245, 0.02);
}

.pdf-mobile-link {
  display: none;
}

.pdf-viewer,
.writing-pdf,
.writing-viewer,
.pdf-frame-wrap {
  width: 100%;
  min-height: 78vh;
}

.pdf-viewer iframe,
.pdf-viewer embed,
.pdf-viewer object,
.writing-pdf iframe,
.writing-pdf embed,
.writing-pdf object,
.writing-viewer iframe,
.writing-viewer embed,
.writing-viewer object,
.pdf-frame-wrap iframe,
.pdf-frame-wrap embed,
.pdf-frame-wrap object {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 780px;
  border: 0;
}

#pdf-frame {
  display: block;
  width: 100%;
  height: 82vh;
  min-height: 900px;
  border: 0;
  background: rgba(255, 235, 245, 0.02);
}

@media (min-width: 980px) {
  .pdf-viewer,
  .writing-pdf,
  .writing-viewer,
  .pdf-frame-wrap {
    width: 100%;
    max-width: none;
  }

  .pdf-viewer iframe,
  .pdf-viewer embed,
  .pdf-viewer object,
  .writing-pdf iframe,
  .writing-pdf embed,
  .writing-pdf object,
  .writing-viewer iframe,
  .writing-viewer embed,
  .writing-viewer object,
  .pdf-frame-wrap iframe,
  .pdf-frame-wrap embed,
  .pdf-frame-wrap object {
    height: 82vh;
    min-height: 900px;
  }
}

/* ==============================
   NOW / BIO / QUOTES
================================= */

.now-page .page-header,
.bio-page .page-header {
  max-width: var(--content-max);
  margin-bottom: 26px;
}

.now-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.now-card,
.bio-panel,
.bio-aside,
.quote-entry {
  position: relative;
  padding: 22px 22px 20px;
  background:
    linear-gradient(180deg, rgba(255, 235, 245, 0.05), rgba(255, 235, 245, 0.028));
  border: 1px solid rgba(255, 235, 245, 0.11);
  box-shadow: var(--shadow-1);
}

.now-card::before,
.bio-panel::before,
.bio-aside::before,
.quotes-list .quote-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(156, 110, 190, 0.1), transparent 28%);
  opacity: 0.9;
}

.now-kicker,
.bio-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}

.quote-entry {
  margin-bottom: 18px;
}

.quote-meta {
  opacity: 0.56;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.quote-text,
.margin-text {
  font-size: 1.06rem;
  line-height: 1.82;
}

.quote-text-lines .quote-line + .quote-line {
  margin-top: 0.2rem;
}

.quote-attribution,
.quote-detail {
  margin-top: 0.95rem;
  opacity: 0.7;
  font-size: 0.94rem;
}

.quotes-list .quote-text {
  margin-top: 0.95rem;
  font-size: 1.05rem;
  line-height: 1.78;
}

/* ==============================
   BIOGRAPHY
================================= */

.bio-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.archive-entry,
.timeline-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.archive-entry {
  padding: 28px 28px 24px;
}

.archive-entry-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}

.archive-entry-head h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.archive-id {
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.archive-status {
  margin-top: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.archive-grid {
  display: grid;
  gap: 14px;
}

.archive-entry .archive-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: static;
  width: auto;
  font-size: inherit;
  letter-spacing: normal;
  line-height: 1.7;
  text-decoration: none;
}

.archive-entry .archive-row:last-child {
  border-bottom: none;
}

.archive-entry .archive-row::before,
.archive-entry .archive-row::after,
.archive-entry::before,
.archive-entry::after {
  content: none !important;
  display: none !important;
}

.archive-key {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.62;
  padding-top: 2px;
}

.archive-value {
  line-height: 1.7;
}

.archive-list,
.timeline-list {
  margin: 0;
  padding-left: 1.1rem;
}

.archive-list li,
.timeline-list li {
  margin: 0 0 0.35rem;
}

.timeline-panel {
  padding: 20px 18px 18px;
  max-height: 78vh;
  overflow: hidden;
}

.timeline-panel .bio-kicker {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.72;
}

.timeline-scroll {
  overflow-y: auto;
  max-height: calc(78vh - 60px);
  padding-right: 8px;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 18px;
  margin-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.timeline-year {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.timeline-text {
  line-height: 1.6;
  opacity: 0.94;
}

.timeline-scroll::-webkit-scrollbar {
  width: 8px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* ==============================
   QUESTIONS
================================= */

.question-entry {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 235, 245, 0.09);
}

.question-meta {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.65;
}

.question-text {
  font-size: 1.06rem;
  line-height: 1.7;
}

.question-answer {
  margin-top: 12px;
  opacity: 0.82;
}

.question-form {
  width: 100%;
  max-width: var(--measure);
}

.question-form textarea,
.question-form input,
#question-input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 235, 245, 0.03);
  border: 1px solid rgba(255, 235, 245, 0.16);
  padding: 12px 14px;
  border-radius: 0;
}

.question-form textarea {
  min-height: 96px;
  resize: vertical;
}

.question-form button {
  appearance: none;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 235, 245, 0.05);
  border: 1px solid rgba(255, 235, 245, 0.2);
  padding: 10px 14px;
  cursor: pointer;
}

/* ==============================
   FOOTER
================================= */

.site-footer {
  width: 100%;
  max-width: var(--content-max);
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 235, 245, 0.08);
  opacity: 0.58;
  font-size: 0.88rem;
}

/* ==============================
   RESPONSIVE
================================= */

@media (max-width: 1200px) {
  .media-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-note {
    position: static;
  }

  .art-navigation {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-left,
  .nav-center,
  .nav-right {
    text-align: left;
  }
}

@media (max-width: 1100px) {
  .bio-shell.bio-archive-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
  }

  .bio-panel .archive-row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: row;
  }

  .sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 24px 22px;
    gap: 12px;
  }

  .sidebar a.nav-sub {
    margin-left: 12px;
  }

  .content {
    padding: 28px 22px 36px;
    font-size: 18px;
    min-width: 0;
  }

  .timeline::before,
  .gallery::before,
  #archive::before,
  #writing::before,
  #trip-reports::before,
  #photo-archive::before,
  .questions-list::before,
  #exhibits-archive::before,
  #margins-list::before,
  #quotes-list::before {
    left: -18px;
  }

  .archive-row::before,
  .writing-entry::before,
  .quote-entry::before,
  .margin-entry::before {
    left: -22px;
  }

  .now-grid,
  .bio-shell.bio-archive-layout {
    grid-template-columns: 1fr;
  }

  .bio-aside.timeline-panel {
    position: static;
  }

  .timeline-scroll {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .filter-row {
    flex-direction: column;
    gap: 8px;
  }

  .filter-label {
    flex: none;
    padding-top: 0;
  }

  .content {
    font-size: 17px;
    line-height: 1.72;
  }

  .content h1::after {
    margin-bottom: 16px;
  }

  .year-nav {
    gap: 6px 10px;
    margin-bottom: 14px;
    font-size: 14px;
  }

  .gallery-year,
  .archive-year,
  .writing-year,
  .margins-year,
  .quotes-year {
    margin-bottom: 28px;
  }

  .gallery-year h2,
  .archive-year h2,
  .writing-year h2,
  .margins-year h2,
  .quotes-year h2 {
    top: 0;
    margin-top: 24px;
    font-size: 1.3rem;
  }

  .year-heading-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .year-heading-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .year-toggle,
  .year-scroll-top,
  .expand-all-button {
    font-size: 0.74rem;
  }

  .archive-row {
    gap: 12px;
  }

  .archive-title {
    margin-right: 12px;
  }

  .archive-meta-wrap {
    gap: 10px;
  }

  .archive-meta {
    min-width: auto;
    font-size: 0.82rem;
  }

  .archive-thumb,
  .archive-badge,
  .archive-row img {
    width: 48px;
    height: 48px;
  }

  .archive-badge--wide {
    width: 64px;
    font-size: 0.55rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 24px;
  }

  .gallery img,
  .art-image img,
  .media-row .media-image img,
  .photo-viewer img {
    padding: 10px;
  }

  .exhibit-gallery {
    padding: 1.25rem 1rem 1rem;
  }

  .exhibit-rail {
    grid-auto-columns: 86vw;
    gap: 1rem;
  }

  .exhibit-card {
    padding: 0.75rem;
  }

  .exhibit-card img {
    max-height: 58vh;
    padding: 10px;
  }

  .exhibit-caption {
    font-size: 0.84rem;
  }

  .writing-entry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .writing-meta,
  .writing-title,
  .writing-format {
    margin: 0;
    text-align: left;
  }

  .writing-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #download-link {
    margin-left: 0;
  }

  .now-card,
  .bio-panel,
  .bio-aside,
  .quote-entry {
    padding: 1rem;
  }

  .bio-panel .archive-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .quote-text,
  .margin-text {
    font-size: 1rem;
  }

  .quotes-list .quote-text {
    margin-top: 0.95rem;
    font-size: 1.05rem;
    line-height: 1.78;
  }

  .pdf-container,
  .pdf-viewer iframe {
    height: 65vh;
    min-height: 65vh;
  }

  .archive-entry-head h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 520px) {
  .sidebar {
    padding: 20px 16px;
  }

  .content {
    padding: 24px 16px 32px;
  }

  .page-intro-row {
    align-items: flex-start;
  }

  .image-viewer {
    padding: 12px;
  }
}