* {
  box-sizing: border-box;
}
:root {
  --paper: #f8f5ef;
  --ink: #302a31;
  --muted: #665f63;
  --plum: #583947;
  --line: #d9d0c7;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font:
    16px/1.5 "Avenir Next",
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body {
  margin: 0;
}
header {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, calc((100vw - 1100px) / 2));
  gap: 12px;
}
.brand {
  color: inherit;
  text-decoration: none;
  font: 600 clamp(20px, 3vw, 27px)/1.1 var(--serif);
  white-space: nowrap;
}
.mark {
  display: inline-block;
  color: var(--plum);
  font-size: 31px;
  vertical-align: middle;
  margin-right: 5px;
}
.header-note,
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
}
main {
  max-width: 1148px;
  margin: 0 auto;
  padding: clamp(22px, 4.2vw, 62px) 24px 64px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  min-height: min(68vh, 650px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}
h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.intro h1 {
  font-size: clamp(47px, 6.3vw, 84px);
  margin: 14px 0 19px;
}
.intro p,
.dek {
  color: var(--muted);
  max-width: 46ch;
}
.intro-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 18px 10px 26px;
}
.intro-art figure {
  margin: 0;
  background: #fffdf9;
  padding: 8px;
  box-shadow: 0 8px 26px #35233421;
  width: 46%;
  transform: rotate(-5deg);
}
.intro-art figure + figure {
  transform: rotate(5deg) translateY(16px);
  margin-left: -4%;
}
.intro-art img {
  width: 100%;
  max-height: 53vh;
  display: block;
  object-fit: contain;
  background: #eee9e1;
}
.intro-art figcaption {
  font: italic 15px var(--serif);
  text-align: center;
  padding: 8px 0 2px;
}
form {
  margin: 26px 0 12px;
  max-width: 360px;
}
form > .textbtn {
  display: block;
  margin-top: 12px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.result-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
}
a.textbtn {
  text-decoration: none;
}
label {
  font-weight: 600;
}
input[type="text"] {
  display: block;
  width: 100%;
  background: #fffdf9;
  border: 1px solid #ad9fa5;
  padding: 12px 14px;
  margin: 6px 0 12px;
  border-radius: 6px;
  font: inherit;
}
button,
.button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.primary {
  padding: 12px 22px;
  border: 0;
  border-radius: 6px;
  background: var(--plum);
  color: white;
  font-weight: 650;
}
.primary:hover {
  background: #402a33;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #825677;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.fine,
.color {
  font-size: 0.84rem;
  color: var(--muted);
}
.textbtn {
  border: 0;
  border-bottom: 1px solid #a3979a;
  background: none;
  color: var(--plum);
  padding: 3px 0;
  font-size: 0.88rem;
  white-space: nowrap;
}
.voter {
  max-width: 760px;
  margin: auto;
}
.heading {
  text-align: center;
  margin-bottom: 20px;
}
.heading h1 {
  font-size: clamp(32px, 4vw, 49px);
  margin: 6px 0 10px;
}
.heading p {
  color: var(--muted);
}
.progress {
  margin: 0 auto 18px;
  max-width: 620px;
}
.progress-line,
.actions,
.grouphead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.progress-line {
  font-size: 0.84rem;
}
.progress-line span {
  color: var(--muted);
}
progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 4px;
  background: #e4ded8;
  margin-top: 8px;
}
progress::-webkit-progress-bar {
  background: #e4ded8;
  border-radius: 4px;
}
progress::-webkit-progress-value {
  background: var(--plum);
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: var(--plum);
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
}
.choice {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: #fffcf8;
  overflow: hidden;
}
.choice:hover {
  border-color: var(--plum);
  background: #f4edf0;
}
.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eae6de;
  border-radius: 4px;
  overflow: hidden;
}
.photo img {
  display: block;
  max-width: 100%;
  width: auto;
  height: min(49vh, 480px);
  object-fit: contain;
}
.choice strong {
  font: 500 clamp(18px, 2.3vw, 25px)/1.1 var(--serif);
  padding: 0 6px;
}
.choice .color {
  padding: 0 6px;
  margin: 3px 0 10px;
}
.choice small {
  color: var(--muted);
  padding: 9px 6px 3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.choose {
  display: block;
  background: var(--plum);
  text-align: center;
  color: white;
  border-radius: 4px;
  padding: 8px;
  margin-top: auto;
  font-weight: 600;
}
.actions {
  margin-top: 16px;
}
.ranks {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.ranks li {
  display: grid;
  grid-template-columns: 2.6em 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.ranks img {
  width: 52px;
  height: 82px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 3px;
}
.num {
  font: 23px var(--serif);
  color: var(--plum);
}
.ranks a {
  font: 500 20px var(--serif);
  color: var(--ink);
  text-decoration-color: #b8a6ac;
  text-underline-offset: 3px;
}
.ranks small {
  color: var(--muted);
  display: block;
}
.score {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}
.panel {
  max-width: 820px;
  margin: auto;
}
.panel h1 {
  margin: 8px 0 13px;
}
.panel h2 {
  font-size: 30px;
  line-height: 1.14;
}
.filters {
  margin: 22px 0 30px;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 7px;
}
.filters legend {
  padding: 0 5px;
}
.filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 2px;
  font-weight: 500;
}
.filters input {
  accent-color: var(--plum);
  width: 17px;
  height: 17px;
}
.grouphead {
  margin: 22px 0 5px;
}
.individual {
  margin-top: 36px;
}
details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
#status:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 16px;
  color: white;
  background: #49323c;
  border-radius: 7px;
  max-width: 94vw;
  width: max-content;
  z-index: 5;
}
.fallback {
  width: 100%;
  padding: 8px;
}
.empty {
  padding: 24px 0;
  color: var(--muted);
}
@media (max-width: 700px) {
  header {
    height: 58px;
    padding: 0 16px;
  }
  .header-note {
    font-size: 0.58rem;
  }
  .mark {
    font-size: 25px;
  }
  main {
    padding: 22px 14px 40px;
  }
  .intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .intro-art {
    order: -1;
    padding: 4px 15px 13px;
  }
  .intro-art figure {
    width: auto;
  }
  .intro-art img {
    height: 24vh;
    max-height: 230px;
  }
  .intro-art figcaption {
    font-size: 12px;
  }
  .intro h1 {
    font-size: 42px;
    margin: 7px 0 10px;
  }
  form {
    margin-top: 16px;
  }
  .photo img {
    height: min(43svh, calc(100vw * 1.02));
  }
  .choice {
    padding: 4px;
  }
  .choice strong {
    font-size: 17px;
  }
  .choice small {
    font-size: 10px;
  }
  .choose {
    font-size: 14px;
  }
  .heading {
    margin-bottom: 14px;
  }
  .ranks li {
    grid-template-columns: 2em 42px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .ranks img {
    width: 42px;
    height: 70px;
  }
  .ranks a {
    font-size: 17px;
  }
}
