/* aloneenemy museum: Helvetica Neue throughout, each drop takes the colour of its own backdrop */
:root {
  --bg: #000;
  --fg: #f3f3f1;
  --dim: rgba(243, 243, 241, .62);
  --line: rgba(243, 243, 241, .2);
  --a: #f3f3f1;
  --ui: #fff;
  --uibg: #000;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
    --gutter: clamp(1.1rem, 5vw, 4.5rem);
  --rail: 3.4rem;
  --hh: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #000; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #000; color: #f3f3f1; font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .25em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; margin: 0; letter-spacing: -.035em; line-height: .95; }
p { margin: 0 0 1em; }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: #000; padding: .6rem 1rem; transition: top .2s; }
.skip:focus { top: 1rem; }

/* header band */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--hh); display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter); background: #000; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.brand img { height: 1.9rem; width: auto; }
.top nav { display: flex; gap: 1.8rem; font-size: .98rem; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }

/* buttons */
.btn { display: inline-block; padding: .95rem 1.7rem; border: 1px solid #f3f3f1; color: #f3f3f1; text-decoration: none; transition: background .25s, color .25s; }
.btn:hover { background: #f3f3f1; color: #000; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46vw); min-height: 100svh; overflow: hidden; padding-top: var(--hh); }
.hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 0 0 clamp(2.5rem, 8vh, 5rem) var(--gutter); }
.hero h1 { font-size: clamp(3rem, 5.2vw, 7rem); line-height: .98; margin-bottom: 1.8rem; }
html:has(body.home) { scroll-behavior: smooth; }
#story { scroll-margin-top: var(--hh); }
.mark { display: block; width: clamp(13rem, 31vw, 34rem); height: auto; margin: 0 0 2rem -.3rem; }
.hero-line { color: var(--dim); max-width: 22rem; margin-bottom: 1.6rem; }
.hero-img { position: relative; min-height: 70svh; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }

.ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; padding: clamp(5rem, 16vh, 10rem) var(--gutter); }
.ed figure { margin: 0; display: flex; justify-content: center; }
.ed figure img { width: auto; max-width: 100%; max-height: 86svh; object-fit: cover; }
.ed-text { max-width: 32rem; }
.ed-text h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); margin-bottom: 1.4rem; }
.ed-text p { color: rgba(243, 243, 241, .8); font-size: 1.15rem; }

.statement { padding: clamp(5rem, 18vh, 12rem) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 8rem); align-items: end; border-top: 1px solid rgba(243, 243, 241, .2); }
.statement h2 { font-size: clamp(3rem, 7.4vw, 8.5rem); }
.statement p { max-width: 30rem; color: rgba(243, 243, 241, .8); font-size: 1.15rem; }

.enter { padding: clamp(5rem, 22vh, 12rem) var(--gutter); border-top: 1px solid rgba(243, 243, 241, .2); }
.enter h2 { font-size: clamp(3rem, 6.6vw, 7.2rem); margin-bottom: 2.4rem; max-width: 14ch; }

