:root {
  --navy:#101a2e;
  --ink:#172336;
  --paper:#f5f1e8;
  --cream:#fffcf5;
  --gold:#e4b965;
  --muted:#545c65;
  --line:#d2c6ae;
  --serif:Georgia,"Songti SC",SimSun,serif;
  --sans:system-ui,"Microsoft YaHei",sans-serif;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.6 var(--sans);
}

[hidden] {
  display:none!important;
}

a {
  color:inherit;
}

img {
  display:block;
  max-width:100%;
  object-fit:cover;
}

button,input,textarea {
  font:inherit;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
  opacity:.64;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible {
  outline:3px solid #95703a;
  outline-offset:4px;
}

.hero :focus-visible,.mast :focus-visible {
  outline-color:var(--gold);
}

main:focus {
  outline:none;
}

.wrap {
  width:min(1200px,calc(100% - 96px));
  margin-inline:auto;
}

.skip,.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.skip:focus {
  width:auto;
  height:auto;
  clip-path:none;
  z-index:8;
  background:var(--paper);
  padding:10px;
}

.mast {
  background:var(--navy);
  color:var(--cream);
}

.issue {
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:81px;
  border-bottom:1px solid #ffffff27;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font:650 clamp(20px,2.3vw,27px)/1.08 var(--sans);
  letter-spacing:-.025em;
}

.brand img {
  border-radius:50%;
}

.brand small {
  display:block;
  margin-top:4px;
  color:#d7c9ae;
  font:500 12px/1.25 var(--sans);
  letter-spacing:0;
}

.site-nav {
  display:flex;
  justify-content:center;
  gap:clamp(9px,3vw,38px);
  padding:0 8px;
}

.site-nav a {
  white-space:nowrap;
  min-height:48px;
  display:grid;
  place-content:center;
  padding:0 6px;
  color:#e3dfd6;
  text-decoration:none;
  font:560 14px/1 var(--sans);
  border-bottom:2px solid transparent;
}

.site-nav a[aria-current="page"] {
  color:var(--gold);
  border-color:var(--gold);
}

.hero {
  position:relative;
  isolation:isolate;
  min-height:clamp(600px,53vw,820px);
  background:#222718;
  color:var(--cream);
  overflow:hidden;
}

.hero-art,.hero-shade {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:-2;
}

.hero-art {
  --art-x:.5;
  --art-y:.46;
  container-type:size;
  animation:arrival 850ms ease-out both;
  translate:0 var(--hero-depth, 0px);
}

.scene-plane {
  --scene-width:max(100cqw, calc(100cqh * 1672 / 941));
  --scene-height:calc(var(--scene-width) * 941 / 1672);
  position:absolute;
  left:calc((100cqw - var(--scene-width)) * var(--art-x));
  top:calc((100cqh - var(--scene-height)) * var(--art-y));
  width:var(--scene-width);
  height:var(--scene-height);
}

.scene-image {
  width:100%;
  height:100%;
}

.scene-reaction {
  position:absolute;
  left:52.63158%;
  top:18.70351%;
  width:30.62201%;
  height:auto;
  opacity:0;
  pointer-events:none;
  transition:opacity 180ms ease-out;
  mask-image:radial-gradient(ellipse 20% 16% at 69% 29%, #000 57%, transparent 100%);
}

[data-reaction="amused"] [data-expression="amused"],
[data-reaction="skeptical"] [data-expression="skeptical"] {
  opacity:1;
}

.hero-shade {
  z-index:-1;
  background:linear-gradient(0deg,#080f1ff8 0%,#080f1f91 25%,transparent 57%),linear-gradient(90deg,#0a10187a,transparent 46%);
}

@keyframes arrival {
  from {
    transform:scale(1.025);
  }
  to {
    transform:scale(1);
  }
}

.hero-title {
  position:absolute;
  left:max(5.5vw,32px);
  bottom:clamp(34px,4.6vw,68px);
  max-width:40%;
}

.eyebrow {
  margin:0 0 8px;
  color:#78551b;
  font-size:11px;
  font-weight:750;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.hero .eyebrow {
  color:var(--gold);
}

.hero h1 {
  font:700 clamp(48px,5.5vw,92px)/.91 var(--serif);
  letter-spacing:-.06em;
  margin:0 0 20px;
}

.hero-title p:not(.eyebrow) {
  margin:0 0 17px;
  color:#f1e8d5;
  font-size:clamp(14px,1.3vw,18px);
}

.showcase {
  position:absolute;
  inset:0;
  pointer-events:none;
}

.coin-stage,.show-controls {
  pointer-events:auto;
}

.coin-stage {
  position:absolute;
  left:47.4%;
  bottom:clamp(98px,10.4vw,185px);
  transform:translateX(-50%);
  display:grid;
  justify-items:center;
  grid-template-columns:1fr;
  touch-action:pan-y;
  user-select:none;
}

.coin-medal {
  position:relative;
  width:clamp(150px,18.5vw,280px);
  aspect-ratio:1;
  filter:drop-shadow(0 8px 10px #0d0809a0);
}

.coin-core,.coin-rim,.coin-3d {
  position:absolute;
  pointer-events:none;
}

.coin-core {
  inset:11.8%;
  border-radius:50%;
  overflow:hidden;
  background:var(--navy);
}

.coin-core img {
  width:100%;
  height:100%;
}

.coin-rim {
  inset:0;
  width:100%;
  height:100%;
  mask-image:radial-gradient(circle closest-side, transparent 74%, #000 74.8% 95.7%, transparent 97.3%);
}

.coin-3d {
  inset:0;
}

.coin-3d canvas {
  display:block;
}

.coin-medal:not(.has-webgl) .coin-3d {
  visibility:hidden;
}

.coin-medal.has-webgl .coin-core,.coin-medal.has-webgl .coin-rim {
  visibility:hidden;
}

.coin-rest {
  position:relative;
  width:59%;
  height:clamp(19px,2.8vw,38px);
  margin-top:clamp(-6px,-.4vw,-2px);
  border-radius:34% 34% 12% 12% / 25%;
  border-top:2px solid #cfaa5d;
  border-bottom:3px solid #36241d;
  z-index:1;
  background:linear-gradient(180deg,#665039 0%,#3c2b22 42%,#2b1d19 45%,#4b3528 86%,#2f231e);
  box-shadow:0 11px 13px -5px #110a06b3,inset 0 1px #e0bc6761;
}

.coin-rest::before {
  content:"";
  position:absolute;
  bottom:100%;
  left:13%;
  right:13%;
  height:clamp(4px,.55vw,9px);
  border:1px solid #b28a4b;
  border-radius:75% 75% 0 0;
  background:linear-gradient(#866749,#48332a);
}

.coin-medal img.swap {
  animation:coin-in 250ms ease-out both;
}

@keyframes coin-in {
  from {
    opacity:.48;
    transform:scale(.93);
  }
  to {
    opacity:1;
    transform:scale(1);
  }
}

.coin-tag {
  background:#101a2ee8;
  color:#ffe6b2;
  border:1px solid #edc77f;
  padding:2px 10px;
  max-width:190px;
  text-overflow:ellipsis;
  overflow:hidden;
  white-space:nowrap;
  font:700 12px/1.7 ui-monospace,Consolas,monospace;
  letter-spacing:.12em;
  margin-top:5px;
}

.show-controls {
  position:absolute;
  right:max(5.5vw,26px);
  bottom:clamp(34px,4.6vw,68px);
  width:min(29vw,350px);
  min-width:248px;
  padding:17px 18px;
  border:1px solid #ebc9895c;
  background:#101a2ee8;
}

.switch-row {
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}

.switch-row h2 {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere;
  font:700 clamp(21px,2.1vw,31px)/1.08 var(--serif);
  margin:0;
}

.arrow {
  width:41px;
  height:39px;
  flex:0 0 41px;
  border:1px solid #d5bd8d;
  background:transparent;
  color:#fff;
  font:22px/1 var(--serif);
}

.arrow:hover {
  background:var(--gold);
  color:var(--navy);
}

.coin-help {
  position:absolute;
  z-index:3;
  left:50%;
  bottom:calc(100% + 9px);
  transform:translateX(-50%);
  padding:6px 9px;
  border:1px solid #d6b4739c;
  border-radius:3px;
  background:#101a2ef0;
  color:#fbf0d7;
  font-family:var(--sans);
  font-size:12px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity 150ms ease-out;
  box-shadow:0 3px 12px #131b2c65;
}

.coin-stage:not([data-help-dismissed]):hover .coin-help,
.coin-stage:not([data-help-dismissed]):focus-visible .coin-help {
  opacity:1;
}

.coin-help kbd {
  display:inline-grid;
  place-items:center;
  min-width:17px;
  margin-left:3px;
  border:1px solid #ecd2a577;
  border-radius:2px;
  color:#f4cb84;
  font:12px/1.25 var(--sans);
}

.coin-help-touch {
  display:none;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:43px;
  padding:9px 15px;
  text-decoration:none;
  font-size:14px;
  font-weight:740;
  border:1px solid transparent;
  border-radius:2px;
  line-height:1.3;
}

.primary {
  background:var(--gold);
  color:#191708;
}

.primary:hover {
  background:#f2cc85;
}

.secondary {
  background:transparent;
  color:var(--ink);
  border-color:#937446;
}

.secondary:hover:not(:disabled) {
  background:#eee0bf;
}

.text-link {
  text-underline-offset:4px;
  font-weight:720;
  font-size:14px;
  overflow-wrap:anywhere;
}

.hero .text-link {
  color:#ffe2ad;
}

.home-content {
  padding-block:64px 72px;
}

.hearing {
  color:var(--cream);
  background:#131d2d;
  border-top:1px solid #d3b37975;
}

.hearing-inner {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1fr);
  gap:clamp(32px,11vw,158px);
  padding-block:clamp(49px,8vw,106px);
}

.hearing-lead h2 {
  font-size:clamp(47px,7.4vw,109px);
  line-height:.91;
  letter-spacing:-.06em;
  margin-bottom:20px;
}

.hearing .eyebrow,.hearing-steps li>span {
  color:var(--gold);
}

.hearing-lead>p:last-child,.hearing-steps p {
  color:#e2dbcb;
}

.hearing-steps {
  margin:0;
  padding:0;
  list-style:none;
}

.hearing-steps li {
  display:grid;
  grid-template-columns:45px minmax(0,1fr);
  gap:12px;
  border-top:1px solid #e9d1a653;
  padding:17px 0;
}

.hearing-steps li>span {
  font:600 13px/2 var(--sans);
}

.hearing-steps h3 {
  margin:0;
}

.hearing-steps p {
  margin:5px 0 7px;
}

.hearing-steps a {
  color:#f0c880;
}

.motion-ready [data-reveal] {
  opacity:0;
  translate:0 17px;
  transition:opacity 420ms ease, translate 420ms cubic-bezier(.18,.75,.25,1);
}

.motion-ready [data-reveal].is-visible,.motion-ready [data-reveal]:focus-within {
  opacity:1;
  translate:0 0;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:end;
  margin-bottom:22px;
}

h1,h2,h3 {
  font-family:var(--serif);
  line-height:1.15;
}

h1 {
  font-size:clamp(38px,6vw,74px);
  letter-spacing:-.055em;
  margin:0 0 14px;
}

h2 {
  font-size:clamp(25px,3.35vw,41px);
  letter-spacing:-.032em;
  margin:0;
}

h3 {
  font-size:28px;
  margin-block:8px;
}

.section-heading h1 {
  margin-bottom:0;
}

.lede {
  max-width:66ch;
  color:var(--muted);
  font-size:18px;
  margin:0 0 22px;
}

.page {
  padding-block:54px 75px;
  min-height:calc(100dvh - 212px);
}

.candidate-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.candidate-card {
  background:var(--cream);
  border:1px solid var(--line);
  padding:19px;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.candidate-card.is-winner {
  border-color:#96743b;
  box-shadow:inset 0 4px var(--gold);
}

.candidate-top {
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}

.candidate-top>div {
  min-width:0;
}

.avatar {
  width:68px;
  height:68px;
  border-radius:50%;
  border:2px solid #b89450;
  background:var(--navy);
  flex:none;
}

.candidate-number {
  letter-spacing:.09em;
  margin-bottom:4px;
}

.candidate-name {
  font-size:25px;
  overflow-wrap:anywhere;
}

.candidate-asset,code {
  font:14px/1.5 ui-monospace,Consolas,monospace;
  overflow-wrap:anywhere;
}

.candidate-asset {
  margin:4px 0 0;
  color:#5a503c;
}

.candidate-plea {
  margin:17px 0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#343746;
  border-left:2px solid #d5b97c;
  padding-left:11px;
}

.card-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:auto;
}

.card-actions .text-link {
  margin-right:auto;
}

.vote-chip {
  font-size:13px;
  color:#78551b;
}

.card-actions .button {
  min-height:36px;
}

.paper-callout {
  margin-top:36px;
  padding:23px;
  background:#ece2ca;
  border-top:2px solid #b08947;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.paper-callout h2 {
  font-size:clamp(23px,3vw,34px);
}

.paper-callout p:not(.eyebrow) {
  margin:8px 0 0;
  max-width:65ch;
}

.paper-callout .button {
  flex:none;
}

.status,.page-note {
  padding:9px 12px;
  background:#ece2ca;
  border-left:3px solid #9c7538;
  font-size:14px;
}

.page-note {
  max-width:750px;
}

.demo-desk,.evidence {
  margin-top:20px;
  border:1px solid var(--line);
  padding:13px 15px;
  background:#fff9eb;
}

.demo-desk summary,.evidence summary {
  cursor:pointer;
  font-weight:700;
}

.demo-desk p {
  margin-block:12px;
}

.petition {
  max-width:740px;
  background:var(--cream);
  border:1px solid var(--line);
  padding:clamp(16px,4vw,37px);
  display:grid;
  gap:17px;
  margin-top:25px;
}

.petition label {
  display:grid;
  gap:5px;
  font-weight:700;
}

.petition small {
  font-size:13px;
  font-weight:400;
  color:var(--muted);
}

input,textarea {
  color:var(--ink);
  background:white;
  border:1px solid #a69470;
  width:100%;
  padding:10px;
  min-width:0;
  border-radius:2px;
}

textarea {
  resize:vertical;
}

input[type=file] {
  font-size:14px;
}

input[aria-invalid=true],textarea[aria-invalid=true] {
  border-color:#ac3223;
}

.error {
  color:#8c191d;
  margin:0;
}

.evidence {
  margin:0;
}

.evidence label {
  margin-top:12px;
}

.evidence p {
  font-size:13px;
  margin-bottom:0;
}

.petition>button {
  justify-self:start;
}

.detail {
  max-width:800px;
  background:var(--cream);
  border:1px solid var(--line);
  margin:21px 0;
  padding:clamp(20px,5vw,44px);
}

.detail .avatar {
  width:105px;
  height:105px;
}

.detail h1 {
  margin:0;
  overflow-wrap:anywhere;
}

.detail .candidate-plea {
  font-size:22px;
  margin:30px 0;
}

.detail dl {
  border-block:1px solid var(--line);
  padding:10px 0;
  display:grid;
  grid-template-columns:minmax(120px,auto) minmax(0,1fr);
  gap:8px 15px;
}

.detail dt {
  font-weight:700;
}

.detail dd {
  margin:0;
  overflow-wrap:anywhere;
}

.detail .card-actions {
  margin-top:20px;
}

.order-preview {
  max-width:740px;
}

.certificate {
  background:var(--cream);
  border:2px solid #ae874b;
  box-shadow:inset 0 0 0 7px var(--cream),inset 0 0 0 8px #d2b886;
  text-align:center;
  padding:30px;
  overflow-wrap:anywhere;
}

.certificate .avatar {
  margin:0 auto 15px;
  width:100px;
  height:100px;
}

.certificate h2 {
  margin:8px 0;
}

.certificate blockquote {
  white-space:pre-wrap;
}

.order-preview .button {
  margin-top:10px;
}

.rules {
  display:grid;
  gap:18px;
  max-width:760px;
}

.rules h2 {
  font-size:28px;
}

.rules p {
  margin:6px 0 0;
}

footer {
  background:var(--navy);
  color:#f1e5cc;
}

.foot {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  min-height:74px;
  font-size:12px;
  padding-block:12px;
}

.reset {
  color:inherit;
  background:transparent;
  border:0;
  text-decoration:underline;
}

.toast {
  position:fixed;
  z-index:6;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:min(550px,calc(100% - 28px));
  margin:0;
  padding:12px 16px;
  border:1px solid var(--gold);
  color:#fff;
  background:var(--navy);
  overflow-wrap:anywhere;
  font-size:14px;
}

dialog {
  color:var(--ink);
  background:var(--cream);
  border:1px solid #bb9653;
  max-width:min(440px,calc(100% - 24px));
  padding:24px;
}

dialog::backdrop {
  background:#0d1528a8;
}

.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

@media(max-width:920px) {
  .wrap {
    width:calc(100% - 44px);
  }
  .candidate-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hero {
    min-height:610px;
  }
  .hero-art {
    --art-x:.55;
    --art-y:.5;
  }
}

@media(max-width:680px) {
  .issue {
    min-height:67px;
  }
  .brand img {
    width:40px;
    height:40px;
  }
  .site-nav {
    gap:0;
    justify-content:space-around;
  }
  .site-nav a {
    font-size:12px;
    padding:0 4px;
  }
  .hero {
    min-height:0;
    padding:clamp(330px,76vw,445px) 20px 23px;
    background:var(--navy);
  }
  .hero-art,.hero-shade {
    height:clamp(335px,81vw,465px);
  }
  .hero-art {
    --art-x:.62;
    --art-y:.56;
  }
  .hero-shade {
    background:linear-gradient(0deg,var(--navy) 0%,#101a2e34 48%,#101a2e00 65%);
  }
  .hero-title {
    position:static;
    max-width:none;
  }
  .hero h1 {
    font-size:clamp(46px,11vw,64px);
    margin-bottom:12px;
  }
  .hero-title p:not(.eyebrow) {
    margin-bottom:11px;
  }
  .showcase {
    position:static;
  }
  .coin-stage {
    top:clamp(122px,30vw,178px);
    bottom:auto;
    left:45%;
    transform:translateX(-50%);
  }
  .coin-medal {
    width:clamp(136px,35vw,185px);
  }
  .coin-help {
    top:calc(100% + 2px);
    bottom:auto;
    padding:2px 6px;
    background:#101a2ede;
    border-color:transparent;
    box-shadow:none;
  }
  .hearing-inner {
    grid-template-columns:1fr;
  }
  .show-controls {
    position:static;
    width:100%;
    min-width:0;
    margin-top:20px;
    padding:11px 14px;
  }
  .show-controls h2 {
    font-size:24px;
  }
  .home-content {
    padding-block:33px 40px;
  }
  .page {
    padding-block:36px 48px;
  }
  .candidate-grid {
    grid-template-columns:1fr;
  }
  .section-heading {
    align-items:start;
  }
  .section-heading .button,.section-heading .text-link {
    flex:none;
  }
  .paper-callout,.foot {
    align-items:flex-start;
    flex-direction:column;
  }
  .detail .avatar {
    width:73px;
    height:73px;
  }
  .detail dl {
    grid-template-columns:minmax(88px,auto) minmax(0,1fr);
  }
}

@media(max-width:599px) {
  .wrap {
    width:calc(100% - 32px);
  }
}

@media(max-width:680px), (hover:none) {
  .coin-help {
    opacity:1;
    font-size:11px;
  }
  .coin-help-desktop {
    display:none;
  }
  .coin-help-touch {
    display:inline;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
