:root {
  color-scheme: light;
  --paper: #f7f0e4;
  --surface: #fff9ee;
  --ink: #301f25;
  --muted: #6e5659;
  --plum: #6c2943;
  --rule: #dbc8b8;
  --warm: #eadacd;
  --accent: #a84d36;
  --serif: Georgia, "Noto Serif TC", "PMingLiU", serif;
  --sans: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: var(--plum); text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button { border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; min-height: 44px; padding: 9px 15px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--plum); background: #faeadb; }
button:disabled { cursor: default; color: var(--muted); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.primary { color: white; background: var(--plum); border-color: var(--plum); font-weight: 650; }
.primary:hover:not(:disabled) { color: white; background: #532036; }
.primary:disabled { color: #fff9ee; background: #765562; }
.top, main { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.top { height: 73px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); gap: 12px; }
.wordmark { font: 700 27px/1 var(--serif); letter-spacing: -.08em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent); font-size: 11px; margin-left: .45em; vertical-align: top; letter-spacing: 0; }
nav, footer { display: flex; gap: 22px; font-size: .86rem; }
.facts { margin: 16px 0 0; font-size: .84rem; line-height: 1.65; color: var(--muted); }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 30px 0 26px; }
h1, h2, p { margin: 0; }
h1 { font: 500 clamp(54px, 8vw, 100px)/.98 var(--serif); letter-spacing: -.075em; }
html[lang="zh-TW"] h1 { letter-spacing: .03em; }
.mast p { font: 400 clamp(16px, 2vw, 21px)/1.45 var(--serif); margin-top: 14px; color: var(--muted); }
.clock { border-left: 1px solid var(--rule); padding-left: 23px; min-width: 186px; display: grid; gap: 3px; }
.clock small { font-size: .78rem; font-weight: 650; color: var(--plum); }
.clock time { font: 400 clamp(26px, 4vw, 51px)/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.clock span, #art-hour, #history-date { color: var(--muted); font: .77rem var(--mono); }
.workroom { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.play, .archive { padding: 22px; }
.panelhead, figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
h2 { font: 600 25px/1.15 var(--serif); }
.panelhead p { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.board { display: grid; grid-template-columns: 136px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; padding-block: 11px; border-top: 1px solid var(--rule); }
.board h3 { margin: 0; font: 600 19px/1.1 var(--serif); }
.board-title { display: grid; align-content: center; grid-template-columns: 36px 1fr; column-gap: 7px; }
.glyph { color: var(--plum); font: 22px/1 var(--serif); grid-row: span 2; align-self: center; }
.board small { color: var(--muted); font-size: .7rem; margin-top: 4px; }
.sign { text-align: left; min-height: 58px; position: relative; display: grid; gap: 4px; }
.sign strong { font-weight: 600; font-size: .85rem; }
.sign span { font: .78rem var(--mono); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 9px; }
#collect-info, #notice, #tx-link { font-size: .8rem; }
#notice { min-height: 1.75em; margin-top: 12px; color: var(--muted); }
.specimen { margin: 0; padding: 14px; background: #f2e3d5; }
.specimen figcaption { margin: 0 0 10px; }
.specimen h2 { font-size: 17px; }
.specimen img { display: block; width: 100%; height: auto; max-height: 446px; object-fit: contain; }
.archive { margin-top: 18px; }
#history { display: grid; grid-template-columns: repeat(24, minmax(40px, 1fr)); gap: 4px; overflow-x: auto; padding: 4px 3px 10px; }
.history-hour { padding: 4px 3px 5px; display: grid; gap: 4px; min-height: 50px; color: var(--muted); }
.history-hour[aria-pressed="true"] { border-color: var(--plum); background: var(--warm); }
.history-hour time { font: .68rem var(--mono); }
.line { width: 22px; display: flex; align-items: center; gap: 2px; margin: auto; }
.line i { display: block; height: 2px; background: var(--rule); flex: 1; }
.line i.lit { background: var(--plum); }
#history-detail { min-height: 1.4em; color: var(--muted); font-size: .84rem; }
footer { padding: 18px 0 30px; }
@media (max-width: 850px) {
  .top, main { width: calc(100% - 34px); }
  .workroom { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .board { grid-template-columns: 1fr 1fr 1fr; }
  .board-title { grid-column: 1 / -1; grid-template-columns: 30px auto 1fr; align-items: center; }
  .board small { margin: 0; text-align: right; }
  .glyph { grid-row: auto; }
}
@media (max-width: 640px) {
  .top { height: 58px; }
  nav, footer { gap: 14px; }
  .mast { padding: 24px 0 18px; flex-wrap: wrap; }
  .clock { display: flex; padding: 8px 0 0; align-items: baseline; min-width: 0; border-left: 0; border-top: 1px solid var(--rule); width: 100%; gap: 8px; }
  .clock span { margin-left: auto; }
  .workroom { grid-template-columns: 1fr; gap: 12px; }
  .archive { margin-top: 12px; }
  .play, .archive { padding: 15px; }
  .board { gap: 6px; padding-block: 8px; }
  .sign { min-height: 45px; padding: 5px 8px; gap: 2px; }
  .panelhead p { font-size: .77rem; }
  .panelhead button { flex-shrink: 0; }
  .specimen img { max-height: 355px; }
}

