:root {
  --ink: #17131b;
  --ink-soft: #241d29;
  --paper: #f3eee5;
  --paper-deep: #e8dfd2;
  --white: #fffdf9;
  --plum: #6f246c;
  --violet: #7250bb;
  --pink: #d85fae;
  --gold: #d4a74d;
  --sage: #9cae91;
  --muted: #afa4af;
  --border-dark: rgba(255, 255, 255, .13);
  --border-light: rgba(23, 19, 27, .17);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1280px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: var(--ink); background: var(--gold); }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  padding: 10px max(32px, calc((100vw - 1280px) / 2));
  background: rgba(23, 19, 27, .9);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(18px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.wordmark img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}
.wordmark span { display: grid; line-height: 1.15; }
.wordmark strong { font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: .02em; }
.wordmark small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav a {
  color: #ddd4dd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(390px, .87fr);
  min-height: calc(100svh - 78px);
  overflow: hidden;
  background: #100d14;
}
.hero-art { position: relative; min-height: 680px; overflow: hidden; }
.hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 58%, #100d14 100%), linear-gradient(0deg, rgba(16,13,20,.52), transparent 55%);
  content: "";
  pointer-events: none;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 660px;
  margin-left: clamp(-120px, -7vw, -48px);
  padding: 90px 7vw 120px 0;
}
.kicker {
  margin: 0 0 19px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(46px, 5.6vw, 88px); letter-spacing: -.045em; }
