@font-face { font-family: Pre; src: url(fonts/gothica1-Regular.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: Pre; src: url(fonts/gothica1-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: block; }
@font-face { font-family: Pre; 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: #f7f5ef; --ink: #171717; --mute: #8a867c; --line: rgba(0,0,0,.09); --ac: #ff5a1f; --sans: Inter, Pre, system-ui, sans-serif; --kr: Pre, 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; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; }
.brand { display: flex; align-items: baseline; gap: 10px; } .brand b { font: 800 18px var(--kr); letter-spacing: -.03em; } .brand span { font: 500 12px var(--mono); color: var(--mute); }
.gh { font: 600 14px var(--sans); text-decoration: none; }
.intro { padding: 18px 40px 26px; max-width: 1500px; margin: 0 auto; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
h1 .q { font: 800 68px/1.05 var(--kr); letter-spacing: -.055em; }
h1 em { font: italic 400 46px/1 Serif, serif; letter-spacing: -.02em; color: #4a4741; }
.lede { margin: 14px 0 22px; font-size: 17px; color: #3b3934; max-width: 820px; } .lede b { color: var(--ac); } .lede span { font: 400 15px var(--sans); color: var(--mute); }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); width: 320px; color: var(--mute); }
.search input { all: unset; flex: 1; font: 500 15px var(--kr); color: var(--ink); } .search input::placeholder { color: #a9a49a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { all: unset; cursor: pointer; height: 38px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--kr); background: #ece8de; color: #45423b; transition: background .2s, color .2s; }
.chip small { font: 500 11px var(--mono); opacity: .6; } .chip.on { background: var(--ink); color: #fff; } .chip:hover:not(.on) { background: #e2ddd0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 0 40px 40px; max-width: 1500px; margin: 0 auto; }
.grp { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin: 16px 0 -4px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.grp b { font: 800 26px var(--kr); letter-spacing: -.04em; } .grp span { font: italic 400 22px Serif, serif; color: #4a4741; } .grp small { margin-left: auto; font: 500 12px var(--mono); color: var(--mute); }
.term { background: #fff; border-radius: 20px; padding: 10px 10px 14px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; scroll-margin-top: 20px; }
.term:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.14), 0 14px 34px -16px rgba(40,30,10,.3); }
.term:target { box-shadow: 0 0 0 2px var(--ac); }
.meta { display: flex; align-items: baseline; gap: 10px; padding: 12px 6px 0; }
.meta .no { font: 500 11px var(--mono); color: var(--mute); } .meta h3 { margin: 0; font: 800 21px/1.15 var(--kr); letter-spacing: -.04em; } .meta .en { margin-left: auto; font: 500 12px var(--sans); color: var(--mute); text-align: right; }
.def { margin: 6px 6px 12px; font-size: 13.5px; color: #4a4741; line-height: 1.5; min-height: 2.9em; }
.act { display: flex; gap: 6px; padding: 0 6px; margin-top: auto; }
.cp { all: unset; cursor: pointer; flex: 1; height: 34px; border-radius: 10px; background: #f1eee6; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 13px var(--kr); color: #2b2925; transition: background .2s; }
.cp:hover { background: #e6e1d4; } .cp.done { background: var(--ink); color: #fff; }
.cp svg { width: 14px; height: 14px; } .lnk { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; background: #f1eee6; display: grid; place-items: center; font: 600 14px var(--mono); color: #6b675e; text-decoration: none; }
.empty { text-align: center; color: var(--mute); padding: 40px; }
.foot { max-width: 1500px; margin: 0 auto; padding: 26px 40px 60px; border-top: 1px solid var(--line); color: #6b675e; font-size: 13.5px; } .foot p { margin: 0 0 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font: 600 14px var(--kr); box-shadow: 0 14px 40px rgba(0,0,0,.25); transition: transform .45s cubic-bezier(.3,1.4,.5,1); max-width: min(92vw, 560px); z-index: 50; }
.toast.on { transform: translate(-50%, 0); } .toast small { display: block; font: 400 12px/1.45 var(--kr); color: #bdb8ad; margin-top: 3px; }
@media (max-width: 700px) { .top, .intro { padding-left: 18px; padding-right: 18px; } .grid { padding: 0 14px 30px; grid-template-columns: 1fr 1fr; gap: 10px; } h1 .q { font-size: 40px; } h1 em { font-size: 28px; } .lede { font-size: 15px; } .search { width: 100%; } .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; } .chip { flex: none; }
  .term { padding: 6px 6px 10px; border-radius: 14px; } .meta { flex-wrap: wrap; gap: 2px 8px; padding: 8px 4px 0; } .meta h3 { font-size: 16px; } .meta .en { margin-left: 0; width: 100%; text-align: left; font-size: 11px; } .def { font-size: 12px; margin: 4px 4px 8px; } .act { padding: 0 4px; } .cp { font-size: 12px; } .lnk { display: none; } .grp b { font-size: 21px; } .grp span { font-size: 17px; } .foot { padding: 20px 18px 40px; } }
/* film */
body.film { overflow: hidden; }
.cur { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; margin: -10px 0 0 -14px; filter: drop-shadow(0 3px 4px rgba(20, 15, 10, .3)); }
.cur svg path { fill: #fff; stroke: #151515; stroke-width: 1.3; stroke-linejoin: round; } .cur .closed { display: none; } .cur.down .closed { display: block; } .cur.down .open { display: none; }
.cur i { position: absolute; left: 34px; top: 30px; font: 600 13px var(--kr); font-style: normal; background: var(--ink); color: #fff; border-radius: 7px; padding: 3px 9px; white-space: nowrap; } .cur i:empty { display: none; }
.toast { visibility: hidden; transition: transform .45s cubic-bezier(.3,1.4,.5,1), visibility 0s .45s; } .toast.on { visibility: visible; transition: transform .45s cubic-bezier(.3,1.4,.5,1), visibility 0s; }
body.film .intro { padding-top: 4px; padding-bottom: 16px; } body.film h1 .q { font-size: 58px; } body.film h1 em { font-size: 40px; } body.film .lede { margin: 10px 0 16px; }
@media (orientation: portrait) { body.film .intro { padding-top: 30px; } body.film h1 .q { font-size: 64px; } body.film h1 em { font-size: 44px; } body.film .meta h3 { font-size: 23px; } }
[hidden] { display: none !important; }
