:root {
  --paper: #eeeae1;
  --paper-light: #f7f4ed;
  --ink: #171714;
  --muted: #656159;
  --rule: #bcb5a7;
  --red: #9f3027;
  --blue: #244f6d;
  --max: 82rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 20, .018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 4px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .65rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--ink);
  background: rgba(238, 234, 225, .94);
}
.nav-wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: .9rem 0 .8rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav ul, .footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a[aria-current="page"] { color: var(--red); }

.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.narrow { max-width: 48rem; }
.section { padding: clamp(3.25rem, 6.5vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.ink-section { color: var(--paper-light); background: var(--ink); }
.ink-section a:hover { color: #e07b6f; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: .98;
  margin: 0 0 .7em;
}
h1 { font-size: clamp(3.7rem, 9vw, 7.4rem); letter-spacing: -.06em; }
h2 { font-size: clamp(2.15rem, 4.3vw, 4.25rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.08; }
p { margin: 0 0 1.15rem; }
.lede { font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.35; }
.kicker, .caption, .work-meta, .date {
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.kicker { color: var(--red); margin-bottom: 1rem; }
.caption { display: block; margin-top: .65rem; color: var(--muted); }
.ink-section .caption { color: #aaa59b; }
.plain-link { font-weight: 750; }
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.25rem;
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
.platform-links a { font-weight: 700; }

.hero {
  min-height: min(680px, calc(100vh - 54px));
  overflow: hidden;
  position: relative;
}
.hero-grid {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(20rem, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  padding-block: 2.25rem;
}
.hero-copy { position: relative; z-index: 4; align-self: center; }
.hero-copy h1 span { display: block; }
.hero-copy .intro { max-width: 30rem; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); }
.hero-copy .links { display: flex; flex-wrap: wrap; gap: .65rem 1.3rem; margin-top: 2rem; }
.hero-copy .links a { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

.hero-art { min-height: 34rem; position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  width: 58%;
  height: 55%;
  right: 0;
  top: 6%;
  border: 1px solid var(--red);
  transform: rotate(3deg);
}
.photo-print {
  position: absolute;
  margin: 0;
  background: #f7f4ed;
  padding: .55rem .55rem 1.9rem;
  box-shadow: 0 15px 38px rgba(20, 18, 14, .16);
}
.photo-print img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.photo-print.credited img { object-fit: contain; }
.photo-credit {
  position: absolute;
  right: .65rem;
  bottom: .35rem;
  margin: 0;
  color: #49463f;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-main { width: 48%; height: 72%; left: 9%; top: 8%; transform: rotate(-3.3deg); z-index: 2; }
.hero-main .photo-credit, .collage-a .photo-credit { left: .65rem; right: auto; }
.hero-side { width: 46%; height: 40%; right: 4%; bottom: 9%; transform: rotate(4deg); z-index: 3; }
.hero-side img { filter: grayscale(.2) saturate(.7) contrast(1.04); }
.scribble {
  position: absolute;
  z-index: 5;
  right: 1%;
  top: 17%;
  max-width: 11rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.25;
  transform: rotate(-5deg);
}

.statement { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.statement p:last-child { margin-bottom: 0; }
.index-list { border-top: 1px solid currentColor; }
.index-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
.index-row .number { color: var(--red); font-family: var(--serif); font-size: 1.15rem; }
.index-row strong { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 500; }
.index-row .arrow { font-size: 1.4rem; }

.collage {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
}
.collage-stage { min-height: 35rem; position: relative; }
.collage-a { width: 80%; height: 63%; top: 2%; left: 0; transform: rotate(-2deg); }
.collage-b { width: 52%; height: 50%; bottom: 0; right: 0; transform: rotate(3.5deg); }
.collage-copy { max-width: 31rem; }

.page-head { padding: clamp(2rem, 4vw, 3.75rem) 0 1.5rem; }
.page-head h1 { font-size: clamp(3.4rem, 6.5vw, 5.5rem); }
.page-head .lede { max-width: 44rem; }
.page-image-band {
  width: min(calc(100% - 2.5rem), 68rem);
  height: min(35vh, 24rem);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.page-image-band img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); }
.page-image-band.color img { filter: saturate(.75) contrast(1.03); }
.band-credit {
  width: min(calc(100% - 2.5rem), 68rem);
  margin: .45rem auto 0;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}

.work-list { border-top: 1px solid var(--ink); }
.work-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) minmax(14rem, .75fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--ink);
}
.work-item h2, .work-item h3 { margin-bottom: .35rem; }
.work-item p:last-child { margin-bottom: 0; }
.work-meta { color: var(--red); }

.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 7rem); }
.about-grid { grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr); align-items: start; }
.about-portrait { position: relative; width: min(100%, 17rem); margin: 0 auto; transform: rotate(-1.5deg); }
.context-links, .item-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.context-links { margin-top: 1.6rem; }
.item-links { margin-top: .9rem; }
.context-links a, .item-links a { text-decoration-thickness: .07em; }
.three-up { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.note { padding-left: 1.2rem; border-left: 3px solid var(--red); }
.unadorned { list-style: none; margin: 0; padding: 0; }
.unadorned li { padding: .7rem 0; border-bottom: 1px solid var(--rule); }

.quote {
  max-width: 61rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.quote::before { content: "“"; color: var(--red); margin-left: -.55em; }

.site-footer { border-top: 1px solid var(--ink); padding: 1.4rem 0 2.5rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
.footer-grid p { margin: 0; font-family: var(--serif); }
.footer-links a { font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.small { font-size: .78rem; color: var(--muted); }

.software-shot {
  margin: 0;
  padding: clamp(.35rem, 1vw, .8rem);
  background: #090d0d;
  border: 1px solid #332f29;
  box-shadow: 0 22px 55px rgba(18, 16, 12, .18);
}
.software-shot img { width: 100%; height: auto; }
.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.project-facts div { padding: 1rem; border-right: 1px solid var(--rule); }
.project-facts div:last-child { border-right: 0; }
.project-facts dt {
  color: var(--red);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.project-facts dd { margin: .25rem 0 0; font-family: var(--serif); font-size: 1.1rem; }
.audio-demo { width: 100%; margin: 1rem 0 1.5rem; }
.audio-list { border-top: 1px solid #5b5851; }
.audio-example {
  display: grid;
  grid-template-columns: minmax(9rem, .55fr) minmax(16rem, 1.45fr);
  gap: 1rem 2rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #5b5851;
}
.audio-example p { margin: 0; }
.audio-example audio { width: 100%; }
.download-links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.3rem 0; }
.download-link {
  display: inline-block;
  padding: .7rem 1rem;
  border: 1px solid currentColor;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.download-link:hover { color: var(--paper-light); background: var(--red); border-color: var(--red); }
.development-note { max-width: 52rem; }
.checksum { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }
.software-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .nav-wrap { align-items: flex-start; }
  .site-nav ul { justify-content: flex-end; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-art { min-height: 31rem; }
  .statement, .collage { grid-template-columns: 1fr; }
  .collage-stage { min-height: 30rem; }
  .work-item { grid-template-columns: 6rem 1fr; }
  .work-item > :last-child { grid-column: 2; }
  .three-up { grid-template-columns: 1fr; }
  .software-preview { grid-template-columns: 1fr; }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-facts div:nth-child(2) { border-right: 0; }
  .project-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

@media (max-width: 640px) {
  body { font-size: .98rem; }
  .nav-wrap { display: block; }
  .brand { display: block; margin-bottom: .75rem; }
  .site-nav ul { justify-content: flex-start; gap: .25rem .85rem; }
  .site-nav a { font-size: .69rem; }
  .container { width: min(calc(100% - 1.5rem), var(--max)); }
  .hero-grid { padding-top: 2.75rem; }
  .hero-art { min-height: 25rem; }
  .hero-main { width: 56%; height: 69%; left: 2%; }
  .hero-side { width: 47%; height: 37%; right: 1%; }
  .scribble { display: none; }
  .index-row { grid-template-columns: 3rem 1fr auto; }
  .collage-stage { min-height: 24rem; }
  .collage-a { width: 85%; }
  .collage-b { width: 55%; }
  .two-up { grid-template-columns: 1fr; }
  .page-image-band { width: min(calc(100% - 1.5rem), 68rem); height: min(32vh, 20rem); }
  .band-credit { width: min(calc(100% - 1.5rem), 68rem); }
  .work-item { grid-template-columns: 1fr; gap: .45rem; }
  .work-item > :last-child { grid-column: 1; }
  .footer-grid { display: block; }
  .footer-links { margin-top: 1rem; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div, .project-facts div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--rule); }
  .project-facts div:last-child { border-bottom: 0; }
  .audio-example { grid-template-columns: 1fr; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer { display: none; }
  body { background: white; }
  a { text-decoration: none; }
}
