/* The Human Gallery */

:root {
  --wall: #f6f6f4;
  --mat: #ffffff;
  --ink: #1e1e1e;
  --grey: #6b6b6b;
  --line: #d4d4d0;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: #1c1c1b;
    --mat: #2a2a28;
    --ink: #e6e6e3;
    --grey: #9a9a96;
    --line: #3a3a37;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--wall);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }

.entrance, main, footer {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---- entrance ---- */

.entrance { padding-top: clamp(3rem, 9vw, 6rem); }

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.sub {
  font-size: 1.15rem;
  color: var(--grey);
  margin: .35rem 0 2.5rem;
}

.intro { max-width: 34rem; }
.intro p { margin: 0 0 1rem; }

.prompt {
  font-family: var(--mono);
  font-size: .85rem;
  padding-left: 1.25rem;
  user-select: all;
}

.intro .small { font-size: .85rem; color: var(--grey); margin-top: 2rem; }

/* ---- the hang ---- */

.work {
  display: grid;
  grid-template-columns: minmax(0, 42rem) 15rem;
  gap: 2.5rem;
  align-items: end;
  padding-top: clamp(4rem, 10vw, 7.5rem);
}

.piece {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  min-width: 0;
}

/* A picture in a plain white mount. */
.mount {
  margin: 0;
  max-width: 100%;
  padding: clamp(1rem, 4.5vw, 2.5rem);
  background: var(--mat);
  border: 1px solid var(--line);
}
.mount.small { padding: clamp(2.5rem, 12vw, 6rem); }
.mount img {
  display: block;
  max-width: 100%;
  height: auto;
  background: #808080;
}

/* A text, on a sheet. */
.sheet {
  width: 100%;
  padding: clamp(1.25rem, 4.5vw, 2.5rem);
  background: var(--mat);
  border: 1px solid var(--line);
}

pre.text {
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.65;
  white-space: pre-wrap;
  margin: 0;
}
pre.wide { white-space: pre; overflow-x: auto; }
p.text { margin: 0; line-height: 1.7; }

ul.leaves { list-style: none; padding: 0; margin: 0; }
ul.leaves li { margin: 0 0 .6rem; }
ul.leaves li:last-child { margin: 0; }

.two-orders {
  display: flex;
  flex-direction: column;
  line-height: 1.9;
}
.two-orders span { display: block; }

/* Nothing hangs here. */
.vacant {
  width: min(100%, 20rem);
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
}

/* ---- the label, printed on the wall ---- */

.label {
  font-size: .8rem;
  line-height: 1.45;
  max-width: 15rem;
}
.label p { margin: 0; }
.label .title { font-size: .95rem; margin-bottom: .3rem; }
.label cite { font-style: italic; }
.label .repro { margin-top: .5rem; }
.label .acc { margin-top: .75rem; color: var(--grey); }

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

footer {
  margin-top: clamp(5rem, 12vw, 8rem);
  padding-bottom: 5rem;
}
footer::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-bottom: 2rem;
}
footer > * { max-width: 34rem; }
footer h2 { font-size: 1rem; font-weight: 500; margin: 0 0 1rem; }
footer p { margin: 0 0 1rem; }

@media (max-width: 52rem) {
  .work { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
