:root {
  --paper: #f1eddf;
  --paper-deep: #e4decb;
  --ink: #191912;
  --muted: #666454;
  --acid: #d9ff43;
  --orange: #ff6542;
  --blue: #204bd8;
  --lavender: #cfc9ff;
  --rule: rgba(25, 25, 18, 0.26);
  --display: Georgia, "Times New Roman", serif;
  --utility: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(25,25,18,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 8px;
  font-family: var(--body);
}

body.detail-open { overflow: hidden; }

button, input, select { font: inherit; color: inherit; }

button, a, select { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.masthead {
  height: 84px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 3;
  background: var(--paper);
}

.wordmark {
  width: max-content;
  text-decoration: none;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.12em;
}

.wordmark span {
  display: inline-block;
  color: var(--orange);
  transform: rotate(-11deg) translateY(2px);
}

.masthead-note, .eyebrow, .jump-link, .hero-photo figcaption,
.manifesto-number, .manifesto-side, .control-board label > span:first-child,
.results-line, .card-category, .card-index, .detail-kicker, .fact dt, footer {
  font-family: var(--utility);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.masthead-note { font-size: 11px; }

.jump-link {
  justify-self: end;
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px solid;
  padding-bottom: 4px;
}

.jump-link span { color: var(--orange); }

.hero {
  min-height: 720px;
  padding: clamp(64px, 8vw, 118px) clamp(22px, 6.2vw, 90px) 80px;
  display: grid;
  grid-template-columns: minmax(440px, .9fr) minmax(500px, 1.1fr);
  gap: clamp(30px, 6vw, 90px);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  font-size: 11px;
  margin: 0 0 22px;
}

.eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(76px, 8.2vw, 126px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.075em;
}

h1 em {
  position: relative;
  display: inline-block;
  font-weight: 400;
  color: var(--blue);
  z-index: 0;
}

h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4%;
  right: -9%;
  bottom: -12%;
  height: 34%;
  border-radius: 55% 45% 40% 60%;
  background: var(--acid);
  transform: rotate(-2deg);
}

.hero-intro {
  width: min(100%, 450px);
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.55;
}

.paper-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 17px 19px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 7px 7px 0 var(--orange);
  transform: rotate(-1deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.paper-button:hover { transform: rotate(1deg) translate(-2px, -2px); box-shadow: 10px 10px 0 var(--orange); }

.paper-button span { color: var(--acid); font-size: 20px; }

.hero-collage { position: relative; min-height: 510px; }

.hero-photo {
  margin: 0;
  padding: 11px 11px 34px;
  background: #fffdf6;
  border: 1px solid var(--ink);
  box-shadow: 13px 16px 0 rgba(25,25,18,.13);
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.04); }

.hero-photo figcaption { position: absolute; bottom: 10px; left: 12px; font-size: 9px; line-height: 1.3; }

.hero-photo-main {
  position: absolute;
  width: min(87%, 555px);
  height: 430px;
  top: 8px;
  right: 0;
  transform: rotate(3deg);
}

.hero-photo-small {
  position: absolute;
  z-index: 2;
  width: 210px;
  height: 245px;
  left: -6%;
  bottom: 0;
  transform: rotate(-7deg);
}

.stamp {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 123px;
  height: 123px;
  right: -14px;
  bottom: 4px;
  color: var(--blue);
  border: 3px double var(--blue);
  border-radius: 50%;
  text-align: center;
  font: 900 12px/1.15 var(--utility);
  letter-spacing: .16em;
  transform: rotate(12deg);
  background: var(--paper);
}

.scribble { position: absolute; z-index: 4; width: 150px; left: 10%; top: 33%; transform: rotate(-10deg); }
.scribble svg { fill: none; stroke: var(--acid); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

.manifesto {
  min-height: 190px;
  padding: 42px clamp(22px, 6.2vw, 90px);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 30px;
  color: var(--acid);
  background: var(--blue);
}

.manifesto > p:nth-child(2) { margin: 0; font: italic 40px/1.05 var(--display); letter-spacing: -.025em; }
.manifesto-number, .manifesto-side { font-size: 10px; margin: 0; line-height: 1.5; }
.manifesto-side { justify-self: end; text-align: right; }

.catalogue { padding: 100px clamp(22px, 6.2vw, 90px) 120px; overflow: hidden; }

.catalogue-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 54px;
}

.catalogue-heading h2, .closing-copy h2 {
  margin: 0;
  font: 400 clamp(58px, 6.5vw, 98px)/.88 var(--display);
  letter-spacing: -.06em;
}

.catalogue-note { max-width: 460px; margin: 0 0 8px auto; font-size: 17px; line-height: 1.55; }

.control-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr .65fr;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: #fffdf6;
  box-shadow: 8px 8px 0 var(--ink);
}

.search-control, .select-control {
  min-width: 0;
  padding: 18px 20px 16px;
  border-right: 1px solid var(--ink);
}

.control-board label > span:first-child { display: block; margin-bottom: 9px; font-size: 9px; color: var(--muted); }

.search-row { display: flex; align-items: center; }
.search-row > span { font: 28px var(--display); }

input[type="search"], select {
  width: 100%;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
}

input[type="search"]:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

select { cursor: pointer; }
input::placeholder { color: #8d8977; }

.saved-toggle {
  border: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  background: var(--acid);
}

.saved-toggle[aria-pressed="true"] { color: white; background: var(--blue); }
.saved-icon { font-size: 30px; line-height: 1; }
.saved-toggle b, .saved-toggle small { display: block; text-align: left; }
.saved-toggle b { font: 800 11px var(--utility); letter-spacing: .1em; }
.saved-toggle small { margin-top: 4px; font-size: 10px; }

.results-line { display: flex; align-items: center; gap: 14px; margin: 38px 0 18px; font-size: 10px; }
.results-line .dash { height: 1px; background: var(--ink); flex: 1; opacity: .35; }
.results-line button { border: 0; border-bottom: 1px solid; padding: 2px 0; background: none; cursor: pointer; font: inherit; text-transform: uppercase; }

.workshop-route {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(70px, 9vw, 150px);
  row-gap: 30px;
  padding-top: 30px;
}

.workshop-route::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 90px;
  left: 50%;
  width: 3px;
  background: repeating-linear-gradient(to bottom, var(--orange) 0 9px, transparent 9px 17px);
  transform: translateX(-50%) rotate(1deg);
}

.workshop-card {
  --card-accent: var(--blue);
  position: relative;
  margin-bottom: 70px;
  background: #fffdf6;
  border: 1px solid var(--ink);
  transition: transform .22s ease;
}

.workshop-card:nth-child(even) { transform: translateY(95px) rotate(.5deg); }
.workshop-card:nth-child(odd) { transform: rotate(-.4deg); }
.workshop-card:hover:nth-child(even) { transform: translateY(89px) rotate(-.25deg); }
.workshop-card:hover:nth-child(odd) { transform: translateY(-6px) rotate(.25deg); }

.workshop-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.workshop-card:nth-child(odd)::after { right: calc(clamp(35px, 4.5vw, 75px) * -1 - 11px); }
.workshop-card:nth-child(even)::after { left: calc(clamp(35px, 4.5vw, 75px) * -1 - 11px); }

.card-tape {
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  background: rgba(217, 255, 67, .8);
  transform: translateX(-50%) rotate(-2deg);
  border-left: 1px dashed rgba(25,25,18,.35);
  border-right: 1px dashed rgba(25,25,18,.35);
}

.card-image-wrap { position: relative; height: clamp(240px, 25vw, 350px); overflow: hidden; border-bottom: 1px solid var(--ink); }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); filter: saturate(.85); }
.workshop-card:hover .card-image { transform: scale(1.035); }

