@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: #efede8; --ink: #181613; --mute: #8a857c; --line: rgba(0,0,0,.09); --ac: #ff8a3d; --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: 15px; height: 15px; border-radius: 4px; margin-right: 7px; vertical-align: -2px; background: linear-gradient(135deg, #3a5a8c 50%, var(--ac) 50%); }
.brand i { font: 500 12px var(--mono); color: var(--mute); font-style: normal; }
.gh { font: 600 14px var(--sans); text-decoration: none; }
.intro { padding-top: 8px; padding-bottom: 14px; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; word-break: keep-all; }
h1 .q { font: 800 48px/1.08 var(--kr); letter-spacing: -.055em; } h1 em { font: italic 400 30px/1.1 Serif, serif; letter-spacing: -.02em; color: #4d4943; }
.lede { margin: 8px 0 0; font-size: 15.5px; color: #3b3934; word-break: keep-all; } .lede b { background: linear-gradient(transparent 58%, #ffc89e 58%); padding: 0 2px; } .lede span { font: 400 13.5px var(--sans); color: var(--mute); }
.app { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.pane { background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(40,30,10,.25); padding: 16px; min-width: 0; }
h2 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font: 800 17px var(--kr); letter-spacing: -.03em; }
h2 s { text-decoration: none; width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--ink); color: #fff; font: 700 12px var(--sans); }
h2 small { font: 500 12.5px var(--sans); color: var(--mute); letter-spacing: 0; }
h2 .drop { margin-left: auto; font: 500 12.5px var(--kr); color: var(--mute); letter-spacing: 0; }
.refimg { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: #ddd; }
.refimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s; }
.refimg span { position: absolute; left: 10px; bottom: 9px; font: 700 12px var(--kr); color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 99px; }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.presets button { all: unset; cursor: pointer; position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: #f2efe9 center / cover; box-shadow: 0 0 0 1px var(--line); }
.presets button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 0 5px; text-align: center; font: 700 11px var(--kr); letter-spacing: -.03em; white-space: nowrap; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.presets button.on { box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 5px #fff inset; }
.presets button.up { display: grid; place-items: center; background: #f4f1ec; } .presets button.up span { position: static; background: none; color: #5b574f; padding: 0; line-height: 1.25; font-weight: 600; }
.presets button.up b { display: block; font: 300 24px/1 var(--sans); }
.pal { margin-top: 14px; } .pal h3 { margin: 0 0 7px; font: 700 13px var(--kr); display: flex; justify-content: space-between; } .pal h3 small { font: 500 11.5px var(--kr); color: var(--mute); }
#pal { display: flex; height: 64px; border-radius: 12px; overflow: hidden; }
#pal button { all: unset; cursor: pointer; position: relative; flex: var(--w) 1 0; min-width: 34px; transition: flex-grow .4s; }
#pal button span { position: absolute; left: 6px; bottom: 5px; font: 600 10.5px var(--mono); letter-spacing: -.02em; }
#pal button.copied span::after { content: ' ✓'; }
.stagewrap { position: relative; display: grid; place-items: center; background: #f1eee9; border-radius: 16px; height: clamp(300px, calc(100vh - 380px), 560px); overflow: hidden; }
.stage { position: relative; height: 100%; max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage canvas { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.split { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px; cursor: ew-resize; display: grid; place-items: center; }
.split i { position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }
.split b { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 15px var(--sans); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.tag { position: absolute; top: 10px; font: 700 11.5px var(--kr); font-style: normal; color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 99px; pointer-events: none; }
.tag.l { left: 10px; } .tag.r { right: 10px; }
.nogl { position: absolute; font: 600 14px var(--kr); color: var(--mute); }
.dragover .stagewrap { box-shadow: 0 0 0 3px var(--ac) inset; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.thumbs button { all: unset; cursor: pointer; flex: 0 0 auto; height: 58px; aspect-ratio: 3 / 2; border-radius: 10px; background: #f2efe9 center / cover; box-shadow: 0 0 0 1px var(--line); position: relative; }
.thumbs button.on { box-shadow: 0 0 0 2.5px var(--ink); }
.thumbs button.up { aspect-ratio: auto; width: 86px; display: grid; place-items: center; font: 600 12.5px var(--kr); color: #5b574f; background: #f4f1ec; }
.thumbs button.up b { font: 300 20px/1 var(--sans); margin-right: 3px; }
.ctrl { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.rng { display: flex; align-items: center; gap: 10px; font: 700 14px var(--kr); }
.rng input { -webkit-appearance: none; appearance: none; width: 220px; height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--ink) var(--p, 100%), #e2ded6 var(--p, 100%)); outline: none; }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink), 0 3px 8px rgba(0,0,0,.2); cursor: pointer; }
.rng input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
.rng output { font: 600 14px var(--sans); font-variant-numeric: tabular-nums; width: 44px; }
.tog { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px 0 9px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); font: 600 14px var(--kr); }
.tog i { width: 30px; height: 18px; border-radius: 9px; background: #d9d4cb; position: relative; transition: background .2s; }
.tog i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tog[aria-pressed="true"] i { background: var(--ink); } .tog[aria-pressed="true"] i::after { transform: translateX(12px); }
.sp { flex: 1; }
.btn { all: unset; cursor: pointer; height: 40px; padding: 0 16px; border-radius: 12px; font: 700 14px var(--kr); box-shadow: 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 6px; }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; } .btn small { font: 500 12px var(--mono); color: #bdb7ab; }
.btn:active, .tog:active { transform: translateY(1px); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 30px; padding-bottom: 10px; }
.how h3 { margin: 0 0 6px; font: 800 15px var(--kr); } .how p { margin: 0; font-size: 14px; color: #4a4741; word-break: keep-all; } .how b { font-weight: 600; }
.foot { padding-top: 26px; padding-bottom: 40px; font: 400 12.5px var(--sans); color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: 26px; 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; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .top, .intro, .app, .how, .foot { padding-left: 16px; padding-right: 16px; }
  h1 .q { font-size: 32px; } h1 em { font-size: 21px; } .lede { font-size: 14px; } .lede span { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pane { padding: 12px; border-radius: 18px; }
  .ref .refimg, .pal, h2 .drop { display: none; }
  .ref h2 { margin-bottom: 8px; } .presets { margin-top: 0; }
  .stagewrap { height: auto; aspect-ratio: 3 / 2; }
  .rng input { width: 150px; } .how { grid-template-columns: 1fr; gap: 14px; }
  .ctrl .sp { display: none; } .btn { flex: 1; justify-content: center; }
}
/* film */
body.film { cursor: none; } body.film .lede span { display: none; } body.film .how, body.film .foot { display: 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; }
body.film.tall .top { padding-top: 12px; } body.film.tall h1 .q { font-size: 30px; }