.foot { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; align-items: baseline; padding: 2rem var(--gutter) 2.4rem; color: rgba(243, 243, 241, .62); font-size: .92rem; border-top: 1px solid rgba(243, 243, 241, .2); background: #000; }
.foot p { margin: 0; }
.foot ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: #f3f3f1; text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .hero-img img { animation: arrive 2.6s var(--ease) both; }
  .hero h1 { animation: rise 1.8s .25s var(--ease) both; }
  .hero-line, .hero .btn { animation: fade 1.2s 1.1s ease both; }
  @keyframes arrive { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(4%); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- archive ---------- */
.drop, .intro { background: var(--bg); color: var(--fg); }
.main {
  height: 100svh; min-height: 36rem; padding-top: var(--hh);
  display: grid; grid-template-columns: minmax(22rem, 42vw) minmax(0, 1fr);
}
.drop { overflow-anchor: none; }
.drop .main { transition: height .6s var(--ease); }
.drop.open .main { height: max(34rem, 64svh); min-height: 0; }
.drop.no-anim .main { transition: none; }
.txt { align-self: center; margin: 0 0 0 var(--gutter); padding: 0 2rem 0 0; }
.flip .main { grid-template-columns: minmax(0, 1fr) minmax(22rem, 42vw); }
.flip .txt { margin: 0 var(--gutter) 0 var(--gutter); padding: 0 0 0 2rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0 0 1.1rem; font-size: 1.1rem; color: var(--dim); min-height: 1.6em; }
.meta time { color: var(--a); font-weight: 500; }
.state { border: 1px solid var(--a); color: var(--a); padding: .05rem .7rem; border-radius: 99px; font-size: .92rem; }
.drop h2, .intro h1 { font-size: clamp(2.8rem, 6.1vw, 8rem); margin-bottom: 1.6rem; text-wrap: balance; }
.blurb { font-size: clamp(1.2rem, 1.65vw, 1.65rem); line-height: 1.42; max-width: 31rem; }
.count { color: var(--dim); font-size: 1.05rem; margin-top: 1.6rem; }
.morebtn { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.5rem; padding: 0; border: 0; background: none; color: var(--fg); font-size: 1.2rem; font-weight: 500; cursor: pointer; }
.morebtn .lbl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.morebtn .chev { flex: none; box-sizing: content-box; padding: .4rem; border: 1px solid currentColor; border-radius: 50%; transition: transform .35s var(--ease); animation: nudge 2.4s ease-in-out 1.5s 3; }
.morebtn[aria-expanded="true"] .chev { transform: rotate(180deg); animation: none; }
.morebtn:hover { color: var(--a); }
.f-gothic h2 { font-family: "UnifrakturCook", "Times New Roman", serif; font-weight: 700; letter-spacing: 0; line-height: 1.02; font-size: clamp(2.8rem, 6vw, 7.6rem); }
.f-script h2 { font-family: "Pinyon Script", "Snell Roundhand", cursive; font-weight: 400; letter-spacing: 0; line-height: 1.05; font-size: clamp(3.4rem, 7.4vw, 9.4rem); }
.f-stencil h2 { font-family: "Saira Stencil One", Impact, sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1; font-size: clamp(2.4rem, 5vw, 6.4rem); }
.f-serif h2 { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; letter-spacing: -.01em; line-height: .92; font-size: clamp(3.2rem, 7vw, 8.8rem); }
.f-heavy h2 { font-weight: 700; letter-spacing: -.05em; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(.25rem); } }

.collage {
  display: flex; justify-content: flex-end; height: 100%; min-width: 0; overflow: hidden;
}
.flip .collage { order: -1; justify-content: flex-start; padding: 0; }
.col { flex: 0 1 auto; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0; background: none; overflow: hidden; cursor: zoom-in; }
.col img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.col3 { display: none; }
.collage[data-cols="1"] .col2 { display: none; }
.collage[data-cols="1"] .col1 { flex: 1 1 auto; }
.collage[data-cols="3"] .col3 { display: block; }
.nomedia { align-self: center; margin: 0; color: var(--dim); font-size: 1.2rem; }

.more { background: var(--bg); min-height: calc(100svh - max(34rem, 64svh)); padding: clamp(1.5rem, 4vw, 3rem) var(--rail) clamp(3rem, 8vw, 6rem) var(--gutter); scroll-margin-top: var(--hh); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 44vw), 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.grid button { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--line); overflow: hidden; cursor: zoom-in; color: #fff; }
.grid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: transform .5s var(--ease); }
.grid button:hover img { transform: scale(1.03); }
.grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .8rem; font-size: .9rem; text-align: left; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .25s; }
.grid button:hover .cap, .grid button:focus-visible .cap { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .more:not([hidden]) { animation: fade .5s ease both; }
  html.js .drop:not(.in) .col { opacity: 0; }
  html.js .drop .col { transition: opacity 1s var(--ease); }
  html.js .drop .col2 { transition-delay: .15s; }
}

