:root {
  --bg: #111111;
  --text: #e8e8e3;
  --muted: #9b9b94;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

html {
  scroll-behavior: smooth;
}

header,
main {
  padding: 2rem 1.75rem;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  max-width: none;
}

main {
  max-width: 42rem;
  padding-top: 2.5rem;
  padding-left: 2.75rem;
}

section {
  margin: 0;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

main > p {
  color: var(--text);
}

video {
  display: block;
  width: min(10rem, 100%);
  margin: 0 0 0.75rem;
  background: var(--bg);
  color: var(--text);
}

.lift p {
  color: var(--text);
}

.citation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.citation-list li {
  position: relative;
  margin: 0 0 1.1rem;
  padding-left: 1rem;
}

.citation-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
}

.citation-list a {
  display: block;
  color: var(--text);
}

.citation-list span {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-sheet {
  --unit: clamp(2.15rem, 4.2vw, 4.35rem);
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(12, var(--unit));
  grid-template-rows: repeat(8, var(--unit));
  width: fit-content;
  margin: 0 auto;
}

.elsewhere-page {
  max-width: none;
  padding-top: 2rem;
  padding-left: clamp(1.75rem, 6vw, 6rem);
  padding-right: clamp(1.75rem, 6vw, 6rem);
}

.sheet-item {
  margin: 0;
  min-width: 0;
}

.empty-media {
  width: 100%;
  height: 100%;
  background: rgba(232, 232, 227, 0.025);
  border: 1px solid rgba(232, 232, 227, 0.14);
}

.cell-a { grid-area: 1 / 1 / 4 / 5; }
.cell-b { grid-area: 1 / 5 / 3 / 8; }
.cell-c { grid-area: 1 / 8 / 3 / 10; }
.cell-d { grid-area: 1 / 10 / 5 / 13; }
.cell-e { grid-area: 3 / 5 / 7 / 8; }
.cell-f { grid-area: 3 / 8 / 5 / 10; }
.cell-g { grid-area: 4 / 1 / 6 / 3; }
.cell-h { grid-area: 4 / 3 / 6 / 5; }
.cell-i { grid-area: 5 / 8 / 8 / 10; }
.cell-j { grid-area: 5 / 10 / 7 / 13; }
.cell-k { grid-area: 6 / 1 / 9 / 3; }
.cell-l { grid-area: 6 / 3 / 9 / 5; }
.cell-m { grid-area: 7 / 5 / 9 / 8; }
.cell-n { grid-area: 7 / 10 / 9 / 13; }
.cell-o { grid-area: 8 / 8 / 9 / 9; }
.cell-p { grid-area: 8 / 9 / 9 / 10; }

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

a {
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
}

a:hover {
  color: var(--muted);
  text-decoration: underline;
}

a:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  header,
  main {
    padding: 1.25rem;
  }

  nav {
    justify-content: center;
  }

  .contact-sheet {
    --unit: calc((100vw - 2.5rem - 1.35rem) / 4);
    grid-template-columns: repeat(4, var(--unit));
    grid-template-rows: none;
    grid-auto-rows: var(--unit);
  }

  .sheet-item {
    grid-area: auto;
  }

  .ratio-1x1 .empty-media { aspect-ratio: 1 / 1; }
  .ratio-2x3 .empty-media { aspect-ratio: 2 / 3; }
  .ratio-3x2 .empty-media { aspect-ratio: 3 / 2; }
  .ratio-3x4 .empty-media { aspect-ratio: 3 / 4; }
  .ratio-4x3 .empty-media { aspect-ratio: 4 / 3; }

  .empty-media {
    height: auto;
  }
}

@media (max-width: 380px) {
  .contact-sheet {
    --unit: calc((100vw - 2.5rem - 0.45rem) / 2);
    grid-template-columns: repeat(2, var(--unit));
  }
}
