*{box-sizing:border-box}
:root{color-scheme:light;--ink:#222126;--accent:#ee4b26;--muted:#65636a;--line:#dfddd9;--paper:#fafaf8}
body{margin:0;background:#eeedf0;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
[hidden]{display:none!important}
.sheet{background:var(--paper);max-width:36rem;margin-inline:auto;min-height:100vh;min-height:100svh;padding:env(safe-area-inset-top) max(1.25rem,5.5%) max(2.5rem,env(safe-area-inset-bottom))}
.masthead{display:flex;align-items:center;gap:.52rem;border-bottom:1px solid var(--line);padding:1.5rem 0 1.2rem}
.masthead span{font-family:Inter,Arial,sans-serif;font-weight:850;letter-spacing:-.07em;font-size:1.62rem;line-height:1}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.8rem,7.8vw,2.55rem);font-weight:800;letter-spacing:-.075em;line-height:1.3;margin:1.95rem 0 1.05rem;word-break:keep-all}
.period{color:var(--accent);margin-left:.04em}
.search-box{border:1px solid #d5d4d3;border-radius:.9rem;background:white;display:flex;align-items:center;gap:.85rem;min-height:3.55rem;padding-left:1.05rem;box-shadow:0 2px 3px #211e2805}
.search-box:focus-within{border-color:#a95643;outline:3px solid #f14b2817}
.glass{position:relative;width:1.05rem;height:1.05rem;border:2px solid currentColor;border-radius:50%;display:inline-block;color:var(--muted);flex:none}
.glass:after{content:"";position:absolute;right:-.30rem;bottom:-.13rem;width:.45rem;height:2px;background:currentColor;transform:rotate(45deg);border-radius:2px}
input{font-size:1rem;color:var(--ink);background:none;min-width:0;flex:1;width:100%;padding:.9rem .1rem;border:0;outline:0;line-height:1.4;-webkit-appearance:none;appearance:none}
input::placeholder{color:#706e74}
input::-webkit-search-cancel-button{display:none}
.clear{border:0;background:transparent;font-size:1.5rem;min-width:2.75rem;min-height:2.75rem;color:#605e66;cursor:pointer}
section{margin-top:2.15rem}
.list-caption{display:flex;align-items:center;gap:.5rem;margin-bottom:.95rem}
h2{font-size:1rem;font-weight:750;letter-spacing:-.04em}
#count{font:700 .81rem/1.35 Arial,sans-serif;color:#8f371d;background:#fce8dd;padding:.12rem .45rem;border-radius:2rem;min-width:1.45rem;text-align:center}
.rule{height:1px;background:var(--line);flex:1;margin-left:.25rem}
.links{list-style:none;padding:0;margin:0;display:grid;gap:1rem}
.card{display:block;overflow:hidden;color:inherit;text-decoration:none;border-radius:1.05rem;background:white;border:1px solid #dedbd8;box-shadow:0 3px 9px #201d2706;-webkit-tap-highlight-color:#ef4c2618}
.cover{width:100%;aspect-ratio:1.92;background:#ccc9e3;overflow:hidden}
.cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 56%}
.card-body{padding:1.12rem 1.2rem 1.18rem}
.topic{font-size:.81rem;font-weight:750;color:#8e402b;display:inline-flex;gap:.38rem;align-items:center}
.topic i{width:.28rem;height:.72rem;background:var(--accent);border-radius:.15rem}
h3{font-size:clamp(1.34rem,5.4vw,1.65rem);line-height:1.43;letter-spacing:-.062em;font-weight:800;word-break:keep-all;overflow-wrap:anywhere;margin:.35rem 0 .8rem}
.source{display:flex;gap:.36rem;align-items:center;font-size:.83rem;color:#65636a;font-weight:500}
.t-mark{font:bold .72rem/1 Arial;color:white;background:#59555d;border-radius:.24rem;width:1.1rem;height:1.1rem;display:inline-grid;place-items:center}
.dot{color:#98949a}
.empty{display:grid;justify-items:center;gap:.45rem;text-align:center;border:1px dashed #d8d5d1;border-radius:1rem;padding:2.75rem 1rem}
.empty .glass{margin:0 0 .55rem}
.empty p{font-size:1.08rem;font-weight:700}.empty>span:not(.glass){font-size:.94rem;color:var(--muted)}
.empty button{min-height:2.75rem;margin-top:.55rem;background:white;border:1px solid var(--line);border-radius:.7rem;color:var(--ink);padding:.45rem .95rem;cursor:pointer}
:focus-visible{outline:3px solid #963d26;outline-offset:3px}
input:focus-visible{outline:0}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:36rem){.sheet{padding-inline:2rem;box-shadow:0 0 0 1px #e0dee1}.masthead{padding-top:1.9rem}}
@media(hover:hover){.card:hover{border-color:#b9b4b3}.card:hover h3{text-decoration:underline;text-decoration-color:#e7b7aa;text-underline-offset:.18em}}