.intro .toc { align-self: center; list-style: none; margin: 0; padding: 0 var(--rail) 0 0; columns: 2 18rem; column-gap: 3rem; }
.toc li { break-inside: avoid; }
.toc a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.05rem; }
.toc a:hover .n { text-decoration: underline; text-underline-offset: .3em; }
.toc .n { color: var(--fg); }
.toc .d { color: var(--dim); font-variant-numeric: tabular-nums; }
.end { background: #000; }

/* chapter marks: whole pixels so every line renders the same */
.dots { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 15; color: var(--ui); transition: color .4s, opacity .3s; }
.dots.off { opacity: 0; pointer-events: none; }
.dots ul { list-style: none; margin: 0; padding: 0; }
.dots a { display: flex; align-items: center; justify-content: flex-end; height: 20px; width: 2.4rem; padding-right: 0; text-decoration: none; color: inherit; }
.dots a::after { content: ""; display: block; width: 12px; height: 2px; background: currentColor; opacity: .4; transition: width .2s, opacity .2s; }
.dots li, .dots a { position: relative; }
.dots .pv { position: absolute; left: auto; width: max-content; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: .7rem; padding: .4rem .9rem .4rem .4rem; background: var(--uibg); color: var(--ui); box-shadow: 0 .5rem 1.6rem rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .2s; }
.dots .pv img { width: 3.2rem; height: 4rem; object-fit: cover; object-position: 50% 0%; }
.dots .pv b { font-weight: 500; font-size: .95rem; }
.dots a:hover .pv, .dots a:focus-visible .pv { opacity: 1; }
.dots a:hover::after, .dots a[aria-current="true"]::after { width: 22px; opacity: 1; }

.totop { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 16; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; background: var(--uibg); color: var(--ui); cursor: pointer; transition: color .4s, background .4s; }
.totop:hover { opacity: .8; }

/* lightbox */
dialog#lb { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #000; color: #f3f3f1; }
dialog#lb::backdrop { background: #000; }
html.lb-open { overflow: hidden; }
.lb-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 23rem); height: 100%; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 1.2rem; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 2.4rem); width: auto; height: auto; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #f3f3f1; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .16); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 1px solid rgba(243, 243, 241, .25); background: #000; border-radius: 50%; color: #f3f3f1; cursor: pointer; }
.lb-info { padding: 5rem 1.6rem 1.6rem; overflow-y: auto; border-left: 1px solid rgba(243, 243, 241, .15); }
.lb-drop { color: rgba(243, 243, 241, .7); font-size: .95rem; margin-bottom: .6rem; }
.lb-title { font-size: 2.2rem; margin-bottom: 1.3rem; }
.lb-thumbs { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.lb-thumbs button { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .55; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: #f3f3f1; }
.lb-thumbs img { width: 3.6rem; height: 4.6rem; object-fit: cover; object-position: 50% 0%; }
.lb-facts { margin: 0; font-size: .98rem; }
.lb-facts dt { color: rgba(243, 243, 241, .6); font-size: .88rem; margin-top: 1rem; }
.lb-facts dd { margin: .15rem 0 0; }
.lb-facts ul { margin: 0; padding: 0; list-style: none; }

.plain-main { max-width: 40rem; padding: calc(var(--hh) + 5rem) var(--gutter) 6rem; min-height: 70svh; }
.plain-main h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 1.6rem; }
.plain-main p { color: rgba(243, 243, 241, .8); }


/* ---------- small screens ---------- */
@media (max-width: 900px) {
  :root { --hh: 4rem; --rail: 0px; }
  .top nav { gap: 1.2rem; }
  .brand img { height: 1.6rem; }
  .dots { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 62svh; }
  .hero-text { padding-top: 2rem; padding-right: var(--gutter); }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); margin-bottom: 1.2rem; }
  .hero-img img { }
  .ed, .statement { grid-template-columns: 1fr; }
  .ed-img-right { display: flex; flex-direction: column; }
  .ed figure img { max-height: 70svh; }
  .main { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .txt, .flip .txt, .intro .txt { margin: 0; border: 0; box-shadow: none; padding: 1.2rem var(--gutter) 1rem; align-self: start; }
  .flip .main { grid-template-columns: 1fr; }
  .flip .collage { order: 0; }
  .collage, .flip .collage { justify-content: flex-start; gap: .6rem; padding: 0 var(--rail) 0 var(--gutter); }
  .intro .main { height: auto; min-height: 100svh; padding-bottom: 3rem; }
  .drop h2, .intro h1 { font-size: clamp(2.5rem, 11.5vw, 3.8rem); margin-bottom: .8rem; }
  .meta { margin-bottom: .6rem; font-size: 1rem; }
  .blurb { font-size: 1.02rem; line-height: 1.4; }
  .count { margin-top: .6rem; font-size: .95rem; }
  .morebtn { margin-top: .7rem; font-size: 1.1rem; }
  .intro .toc { padding: 0 var(--gutter); columns: 1; align-self: start; }
  .toc a { padding: .5rem 0; font-size: 1rem; }
  .totop { bottom: .8rem; right: .8rem; }
  .lb-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-info { border-left: 0; border-top: 1px solid rgba(243, 243, 241, .15); padding: 1rem 1.2rem 1.2rem; max-height: 38dvh; }
  .lb-title { font-size: 1.7rem; margin-bottom: .8rem; }
  .lb-img { max-height: calc(100dvh - 38dvh - 2rem); }
  .lb-stage { padding: .6rem; }
}
@media (max-width: 900px) and (max-height: 640px) { .main { height: auto; min-height: 100svh; } }