h2 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -.035em; }
.hero-intro { max-width: 590px; margin: 30px 0 0; color: #cbc1cb; font-size: clamp(16px, 1.25vw, 19px); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 40px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--plum); border-color: var(--plum); }
.button-primary:hover, .button-primary:focus-visible { background: #853580; border-color: #853580; }
.button-quiet { padding-inline: 0; color: var(--paper); background: transparent; border-bottom-color: rgba(255,255,255,.5); }
.button-quiet:hover, .button-quiet:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
.art-credit {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 32px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  letter-spacing: .08em;
}

.section { width: var(--page); margin-inline: auto; }
.story {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 10vw, 150px);
  padding-block: clamp(110px, 13vw, 190px);
}
.section-heading-narrow { max-width: 480px; }
.story-copy { max-width: 710px; color: #c9bfc9; }
.story-copy p { margin: 0 0 24px; }
.story-copy .lead { color: var(--white); font-family: var(--serif); font-size: clamp(23px, 2.2vw, 34px); line-height: 1.4; }
.archive-note { margin-top: 42px !important; padding-top: 24px; color: #d9c9ab; border-top: 1px solid var(--border-dark); font-size: 13px; letter-spacing: .02em; }
.archive-note span { margin-right: 9px; color: var(--gold); }

.notebook-feature {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  width: 100%;
  padding: clamp(90px, 10vw, 150px) max(32px, calc((100vw - 1280px) / 2));
  color: var(--ink);
  background: var(--paper-deep);
}
.notebook-visual { display: flex; justify-content: center; filter: drop-shadow(0 28px 25px rgba(42,28,26,.25)); transform: rotate(-1.5deg); }
.notebook-page {
  position: relative;
  width: 50%;
  max-width: 390px;
  aspect-ratio: 1600 / 2200;
  overflow: hidden;
  background: #ede9df;
  border: 1px solid rgba(35,24,23,.18);
}
.notebook-page::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.notebook-page-left::after { background: linear-gradient(90deg, transparent 78%, rgba(25,19,17,.16)); }
.notebook-page-right::after { background: linear-gradient(90deg, rgba(25,19,17,.13), transparent 22%); }
.notebook-page img { width: 100%; height: 100%; object-fit: cover; }
.notebook-copy { max-width: 470px; }
.notebook-copy .kicker { color: var(--plum); }
.notebook-copy p:not(.kicker):not(.small-note) { margin: 30px 0 34px; color: #5e535d; }
.small-note { margin: 20px 0 0; color: #776c76; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.gallery-section { padding-block: clamp(110px, 12vw, 180px); }
.gallery-heading { display: grid; grid-template-columns: 1fr minmax(300px, 460px); align-items: end; gap: 70px; }
.gallery-heading > p { margin: 0; color: #b7adb7; }
.gallery-controls { display: flex; gap: 8px; margin: 58px 0 34px; padding-bottom: 18px; border-bottom: 1px solid var(--border-dark); }
.filter-button {
  padding: 10px 16px;
  color: #b8adb7;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
  letter-spacing: .05em;
  cursor: pointer;
}
.filter-button span { margin-left: 6px; color: #796e79; }
.filter-button:hover { color: var(--paper); }
.filter-button.is-active { color: var(--white); border-color: rgba(255,255,255,.35); }
.gallery-grid { columns: 4 250px; column-gap: 13px; }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 13px;
  padding: 0;
  overflow: hidden;
  background: var(--ink-soft);
  border: 0;
  break-inside: avoid;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: auto; transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .25s; }
.gallery-item::after {
  position: absolute;
  inset: auto 0 0;
  padding: 52px 16px 13px;
  color: white;
  background: linear-gradient(transparent, rgba(10,8,12,.78));
  content: attr(aria-label);
  font-size: 10px;
  letter-spacing: .08em;
  opacity: 0;
  text-align: left;
  text-transform: uppercase;
  transition: opacity .25s;
}
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-more { display: flex; justify-content: center; margin-top: 42px; }
.gallery-more[hidden] { display: none; }
.noscript-note { padding: 20px; border: 1px solid var(--border-dark); }

.support {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(60px, 10vw, 150px);
  padding-block: clamp(100px, 11vw, 160px);
  border-top: 1px solid var(--border-dark);
}
.support-intro { max-width: 520px; }
.support-intro p:last-child { margin-top: 28px; color: #bdb2bd; }
.support-links { display: grid; align-content: center; }
.support-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  padding: 26px 4px;
  color: #c8bdc7;
  border-bottom: 1px solid var(--border-dark);
  text-decoration: none;
}
.support-card:first-child { border-top: 1px solid var(--border-dark); }
.support-card .support-label { grid-column: 1 / -1; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.support-card strong { color: var(--paper); font-family: var(--serif); font-size: 27px; font-weight: 400; }
.support-card > span:last-child { align-self: end; font-size: 12px; }
.support-card:hover strong { color: var(--pink); }
.support-card-urgent strong { color: #f2c4df; }

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 46px max(32px, calc((100vw - 1280px) / 2));
  color: #968b96;
  background: #0e0b11;
  border-top: 1px solid var(--border-dark);
  font-size: 12px;
}
.site-footer > div { display: flex; align-items: center; gap: 14px; }
.site-footer img { border-radius: 50%; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--paper); font-family: var(--serif); font-size: 17px; font-weight: 400; }

.not-found {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100svh;
  padding: 32px;
  text-align: center;
}
.not-found > img { margin-bottom: 30px; border: 1px solid var(--border-dark); border-radius: 50%; }
.not-found h1 { max-width: 800px; }
.not-found > p:not(.kicker) { margin: 24px 0 32px; color: var(--muted); }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--paper);
  background: rgba(12, 9, 14, .97);
  border: 0;
}
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; }
.lightbox::backdrop { background: rgba(12, 9, 14, .94); }
.lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: calc(100dvh - 70px); margin: 0; }
.lightbox figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; padding-top: 17px; color: #a99eaa; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-close, .lightbox-nav { position: relative; z-index: 2; background: transparent; border: 0; cursor: pointer; }
.lightbox-close { position: absolute; top: 18px; right: 28px; color: #bdb2bd; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-close span { margin-left: 7px; color: white; font-size: 24px; vertical-align: -2px; }
.lightbox-nav { width: 54px; height: 54px; margin: auto; color: #d7ccd6; border: 1px solid var(--border-dark); border-radius: 50%; font-family: var(--serif); font-size: 34px; }
.lightbox-nav:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 900px) {
  :root { --page: min(100% - 40px, 720px); }
  .site-header { min-height: 70px; padding-inline: 20px; }
  .wordmark small { display: none; }
  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--border-dark);
  }
  .menu-toggle > span:not(.sr-only) { display: block; height: 1px; background: var(--paper); }
  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 18px 20px 28px;
    background: #17131bf7;
    border-bottom: 1px solid var(--border-dark);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--border-dark); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { min-height: 58svh; }
  .hero-art::after { background: linear-gradient(0deg, #100d14 0, transparent 55%); }
  .hero-copy { margin: -8vh 0 0; padding: 0 24px 95px; }
  .art-credit { top: calc(58svh - 30px); bottom: auto; left: 20px; }
  .story, .support { grid-template-columns: 1fr; gap: 45px; }
  .notebook-feature { grid-template-columns: 1fr; padding-inline: 20px; }
  .notebook-copy { max-width: 620px; }
  .gallery-heading { grid-template-columns: 1fr; gap: 25px; }
  .gallery-controls { overflow-x: auto; }
  .filter-button { flex: 0 0 auto; }
  .site-footer { align-items: start; flex-direction: column; padding-inline: 20px; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 28px); }
  html { scroll-padding-top: 74px; }
  h1 { font-size: clamp(41px, 13vw, 60px); }
  h2 { font-size: clamp(39px, 12vw, 54px); }
  .hero-art { min-height: 54svh; }
  .hero-art img { object-position: 44% center; }
  .hero-copy { margin-top: -5vh; padding-inline: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .button { width: 100%; }
  .button-quiet { padding-inline: 16px; border: 1px solid var(--border-dark); }
  .art-credit { top: calc(54svh - 30px); left: 14px; }
  .story, .support, .gallery-section { padding-block: 90px; }
  .notebook-feature { padding-block: 86px; }
  .notebook-visual { margin-inline: -12px; }
  .notebook-copy .button { width: auto; }
  .gallery-grid { columns: 2 130px; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
  .gallery-controls { margin-top: 42px; }
  .support-card { grid-template-columns: 1fr; }
  .support-card > span:last-child { margin-top: 6px; }
  .lightbox[open] { grid-template-columns: 52px 1fr 52px; }
  .lightbox figure { height: calc(100dvh - 95px); }
  .lightbox-close { top: 12px; right: 16px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