.card-index {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 10px;
  border: 1px solid var(--ink);
}

.saved-ribbon {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 8px 10px;
  color: white;
  background: var(--blue);
  font: 800 9px var(--utility);
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.card-copy { padding: 22px 24px 24px; }
.card-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-category { margin: 0; color: var(--card-accent); font-size: 10px; }
.card-price { margin: 0; font: 700 13px var(--utility); }
.card-copy h3 { margin: 0 0 17px; font: 400 clamp(31px, 3vw, 44px)/.95 var(--display); letter-spacing: -.04em; }
.card-description { min-height: 48px; margin-bottom: 20px; color: #48473d; font-size: 14px; line-height: 1.5; }

.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin-bottom: 21px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.card-meta span { font: 700 10px var(--utility); letter-spacing: .05em; text-transform: uppercase; }

.open-item {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--paper);
  font-weight: 700;
  text-align: left;
  transition: color .15s ease, background .15s ease;
}

.open-item span { font-size: 22px; }
.open-item:hover { color: white; background: var(--ink); }

.empty-state {
  max-width: 690px;
  margin: 50px auto 0;
  padding: 60px 30px;
  border: 2px dashed var(--ink);
  text-align: center;
  background: var(--lavender);
  transform: rotate(-.4deg);
}
.empty-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border: 2px solid; border-radius: 50%; font: italic 50px var(--display); }
.empty-state h3 { margin-bottom: 12px; font: italic 42px var(--display); }
.empty-state p { max-width: 440px; margin: 0 auto 24px; line-height: 1.5; }
.empty-state button { padding: 13px 18px; border: 1px solid; background: var(--acid); font-weight: 700; cursor: pointer; }

