/* Porcelain in a quiet room (light) or beside the kiln at night (dark). Colour belongs to the glaze: it is the temperature. */
@font-face { font-family: "Kiln Head"; src: url(fonts/head-latin.woff2) format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Kiln Text"; src: url(fonts/text-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kiln Kai"; src: url(fonts/head-zh.woff2) format("woff2"); font-weight: 300; font-display: swap; }
:root { --bg: #ece9e2; --ink: #221b17; --ink2: #6a5f57; --hair: rgba(34,27,23,.2); --red: #94301a; --paper: #f4f2ec; --h: "Kiln Head", "Kiln Kai", "Kaiti SC", "STKaiti", Georgia, serif; --t: "Kiln Text", "Kiln Kai", Georgia, serif; --b: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #171310; --ink: #f1ebe2; --ink2: #a99c8f; --hair: rgba(241,235,226,.22); --red: #e2734f; --paper: #1f1a16; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #171310; --ink: #f1ebe2; --ink2: #a99c8f; --hair: rgba(241,235,226,.22); --red: #e2734f; --paper: #1f1a16; color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } [hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--b); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; } a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
#gl, #flat, #lines { position: fixed; inset: 0; width: 100vw; height: 100%; display: block; touch-action: none; } #lines { pointer-events: none; } #gl { cursor: grab; } #gl.hold { cursor: grabbing; }
.top { position: fixed; z-index: 3; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 28px; font-size: 14px; color: var(--ink2); pointer-events: none; } .top a, .top button { pointer-events: auto; padding: 6px 0; min-height: 40px; display: inline-flex; align-items: center; } .top a:hover, .top button:hover { color: var(--ink); } .right { display: flex; gap: 20px; }
.words { position: fixed; z-index: 2; left: 64px; top: 50%; transform: translateY(-58%); width: 318px; pointer-events: none; }
h1 { font: 200 46px/1.18 var(--h); margin: 0 0 20px; letter-spacing: -.012em; text-wrap: balance; } :lang(zh) h1 { font-size: 42px; line-height: 1.3; letter-spacing: .01em; font-weight: 300; word-break: keep-all; }
.sepL { flex: 1 1 100%; font-size: 14px; color: var(--ink2); margin-top: 8px; } #say { margin: 0; font-size: 17px; line-height: 1.62; color: var(--ink2); text-wrap: pretty; } #say b { color: var(--ink); font-weight: 500; }
#acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; pointer-events: none; } #acts > * { pointer-events: auto; }
.go { background: var(--ink); color: var(--bg); padding: 13px 30px; font-size: 16px; transition: opacity .3s; } .go:hover { opacity: .86; } .go.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } .lnk { font-size: 15px; color: var(--ink2); padding: 12px 0; border-bottom: 1px solid var(--hair); line-height: 1.2; } .lnk:hover { color: var(--ink); } .lnk[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
#clock { position: fixed; z-index: 2; pointer-events: none; text-align: center; transform: translateX(-50%); white-space: nowrap; } #time { font: 200 64px/1 var(--h); font-variant-numeric: lining-nums tabular-nums; display: block; } #what { font-size: 14px; color: var(--ink2); }
#cue { position: fixed; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; font-size: 16px; white-space: nowrap; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; } #cue.on { opacity: 1; } #cue i { display: block; width: 1px; height: 46px; background: var(--ink); position: relative; animation: down 1.5s cubic-bezier(.4,0,.2,1) infinite; } #cue i::after { content: ""; position: absolute; left: -4px; bottom: 0; width: 9px; height: 9px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); } #cue.out i { width: 46px; height: 1px; animation-name: out; } #cue.out i::after { left: auto; right: 0; bottom: -4px; transform: rotate(-45deg); } #cue.scrub i { width: 46px; height: 1px; animation: scrub 1.1s ease-in-out infinite alternate; } #cue.scrub i::after { display: none; } #cue.tap i { width: 26px; height: 26px; background: none; border: 1px solid var(--ink); border-radius: 50%; animation: tapc 1.3s ease-out infinite; } #cue.tap i::after { display: none; } #cue span { padding: 2px 0; } #cue.tap { color: #fff; text-shadow: 0 0 6px rgba(0,0,0,.7); } #cue.tap i { border-color: #fff; }
@keyframes down { 0% { transform: translateY(-12px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } } @keyframes out { 0% { transform: translateX(-12px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateX(16px); opacity: 0; } } @keyframes scrub { from { transform: translateX(-16px); } to { transform: translateX(16px); } } @keyframes tapc { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
#tags span { position: fixed; z-index: 2; pointer-events: none; font: 400 17px/1.1 var(--t); font-variant-numeric: lining-nums; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .4s; } #tags span.on { opacity: 1; } #tHi.side { transform: translate(0, -50%) !important; } #tIn { font: 13px var(--b) !important; color: var(--ink2); }
#scale { position: fixed; z-index: 2; right: 104px; top: 50%; width: 12px; height: 284px; margin-top: -172px; } #scale canvas { display: block; width: 12px; height: 284px; } #scale div { position: absolute; white-space: nowrap; font-size: 13px; line-height: 1; transform: translateY(-50%); font-variant-numeric: lining-nums; } #safe { left: 22px; color: var(--ink2); } #goal { left: 22px; color: var(--ink2); } #safe::before, #goal::before { content: ""; position: absolute; left: -22px; width: 17px; top: 50%; border-top: 1px solid var(--ink); } #goal::before { border-top-style: dashed; } #needle { right: 20px; font: 400 22px/1 var(--t) !important; transition: top .25s linear, opacity .4s; } #needle::after { content: ""; position: absolute; right: -14px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
#tiles { position: fixed; z-index: 3; left: 64px; bottom: 34px; display: flex; gap: 14px; } #tiles button { width: 52px; text-align: left; font-size: 13px; color: var(--ink2); line-height: 1.3; } #tiles i { display: block; height: 52px; border: 1px solid var(--hair); margin-bottom: 7px; transition: background .6s, border-color .4s; display: flex; align-items: flex-end; padding: 6px 7px; font: 400 15px/1 var(--t); font-style: normal; font-variant-numeric: lining-nums; } #tiles button.done i { border-color: transparent; box-shadow: inset 0 9px 12px -9px rgba(255,255,255,.5), inset 0 -7px 10px -7px rgba(0,0,0,.24); } #tiles button.on { color: var(--ink); } #tiles button.on i { outline: 1px solid var(--ink); outline-offset: 3px; } #tiles button:disabled { cursor: default; opacity: .75; }
.foot { position: fixed; z-index: 3; right: 40px; bottom: 34px; font-size: 14px; color: var(--ink2); } .foot button:hover { color: var(--ink); }
#endbox { position: fixed; z-index: 2; right: 64px; top: 50%; transform: translateY(-54%); width: 300px; } #endbox h2 { font: 200 27px/1.25 var(--h); margin: 0 0 8px; } #endbox p { margin: 0 0 14px; font-size: 14px; color: var(--ink2); line-height: 1.55; } #endbox canvas { width: 300px; height: 214px; display: block; }
dialog { border: 0; background: var(--paper); color: var(--ink); max-width: 660px; width: calc(100vw - 48px); max-height: calc(100dvh - 60px); padding: 44px 48px; overscroll-behavior: contain; } dialog::backdrop { background: rgba(20,16,13,.45); } #aboutX, #keepX { position: sticky; top: -18px; float: right; font-size: 14px; color: var(--ink2); padding: 4px 8px; background: var(--paper); } dialog h2 { font: 200 30px/1.25 var(--h); margin: 0 0 14px; } dialog h3 { font: 400 17px/1.4 var(--t); margin: 24px 0 4px; } dialog p, dialog li { font-size: 15px; line-height: 1.65; margin: 0 0 10px; } dialog ul { padding-left: 1.1em; margin: 6px 0; } dialog a { border-bottom: 1px solid var(--hair); } #keep { max-width: 560px; } #keep img { width: 100%; display: block; margin-bottom: 16px; } #keepD { font-size: 15px; }
@media (max-width: 1180px) and (min-width: 821px) { .words { left: 40px; width: 270px; } h1, :lang(zh) h1 { font-size: 36px; } #tiles { left: 40px; } #scale { right: 84px; } #endbox { right: 36px; width: 250px; } #endbox canvas { width: 250px; height: 163px; } }
@media (max-width: 820px) { .top { height: 48px; padding: 0 16px; } .right { gap: 14px; } .words { left: 20px; right: 20px; top: 50px; width: auto; transform: none; } h1 { font-size: 31px; margin-bottom: 8px; } :lang(zh) h1 { font-size: 29px; } #say { font-size: 15.5px; line-height: 1.55; } #acts { position: fixed; left: 20px; right: 20px; bottom: 124px; margin: 0; justify-content: center; align-items: center; gap: 8px 20px; } .go { flex: 1 1 100%; text-align: center; padding: 13px 10px; } #time { font-size: 46px; } #tiles { left: 20px; right: 20px; bottom: 44px; justify-content: space-between; gap: 8px; } #tiles button { width: 58px; font-size: 12px; display: flex; flex-direction: column; } #tiles i { height: 34px; margin-bottom: 4px; padding: 4px 6px; } .foot { right: 0; left: 0; text-align: center; bottom: 12px; font-size: 12.5px; } #scale { left: 24px; right: 24px; top: auto; bottom: 218px; height: 8px; margin: 0; width: auto; } #scale canvas { width: 100%; height: 8px; } #scale div { font-size: 12px; transform: translateX(-50%); } #safe, #goal { left: auto; top: 20px; } #scale #safe { transform: translateX(-6px); } #scale #goal { transform: translateX(calc(-100% + 6px)); } #safe::before { left: 6px !important; } #goal::before { left: calc(100% - 6px) !important; } #safe::before, #goal::before { left: 50%; top: -21px; width: 0; height: 14px; border-top: 0; border-left: 1px solid var(--ink); } #goal::before { border-left-style: dashed; } #needle { right: auto; top: -32px !important; font-size: 18px !important; transition: left .25s linear; } #needle::after { right: auto; left: 50%; top: 22px; margin: 0 0 0 -4px; border: 4px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; } #tags span { font-size: 15px; } #endbox { left: 20px; right: 20px; width: auto; top: auto; transform: none; bottom: 250px; } #endbox h2 { font-size: 20px; margin-bottom: 3px; } #endbox p { font-size: 13px; line-height: 1.5; margin-bottom: 4px; } #endbox canvas { width: 100%; height: 128px; } [data-stage="end"] #acts { bottom: 44px; justify-content: flex-start; gap: 4px 18px; } [data-stage="end"] .go { flex: 1 1 40%; } [data-stage="end"] .lnk { padding: 9px 0; font-size: 14px; } [data-stage="end"] #link { flex: 1 1 40%; text-align: center; border: 1px solid var(--ink); color: var(--ink); padding: 13px 10px; font-size: 16px; } .sepL { margin-top: 6px; } dialog { padding: 26px 22px; width: calc(100vw - 24px); } }
@media (max-width: 820px) { [data-stage="free"] #acts, [data-stage="w"] #acts, [data-stage="f"] #acts { bottom: 40px; gap: 2px 20px; } [data-stage="free"] .lnk { padding: 10px 0; } [data-stage="free"] #scale { bottom: 222px; } }
@media (max-width: 820px) and (max-height: 740px) { #endbox p { display: none; } #endbox canvas { height: 104px; } #scale { bottom: 206px; } }
@media (max-height: 560px) and (min-width: 600px) { .words { top: 50px; transform: none; width: 250px; left: 24px; } h1, :lang(zh) h1 { font-size: 26px; margin-bottom: 8px; } #say { font-size: 14px; } #acts { margin-top: 12px; position: static; justify-content: flex-start; } .go { flex: none; padding: 9px 18px; } #tiles { left: 24px; right: auto; bottom: 14px; } #tiles i { height: 30px; } #scale { height: 170px; margin-top: -90px; } #scale canvas { height: 170px; } .foot { right: 20px; left: auto; bottom: 10px; } #time { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { #cue i { animation: none !important; } * { transition: none !important; } }

#tilesT { position: fixed; z-index: 3; left: 64px; bottom: 122px; font-size: 13px; color: var(--ink2); }
@media (max-width: 1180px) and (min-width: 821px) { #tilesT { left: 40px; } }
@media (max-width: 820px) { #tilesT { display: none; } }
@media (max-height: 560px) { #tilesT { display: none; } }
