/* The Wall — Anchorage Claude Impact Lab, 2026-08-04
   No framework, no build step, no external requests. Opens from file://. */

:root {
  --board:   #1c1a19;
  --paper:   #faf7f2;
  --ink:     #201d1b;
  --muted:   #6c635c;
  --rule:    #ddd4c9;
  --terra:   #cc6a43;
  --terra-d: #a4502f;
  --warn:    #8a6d3b;
  --shadow:  0 6px 22px rgba(0,0,0,.30);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 16px/1.6 ui-serif, Georgia, "Iowan Old Style", serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site { padding: 44px 0 26px; color: var(--paper); position: relative; }
.site h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -.02em;
  font-weight: 600;
}
.sub { margin: 0; max-width: 46rem; color: #cbc2b8; font-size: clamp(15px, 1.6vw, 18px); }

.voice {
  position: absolute; top: 46px; right: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #cbc2b8;
  border: 1px solid #4a443f; border-radius: 999px;
  padding: 8px 15px; cursor: pointer;
  font: inherit; font-size: 14px;
}
.voice:hover { border-color: var(--terra); color: var(--paper); }
.voice[aria-pressed="true"] { background: var(--terra); border-color: var(--terra); color: #fff; }

/* ---------- filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 22px; }
.chip {
  background: transparent; color: #b8ada2;
  border: 1px solid #4a443f; border-radius: 999px;
  padding: 7px 15px; cursor: pointer; font: inherit; font-size: 14px;
}
.chip:hover { border-color: #7d736a; color: var(--paper); }
.chip.on { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- the wall ---------- */

.wall {
  columns: 275px 4;
  column-gap: 26px;
  padding-bottom: 8px;
}
.wall .card { margin-bottom: 26px; break-inside: avoid; }

.card {
  position: relative;
  display: block; width: 100%; text-align: left;
  background: var(--paper);
  border: 0; border-radius: 3px;
  padding: 0 0 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font: inherit; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:nth-child(3n)   { transform: rotate(-.7deg); }
.card:nth-child(3n+1) { transform: rotate(.5deg); }
.card:hover, .card:focus-visible {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.42);
  outline: none;
}
.card:focus-visible { box-shadow: 0 0 0 3px var(--terra), var(--shadow); }

/* Cards keep their own proportions. A one-line question and a card crammed with
   seven lines are not the same shape, and forcing them into a uniform grid read
   as stock photography — the unevenness is the evidence that people wrote these.
   The grid uses masonry-ish auto rows rather than stretching anything. */
.card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px 3px 0 0;
  background: #fff;
}

.card .ex {
  margin: 12px 16px 0;
  font-size: 14.5px; line-height: 1.5;
  color: #3c3733;
}
.card .tag {
  display: flex; align-items: center; gap: 8px; margin: 11px 16px 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--terra-d);
}