.closing-note {
  padding: clamp(70px, 9vw, 130px) clamp(22px, 7vw, 105px);
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(45px, 8vw, 120px);
  align-items: center;
  color: #fffdf6;
  background: var(--ink);
}

.closing-image { position: relative; padding: 11px; background: var(--paper); transform: rotate(-3deg); }
.closing-image img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; filter: saturate(.7) contrast(1.1); }
.closing-image span { position: absolute; right: -32px; bottom: -31px; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; color: var(--ink); background: var(--acid); font-size: 42px; }
.closing-copy .eyebrow { color: var(--acid); }
.closing-copy h2 { max-width: 660px; margin-bottom: 34px; }
.closing-copy > p:not(.eyebrow) { max-width: 580px; margin-bottom: 32px; font: italic 20px/1.55 var(--display); color: #d6d2c5; }
.closing-copy a { display: inline-flex; gap: 30px; padding-bottom: 6px; border-bottom: 1px solid var(--acid); color: var(--acid); text-decoration: none; font-weight: 700; }

footer {
  min-height: 160px;
  padding: 40px clamp(22px, 4vw, 64px);
  border-top: 1px solid #4e4d43;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  gap: 30px;
  color: white;
  background: var(--ink);
  font-size: 9px;
  line-height: 1.5;
}
footer p { margin: 0; }
footer > a:last-child { color: var(--acid); text-decoration: none; }
.footer-mark { color: white; font-size: 31px; }

.detail-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 18px 18px 0 var(--orange);
}

.detail-dialog::backdrop { background: rgba(21,21,15,.77); backdrop-filter: blur(3px); }

.detail-view { position: relative; min-height: 620px; }

