/* Fresco palette: lime plaster, ochre, terracotta, and the ultramarine of the Last Judgment. */
:root {
  --bg: #f3ebdc;
  --panel: #fbf6ec;
  --ink: #2e2419;
  --muted: #7a6a55;
  --ochre: #b8862f;
  --terracotta: #a8502f;
  --lapis: #2f5a8f;
  --line: #ddcfb6;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--serif);
}

a { color: var(--terracotta); }

.hero {
  padding: clamp(3rem, 10vh, 7rem) 16px clamp(2rem, 6vh, 4rem);
  text-align: center;
  border-bottom: 6px double var(--ochre);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 134, 47, .28), transparent 65%),
    var(--bg);
}
.eyebrow { color: var(--muted); letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; }
h1 {
  margin: .2em 0;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: normal;
  letter-spacing: .03em;
  color: var(--terracotta);
}
.lead { max-width: 36rem; margin: 1rem auto 2rem; font-style: italic; font-size: 1.15rem; }
nav { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

main { max-width: 60rem; margin: 0 auto; padding: 0 16px; }
.panel { padding: 3rem 0; border-bottom: 1px solid var(--line); }
h2 { color: var(--lapis); font-weight: normal; font-size: 2rem; margin-top: 0; }

.quote {
  margin: 3rem 0;
  padding: 2.5rem 16px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--terracotta);
}
.quote .tr { font-size: 1rem; color: var(--muted); font-style: normal; }

.search { display: block; margin: 1.5rem 0 1rem; }
.search span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.search input {
  width: 100%;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.search input:focus { outline: 2px solid var(--ochre); }
.count { color: var(--muted); min-height: 1.6em; margin: 0 0 .5rem; }

/* Each area is a band of panels, like the bays of the ceiling. */
.area h3 {
  font-weight: normal;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  margin: 2rem 0 .8rem;
}
.scenes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.scene {
  position: relative;
  padding: 1.1rem 1.1rem .9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ochre);
  border-radius: 3px;
}
.scene[data-area="judgment"] { border-top-color: var(--lapis); }
.scene[data-area="corners"] { border-top-color: var(--terracotta); }
.scene .num {
  position: absolute;
  top: .6rem;
  right: .8rem;
  color: var(--line);
  font-size: 1.6rem;
}
.scene h4 { margin: 0 2rem .1rem 0; font-size: 1.15rem; font-weight: normal; }
.scene p { margin: .4rem 0; font-size: .95rem; }
.scene .it { color: var(--muted); font-style: italic; margin-top: 0; }
.scene .look { color: var(--ink); }
.scene .src { color: var(--muted); font-size: .8rem; }
.k { color: var(--terracotta); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-right: .3rem; }
.empty { padding: 1rem 0; color: var(--muted); font-style: italic; }

.q { border: 1px solid var(--line); border-radius: 4px; margin: 0 0 1rem; padding: .8rem 1rem; background: var(--panel); }
.q legend { padding: 0 .4rem; }
.q label { display: block; cursor: pointer; padding: .15rem 0; }
button {
  font: inherit;
  padding: .7rem 1.6rem;
  color: var(--panel);
  background: var(--lapis);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: var(--terracotta); }
.result { font-size: 1.15rem; min-height: 1.6em; color: var(--lapis); }

.site { text-align: center; padding: 3rem 16px; color: var(--muted); }
.build { font-size: .75rem; opacity: .7; }

/* ---- Pictures ---- */
img { max-width: 100%; height: auto; display: block; }

.ceiling { margin: 0; background: #1d1711; }
.ceiling img { width: 100%; }
.ceiling figcaption { color: #c9b896; font-size: .85rem; text-align: center; padding: .5rem 16px .8rem; }

.scene .pic {
  display: block;
  margin: -1.1rem -1.1rem .9rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--line);
}
.scene .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.scene .pic:hover img { transform: scale(1.04); }
.scene .pic + .num {
  top: .5rem;
  right: .5rem;
  min-width: 2rem;
  padding: 0 .4rem;
  text-align: center;
  font-size: 1rem;
  color: var(--panel);
  background: rgba(46, 36, 25, .7);
  border-radius: 3px;
}

.split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 50rem) { .split { grid-template-columns: 28rem 1fr; } }
.judgment .pic img { border: 1px solid var(--line); border-radius: 3px; }

.credits-box { max-width: 52rem; margin: 1.5rem auto 0; text-align: left; font-size: .8rem; }
.credits-box summary { cursor: pointer; text-align: center; }
.credits { padding-left: 1.2rem; }
.credits li { margin: .3rem 0; }
