/* 30 Pieces of Silver, v09: Twelve Questions. Black page, silver type, nothing else. */
:root {
  --ink: #0a0a0a;
  --silver: #c0c0c0;
  --bright: #e9ecef;
  --dim: #5a5f63;
  --mid: #8b9095;
  --hair: #232527;
  --text: #c9cbcd;
  --fell: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --fellsc: "IM Fell English SC", "Iowan Old Style", Georgia, serif;
  --inst: "Instrument Serif", "Times New Roman", serif;
  --vh: 1vh;
  --gut: 48px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--silver);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  font-family: var(--inst);
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--bright); color: var(--ink); }

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--bright);
  outline-offset: 6px;
}

/* Home link */
.home {
  position: fixed;
  top: 22px;
  left: var(--gut);
  z-index: 10;
  font-family: var(--fellsc);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--bright);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(233, 236, 239, 0.25);
}
.home:hover { border-bottom-color: var(--bright); }

/* The twelve */
.ask {
  position: relative;
  height: calc(var(--vh) * 100);
}
.js .ask { height: calc(var(--vh) * 330); }

.stage {
  position: sticky;
  top: 0;
  height: calc(var(--vh) * 100);
  min-height: 560px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  padding: 0 var(--gut);
  overflow: clip;
}

.masthead {
  grid-column: 1 / span 4;
  align-self: center;
  padding-bottom: 6vh;
}

h1 {
  margin: 0;
  font-family: var(--inst);
  font-weight: 400;
  font-size: clamp(46px, 4.6vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--bright);
}

.tagline {
  margin: 22px 0 0;
  max-width: 21ch;
  font-family: var(--inst);
  font-style: italic;
  font-size: 21px;
  line-height: 1.38;
  color: var(--mid);
}

.tally {
  position: absolute;
  top: 26px;
  right: var(--gut);
  margin: 0;
  font-family: var(--fellsc);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-align: right;
}
.tally span { display: block; transition: opacity 0.9s ease; }
.tally span + span { position: absolute; right: 0; top: 0; opacity: 0; }
.tally.turned span:first-child { opacity: 0; }
.tally.turned span + span { opacity: 1; }

.voices-wrap {
  grid-column: 5 / span 8;
  position: relative;
  min-width: 0;
  --base: min(4.3vw, calc(var(--vh) * 5.9));
}

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

.voices li {
  display: block;
  white-space: nowrap;
  font-family: var(--fell);
  font-size: calc(var(--base) * var(--s, 1) * var(--fit, 1));
  line-height: 1.07;
  letter-spacing: var(--ls, 0);
  padding-left: var(--in, 0px);
  color: var(--silver);
  opacity: var(--o, 1);
  filter: blur(var(--bl, 0px));
  transition: color 0.8s ease;
  will-change: opacity;
}
.voices li.it { font-style: italic; }
.voices li .t { display: inline-block; }
.voices li.alone { color: var(--bright); }

@media (hover: hover) {
  .voices li:hover {
    opacity: max(var(--o, 1), 0.6);
    color: var(--bright);
    filter: none;
  }
}

.answer {
  margin: 0.35em 0 0;
  font-family: var(--fell);
  font-style: italic;
  font-size: calc(var(--base) * 0.74);
  line-height: 1.1;
  color: var(--silver);
  padding-left: var(--ain, 0px);
}
.js .answer { opacity: 0; }

.ref {
  position: absolute;
  left: var(--gut);
  bottom: 28px;
  margin: 0;
  max-width: 30ch;
  font-family: var(--fellsc);
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--dim);
}

/* Reading column */
.read {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding: 0 var(--gut) 18vh;
}

.read > * { grid-column: 5 / span 6; min-width: 0; }

.lede {
  margin: 4vh 0 26vh;
  font-family: var(--inst);
  font-size: clamp(32px, 3.2vw, 50px);
  line-height: 1.16;
  color: var(--silver);
}
.lede .q { color: var(--bright); }

#story {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
#story > .sec { grid-column: 1 / -1; }

.sec {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin: 0 0 16vh;
}

