@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b1425;
  --deep: #080f1c;
  --panel: #101c30;
  --panel-raised: #14243a;
  --ink: #f5eee2;
  --muted: #acb8ca;
  --gold: #f0cb78;
  --gold-light: #ffe0a0;
  --line: #ffffff19;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 290px;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
svg:has(use) { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { color: var(--deep); background: var(--gold); }

.shell { width: min(var(--shell), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 15;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  transform: translateY(calc(-100% - 15px));
  border-radius: 4px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 700;
}

.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 3; background: var(--deep); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 67px; align-items: center; gap: clamp(16px, 3.2vw, 48px); }
.wordmark { display: flex; align-items: center; gap: 12px; margin-right: auto; line-height: 1; }
.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border: 1px solid #f0cb7866;
  border-radius: 4px;
  color: var(--gold);
}

.brand-mark svg { width: 20px; height: 20px; }
.wordmark strong { display: block; font: 700 1.25rem/.97 var(--display); white-space: nowrap; }
.wordmark small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); }
.site-nav a { color: var(--muted); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: color .18s ease; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.sound-toggle {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.sound-toggle svg { width: 15px; height: 15px; }
.sound-toggle:hover, .sound-toggle[aria-pressed="true"] { color: var(--gold); background: #f0cb7810; border-color: #f0cb7850; }
.sound-toggle:disabled { opacity: .65; cursor: default; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); border-bottom: 1px solid var(--line); }
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: min(80%, 1550px);
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 55% 40%;
}

.hero-image img { width: 100%; height: 100%; object-fit: inherit; object-position: inherit; }
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #080f1c 0%, #080f1c 18%, #080f1cf2 29%, #080f1c9e 49%, #080f1c16 78%),
    linear-gradient(0deg, #080f1cc2 0%, #080f1c02 35%);
  content: "";
}

.hero-inner { display: flex; min-height: clamp(485px, 39vw, 540px); align-items: center; padding-block: 51px 67px; }
.hero-content { max-width: min(495px, 100%); }
.eyebrow {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-content .eyebrow { display: flex; align-items: center; gap: 13px; }
.hero-content .eyebrow::before { width: 26px; height: 1px; background: currentColor; content: ""; }
.hero h1 {
  margin: 19px 0 19px;
  font: 600 clamp(5rem, 8.6vw, 8.05rem)/.78 var(--display);
  letter-spacing: -.055em;
}

.hero h1 em { color: #b7c8e3; font-weight: 500; }
.hero-copy { max-width: 370px; color: #c1ccdb; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.6; }
.primary-button {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 19px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #111827;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background .18s ease, box-shadow .18s ease;
}

.primary-button:hover { background: var(--gold-light); box-shadow: 0 4px 24px #f0cb7824; }
.primary-button svg { width: 17px; height: 17px; }
.hero-content .primary-button { margin-top: 25px; }
.hero-caption {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--shell)) / 2));
  bottom: 23px;
  padding: 4px 0 4px 4px;
  border: 0;
  background: transparent;
  color: #ecedf2;
  font-size: .8125rem;
  line-height: 1.25;
  text-align: right;
  text-shadow: 0 1px 5px #000a;
}

.hero-caption strong, .hero-caption span { display: block; }
.hero-caption span { margin-top: 4px; color: #c6d0df; }
.hero-caption:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.gallery-section { padding-block: 49px 63px; }
.gallery-section, .collection-section { scroll-margin-top: 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading h2 {
  margin-top: 6px;
  font: 600 clamp(3rem, 5vw, 4.5rem)/.94 var(--display);
  letter-spacing: -.038em;
}

.section-copy { max-width: 45ch; margin-top: 9px; margin-bottom: 3px; color: var(--muted); }
.gallery-layout { display: grid; grid-template-columns: minmax(0, 2.85fr) minmax(245px, 1fr); align-items: start; gap: 18px; }
.viewer-column { min-width: 0; }
.viewer {
  position: relative;
  isolation: isolate;
  height: clamp(405px, 39vw, 530px);
  overflow: hidden;
  border: 1px solid #ffffff25;
  border-radius: 7px;
  background: #0e1623;
}

.gallery-host, .viewer-fallback { position: absolute; inset: 0; }
.gallery-host canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.gallery-host canvas:active { cursor: grabbing; }
.gallery-host canvas:focus-visible { position: relative; outline-offset: -4px; }
.viewer-fallback { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 15px; padding: 56px 25px 21px; text-align: center; }
.viewer-fallback img { width: auto; max-width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-fallback p { max-width: 45ch; color: var(--muted); }
.viewer-top, .viewer-bottom { position: absolute; z-index: 1; inset-inline: 14px; display: flex; justify-content: space-between; gap: 9px; pointer-events: none; }
.viewer-top { top: 14px; align-items: start; }
.viewer-bottom { bottom: 14px; align-items: end; }
.viewer-label {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid #ffffff26;
  border-radius: 4px;
  background: #080f1ce6;
  color: #efe7d9;
  font-size: .8125rem;
  font-weight: 600;
}

.viewer-label svg { width: 15px; height: 15px; color: var(--gold); }
.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #ffffff2e;
  border-radius: 4px;
  background: #080f1ce8;
  color: #f0ebe1;
  pointer-events: auto;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.icon-button:hover { color: var(--gold-light); background: #17243b; border-color: #f0cb7870; }
.icon-button svg { width: 18px; height: 18px; }
.viewer-tools, .touch-controls { display: flex; align-items: center; gap: 6px; }
.touch-controls { display: none; }
.touch-controls .icon-button { touch-action: none; user-select: none; }
.minimap {
  display: grid;
  width: 82px;
  height: 74px;
  flex: 0 0 82px;
  place-items: center;
  padding: 7px;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  background: #080f1ce8;
  color: var(--gold);
}

.minimap svg, svg.minimap { max-width: 100%; max-height: 100%; }
.viewer:fullscreen, .viewer-expanded { width: 100%; height: 100%; border: 0; border-radius: 0; }
.viewer-help { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; margin-top: 13px; color: var(--muted); font-size: .8125rem; }
.viewer-help > span { display: inline-flex; align-items: center; gap: 5px; }
.viewer-help .help-touch { display: none; }
.viewer-help svg { width: 15px; height: 15px; }
kbd {
  display: inline-grid;
  min-width: 22px;
  min-height: 21px;
  place-items: center;
  padding: 1px 4px;
  border: 1px solid #ffffff26;
  border-radius: 3px;
  background: #ffffff0a;
  color: var(--ink);
  font: 500 .75rem/1 var(--body);
}

.gallery-sidebar { overflow: clip; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.sidebar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 15px 11px; border-bottom: 1px solid var(--line); }
.sidebar-heading h3 { font: 600 1.62rem/1 var(--display); }
.sidebar-heading span { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.artwork-list { display: grid; gap: 3px; margin: 0; padding: 7px; list-style: none; }
.artwork-row {
  display: grid;
  width: 100%;
  min-height: clamp(58px, 5.15vw, 73px);
  grid-template-columns: 51px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background .18s ease, border-color .18s ease;
}

.artwork-row:hover { background: #ffffff08; }
.artwork-row[aria-current="true"], .artwork-row.is-active { border-color: #f0cb7855; background: #f0cb7810; }
.artwork-row:focus-visible { outline-offset: 0; }
.artwork-row img { width: 51px; height: 47px; border-radius: 2px; object-fit: cover; background: var(--deep); }
.artwork-row-copy strong { display: block; font-size: .875rem; font-weight: 650; line-height: 1.28; }
.artwork-row-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.2; }
.row-index { padding-right: 2px; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.artwork-row[aria-current="true"] .row-index { color: var(--gold); }
.details-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 600;
}

.details-button svg { width: 16px; height: 16px; }
.details-button:hover { background: #f0cb780d; color: var(--gold-light); }
.details-button:focus-visible { outline-offset: -3px; }

.collection-section { padding-block: 45px 66px; border-top: 1px solid var(--line); background: var(--deep); }
.collection-section .section-heading { margin-bottom: 25px; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.collection-card { min-width: 0; }
.collection-button {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}

.collection-button:hover { border-color: #f0cb7860; background: var(--panel-raised); }
.collection-img { display: block; overflow: hidden; aspect-ratio: 1.62; background: #111a2b; }
.collection-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.collection-button:hover img { transform: scale(1.035); }
.collection-info { display: block; padding: 15px 17px 18px; }
.collection-year { color: var(--gold); font-size: .8125rem; font-weight: 600; }
.collection-info h3 { margin-top: 4px; font: 600 clamp(1.4rem, 3vw, 2rem)/1.07 var(--display); letter-spacing: -.01em; }
.collection-info p { margin-top: 6px; color: var(--muted); font-size: .875rem; line-height: 1.35; }

.site-footer { border-top: 1px solid var(--line); background: var(--deep); }
.footer-inner { display: flex; min-height: 81px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 25px; padding-block: 16px; }
.footer-inner p, .footer-inner a:not(.wordmark) { color: var(--muted); font-size: .875rem; }
.footer-inner a:hover { color: var(--gold); }
.footer-inner button { padding: 0; border: 0; background: transparent; color: var(--muted); }
.footer-inner button:hover { color: var(--gold); }
.no-script { padding: 16px var(--gutter); border-top: 1px solid var(--line); color: var(--gold); }

.artwork-dialog {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 0;
  border: 1px solid #ffffff2e;
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 16px 70px #0008;
}

.artwork-dialog::backdrop { background: #050912cf; backdrop-filter: blur(4px); }
.dialog-layout { display: grid; min-height: 390px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.dialog-art { display: grid; place-items: center; padding: clamp(17px, 3vw, 32px); background: var(--deep); }
.dialog-art img { max-height: min(60vh, 550px); width: auto; height: auto; object-fit: contain; box-shadow: 0 12px 28px #0006; }
.dialog-info { display: flex; flex-direction: column; justify-content: center; padding: 55px clamp(21px, 4vw, 42px) 34px; }
.dialog-close { position: absolute; z-index: 1; inset: 12px 12px auto auto; }
.dialog-info h2 { margin-top: 6px; font: 600 clamp(2.4rem, 5.2vw, 4.15rem)/.92 var(--display); letter-spacing: -.035em; }
.dialog-medium { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.dialog-description { margin-top: 19px; color: #d3dae7; }
.source-link { display: inline-flex; width: fit-content; align-items: center; gap: 7px; margin-top: 13px; color: var(--gold); font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.source-link:hover { color: var(--gold-light); }
.source-link svg { width: 15px; height: 15px; }
.view-in-gallery { margin-top: 22px; }

@media (max-width: 680px), (hover: none), (pointer: coarse) {
  .touch-controls { display: flex; }
  .touch-controls .icon-button, .viewer-tools .icon-button { width: 42px; height: 41px; flex-basis: 42px; }
  .viewer-help .help-keyboard { display: none; }
  .viewer-help .help-touch { display: inline-flex; }
}

@media (max-width: 900px) {
  .hero-image { width: 100%; object-position: 62% 40%; }
  .hero::before { background: linear-gradient(90deg, #080f1cf5 1%, #080f1cba 34%, #080f1c28 94%), linear-gradient(0deg, #080f1ce6, transparent 42%); }
  .gallery-layout { grid-template-columns: minmax(0, 2.25fr) minmax(215px, 1fr); gap: 13px; }
  .artwork-row { grid-template-columns: 43px minmax(0, 1fr) auto; gap: 8px; padding: 6px; }
  .artwork-row img { width: 43px; height: 43px; }
  .collection-grid { gap: 13px; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 61px; gap: 13px; }
  .hero-inner { min-height: 475px; align-items: end; padding-block: 70px 66px; }
  .hero-image { width: 118%; object-position: 60% 21%; }
  .hero::before { background: linear-gradient(90deg, #080f1c8c, #080f1c0c 95%), linear-gradient(0deg, #080f1c 0%, #080f1cf0 22%, #080f1c77 63%, #080f1c13 100%); }
  .hero h1 { font-size: clamp(4.85rem, 15vw, 7rem); }
  .hero-caption { bottom: 15px; }
  .hero-caption span { display: none; }
  .gallery-section, .collection-section { padding-block: 35px 42px; }
  .section-heading { display: block; margin-bottom: 17px; }
  .section-heading h2 { font-size: clamp(3rem, 10.5vw, 4rem); }
  .gallery-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .viewer { height: clamp(355px, 66vw, 435px); }
  .viewer-help { gap: 7px 12px; margin-top: 9px; }
  .gallery-sidebar { max-width: none; }
  .artwork-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-info { padding: 11px 10px 13px; }
  .dialog-layout { grid-template-columns: minmax(0, 1fr); }
  .dialog-art img { max-height: 42vh; }
  .dialog-info { padding: 23px 20px 24px; }
}

@media (max-width: 475px) {
  .header-inner { gap: 10px; }
  .wordmark { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .wordmark strong { font-size: 1.1rem; }
  .wordmark small { margin-top: 4px; font-size: .57rem; letter-spacing: .1em; }
  .site-nav { gap: 9px; }
  .site-nav a { font-size: .8125rem; }
  .sound-toggle { width: 34px; min-height: 34px; justify-content: center; padding: 0; }
  .sound-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .viewer-top, .viewer-bottom { inset-inline: 8px; }
  .viewer-top { top: 8px; }
  .viewer-bottom { bottom: 8px; }
  .minimap { width: 55px; height: 53px; flex-basis: 55px; padding: 4px; }
  .viewer-tools, .touch-controls { gap: 3px; }
  .touch-controls .icon-button, .viewer-tools .icon-button { width: 35px; height: 38px; flex-basis: 35px; }
  .row-index { display: none; }
  .artwork-row { grid-template-columns: 37px minmax(0, 1fr); gap: 7px; }
  .artwork-row img { width: 37px; height: 39px; }
  .artwork-row-copy strong, .artwork-row-copy small { font-size: .8125rem; }
}

@media (max-width: 420px) {
  .viewer-bottom .minimap { display: none; }
  .touch-controls .icon-button, .viewer-tools .icon-button { width: 34px; flex-basis: 34px; }
}

@media (max-width: 345px) {
  .header-inner { width: calc(100% - 20px); }
  .hero h1 { font-size: 4.3rem; }
  .viewer-bottom { flex-wrap: wrap; }
}

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