/* Editorial layout for the Exodus space archive. */
:root {
  --paper: #f6f5f0;
  --warm: #ebece4;
  --ink: #20241e;
  --dust: #c7c9bd;
  --wood: #51574c;
  --clay: #374733;
  --leaf: #d5ee8c;
  --edge: clamp(20px, 4.2vw, 84px);
  --sans: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
body { font-family: var(--sans); color: var(--ink); letter-spacing: -.025em; }
h1,h2,h3 { font-family: var(--sans); font-weight: 700; }
h1,h2 { text-wrap: balance; letter-spacing: -.065em; line-height: 1.13; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #718f2c; outline-offset: 4px; }
header { max-width: none; padding: 15px var(--edge); gap: 3vw; border-color: var(--ink); }
.brand { gap: 8px; align-items: center; }
.brand img { width: 31px; }
.brand span { font: 850 clamp(23px,2.4vw,37px)/.87 Arial,sans-serif; letter-spacing: -.075em; }
.brand small { font: 700 .59rem/1.25 Arial,sans-serif; letter-spacing: .27em; margin-top: 4px; }
nav { gap: clamp(18px,2.7vw,48px); }
nav a { font-size: .95rem; font-weight: 600; }
.button, header .button, .intake-shell .in-primary { background: var(--ink); color: white; border-radius: 999px; padding: .55rem 1.25rem; }
.button:hover, header .button:hover, .intake-shell .in-primary:hover { background: #45523e; }
header .button { background: var(--leaf); color: var(--ink); }
header .button:hover { color: white; }
.cover { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 0; min-height: 0; max-width: 1900px; margin: auto; padding: clamp(22px,3vw,58px) var(--edge) 0; background: var(--paper); color: var(--ink); align-items: stretch; }
.cover:after { content: none; }
.cover>img { position: static; z-index: auto; grid-column: 2; grid-row: 1; width: 100%; height: clamp(420px,42vw,700px); object-position: center; }
.covertext { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 12px clamp(18px,3vw,65px) 16px 0; max-width: none; }
.covertext p:first-child, .k, .intake-k { font-size: .88rem; font-weight: 650; letter-spacing: .02em; }
.covertext p:first-child { margin-bottom: auto; display: flex; align-items: center; gap: .65em; }
.covertext p:first-child:before { content: ""; width: 1.8rem; height: 2px; background: currentColor; }
.covertext h1 { font-family: var(--sans); font-size: clamp(3rem,5.75vw,7.3rem); font-weight: 740; letter-spacing: -.085em; line-height: 1.08; margin: clamp(27px,4vw,75px) 0 20px; }
.covertext p:nth-of-type(2) { color: var(--wood); font-size: clamp(.97rem,1.2vw,1.25rem); }
.covertext a { background: var(--ink); color: #fff; border: 0; border-radius: 100px; padding: 10px 20px; margin: auto 0 0; font-weight: 600; }
.covertext a:hover { background: var(--clay); }
.cover small { right: calc(var(--edge) + 12px); bottom: 10px; background: #fffef1ed; color: var(--ink); text-shadow: none; padding: 2px 8px; font-size: .75rem; }
.section, .intro, .album, .intake-shell { max-width: 1520px; padding-left: var(--edge); padding-right: var(--edge); }
#spaces { padding-top: clamp(68px,8vw,140px); }
.sectionTitle, .albumline { border-top: 1px solid var(--ink); padding-top: 16px; }
.sectionTitle { margin-bottom: clamp(24px,3vw,48px); }
.sectionTitle a, .albumline a, .promise a { font-weight: 600; text-decoration-thickness: 1px; }
.spaces { grid-template-columns: repeat(12,minmax(0,1fr)); gap: clamp(34px,5vw,88px) clamp(18px,3vw,64px); align-items:start; }
.space:nth-child(4n+1),.space:nth-child(4n) { grid-column: span 7; }
.space:nth-child(4n+2),.space:nth-child(4n+3) { grid-column: span 5; }
.space:nth-child(4n+2) { margin-top: clamp(30px,5vw,85px); }
.space img { aspect-ratio: 1.56; }
.space:nth-child(4n+2) img,.space:nth-child(4n+3) img { aspect-ratio: 1.24; }
.space h3 { font-size: clamp(1.4rem,2.2vw,2.4rem); letter-spacing: -.065em; }
.space div { padding: 13px 0 0; }
.space p:last-child { margin-top: 1px; }
.promise { background: #242e26; color: #f7f8f0; padding: clamp(56px,7vw,130px) max(var(--edge),calc((100vw - 1380px)/2)); gap: 8%; }
.promise h2 { color: var(--leaf); }
.promise h3 { border-color: #737b70; font-size: clamp(1.2rem,1.8vw,2rem); }
.promise p { color: #e1e6da; }
.closing { background: var(--leaf); padding: clamp(55px,7vw,120px) var(--edge); }
.closing h2 { max-width: 15em; margin-inline: auto; }
footer { background: var(--ink); color: var(--paper); padding: 30px var(--edge); flex-wrap: wrap; gap: 12px 25px; }
footer .word { font: 800 clamp(1.75rem,4vw,5rem)/1 Arial,sans-serif; letter-spacing: -.075em; }
.intro,.albumhead,.intake-heading { margin-bottom: 0; }
.intro h1,.albumhead h1,.intake-heading h1 { max-width: 18em; font-weight: 720; line-height: 1.15; font-size: clamp(2.45rem,5vw,5.7rem); }
.intro .k,.albumhead .k,.intake-k { border-left: 4px solid #8aab45; padding-left: 10px; color: var(--ink); }
.wide { width: calc(100% - 2 * var(--edge)); max-width: 1390px; }
.wide img { max-height: 70vh; }
.paper { background: var(--warm); }
.references { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 22px; }
.ref { align-content: start; border-top: 1px solid var(--ink); border-bottom: 0; }
.pair { padding: 22px 0; }
details { padding: 20px 0; }
.article { max-width: 830px; }
.albumhead { max-width: 850px; }
.filters { margin-top: 36px; gap: 8px; }
.filters button,.picinfo button,#closepic { border-radius: 99px; padding: 8px 14px; }
.filters button[aria-pressed=true] { background: var(--leaf); border-color: var(--leaf); color: var(--ink); font-weight: 700; }
.photogrid { gap: 32px 18px; }
.openphoto img { aspect-ratio: 1.35; }
.pick { padding: 5px 0 5px 8px; }
.picinfo { padding: 16px 22px 20px; }
.picinfo h2 { font-weight: 650; }
.intake-shell { --in-ink: var(--ink); --in-accent: #465d3a; --in-line: var(--dust); }
.intake-heading { padding-bottom: 40px; }
.in-aside { background: #e4ecd6; border-top: 2px solid var(--ink); }
.intake-shell output { background: #e4ecd6; }
@media (hover:hover) {
  .space:hover h3, .openphoto:hover + div h2 { text-decoration: underline; text-underline-offset: 4px; }
}
@media(max-width:760px) {
  header { gap: 10px; padding: 11px var(--edge) 0; }
  header nav { justify-content: space-between; border-top: 1px solid var(--dust); }
  header nav a { padding: 8px 0; font-size: .88rem; }
  .cover { display: flex; flex-direction: column; padding-top: 0; }
  .covertext { display: grid; padding: 24px 0 20px; }
  .covertext p:first-child { margin: 0; }
  .covertext h1 { font-size: clamp(3rem,10.8vw,4.8rem); margin: 17px 0 13px; }
  .covertext p:nth-of-type(2) { font-size: .96rem; }
  .covertext a { justify-self: start; margin: 15px 0 0; padding: 7px 14px; font-size: .92rem; }
  .cover>img { order: 1; height: clamp(215px,57vw,400px); }
  .cover small { z-index: 1; }
  .spaces { grid-template-columns: 1fr; gap: 34px; }
  .space:nth-child(n) { grid-column: auto; margin: 0; }
  .space:nth-child(n) img { aspect-ratio: 1.55; }
  .sectionTitle a { display: inline-block; margin-top: 10px; }
  .promise { display: block; }
  .photogrid { gap: 23px 10px; }
  .filters { gap: 6px; }
  .filters button { padding: 7px 11px; }
  footer .word { width: 100%; margin-bottom: 8px; }
}
