:root {
  color-scheme: dark;
  --forest: #163c35;
  --ink: #193e36;
  --paper: #f1dfb6;
  --light: #fff0c9;
  --moss: #abc4a1;
  --gold: #f2bc72;
  --coral: #ef7d62;
  --line: #557166;
  font-family: "Trebuchet MS", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 45% -40%, #396151 0, transparent 70%),
    var(--forest);
  color: var(--light);
}
main {
  width: min(100%, 1000px);
  margin: auto;
  padding: clamp(12px, 2.5vw, 28px) clamp(12px, 4vw, 44px) 12px;
}
header,
footer,
.board-heading,
.play-heading,
.command,
.actions,
.studio,
.message {
  display: flex;
  align-items: center;
}
header,
footer,
.board-heading,
.play-heading,
.command {
  justify-content: space-between;
}
header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.studio,
.edition,
.kicker,
.cover-foot,
.board-heading,
footer,
.pleats button {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.studio {
  gap: 9px;
}
.studio-mark {
  color: var(--gold);
  font-size: 24px;
  line-height: 0.9;
}
.edition {
  color: #c4d3b7;
}
.edition i {
  color: var(--gold);
  font-style: normal;
  margin: 0 7px;
}
#cover {
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 435px;
  height: min(68vh, 570px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 6px 20px #081e1b3b;
}
#cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.cover-copy {
  position: relative;
  width: 56%;
  padding: clamp(24px, 4.4vw, 54px) 0 8px clamp(22px, 4.4vw, 54px);
}
.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.17em;
}
.cover-copy .kicker {
  color: #76502d;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
}
.cover-copy h1 {
  margin: 16px 0 15px;
  font-size: clamp(68px, 9.2vw, 110px);
  letter-spacing: -0.075em;
  line-height: 0.82;
}
h1 em {
  font-weight: normal;
}
.cover-copy p:not(.kicker) {
  max-width: 300px;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.45;
  margin: 0 0 20px;
}
button,
summary {
  cursor: pointer;
  touch-action: manipulation;
}
button {
  font: inherit;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #f27f5d;
  outline-offset: 3px;
}
.primary {
  border: 1px solid transparent;
  background: var(--gold);
  color: #203e32;
  border-radius: 3px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 0 #0b241f;
  white-space: nowrap;
}
.cover-copy .primary {
  background: var(--ink);
  color: var(--light);
}
.primary:hover {
  filter: brightness(1.08);
}
.primary span {
  display: inline-block;
  margin-left: 8px;
}
.primary:active,
.pleats button:active {
  transform: translateY(1px);
}
.cover-foot {
  position: absolute;
  left: clamp(22px, 4.4vw, 54px);
  bottom: 18px;
  font-size: 9px;
  color: #685c42;
}
footer {
  padding-top: 14px;
  font-size: 9px;
  color: #afc2ad;
}
.folios {
  display: flex;
  gap: 7px;
}
.studio-note {
  max-width: 66ch;
  margin: 10px 0;
  color: #c4d3b7;
  font-size: 13px;
  line-height: 1.5;
}
.folios b {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid #91a88e;
  transform: rotate(45deg);
}
.folios b.current {
  background: var(--gold);
  border-color: var(--gold);
}
.folios b.done {
  background: #91a88e;
}
.play-heading {
  margin: 18px 0 14px;
  gap: 16px;
}
.play-heading h1 {
  margin: 3px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}
.play-heading h1:focus {
  outline: none;
}
.textbutton {
  border: 1px solid #799282;
  border-radius: 3px;
  background: transparent;
  color: var(--light);
  font-size: 13px;
  padding: 9px 12px;
}
.textbutton:hover {
  background: #315346;
}
#guide-content {
  margin: 0 0 12px;
  padding: 10px 16px;
  background: #244a40;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}
#guide-content p {
  margin: 6px 0;
}
#guide-content details {
  margin: 8px 0;
}
.board {
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 5px 16px #09221f3d;
}
.board-heading {
  padding: 9px 3.3% 2px;
  color: #415647;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.board-heading .coral {
  font-size: 17px;
  font-style: normal;
  color: #a94633;
  vertical-align: middle;
}
#chart {
  display: block;
  width: 100%;
  height: clamp(220px, 36vh, 335px);
  touch-action: pan-y;
  cursor: pointer;
}
.pleats {
  display: grid;
  padding: 0 8% 11px;
  gap: 4px;
}
.pleats button {
  color: var(--ink);
  background: #e7d1a6;
  border: 1px solid #a89673;
  border-radius: 2px;
  min-height: 34px;
  padding: 3px 0;
  line-height: 1.2;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.pleats button::before {
  content: "⇄";
  margin-right: 6px;
  color: #656d50;
}
.pleats button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--light);
  border-color: var(--ink);
}
.pleats button[aria-pressed="true"]::before {
  color: var(--gold);
}
.pleats button:disabled,
.textbutton:disabled,
.primary:disabled {
  cursor: default;
  opacity: 0.66;
}
.command {
  gap: 16px;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--line);
  min-height: 78px;
}
.message {
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 60%;
}
.status-dot {
  flex: none;
  background: var(--coral);
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}
.actions {
  gap: 7px;
  flex: none;
}
@media (max-width: 580px) {
  main {
    padding: 12px 12px 8px;
  }
  .edition {
    font-size: 9px;
    letter-spacing: 0.07em;
  }
  .edition i {
    margin: 0 2px;
  }
  #cover {
    min-height: 450px;
    height: 76vh;
    max-height: 650px;
  }
  .cover-copy {
    width: 79%;
    padding: 27px 0 0 22px;
  }
  .cover-copy h1 {
    font-size: clamp(68px, 16vw, 94px);
  }
  .cover-copy p:not(.kicker) {
    max-width: 215px;
  }
  .cover-foot {
    bottom: 14px;
    font-size: 8px;
  }
  .command {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 13px;
  }
  .message {
    max-width: 100%;
    min-height: 20px;
  }
  .actions {
    margin-left: auto;
  }
  .play-heading {
    margin: 16px 0 12px;
  }
  .board-heading {
    font-size: 8px;
  }
  .pleats {
    gap: 2px;
  }
  .pleats button {
    min-height: 42px;
  }
  .pleats button::before {
    margin-right: 3px;
  }
  .actions button,
  .play-heading button {
    min-height: 42px;
  }
}
@media (max-width: 350px) {
  .studio {
    font-size: 9px;
  }
  .edition {
    font-size: 8px;
  }
  .cover-copy {
    width: 85%;
  }
}
