@font-face {
  font-family: Inter;
  src: url('assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f8f2;
  --ink: #232823;
  --muted: #4f584e;
  --accent: #3f5741;
  --line: #cfd5c9;
  --panel: #e9eee4;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(1.25rem, 6vw, 5.25rem);
  --header-height: 4.15rem;
  --ease: cubic-bezier(.22, .67, .26, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font: 400 1em/.98 var(--serif); letter-spacing: -.018em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .26em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #d3dfcc; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), 75rem); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 8vw, 7.15rem); }
.section h2, .footer-content h2 { font-size: clamp(3.6rem, 7.1vw, 6.3rem); }
.metadata { color: var(--accent); font-size: .875rem; font-weight: 500; }
.text-link { color: var(--accent); font-size: .875rem; font-weight: 500; text-decoration-color: #859684; }
.text-link:hover { text-decoration-color: currentColor; }

.site-header {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  display: grid;
  place-items: center;
  height: var(--header-height);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.site-header.is-over-hero {
  color: #fff;
  background: linear-gradient(#171d16a8, #171d1600);
  border-bottom-color: transparent;
}

.site-header nav { display: flex; align-items: center; gap: clamp(1.9rem, 6.4vw, 4.5rem); }
.site-header a { font-size: .9375rem; font-weight: 500; text-decoration: none; }
.site-header a:hover, .site-header a:focus-visible { text-decoration: underline; }
.site-header.is-over-hero :focus-visible, .hero :focus-visible, .viewer-stage :focus-visible { outline-color: white; }

.hero {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-height) + 2rem);
  overflow: hidden;
  color: white;
  background: #28372c;
}

.hero-art, .hero-layer, .hero-art::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -1; }
.hero-layer {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .85s var(--ease);
}
.hero-layer.is-visible { opacity: 1; }
.hero-art::after {
  content: '';
  background: linear-gradient(180deg, #12191255, #14191464 34%, #10160fd0 64%, #12191252);
  pointer-events: none;
}

.hero-copy { width: min(calc(100% - 4rem), 66rem); text-align: center; position: relative; }
.hero h1 { font-size: clamp(3.9rem, 13vw, 10.8rem); line-height: .9; text-wrap: balance; text-shadow: 0 2px 22px #10171045; }
.hero-copy p { margin: 1.65rem auto 0; max-width: 37rem; font-size: clamp(1rem, 1.65vw, 1.18rem); line-height: 1.62; text-align: justify; hyphens: auto; text-shadow: 0 1px 8px #101710bc; }
.hero-footer { position: absolute; inset: auto var(--gutter) 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: .65rem; font-size: .8125rem; }
.hero-footer cite { font-style: italic; text-shadow: 0 1px 7px #101710c9; }

.icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid #ffffff75;
  border-radius: 50%;
  background: #19211b64;
  color: white;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.icon-button:hover { background: #19211bb3; border-color: white; }
.hero-arrow, .viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.hero.is-leaving .hero-arrow { visibility: hidden; }
.hero-arrow--previous { left: max(1rem, calc(var(--gutter) * .72)); }
.hero-arrow--next { right: max(1rem, calc(var(--gutter) * .72)); }

.chevron { width: .66rem; height: .66rem; border: 1.5px solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translateX(-16%) rotate(45deg); }
.chevron--left { transform: translateX(16%) rotate(-135deg); }
.hero-pause { width: 2.75rem; height: 2.75rem; margin-right: calc(var(--gutter) * -.28); }
.pause-symbol { width: .52rem; height: .67rem; border: solid currentColor; border-width: 0 2px; }
.hero-pause.is-paused .pause-symbol { width: 0; height: 0; margin-left: .14rem; border: solid transparent; border-width: .34rem 0 .34rem .53rem; border-left-color: currentColor; }

.research-list { margin-top: clamp(1.7rem, 4vw, 3.2rem); border-top: 1px solid var(--line); }
.research-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1.65rem clamp(2.5rem, 6vw, 6.5rem);
  padding-block: clamp(2.1rem, 5.5vw, 4.25rem);
}
.research-item + .research-item { border-top: 1px solid var(--line); }
.research-item:last-child { padding-bottom: 0; }
.research-copy h3 { font-size: clamp(2.35rem, 4.35vw, 4rem); text-wrap: balance; }
.research-item--long-title h3 { font-size: clamp(2rem, 3.3vw, 3rem); }
.research-copy .metadata { margin-top: .75rem; }
.award-sticker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  max-width: 100%;
  margin-top: .7rem;
  padding: .38rem .65rem;
  border: 1px solid #d9ded7;
  border-radius: .38rem;
  background: #fffdf9;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
}
.award-sticker img { width: 3.45rem; height: auto; flex: 0 0 3.45rem; }
.research-copy .abstract { margin-top: .92rem; color: var(--muted); }
.abstract > p + p { margin-top: .8rem; }
.research-document--paper { width: min(100%, 27rem); margin-inline: auto; }
.submission-note { margin-top: .82rem; color: var(--accent); font-size: .875rem; font-weight: 500; }
.research-document > a { display: block; text-decoration: none; }
.research-document img { width: 100%; border: 1px solid var(--line); background: white; }
.research-document > a:hover img { border-color: var(--accent); }
.document-link { display: block; margin-top: .5rem; text-align: right; text-decoration: underline; text-underline-offset: .26em; }
.research-document > a:hover .document-link { text-decoration-color: currentColor; }

.essays-home { background: #f1e9dc; }
.essays-home-layout { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.essays-home-link { color: #6a4937; font-weight: 500; }

.reading-page {
  --reading-ink: #2e271e;
  --reading-link: #643c29;
  --reading-line: #dfd2c2;
  min-height: 100vh;
  background: #faf5ed;
  color: var(--reading-ink);
}
.reading-shell { width: min(calc(100% - 2 * var(--gutter)), 42rem); margin-inline: auto; }
.reading-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--reading-line);
}
.reading-home { font-family: var(--serif); font-size: 1.65rem; text-decoration: none; }
.reading-home:hover { text-decoration: underline; }
.reading-back { font-size: .875rem; color: var(--reading-link); }
.reading-index, .reading-article { padding-block: clamp(2.8rem, 8vw, 6.25rem); }
.essay-index { display: grid; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.essay-index a {
  font: 400 clamp(1.8rem, 4.1vw, 2.75rem)/1.16 var(--serif);
  color: var(--reading-link);
  text-underline-offset: .19em;
  text-decoration-thickness: 1px;
}
.essay-index a:hover, .reading-back:hover { color: var(--reading-ink); }
.reading-article h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); text-wrap: balance; }
.reading-body { margin-top: clamp(1.45rem, 4vw, 2.35rem); font-size: clamp(1rem, 1.9vw, 1.13rem); line-height: 1.82; }
.reading-body p + p { margin-top: 1.25em; }

.gallery-layout {
  display: grid;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  margin-top: clamp(1.7rem, 4vw, 3.2rem);
}

.art-cloud {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
}

.art-tile {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--width);
  aspect-ratio: var(--painting-ratio, 4 / 3);
  display: block;
  overflow: hidden;
  min-width: 0;
  background: #dfe6d9;
}

.art-tile--arches { --left: 9.8%; --top: 23.5%; --width: 31.2%; }
.art-tile--reverie { --left: 42%; --top: 2%; --width: 12.3%; --painting-ratio: 3 / 4; }
.art-tile--dawn { --left: 55.1%; --top: 8%; --width: 19.8%; }
.art-tile--current { --left: 75.9%; --top: 18.5%; --width: 13.3%; --painting-ratio: 3 / 4; }
.art-tile--horizon { --left: 42%; --top: 39%; --width: 31.5%; }
.art-tile--ember { --left: 74.5%; --top: 55.5%; --width: 24.4%; }
.art-tile--celestial { --left: 9.8%; --top: 71.9%; --width: 15.7%; }
.art-tile--bushes { --left: 26.4%; --top: 72.5%; --width: 14.6%; }
.art-tile--aurora { --left: 10%; --top: 1%; --width: 14.5%; }
.art-tile--yellow { --left: 25.6%; --top: .5%; --width: 8.1%; --painting-ratio: 3 / 4; }
.art-tile--distant { --left: .7%; --top: 42%; --width: 8.1%; --painting-ratio: 3 / 4; }
.art-tile--rosy { --left: 90.2%; --top: 13.5%; --width: 9%; --painting-ratio: 3 / 4; }
.art-tile[aria-current='true'] { outline: 2px solid var(--accent); outline-offset: 3px; z-index: 1; }

@media (min-width: 851px) {
  .gallery-layout.has-selection { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.art-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.art-tile:hover img, .art-tile:focus-visible img { transform: scale(1.035); }
.art-tile-title {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, #172019c8);
  padding: 1.35rem .8rem .5rem;
  color: white;
  opacity: 0;
  font-size: .8125rem;
  transition: opacity .22s ease;
}
.art-tile:hover .art-tile-title, .art-tile:focus-visible .art-tile-title { opacity: 1; }

.site-footer { color: #f6f8ee; background: #29392e; }
.footer-content { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem 2.5rem; padding-block: clamp(2.7rem, 6vw, 4.3rem); }
.footer-content h2 { font-size: clamp(3.3rem, 6vw, 5rem); }
.footer-content a { color: #e4ede0; }
.footer-content a:focus-visible { outline-color: #e4ede0; }

.art-viewer {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.art-viewer:not([hidden]) .viewer-image { animation: viewer-in .32s var(--ease) both; }
.viewer-panel { animation: viewer-in .32s var(--ease) both; }
.viewer-panel { position: relative; }
.viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: .65rem;
  height: clamp(13rem, 30vw, 28rem);
  background: #202720;
  overflow: hidden;
}
.viewer-stage .viewer-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-arrow { z-index: 1; }
.viewer-arrow--previous { left: .55rem; }
.viewer-arrow--next { right: .55rem; }
.viewer-close { position: absolute; z-index: 2; top: .65rem; right: .65rem; font-size: 1.8rem; line-height: 1; }
.viewer-close:focus-visible { outline-color: white; }
.viewer-caption { padding: 1rem clamp(1rem, 4vw, 2.3rem) 1.35rem; }
.viewer-caption h3 { font-size: clamp(2.35rem, 4.6vw, 3.25rem); }
.viewer-caption .metadata { margin-top: .35rem; }
.viewer-caption > p:last-child { margin-top: .45rem; color: var(--muted); }
@keyframes viewer-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

[data-reveal] { transition: opacity .55s var(--ease), transform .65s var(--ease); }
.reveal-pending { opacity: 0; transform: translateY(1rem); }
.reveal-pending:focus-within, .reveal-pending:target { opacity: 1; transform: none; }

@media (max-width: 740px) {
  :root { --header-height: 3.55rem; }
  .hero-copy p { margin-top: 1.2rem; }
  .hero-arrow { top: auto; bottom: 4.2rem; transform: none; }
  .hero-arrow--previous { left: var(--gutter); }
  .hero-arrow--next { right: var(--gutter); }
  .hero-footer { inset-inline: var(--gutter); bottom: .75rem; }
  .hero-pause { margin-right: 0; }
  .research-item { grid-template-columns: 1fr; }
  .research-item { align-items: start; }
  .document-link { text-align: left; }

}

@media (max-width: 850px) {
  .art-cloud { aspect-ratio: .89 / 1; }
  .art-tile--arches { --left: 1%; --top: 22%; --width: 42%; }
  .art-tile--reverie { --left: 44%; --top: 1%; --width: 20%; }
  .art-tile--dawn { --left: 65%; --top: 3%; --width: 34%; }
  .art-tile--current { --left: 76%; --top: 27.9%; --width: 23%; }
  .art-tile--horizon { --left: 44%; --top: 27%; --width: 31%; }
  .art-tile--ember { --left: 62.1%; --top: 74.9%; --width: 36.9%; }
  .art-tile--celestial { --left: 1%; --top: 51.6%; --width: 37%; }
  .art-tile--bushes { --left: 39%; --top: 51.25%; --width: 34%; }
  .art-tile--aurora { --left: 1%; --top: 1%; --width: 25.5%; }
  .art-tile--yellow { --left: 27.5%; --top: 1%; --width: 15.5%; }
  .art-tile--distant { --left: 39.7%; --top: 75.1%; --width: 20.1%; }
  .art-tile--rosy { --left: 75%; --top: 56.2%; --width: 15%; }
  .viewer-stage { height: clamp(12rem, 60vw, 23rem); }
}

@media (max-width: 380px) {
  .hero-copy { width: calc(100% - 2.5rem); }
  .hero-copy h1 { font-size: 3.72rem; }
  .viewer-arrow, .viewer-close { width: 2.5rem; height: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
