@font-face { font-family: UI; src: url(fonts/gothica1-Regular.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: UI; src: url(fonts/gothica1-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: block; }
@font-face { font-family: UI; src: url(fonts/gothica1-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: block; }
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
@font-face { font-family: Serif; src: url(fonts/instrument-italic.woff2) format('woff2'); font-style: italic; font-display: block; }
@font-face { font-family: Mono; src: url(fonts/geistmono.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
:root { --bg: #ecebe7; --ink: #181613; --mute: #8a857c; --line: rgba(0,0,0,.09); --ac: #e5484d; --sans: Inter, UI, system-ui, sans-serif; --kr: UI, Inter, system-ui, sans-serif; --mono: Mono, ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 15px/1.5 var(--kr); -webkit-font-smoothing: antialiased; }
a { color: inherit; } [hidden] { display: none !important; } button { font: inherit; color: inherit; }
.top, .intro, .app, .how, .foot { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 2px; }
.brand { display: flex; align-items: center; gap: 9px; } .brand b { font: 800 18px var(--kr); letter-spacing: -.03em; }
.brand b::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; box-shadow: inset 0 0 0 2.5px var(--ink); background: radial-gradient(circle, var(--ac) 0 3px, transparent 3.5px); }
.brand i { font: 500 12px var(--mono); color: var(--mute); font-style: normal; }
.gh { font: 600 14px var(--sans); text-decoration: none; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; word-break: keep-all; }
h1 .q { font: 800 44px/1.08 var(--kr); letter-spacing: -.045em; word-spacing: .06em; } h1 em { font: italic 400 28px/1.1 Serif, serif; letter-spacing: -.02em; color: #4d4943; }
.btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 11px; font: 800 13.5px var(--kr); box-shadow: inset 0 0 0 1.5px var(--ink); white-space: nowrap; }
.btn.dark { background: var(--ink); color: #fff; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 40px; } .how h3 { margin: 0 0 6px; font: 800 15px var(--kr); } .how p { margin: 0; font-size: 14px; color: #4d4943; word-break: keep-all; }
.foot { padding-top: 26px; padding-bottom: 90px; font: 400 12.5px var(--sans); color: var(--mute); }
.toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -20px); opacity: 0; background: var(--ink); color: #fff; font: 600 13.5px var(--kr); padding: 9px 16px; border-radius: 99px; transition: .25s; pointer-events: none; z-index: 50; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
.lnk { all: unset; cursor: pointer; font: 700 13px var(--kr); color: #6b665d; text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; background: #fff; border-radius: 11px; padding: 3px; gap: 2px; box-shadow: 0 0 0 1px var(--line); } .seg button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 8px; font: 700 12.5px var(--kr); color: #6b665d; white-space: nowrap; } .seg button.on { background: var(--ink); color: #fff; } .seg button:disabled { opacity: .35; cursor: not-allowed; }
.rng input { width: 110px; accent-color: var(--ink); } .rng output { font: 500 12px var(--mono); width: 22px; color: var(--ink); } .rng.off { opacity: .35; pointer-events: none; }
.cur { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; }
.cur svg { position: absolute; left: -9px; top: -4px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); } .cur path { fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; } .cur .closed { display: none; } .cur.down .open { display: none; } .cur.down .closed { display: block; }
.cur i { position: absolute; left: 26px; top: 26px; white-space: nowrap; font: 700 13px var(--kr); font-style: normal; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; } .cur i:empty { display: none; }
.cur.flip i { left: auto; right: 14px; }
.intro { padding-top: 22px; } .lede { margin: 10px 0 0; max-width: 780px; color: #4d4943; word-break: keep-all; }
.app { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; padding-top: 22px; height: 640px; }
.edcard { display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(40,30,10,.4); overflow: hidden; }
.edbar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); } .sp { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chips button, .mini { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 99px; background: #f1eee8; font: 700 12.5px var(--kr); color: #5d584f; white-space: nowrap; }
.chips button.on { background: var(--ink); color: #fff; } .mini.dark { background: var(--ink); color: #fff; } .chips button:hover, .mini:hover { filter: brightness(.96); }
.ed { position: relative; flex: 1; min-height: 0; }
.hl, #txt { position: absolute; inset: 0; margin: 0; padding: 22px 26px 40px; font: 400 17.5px/1.85 var(--kr); letter-spacing: -.005em; white-space: pre-wrap; word-break: keep-all; overflow-wrap: break-word; overflow-y: auto; border: 0; tab-size: 4; }
.hl { color: transparent; pointer-events: none; overflow: hidden; scrollbar-gutter: stable; }
#txt { all: unset; position: absolute; inset: 0; box-sizing: border-box; padding: 22px 26px 40px; font: 400 17.5px/1.85 var(--kr); letter-spacing: -.005em; white-space: pre-wrap; word-break: keep-all; overflow-wrap: break-word; overflow-y: auto; scrollbar-gutter: stable; color: var(--ink); caret-color: var(--ac); background: transparent; }
#txt::placeholder { color: #b3ada3; }
.hl mark { color: transparent; border-radius: 3px; padding: 2px 0; }
.hl mark.fix { background: rgba(229,72,77,.13); box-shadow: inset 0 -2.5px 0 #e5484d; }
.hl mark.check { background: rgba(245,166,35,.16); box-shadow: inset 0 -2.5px 0 #f0a020; }
.hl mark.info { background: transparent; box-shadow: none; text-decoration: underline dotted #3e7bfa 2px; text-underline-offset: 6px; text-decoration-color: #3e7bfa; color: transparent; }
.hl mark.on { background: rgba(229,72,77,.3); } .hl mark.check.on { background: rgba(245,166,35,.34); } .hl mark.info.on { background: rgba(62,123,250,.14); }
.hl mark.flash { background: rgba(48,164,108,.28); box-shadow: inset 0 -2.5px 0 #30a46c; animation: flash 1.6s ease-out forwards; } @keyframes flash { 0% { background: rgba(48,164,108,.5); } 70% { background: rgba(48,164,108,.22); } 100% { background: transparent; box-shadow: inset 0 -2.5px 0 transparent; } }
.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.card { background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(40,30,10,.4); padding: 16px 18px; }
.big { display: flex; align-items: baseline; gap: 8px; } .big b { font: 700 34px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .big span { font: 700 13px var(--kr); color: var(--mute); }
.nums { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; } .nums div { display: flex; flex-direction: column; } .nums dt { font: 700 11.5px var(--kr); color: var(--mute); } .nums dt i { font-style: normal; font-weight: 600; opacity: .75; } .nums dd { margin: 0; font: 650 17px var(--sans); font-variant-numeric: tabular-nums; }
.goal { display: flex; align-items: center; gap: 6px; margin-top: 12px; } .goal label { font: 800 12.5px var(--kr); color: #4d4943; }
.goal input, .goal select { all: unset; box-sizing: border-box; background: #f6f4ef; border-radius: 9px; padding: 6px 9px; font: 650 13px var(--kr); } .goal input { width: 82px; } .goal select { cursor: pointer; flex: 1; min-width: 0; }
.bar { position: relative; margin-top: 9px; height: 26px; border-radius: 8px; background: #f3f1ec; overflow: hidden; } .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #d9d4cb; transition: width .25s; }
.bar.on i { background: var(--ink); } .bar.near i { background: #30a46c; } .bar.over i { background: #e5484d; }
.bar span { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 10px; font: 700 12px var(--kr); color: #8a857c; mix-blend-mode: normal; } .bar.on span { color: #fff; text-shadow: 0 0 6px rgba(0,0,0,.35); }
.iss { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 0 0; }
.ih { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px 18px; border-bottom: 1px solid var(--line); } .ih b { font: 800 14px var(--kr); }
.tally { display: flex; gap: 4px; } .tally i { font: 700 11px var(--kr); font-style: normal; padding: 2px 7px; border-radius: 99px; } .tally .fix { background: rgba(229,72,77,.12); color: #c62a2f; } .tally .check { background: rgba(245,166,35,.16); color: #a96500; } .tally .info { background: rgba(62,123,250,.12); color: #2a5fd6; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; } .btn:disabled { opacity: .3; cursor: default; }
.list { list-style: none; margin: 0; padding: 8px 10px 14px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.list li { padding: 10px 12px; border-radius: 14px; background: #faf9f6; box-shadow: inset 3px 0 0 #e5484d; cursor: pointer; } .list li.check { box-shadow: inset 3px 0 0 #f0a020; } .list li.info { box-shadow: inset 3px 0 0 #3e7bfa; }
.list li.on { background: #fff; box-shadow: inset 3px 0 0 #e5484d, 0 0 0 1.5px rgba(229,72,77,.5); } .list li.check.on { box-shadow: inset 3px 0 0 #f0a020, 0 0 0 1.5px rgba(240,160,32,.6); } .list li.info.on { box-shadow: inset 3px 0 0 #3e7bfa, 0 0 0 1.5px rgba(62,123,250,.5); }
.list li.none { box-shadow: none; cursor: default; background: transparent; } .list li.none b { font: 800 14px var(--kr); }
.it { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; } .it em { font: 700 10.5px var(--kr); font-style: normal; color: var(--mute); background: #efece6; padding: 1px 6px; border-radius: 5px; }
.it .was { font: 500 15px var(--kr); color: #a19a90; } .it s { color: #c62a2f; text-decoration-color: #e5484d; text-decoration-thickness: 1.5px; font-weight: 700; } .it .now { font: 500 15px var(--kr); color: #4d4943; } .it .now b { font-weight: 800; color: #1a7f4e; } .it > b { font: 800 15px var(--kr); } .it .ar { color: #b9b2a7; font: 600 13px var(--sans); } .it u { text-decoration: none; color: #c9c2b7; }
.list p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: #6b665d; word-break: keep-all; }
.ib { display: flex; gap: 6px; margin-top: 7px; } .ib button { all: unset; cursor: pointer; padding: 4px 11px; border-radius: 8px; font: 700 12px var(--kr); background: #efece6; color: #5d584f; } .ib .fx { background: var(--ink); color: #fff; }
button, label, select { touch-action: manipulation; }
@media (max-width: 1000px) { .app { grid-template-columns: minmax(0, 1fr); height: auto; } .edcard { height: 560px; } .side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .iss { max-height: 520px; } }
@media (max-width: 760px) {
  .top, .intro, .app, .how, .foot { padding-left: 16px; padding-right: 16px; } h1 .q { font-size: 31px; } h1 em { font-size: 21px; } .gh { font-size: 13px; }
  .app { padding-top: 16px; gap: 12px; } .edcard { height: 58vh; min-height: 400px; } .side { display: flex; align-items: stretch; } .iss { max-height: none; } .list { overflow: visible; }
  .hl, #txt { padding: 16px 16px 30px; font-size: 16.5px; } .edbar { flex-wrap: wrap; padding: 10px 12px; } .how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }
/* film framing */
body.film:not(.tall) .lede { display: none; } body.film:not(.tall) .app { height: 600px; padding-top: 14px; }
body.film.tall .top, body.film.tall .intro { padding-left: 14px; padding-right: 14px; } body.film.tall h1 em, body.film.tall .lede { display: none; } body.film.tall h1 .q { font-size: 30px; } body.film.tall .intro { padding-top: 12px; }
body.film.tall .app { grid-template-columns: minmax(0, 1fr); height: 742px; padding: 12px 14px 0; gap: 10px; grid-template-rows: 388px minmax(0, 1fr); }
body.film.tall .edcard { height: auto; min-height: 0; border-radius: 18px; } body.film.tall .hl, body.film.tall #txt { padding: 14px 16px 20px; font-size: 15.5px; line-height: 1.8; }
body.film.tall .side { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; } body.film.tall .cnt { display: none; } body.film.tall .iss { flex: 1; max-height: none; border-radius: 18px; } body.film.tall .list { overflow-y: auto; }
body.film.tall .edbar { padding: 9px 10px; gap: 5px; } body.film.tall #clear { display: none; } body.film.tall .chips button, body.film.tall .mini { padding: 5px 10px; font-size: 12px; }
