:root {
  color-scheme: light;
  --ink: #172123;
  --paper: #e8e7df;
  --signal: #e2c530;
  --oxide: #9e3f38;
  --cyan: #328c91;
  --line: #687173;
  --muted: #5b6465;
  --white: #f8f8f3;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-bar {
  position: relative;
  z-index: 10;
  min-height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 4px solid var(--signal);
}

.site-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-mark__code {
  font-size: 22px;
  font-weight: 900;
}

.site-mark__node {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #b8c3c3;
}

.session-state,
.feed-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.session-state__light,
.feed-state span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: var(--cyan);
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(50, 140, 145, 0.18);
}

.opinion-floor {
  position: relative;
  min-height: min(760px, 82svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-image: url("/assets/pluk-landscape.jpg");
  background-size: cover;
  background-position: center 48%;
}

.opinion-floor__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(18, 29, 30, 0.52);
}

.opinion-floor__inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: end;
  gap: 64px;
}

.opinion-copy {
  align-self: center;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--signal);
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 50px;
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 21px;
  line-height: 1.45;
}

.voting-station {
  padding: 20px;
  background: rgba(232, 231, 223, 0.95);
  border: 1px solid rgba(248, 248, 243, 0.78);
  border-top: 8px solid var(--signal);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  position: relative;
  min-width: 0;
  min-height: 150px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.16), 0 5px 0 var(--ink);
  transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.choice--ku {
  background: var(--cyan);
}

.choice--kyu {
  background: var(--oxide);
}

.choice:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.16), 0 7px 0 var(--ink);
}

.choice:active {
  transform: translateY(4px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 1px 0 var(--ink);
}

.choice:focus-visible {
  outline: 4px solid var(--signal);
  outline-offset: 3px;
}

.choice:disabled {
  cursor: wait;
  filter: grayscale(0.65);
}

.choice__word {
  font-size: 62px;
  line-height: 0.95;
  font-weight: 950;
}

.choice__meaning {
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.tally {
  margin-top: 24px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 22px;
  border-top: 1px solid #a3a8a4;
}

.tally__total {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.tally__total strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
}

.tally__split {
  display: grid;
  gap: 12px;
}

.tally__item {
  display: grid;
  grid-template-columns: 30px minmax(80px, 1fr) 42px;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.tally__item strong {
  text-align: right;
}

.meter {
  height: 9px;
  overflow: hidden;
  background: #c4c5bd;
  border: 1px solid var(--line);
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
  transition: width 260ms ease;
}

.tally__item:last-child .meter span {
  background: var(--oxide);
}

.feedback {
  min-height: 20px;
  margin: 14px 0 -4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.protocol {
  background: var(--paper);
  border-top: 12px solid var(--oxide);
}

.protocol__inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 58px 0 76px;
}

.protocol__header {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow--dark {
  margin-bottom: 8px;
  color: var(--oxide);
}

h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.feed-state {
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
}

.feed-state.is-offline span {
  background: var(--oxide);
  box-shadow: none;
}

.table-scroll {
  overflow-x: auto;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #a9ada8;
}

th {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  background: #d7d7cf;
}

th:first-child,
td:first-child {
  width: 140px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 240px;
}

td {
  font-size: 15px;
  line-height: 1.45;
}

td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}

.speaker {
  font-weight: 750;
}

.archive-mark {
  margin-left: 8px;
  padding: 2px 5px;
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  vertical-align: 2px;
  color: var(--muted);
  border: 1px solid #858b87;
}

.statement-choice {
  margin-right: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
  color: var(--cyan);
}

.statement-choice.is-kyu {
  color: var(--oxide);
}

footer {
  min-height: 76px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: #b7c1c0;
  background: var(--ink);
}

@media (max-width: 900px) {
  .opinion-floor__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .opinion-copy {
    max-width: 680px;
  }

  .voting-station {
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .site-bar {
    min-height: 58px;
    padding: 0 18px;
  }

  .site-mark__node {
    display: none;
  }

  .session-state {
    font-size: 10px;
  }

  .opinion-floor {
    min-height: 0;
    background-position: 62% center;
  }

  .opinion-floor__inner,
  .protocol__inner {
    width: calc(100% - 32px);
  }

  .opinion-floor__inner {
    padding: 48px 0 54px;
    gap: 34px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .lede {
    margin-top: 18px;
    font-size: 17px;
  }

  .voting-station {
    padding: 14px;
  }

  .choice {
    min-height: 124px;
    padding: 12px 7px;
  }

  .choice__word {
    font-size: 48px;
  }

  .choice__meaning {
    font-size: 9px;
  }

  .tally {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .tally__total strong {
    font-size: 30px;
  }

  .protocol__inner {
    padding: 42px 0 54px;
  }

  .protocol__header {
    align-items: start;
  }

  h2 {
    font-size: 26px;
  }

  .feed-state {
    flex: 0 0 auto;
  }

  footer {
    padding: 18px;
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