.detail-close {
  position: sticky;
  z-index: 10;
  top: 14px;
  float: right;
  margin: 14px 14px -60px 0;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  cursor: pointer;
  background: var(--acid);
  font: 800 11px var(--utility);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-close span { margin-right: 7px; font-size: 18px; }

.detail-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.detail-image { position: relative; min-height: 620px; overflow: hidden; border-right: 1px solid var(--ink); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.detail-image::after { content: "FORMA FIELD TRIP"; position: absolute; left: 22px; bottom: 22px; padding: 8px 10px; background: var(--acid); font: 800 9px var(--utility); letter-spacing: .12em; transform: rotate(-2deg); }

.detail-copy { padding: 70px clamp(30px, 5vw, 70px) 45px; align-self: center; }
.detail-kicker { margin-bottom: 15px; color: var(--blue); font-size: 10px; }
.detail-copy h2 { max-width: 520px; margin: 0 0 22px; font: 400 clamp(48px, 5.4vw, 76px)/.88 var(--display); letter-spacing: -.055em; }
.detail-body { max-width: 530px; margin-bottom: 28px; font: italic 19px/1.52 var(--display); }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 30px; border-top: 1px solid var(--ink); }
.fact { padding: 13px 8px 11px 0; border-bottom: 1px solid var(--rule); }
.fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.fact dt { margin-bottom: 6px; color: var(--muted); font-size: 8px; }
.fact dd { margin: 0; font-size: 14px; font-weight: 700; }

.save-item {
  width: 100%;
  min-height: 58px;
  padding: 15px 18px;
  border: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--acid);
  font-weight: 800;
  box-shadow: 6px 6px 0 var(--ink);
}
.save-item[aria-pressed="true"] { color: white; background: var(--blue); }
.save-item span:last-child { font-size: 23px; }
.detail-footnote { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: 300px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 660px; }
  .hero-collage { min-height: 560px; }
  .hero-photo-main { left: 8%; right: auto; width: 76%; }
  .hero-photo-small { left: 0; }
  .stamp { right: 5%; }
  .catalogue-heading { grid-template-columns: 1fr; gap: 24px; }
  .catalogue-note { margin-left: 0; }
  .control-board { grid-template-columns: 1fr 1fr; }
  .select-control { border-right: 0; }
  .saved-toggle { grid-column: 1 / -1; min-height: 64px; border-top: 1px solid; }
  .detail-dialog { width: calc(100vw - 32px); }
  .detail-layout { grid-template-columns: .9fr 1.1fr; }
  .detail-copy { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 640px) {
  .masthead { height: 68px; grid-template-columns: 1fr auto; }
  .masthead-note { display: none; }
  .jump-link { font-size: 10px; }
  .hero { min-height: 0; padding: 53px 22px 54px; gap: 40px; }
  h1 { font-size: clamp(61px, 20vw, 79px); line-height: .81; }
  .hero-intro { font-size: 16px; line-height: 1.5; }
  .hero-collage { min-height: 390px; }
  .hero-photo-main { left: 5%; width: 88%; height: 315px; }
  .hero-photo-small { width: 130px; height: 155px; left: -4px; }
  .hero-photo figcaption { font-size: 7px; }
  .stamp { width: 84px; height: 84px; right: -5px; bottom: 5px; font-size: 8px; }
  .scribble { width: 100px; left: 15%; top: 37%; }
  .manifesto { min-height: 145px; padding: 28px 22px; grid-template-columns: auto 1fr; gap: 18px; }
  .manifesto > p:nth-child(2) { font-size: 26px; }
  .manifesto-side { display: none; }
  .catalogue { padding: 72px 20px 75px; }
  .catalogue-heading { margin-bottom: 38px; }
  .catalogue-heading h2, .closing-copy h2 { font-size: 55px; }
  .catalogue-note { font-size: 15px; }
  .control-board { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--ink); }
  .search-control, .select-control { padding: 15px 16px 13px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .saved-toggle { grid-column: auto; border-top: 0; min-height: 59px; justify-content: flex-start; padding-left: 16px; }
  .results-line { margin: 30px 0 5px; }
  .workshop-route { grid-template-columns: 1fr; gap: 0; padding: 34px 0 0 18px; }
  .workshop-route::before { left: 3px; right: auto; bottom: 40px; }
  .workshop-card, .workshop-card:nth-child(even), .workshop-card:nth-child(odd) { margin-bottom: 42px; transform: none; }
  .workshop-card:hover:nth-child(even), .workshop-card:hover:nth-child(odd) { transform: translateY(-3px); }
  .workshop-card::after, .workshop-card:nth-child(odd)::after, .workshop-card:nth-child(even)::after { left: -27px; right: auto; width: 14px; height: 14px; }
  .card-image-wrap { height: 235px; }
  .card-copy { padding: 20px; }
  .card-copy h3 { font-size: 35px; }
  .card-description { min-height: 0; }
  .empty-state { padding: 45px 20px; }
  .closing-note { grid-template-columns: 1fr; padding: 72px 22px 80px; }
  .closing-image { width: 88%; }
  .closing-copy h2 { margin-top: 10px; }
  footer { grid-template-columns: 1fr 1fr; min-height: 210px; padding: 36px 22px; }
  footer > :nth-child(3) { display: none; }
  footer > a:last-child { text-align: right; }
  .detail-dialog { width: 100%; max-height: 100%; height: 100%; border: 0; box-shadow: none; }
  .detail-view { min-height: 100%; }
  .detail-layout { display: block; min-height: 100%; }
  .detail-image { min-height: 0; height: 36vh; border-right: 0; border-bottom: 1px solid var(--ink); }
  .detail-copy { padding: 36px 22px 40px; }
  .detail-copy h2 { font-size: 50px; }
  .detail-body { font-size: 17px; }
  .detail-close { position: fixed; right: 0; }
  .toast { left: 18px; right: 18px; bottom: 18px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