/* The writer's own label for their card. Their framing, not ours. */
.kind {
  font-style: normal; font-weight: 600; font-size: 10px;
  padding: 2px 7px; border-radius: 3px; letter-spacing: .08em;
}
.kind-question { background: #ecebe4; color: #55524a; }
.kind-fear     { background: #f1e2d8; color: #8a4a28; }
.kind-hope     { background: #e2ecdf; color: #3d6349; }

/* the six cards Megan walked the room for */
.gathered {
  margin: 10px 16px 0; padding-top: 9px;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11.5px; letter-spacing: .02em; color: var(--terra-d);
}

.footnote {
  margin: 30px 0 10px; color: #8c837a; font-size: 14px;
}
.footnote a { color: #b8ada2; }

/* ---------- crew ---------- */

.crew {
  margin: 44px 0 70px;
  padding-top: 34px;
  border-top: 1px solid #332f2b;
}
.crew h2 {
  margin: 0 0 20px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #7d736a;
}

.names {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 12px;
}
.names li {
  background: var(--paper); color: var(--ink);
  border-radius: 3px; padding: 9px 18px;
  font-size: 17px; box-shadow: 0 3px 12px rgba(0,0,0,.26);
}
.names li:nth-child(2n)   { transform: rotate(-.8deg); }
.names li:nth-child(3n+1) { transform: rotate(.9deg); }

/* Megan's splash. The starburst is the mark printed on every card in the room —
   here it's drawn rather than photographed, and it turns. */
.splash {
  margin: 0; display: flex; align-items: center; gap: 22px;
  background: var(--paper); border-radius: 4px;
  border-left: 4px solid var(--terra);
  padding: 22px 26px; max-width: 620px;
  box-shadow: 0 10px 30px rgba(0,0,0,.34);
}
.burst { flex: 0 0 74px; line-height: 0; }
.burst svg { display: block; width: 74px; height: 74px; }
.burst .rays {
  fill: var(--terra);
  /* transform-box is required: without it CSS reads transform-origin in screen
     pixels rather than viewBox units, and the rays swing off-centre. */
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spin 26s linear infinite;
}
.burst use { animation: pulse 3.4s ease-in-out infinite; }
.burst use:nth-child(2n) { animation-delay: -1.7s; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.splash figcaption { display: flex; flex-direction: column; gap: 5px; }
.splash strong {
  font-size: 25px; font-weight: 600; letter-spacing: -.01em;
}

/* Sparkles on the name. Positioned around the word rather than over it, so the
   name stays legible — the twinkle is decoration, not a texture on the text. */
.name { position: relative; display: inline-block; align-self: flex-start; }
.sparks { position: absolute; inset: -14px -20px; pointer-events: none; }
.sparks svg {
  position: absolute;
  fill: var(--terra);
  opacity: 0;
  transform: scale(0);
  animation: twinkle 2.6s ease-in-out infinite;
}
/* Scattered by hand — an even distribution reads as a loading spinner. All of
   them sit above or beside the word; none below, or they land on the sentence. */
.sparks .s1 { width: 13px; height: 13px; top:  2px; left: -15px; animation-delay: 0s; }
.sparks .s2 { width:  9px; height:  9px; top: -6px; left:  30px; animation-delay: .45s; }
.sparks .s3 { width: 16px; height: 16px; top: -9px; right:  2px; animation-delay: .9s; fill: var(--terra-d); }
.sparks .s4 { width:  8px; height:  8px; top:  16px; right: -14px; animation-delay: 1.4s; }
.sparks .s5 { width: 11px; height: 11px; top: -11px; left:  74px; animation-delay: 1.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0)   rotate(0deg); }
  35%      { opacity: 1; transform: scale(1)   rotate(45deg); }
  60%      { opacity: .8; transform: scale(.75) rotate(70deg); }
}
.splash span { font-size: 15.5px; line-height: 1.55; color: #4a443e; }
.splash b { font-weight: 600; color: var(--terra-d); }

@media (max-width: 560px) {
  .splash { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .burst .rays, .burst use { animation: none; }
  /* sparkles hold still and visible rather than vanishing entirely */
  .sparks svg { animation: none; opacity: .9; transform: scale(1) rotate(45deg); }
}

/* Megan, in stars — the starburst is the mark printed on every card in the room. */
.starred {
  white-space: nowrap;
  color: var(--paper);
}
.starred b { font-weight: 600; }
.starred::before,
.starred::after {
  content: "✳";
  color: var(--terra);
  font-size: .95em;
  padding: 0 .28em;
  vertical-align: baseline;
}

.credits {
  margin: 0 0 18px !important;
  font-size: 16px !important;
  line-height: 1.9;
  color: var(--muted);
}
dialog .starred { color: var(--ink); }

/* ---------- shared: sheet views ---------- */

.interview-view, .result-view { padding-bottom: 80px; }

.back {
  background: none; border: 0; color: #b8ada2;
  font: inherit; font-size: 15px; cursor: pointer;
  padding: 6px 0; margin: 6px 0 22px;
}
.back:hover { color: var(--paper); }

.chosen {
  margin: 0 0 30px; max-width: 560px;
  background: var(--paper); border-radius: 3px;
  box-shadow: var(--shadow); overflow: hidden;
}
.chosen img { display: block; width: 100%; height: auto; }
.chosen figcaption {
  padding: 14px 18px; font-size: 14.5px; color: #3c3733;
  border-top: 1px solid var(--rule);
}
.chosen.small { max-width: 380px; margin-bottom: 34px; }

/* ---------- interview ---------- */

.q-area { max-width: 720px; }
.step {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: #8c837a; margin: 0 0 10px;
}
.q-area h2 {
  color: var(--paper); font-weight: 500;
  font-size: clamp(23px, 3.4vw, 33px); line-height: 1.3;
  margin: 0 0 28px; letter-spacing: -.01em;
}

.opts { display: flex; flex-direction: column; gap: 12px; }
.opt {
  background: var(--paper); color: var(--ink);
  border: 0; border-left: 4px solid transparent; border-radius: 3px;
  padding: 17px 20px; text-align: left; cursor: pointer;
  font: inherit; font-size: 17px;
  box-shadow: 0 3px 12px rgba(0,0,0,.24);
  transition: border-color .14s ease, transform .14s ease;
}
.opt:hover, .opt:focus-visible {
  border-left-color: var(--terra); transform: translateX(4px); outline: none;
}

/* ---------- result ---------- */

.part {
  background: var(--paper); border-radius: 4px;
  padding: 26px 30px; margin: 0 0 18px; max-width: 780px;
  box-shadow: var(--shadow);
}
.part h2 {
  margin: 0 0 16px; font-size: 13px; font-weight: 600;
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.part ul, .part ol { margin: 0; padding-left: 1.15em; }
.part li { margin-bottom: 13px; }
.part li:last-child { margin-bottom: 0; }

.part.accent { border-left: 4px solid var(--terra); }
.part.accent ol { font-size: 18px; }
.part.accent li { margin-bottom: 15px; }
.part.warn { border-left: 4px solid var(--warn); background: #f6f1e7; }

.tiny { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }

.end { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.ghost {
  background: transparent; color: #cbc2b8;
  border: 1px solid #4a443f; border-radius: 999px;
  padding: 10px 20px; cursor: pointer; font: inherit; font-size: 15px;
}
.ghost:hover { border-color: var(--terra); color: var(--paper); }

/* ---------- about ---------- */

dialog {
  max-width: 560px; border: 0; border-radius: 5px; padding: 32px 34px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
dialog::backdrop { background: rgba(0,0,0,.62); }
dialog h2 { margin: 0 0 16px; font-size: 25px; font-weight: 600; }
dialog p { margin: 0 0 14px; font-size: 15.5px; }
dialog .ghost { color: var(--muted); border-color: var(--rule); margin-top: 8px; }
dialog .ghost:hover { color: var(--ink); border-color: var(--muted); }

@media (max-width: 620px) {
  .voice { position: static; margin-top: 18px; }
  .part { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card { transform: none !important; }
}
