@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces-italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("assets/barlow-condensed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --dark: #0d2e22;
  --pine: #123729;
  --field: #194b35;
  --cream: #f5f2e6;
  --lime: #ddf46d;
  --muted: #c4cfbf;
  --edge: clamp(1rem, 1.9vw, 2.4rem);
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #648470 var(--dark); }
body { margin: 0; color: var(--cream); background: var(--dark); font: 400 1rem/1.55 var(--sans); }
p, h1, h2, ol { margin: 0; }
h1, h2 { font: 540 1em/.92 var(--serif); letter-spacing: -.04em; }
em { font-weight: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: .25rem; }
::selection { color: var(--dark); background: var(--lime); }
[hidden] { display: none !important; }
.label { font: 600 .67rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .24em; }
.label i { display: inline-block; width: .38rem; height: .38rem; border-radius: 50%; background: var(--lime); margin-right: .6rem; vertical-align: .08em; }
.skip { position: fixed; top: .5rem; left: 1rem; z-index: 8; padding: .7rem; color: var(--dark); background: var(--lime); transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 4;
  inset: calc(var(--edge) + .4rem) calc(var(--edge) * 1.8) auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { font: 650 clamp(1.22rem, 2.25vw, 2.1rem)/1 var(--serif); letter-spacing: -.065em; text-shadow: 0 2px 12px #0d201c; }
.brand span { color: var(--lime); }
.menu-button {
  display: grid;
  grid-template-rows: repeat(2, 1px);
  justify-content: center;
  align-content: center;
  gap: .42rem;
  width: 48px;
  height: 48px;
  color: var(--cream);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.menu-button span { width: 30px; height: 1px; background: currentColor; transition: transform .24s; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
.site-header nav {
  position: absolute;
  inset: calc(100% + .5rem) 0 auto auto;
  display: grid;
  min-width: 12.5rem;
  padding: .7rem 1.1rem;
  border: 1px solid #5e7765;
  color: var(--cream);
  background: var(--dark);
}
.site-header nav a { display: flex; align-items: center; min-height: 44px; font: 550 1.15rem var(--serif); }
.site-header nav a:hover { color: var(--lime); }

.hero {
  min-height: 100svh;
  padding: var(--edge) var(--edge) clamp(2.5rem, 4.4vh, 4.5rem);
}
.hero-media {
  position: relative;
  height: clamp(17rem, 57svh, 46rem);
  overflow: hidden;
  background: var(--pine);
  border-radius: clamp(.75rem, 1.55vw, 1.5rem);
}
.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  animation: arrive 1.25s cubic-bezier(.18,.72,.25,1) both;
}
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,23,17,.39), transparent 33%); pointer-events: none; }
.hero-copy {
  display: grid;
  grid-template-columns: 1fr minmax(13rem, 25%);
  grid-template-areas: "line edition" "heading note";
  column-gap: 1rem;
  align-items: end;
  padding-top: clamp(1.05rem, 3vh, 2.4rem);
}
.hero-line { grid-area: line; font: italic 420 clamp(.91rem, 1.38vw, 1.32rem)/1.1 var(--serif); color: var(--muted); }
.hero-edition { grid-area: edition; text-align: right; align-self: start; color: var(--muted); font: 500 .67rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .19em; }
.hero h1 {
  grid-area: heading;
  margin-top: .06em;
  font-size: clamp(3.66rem, 8.25vw, 10rem);
  line-height: .875;
  word-spacing: .045em;
  text-transform: uppercase;
  font-variation-settings: "opsz" 112;
  animation: reveal-title .75s cubic-bezier(.2,.72,.2,1) both;
}
.hero h1 > span { display: block; white-space: nowrap; }
.hero-dot { display: inline-block; width: .17em; height: .17em; margin-inline-start: .13em; margin-bottom: .057em; border-radius: 50%; background: var(--lime); }
.hero-note { grid-area: note; justify-self: start; padding-bottom: .2rem; max-width: 29ch; }
.hero-note > p:last-child { color: var(--muted); font-size: clamp(.84rem, 1.08vw, 1.02rem); margin-top: .55rem; }
@keyframes arrive { from { transform: scale(1.026); opacity: .75; } to { transform: none; opacity: 1; } }
@keyframes reveal-title { from { transform: translateY(.17em); opacity: .6; } to { transform: none; opacity: 1; } }

.edition {
  display: grid;
  min-height: min(100svh, 68rem);
  isolation: isolate;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--pine);
}
.edition-images {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: grid;
  gap: clamp(.25rem, .75vw, .8rem);
  grid-template: repeat(3,minmax(0,1fr)) / repeat(4,minmax(0,1fr));
  opacity: .63;
}
.edition-images img { height: 100%; object-fit: cover; border-radius: .2rem; }
.edition::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at center, rgba(9,35,25,.22), rgba(7,24,19,.70)); }
.edition-inner { display: grid; justify-items: center; width: 100%; padding: clamp(2.1rem, 6svh, 5rem) 1rem; }
.edition h2 {
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-rows: auto minmax(0, 1fr) auto;
  font-size: clamp(2.7rem, 6.15vw, 6.1rem);
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.edition h2 > span { grid-row: 1; }
.edition h2 > em { grid-row: 3; color: var(--lime); }
.ball {
  position: relative;
  grid-area: 1 / 1;
  width: clamp(14rem, min(42vw, 48svh), 29rem);
  aspect-ratio: 1;
  align-self: center;
  z-index: 0;
  cursor: grab;
  touch-action: pan-y;
}
.ball:active { cursor: grabbing; }
.edition h2 { grid-area: 1 / 1; align-self: stretch; min-height: clamp(23rem, min(59vw, 70svh), 41rem); }
.ball canvas, .ball-still { position: absolute; width: 100%; height: 100%; inset: 0; }
.ball-still {
  inset: 3%;
  width: auto;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 33% 24%, #f3f8ae, #ddf46d 44%, #7b8e37 82%, #586527 100%);
  box-shadow: 0 1.2rem 3rem rgba(5,22,12,.63);
}
.ball-still::after { content: ""; position: absolute; inset: 28% -6% -4%; border-top: .3rem solid #f6f0c7; border-radius: 50%; transform: rotate(-28deg); }
.ball[data-rendered] .ball-still { visibility: hidden; }
.edition-location { margin-top: clamp(1.25rem, 4vh, 3rem); display: flex; align-items: center; gap: .9rem; color: var(--cream); }
.edition-location span { width: 2.4rem; height: 1px; background: var(--lime); }

.draw { background: var(--pine); padding-block: clamp(3.7rem, 9vw, 9rem); }
.draw h2 { display: flex; align-items: center; gap: .7rem; padding-inline: var(--edge); margin-bottom: clamp(1.75rem, 5vw, 4rem); }
.draw h2 span { width: 2.65rem; height: 1px; background: #7f987c; }
.draw h2 i { flex: none; margin: 0; }
.draw-list { list-style: none; padding: 0; border-bottom: 1px solid #527061; }
.draw-list a {
  display: grid;
  grid-template-columns: 2rem 1fr minmax(4rem, 15%) auto 1em;
  gap: clamp(.45rem, 1.6vw, 1.5rem);
  min-height: clamp(5rem, 10vw, 10.5rem);
  padding: .65rem var(--edge);
  align-items: center;
  border-top: 1px solid #527061;
  transition: color .24s, background-color .24s;
}
.draw-list a:focus-visible { outline-offset: -3px; }
.draw-list a:hover, .draw-list a:focus-visible { color: var(--dark); background: var(--cream); }
.draw-n, .draw-meta { font-size: clamp(.57rem, .8vw, .72rem); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.draw-name { font: 550 clamp(1.8rem, 5.1vw, 5rem)/.98 var(--serif); letter-spacing: -.038em; }
.draw-list img { height: clamp(2.8rem, 7vw, 7.9rem); object-fit: cover; border-radius: .35rem; opacity: 0; transform: translateX(.45rem); transition: opacity .24s, transform .24s; }
.draw-list a:hover img, .draw-list a:focus-visible img { opacity: 1; transform: none; }
.arrow { justify-self: end; }

.chapter { display: grid; padding: clamp(2.75rem, 6.5vw, 7rem) var(--edge); min-height: clamp(32rem, 92svh, 58rem); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.chapter-copy { max-width: 43rem; }
.chapter h2, .journal h2 { font-size: clamp(3rem, 7.3vw, 7.7rem); margin-block: .28em .24em; }
.chapter p:not(.label), .journal p { max-width: 36ch; }
.chapter img { height: clamp(17rem, 39vw, 37rem); object-fit: cover; border-radius: .6rem; }
.chapter-field { grid-template-columns: .8fr 1fr; background: var(--cream); color: var(--dark); }
.chapter-split { grid-template-columns: 1fr .78fr; background: var(--dark); }
.chapter-split img { object-position: 50% 52%; }
.chapter-split h2 em { color: var(--lime); }
.chapter-final { grid-template-columns: .85fr 1fr; background: var(--field); }
.chapter-final h2 em { color: var(--lime); }
.chapter-final img { object-position: 50% 68%; }

.journal {
  display: grid;
  grid-template-columns: .95fr 1fr;
  align-items: center;
  min-height: min(92svh, 60rem);
  gap: clamp(1.25rem, 5vw, 5rem);
  padding: clamp(2rem, 8vw, 7rem) var(--edge);
  color: var(--dark);
  background: #d9e4cb;
}
.journal-image img { height: clamp(18rem, 43vw, 38rem); object-fit: cover; border-radius: .6rem; object-position: 50% 43%; }

.footer {
  min-height: min(85svh, 56rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(3rem, 8vw, 8rem) var(--edge) 0;
  background: var(--dark);
}
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.footer-line { font: 525 clamp(3rem, 7.2vw, 7.4rem)/.95 var(--serif); letter-spacing: -.04em; margin-top: .15em; }
.footer-line em { color: var(--lime); }
.footer nav { display: grid; gap: .6rem; font-size: .84rem; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer-credit { color: var(--muted); margin-top: 2.1rem; font-size: .73rem; }
.footer-credit a { text-decoration: underline; text-underline-offset: .2em; }
.footer-mark { color: var(--cream); font: 700 clamp(6rem, 35vw, 40rem)/.72 Barlow, sans-serif; text-align: center; letter-spacing: -.045em; margin-top: .13em; white-space: nowrap; }

@media (max-width: 820px) {
  .hero-media { height: clamp(17rem, 52svh, 32rem); }
  .hero-copy { grid-template-columns: 1fr auto; grid-template-areas: "line edition" "heading heading" "note note"; }
  .hero h1 { font-size: clamp(3.28rem, 12.2vw, 7rem); }
  .hero-note { margin-top: clamp(1.2rem, 4vw, 2.1rem); }
  .edition-images { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .chapter, .journal { gap: 1.75rem; }
}
@media (max-width: 580px) {
  .site-header { inset-inline: calc(var(--edge) + .65rem); }
  .hero { min-height: min(100svh, 46rem); }
  .hero-media { height: clamp(15.5rem, 50svh, 30rem); }
  .hero-media img { object-position: 50% 50%; }
  .hero h1 { font-size: clamp(2.65rem, 12.45vw, 4.6rem); }
  .edition { min-height: 75svh; }
  .edition-images { grid-template: repeat(4,minmax(0,1fr)) / repeat(3,minmax(0,1fr)); }
  .edition h2 { min-height: clamp(21rem, 58svh, 30rem); }
  .ball { width: min(66vw, 19rem); }
  .draw-list a { grid-template-columns: 1.2rem 1fr auto .8em; }
  .draw-list img { display: none; }
  .draw-meta { letter-spacing: .06em; }
  .chapter, .journal { grid-template-columns: 1fr; min-height: 0; padding-block: 3.25rem; }
  .chapter-split .chapter-copy { order: -1; }
  .chapter img, .journal img { height: clamp(14rem, 67vw, 24rem); }
  .journal-copy { order: -1; }
  .footer { min-height: 0; }
  .footer-top { align-items: start; flex-direction: column; }
  .footer nav { margin-top: .7rem; }
  .footer-mark { margin-top: .24em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
