/* What Is Art? v09: Serious or Joke. Flat vivid colour, two circles, one overlap. */
:root {
  --blue: #1D3BFF;
  --yellow: #FFD400;
  --green: #19B35A;
  --white: #FFFFFF;
  --ink: #0E0E0E;
  --grey: #D9D9D6;
  --display: "Rubik Mono One", "Arial Black", Impact, sans-serif;
  --text: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.5;
}
main, .foot { overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.play :focus-visible, .picker :focus-visible { outline-color: var(--yellow); }
button { font: inherit; color: inherit; cursor: pointer; }

/* Bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--pad);
}
.home {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.home:hover { background: var(--ink); color: var(--yellow); }
.no {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-weight: 600;
  font-size: 14px;
  min-height: 40px;
  white-space: nowrap;
}
.sound-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.sound[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.sound[aria-pressed="true"] .sound-dot { background: var(--green); border-color: var(--green); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 56px);
  padding: clamp(8px, 2vw, 28px) var(--pad) clamp(40px, 6vw, 88px);
  min-height: min(84vh, 820px);
}
.hero-text { min-width: 0; }
.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}
.title span { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
.title span:last-child { color: var(--blue); }
.tagline {
  margin: clamp(18px, 2.4vw, 32px) 0 0;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  max-width: 26ch;
}
.mark { width: 100%; max-width: 620px; height: auto; justify-self: center; overflow: visible; }
.ring { font-family: var(--display); font-size: 17px; letter-spacing: 0; }
.ring-a { fill: var(--white); }
.ring-b { fill: var(--ink); }
.mk-both { font-family: var(--display); font-size: 26px; fill: var(--ink); opacity: 0; transition: opacity 0.4s ease; }
.mk-both.on { opacity: 1; }
.spin { animation: spin 46s linear infinite; }
.spin.rev { animation-direction: reverse; animation-duration: 38s; }
.paused .spin { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The post */
.post {
  border-top: 3px solid var(--ink);
  padding: clamp(44px, 7vw, 112px) var(--pad) clamp(56px, 8vw, 128px);
}
.lede {
  margin: 0;
  max-width: 1180px;
  font-weight: 800;
  font-size: clamp(28px, 4.1vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.w {
  display: inline-block;
  padding: 0 0.22em 0.04em;
  border-radius: 0.6em;
  line-height: 1.05;
}
.w-serious { background: var(--blue); color: var(--white); }
.w-joke { background: var(--yellow); color: var(--ink); }
.w-both { background: var(--green); color: var(--ink); }
.sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 56px);
  margin-top: clamp(48px, 6vw, 96px);
}
.sec { border-top: 3px solid var(--ink); padding-top: 18px; min-width: 0; }
.sec:nth-child(2) { margin-top: 72px; }
.sec:nth-child(3) { margin-top: 144px; }
.sec h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sec h2 i {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-style: normal;
  font-size: 13px;
}
.sec p { margin: 0; font-size: 20px; line-height: 1.55; }
.plink {
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 1px;
}
.plink:hover { background: var(--yellow); }

/* The board */
.play {
  background: var(--ink);
  color: var(--white);
  padding: clamp(44px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
}
.play-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 0 var(--pad);
}
.play-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.no-right { margin: 12px 0 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }
.play-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tally { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tally span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
}
.tally b { font-family: var(--display); font-weight: 400; font-size: 13px; }
.t-serious { background: var(--blue); color: var(--white); }
.t-both { background: var(--green); color: var(--ink); }
.t-joke { background: var(--yellow); color: var(--ink); }
.clear {
  min-height: 40px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: var(--display);
  font-size: 12px;
}
.clear:hover { background: var(--white); color: var(--ink); }
.hint { margin: 20px 0 0; padding: 0 var(--pad); font-size: 16px; color: #BDBDBD; }

.board {
  position: relative;
  width: 100%;
  height: 720px;
  margin-top: 18px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.venn { position: absolute; inset: 0; width: 100%; height: 100%; }
.venn circle { transition: filter 0.2s ease; }
.venn.over-serious .zone-a, .venn.over-joke .zone-b, .venn.over-both .zone-both { filter: brightness(1.18) saturate(1.1); }
.flash { opacity: 0; pointer-events: none; }
.flash.go { animation: flash 0.7s ease-out; }
@keyframes flash { 0% { opacity: 0.75; } 100% { opacity: 0; } }

.zl {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: clamp(14px, 1.5vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}
.zl-serious { color: var(--white); }
.zl-joke, .zl-both { color: var(--ink); }

.discs { position: absolute; inset: 0; }
.disc {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--d, 110px);
  height: var(--d, 110px);
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  touch-action: manipulation;
  will-change: transform;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.2s ease, opacity 0.5s ease;
}
.disc.hist { background: var(--grey); }
.disc .dn {
  font-family: var(--display);
  font-size: calc(var(--d, 110px) * 0.11);
  line-height: 1;
}
.disc .dt {
  display: block;
  width: 74%;
  font-weight: 800;
  font-size: calc(var(--d, 110px) * 0.118);
  line-height: 1.12;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.disc.sel { box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--white); z-index: 3; }
.disc.lift { box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45); z-index: 4; cursor: grabbing; }
.fine .disc { cursor: grab; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tolstoy {
  margin: clamp(36px, 5vw, 64px) var(--pad) 0;
  max-width: 980px;
  border-left: 6px solid var(--green);
  padding: 4px 0 4px 22px;
}
.tolstoy p { margin: 0; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; font-style: italic; }
.tolstoy footer { margin-top: 10px; font-size: 15px; color: #BDBDBD; }

/* Picker */
.picker {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  z-index: 30;
  background: var(--white);
  color: var(--ink);
  border-radius: 26px;
  padding: 14px 16px 16px;
  box-shadow: 0 0 0 3px var(--ink), 0 16px 48px rgba(0, 0, 0, 0.4);
}
.picker[hidden] { display: none; }
.pick-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pick-name { margin: 0; font-family: var(--display); font-size: 15px; line-height: 1.25; padding-top: 6px; }
.pick-close {
  flex: none;
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  font-weight: 800;
  font-size: 14px;
}
.pick-line { margin: 6px 0 12px; font-size: 16px; line-height: 1.4; }
.pick-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pb {
  min-height: 46px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 6px;
}
.pb-serious { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pb-both { background: var(--green); border-color: var(--green); }
.pb-joke { background: var(--yellow); border-color: var(--yellow); }
.pb.on { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--ink); }
.pick-open {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  font-size: 16px;
}
.pick-open[hidden] { display: none; }

/* Answers list */
.answers {
  background: var(--yellow);
  padding: clamp(48px, 7vw, 104px) var(--pad);
}
.answers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.answers h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.05;
  text-transform: uppercase;
}
.answers-count { margin: 0; font-weight: 800; font-size: 18px; }
.answer-list {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
}
.answer-list li { border-top: 3px solid var(--ink); }
.answer-list a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 16px 0 18px;
  text-decoration: none;
}
.answer-list .an {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 13px;
}
.answer-list .at { font-weight: 800; font-size: 21px; line-height: 1.2; }
.answer-list .ag { font-size: 16px; line-height: 1.4; }
.answer-list a:hover .at { text-decoration: underline; text-decoration-thickness: 3px; }

/* Next */
.next { background: var(--green); }
.next-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: clamp(40px, 6vw, 88px) var(--pad);
  text-decoration: none;
  color: var(--ink);
}
.next-label { grid-column: 1; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.next-title {
  grid-column: 1;
  font-family: var(--display);
  font-size: clamp(30px, 5.4vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.next-disc {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: clamp(64px, 8vw, 120px);
  height: clamp(64px, 8vw, 120px);
  border-radius: 50%;
  background: var(--ink);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: clamp(28px, 3.4vw, 52px);
  transition: transform 0.25s ease;
}
.next-link:hover .next-disc { transform: translateX(8px); }

.foot { padding: 28px var(--pad) 40px; }

/* Phone */
@media (max-width: 760px) {
  .bar { padding-top: 12px; padding-bottom: 12px; }
  .no { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 10px; padding-bottom: 36px; }
  .mark { max-width: 420px; margin-top: 8px; }
  .sections { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sec:nth-child(2), .sec:nth-child(3) { margin-top: 0; }
  .sec p { font-size: 18px; }
  .play-tools { width: 100%; justify-content: space-between; }
  .board { margin-top: 12px; }
  .answer-list { grid-template-columns: minmax(0, 1fr); }
  .answer-list .at { font-size: 19px; }
  .pick-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
  .flash.go { animation: none; }
  .disc { transition: none; }
  .next-disc { transition: none; }
}
