:root {
  color-scheme: dark;
  --background: #10110f;
  --foreground: #f5f4ed;
  --surface: #191b18;
  --muted: #aaa99f;
  --accent: #d7ff52;
  --strike: #ff765f;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  min-height: 50svh;
  display: flex;
  align-items: flex-end;
  padding: 56px 0;
}

.title-prefix {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(.92rem, 1.4vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .03em;
}

.wall-title {
  max-width: 1000px;
  margin: 0;
  overflow: visible;
  font-size: clamp(3.25rem, 9vw, 7.6rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.06em;
}

.word-edit {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.cut-letter {
  position: relative;
  display: inline-block;
  width: .66em;
  color: var(--muted);
}

.cut-letter::after {
  content: "";
  position: absolute;
  width: 1.05em;
  height: .055em;
  left: -.2em;
  top: .52em;
  background: var(--strike);
  transform: rotate(-24deg);
}

.replacement {
  position: absolute;
  left: -.02em;
  top: -.5em;
  color: var(--accent);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: .42em;
  font-weight: 500;
  letter-spacing: -.12em;
  transform: rotate(-7deg);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 90px;
}

.evidence-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.evidence-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.open-mark {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(5 6 5 / 72%);
  font-size: 19px;
  line-height: 1;
}

.summary {
  position: absolute;
  inset: auto 0 0;
  padding: 54px 16px 15px;
  background: linear-gradient(transparent, rgb(5 6 5 / 96%));
}

.description {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--foreground);
  font-size: .93rem;
  line-height: 1.45;
  transform: translateY(8px);
  transition: max-height 240ms ease, opacity 240ms ease, transform 240ms ease;
}

.evidence-card:hover .description,
.evidence-card:focus-visible .description {
  max-height: 150px;
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .description { max-height: 150px; opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 1180px); }
  .hero { min-height: 50svh; padding: 38px 0; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card { width: 100%; max-width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .description { transition: none; }
}
