:root{color-scheme:light;--ivory:#f6f1e6;--paper:#eee4d2;--brown:#482f1e;--gold:#e0c477;--line:rgba(72,47,30,.24);--muted:#765c43}
*{box-sizing:border-box}
html{background:var(--paper)}
body{margin:0;color:var(--brown);background:radial-gradient(circle at 50% -20%,#fffaf0 0,var(--paper) 52%,#dfcfb6 100%);font-family:Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;word-break:keep-all;overflow-wrap:anywhere}
a{color:inherit}
.site-shell{width:min(100%,1520px);margin:0 auto;padding:22px clamp(10px,2.5vw,34px) 40px}
.site-nav{position:sticky;top:10px;z-index:50;margin:0 auto 20px;border:1px solid var(--line);border-radius:20px;background:rgba(246,241,230,.96);box-shadow:0 10px 30px #482f1e1f;backdrop-filter:blur(12px)}
.site-brand{font-family:Georgia,"Times New Roman",serif;font-weight:900;text-decoration:none;white-space:nowrap}
.site-link{border:1px solid transparent;border-radius:12px;color:#684a32;text-decoration:none;white-space:nowrap}
.site-link:hover,.site-link[aria-current="page"]{border-color:var(--line);color:var(--gold);background:var(--brown)}
.site-link:focus-visible,.story-copy-button:focus-visible,.story-preview-card:focus-visible{outline:3px solid #987126;outline-offset:3px}
.story-archive{padding:clamp(18px,3vw,38px);border:1px solid var(--line);border-radius:26px;background:var(--ivory)}
.story-heading{padding:26px;border-radius:20px;background:var(--brown);color:var(--gold)}
.story-heading h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,5vw,48px);font-weight:900;line-height:1.2;letter-spacing:-.04em}
.story-index{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.story-index a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid #e0c47766;border-radius:10px;color:#f5dfaa;text-decoration:none;font-size:15px;font-weight:750}
.story-index a:hover{background:#e0c4771a}
.story-index a:focus-visible{outline:3px solid #f5dfaa;outline-offset:3px}
.story-feature{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(28px,4vw,60px);max-width:1160px;margin:30px auto 4px}
.story-feature+.story-feature{margin-top:clamp(40px,6vw,72px);padding-top:clamp(32px,5vw,56px);border-top:1px solid var(--line)}
.story-feature h2{scroll-margin-top:160px}
.story-cover{display:block;width:100%;height:auto;border:1px solid rgba(72,47,30,.18);border-radius:16px;box-shadow:0 12px 32px rgba(32,22,40,.15)}
.story-copy{min-width:0}
.story-copy h2{margin:0 0 26px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,4.2vw,50px);font-weight:900;line-height:1.3;letter-spacing:-.035em}
.story-description{font-size:clamp(16px,1.4vw,19px);line-height:1.9}
.story-description p{margin:0 0 16px}
.story-description p:last-child{margin-bottom:0}
.story-start{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);align-items:start;gap:24px;margin-top:34px;padding-top:25px;border-top:1px solid var(--line)}
.story-start-main{min-width:0}
.story-preview-card{position:relative;display:block;justify-self:end;width:100%;max-width:260px;aspect-ratio:1216/832;overflow:hidden;border:2px solid #8b713e;border-radius:10px;background:#fffcf5;text-decoration:none;transition:border-color .12s,box-shadow .12s}
.story-preview-card:hover{border-color:#74592a;box-shadow:0 3px 10px #482f1e24}
.story-preview-card img{display:block;width:100%;height:100%;object-fit:contain}
.story-preview-name{position:absolute;inset:auto 0 0;padding:24px 7px 7px;background:linear-gradient(transparent,#23180de6);color:#fff;text-align:center;font-size:13px;line-height:1.4;font-weight:850}
.story-start-label{margin:0 0 12px;color:var(--muted);font-size:13px;font-weight:750}
.story-command-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.story-command{padding:11px 16px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-family:Consolas,"Malgun Gothic",monospace;font-size:20px;font-weight:750;line-height:1.4;user-select:all}
.story-copy-button{min-height:50px;padding:12px 19px;border:1px solid var(--brown);border-radius:10px;background:var(--brown);color:var(--ivory);font:750 14px/1.5 Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;cursor:pointer}
.story-copy-button:hover{background:#65432c}
.story-copy-button:disabled{cursor:wait;opacity:.7}
.story-copy-button[hidden]{display:none}
.story-start-help{margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.7}
.story-copy-status{min-height:24px;margin:8px 0 0;color:#476c47;font-size:13px;line-height:1.7}
.site-footer{margin:24px auto 0;padding:17px;color:var(--muted);font-size:12px;text-align:center;letter-spacing:.08em}
@media(max-width:1100px){.story-start{grid-template-columns:minmax(0,1fr);gap:16px}.story-preview-card{justify-self:start}}
@media(max-width:850px){.story-feature{grid-template-columns:minmax(0,1fr);max-width:560px;gap:28px}.story-copy h2{margin-bottom:18px}.story-start{margin-top:26px}}
@media(max-width:620px){.site-shell{padding:8px 6px 24px}.site-nav{top:4px;border-radius:14px}.story-archive{padding:13px;border-radius:18px}.story-heading{padding:20px;border-radius:13px}.story-feature{margin-top:18px;gap:24px}.story-cover{border-radius:12px}.story-copy{padding:0 4px}.story-description{font-size:16px;line-height:1.85}.story-command{font-size:18px}.story-copy-button{padding:12px 15px}}
@media(max-height:550px){.page-story .site-nav{position:static}}

.story-ost-button{display:inline-flex;align-items:center;min-height:48px;margin-top:24px;padding:12px 20px;border:1px solid #80602d;border-radius:12px;background:#482f1e;color:#f5dfaa;font-family:inherit;font-size:15px;font-weight:800;cursor:pointer}
.story-ost-button:hover{background:#67472c}
.story-ost-button:focus-visible{outline:3px solid #987126;outline-offset:3px}