.sec .note {
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
  margin: 0;
  padding-top: 64px;
  text-align: right;
  font-family: var(--fell);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--mid);
}
.sec .note cite {
  display: block;
  margin-top: 10px;
  font-family: var(--fellsc);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.sec h2,
.details h2,
.buy h2 {
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-family: var(--fellsc);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--mid);
}

.sec h2,
.sec .body { grid-column: 5 / span 6; }

.sec .body {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  color: var(--text);
}

.plate {
  grid-column: 4 / span 8;
  margin: 0 0 16vh;
}
.plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #141414;
  filter: grayscale(var(--g, 1)) brightness(calc(0.82 + (1 - var(--g, 1)) * 0.18));
}
.plate figcaption {
  margin-top: 14px;
  font-family: var(--fellsc);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.details { margin: 0 0 14vh; }
.details ul { list-style: none; margin: 0; padding: 0; }
.details li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--fell);
  font-size: 20px;
  color: var(--silver);
}

.buy { margin: 0 0 18vh; }
.price {
  margin: 0;
  font-family: var(--inst);
  font-size: 52px;
  line-height: 1;
  color: var(--bright);
}
.edition {
  margin: 10px 0 30px;
  font-family: var(--fellsc);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--mid);
}
.claim {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--silver);
  border-radius: 0;
  padding: 6px 0;
  font-family: var(--inst);
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  color: var(--bright);
  cursor: pointer;
  transition: border-color 0.4s ease, color 0.4s ease;
}
.claim:hover { border-bottom-color: var(--bright); }
.confirm {
  min-height: 1.5em;
  margin: 18px 0 0;
  font-family: var(--fell);
  font-style: italic;
  font-size: 20px;
  color: var(--silver);
}

.onward { border-top: 1px solid var(--hair); padding-top: 22px; }
.onward a#next {
  display: inline-block;
  text-decoration: none;
  color: var(--bright);
}
.onward-label {
  display: block;
  font-family: var(--fellsc);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.onward-title {
  display: block;
  margin-top: 6px;
  font-family: var(--inst);
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.05;
  border-bottom: 1px solid transparent;
}
.onward a#next:hover .onward-title { border-bottom-color: var(--silver); }
.home-foot {
  display: table;
  margin-top: 48px;
  font-family: var(--fellsc);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

/* Narrower desktops */
@media (max-width: 1180px) {
  .read > *, .sec h2, .sec .body { grid-column: 4 / span 8; }
  .sec .note { grid-column: 1 / span 3; }
  .plate { grid-column: 3 / span 10; }
}

/* Phone and small tablet */
@media (max-width: 860px) {
  :root { --gut: 20px; }
  body { font-size: 19px; }

  .home {
    position: absolute;
    top: 16px;
    font-size: 16px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    min-height: 520px;
    padding-top: 64px;
    padding-bottom: 54px;
  }
  .masthead { grid-column: 1; padding: 0 0 calc(var(--vh) * 3.2); }
  h1 { font-size: clamp(36px, 10.4vw, 48px); }
  .tagline { margin-top: 12px; font-size: 18px; max-width: 30ch; }
  .tally {
    top: auto;
    bottom: 20px;
    max-width: 46%;
    font-size: 14px;
    line-height: 1.35;
  }
  .voices-wrap {
    grid-column: 1;
    align-self: start;
    --base: min(10vw, calc(var(--vh) * 4.4));
  }
  .ref { bottom: 20px; max-width: 50%; font-size: 14px; line-height: 1.35; }

  .read {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 12vh;
  }
  .read > *, .sec h2, .sec .body, .plate { grid-column: 1; }
  #story { grid-template-columns: minmax(0, 1fr); }
  .lede { margin: 2vh 0 16vh; font-size: 29px; line-height: 1.2; }
  .sec { grid-template-columns: minmax(0, 1fr); margin-bottom: 11vh; }
  .sec h2 { grid-row: 1; }
  .sec .note {
    grid-column: 1;
    grid-row: 2;
    padding: 0 0 18px;
    text-align: left;
    font-size: 17px;
  }
  .sec .body { grid-row: 3; font-size: 20px; line-height: 1.52; }
  .plate { margin-bottom: 11vh; }
  .details li { font-size: 18px; }
  .price { font-size: 44px; }
  .claim { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .voices li, .tally span, .claim { transition: none; }
  .voices li { filter: none; }
}
