@font-face{font-family:Paperlogy;src:url("assets/paperlogy-500.woff2") format("woff2");font-weight:400 600;font-display:swap}
@font-face{font-family:Paperlogy;src:url("assets/paperlogy-800.woff2") format("woff2");font-weight:700 900;font-display:swap}

:root{font-family:Paperlogy,"Malgun Gothic",sans-serif;color:#142640;background:#c5d0de;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
button,select{font:inherit}
button,select{cursor:pointer}
a{color:var(--accent,#204fd4);text-underline-offset:.2em}
:focus-visible{outline:3px solid #2797de;outline-offset:3px}
[hidden]{display:none!important}
#stage{flex:1;display:grid;place-items:center;width:100%}
.slide{--ink:#142640;--muted:#46607b;--accent:#224fda;--surface:#fff;--edge:#c1d0e5;--tint:#dbe7ff;color:var(--ink);background:#eaf0f8;border-top:6px solid var(--accent);width:min(100%,calc((100dvh - 52px) * 1.778));min-height:min(calc(100dvh - 52px),56.25vw);padding:clamp(22px,3.4vw,62px);display:flex;flex-direction:column;justify-content:center;gap:clamp(12px,1.55vw,26px);overflow-wrap:anywhere;font-size:clamp(15px,1.45vw,24px)}
.slide.dark,.slide.cover{--ink:#f3f7ff;--muted:#bfd2ec;--accent:#9af0de;--surface:#1b3557;--edge:#416281;--tint:#263f61;background:#122540}
.slide.cover{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:clamp(20px,4vw,70px);background:radial-gradient(ellipse at 92% 12%,#2e4d79,#122540 68%);border-top-color:#aaf5df}
.slide.cover figure{padding:clamp(10px,2vw,24px);background:#1d385c;border:1px solid #517295;border-radius:16px}
.slide.cover img{width:100%;border-radius:8px}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-weight:800;line-height:1.12;word-break:keep-all}
h1{font-size:clamp(38px,5vw,92px);letter-spacing:-.07em}
h2{font-size:clamp(29px,3.55vw,61px);letter-spacing:-.055em}
h3{font-size:clamp(19px,1.9vw,32px);letter-spacing:-.035em}
em{color:var(--accent);font-style:normal}
p,li{line-height:1.55;word-break:keep-all}
header{display:grid;gap:.55em}
header > p:last-child,.lead{color:var(--muted)}
.eyebrow{color:var(--accent);font-size:.72em;font-weight:800;letter-spacing:.065em}
.cover .eyebrow{margin-bottom:1.05em}
.lead{margin-top:1em}
.chips,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55em}
.chips{margin-top:1.1em}
.cover-links{margin-top:1em}
.chips span,.button,.prompt button{display:inline-block;padding:.55em .75em;background:var(--tint);color:var(--ink);border:1px solid var(--edge);border-radius:7px;text-decoration:none;font-weight:800;font-size:.77em}
.button:hover,.prompt button:hover{border-color:var(--accent)}
.route a{display:flex;align-items:center;gap:.65em;padding:.65em .78em;border:1px solid var(--edge);border-radius:8px;background:var(--surface);color:var(--ink);text-decoration:none;font-weight:800}
.route a:hover{border-color:var(--accent)}
.route span{color:var(--accent);font-size:.78em}
.grid{display:grid;gap:clamp(10px,1.3vw,25px);align-items:stretch}
.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.card,.prompt{background:var(--surface);border:1px solid var(--edge);border-top:3px solid var(--accent);border-radius:9px;padding:clamp(12px,1.4vw,26px);display:flex;flex-direction:column;gap:.55em;min-width:0}
.card p,.card li{color:var(--ink)}
.card > a:not(.button){font-size:.75em}
.card > .button{align-self:flex-start}
.card ol{padding-left:1.2em;margin:.1em 0}
.tab-strip{justify-self:start}
.tab-strip img,.catalog-control img{width:auto;max-height:55px;object-fit:contain;object-position:left;border-radius:5px}
.template-shortcut{text-decoration:none;color:var(--ink);align-items:flex-start}
.template-shortcut:hover,.tool-card:hover{border-color:var(--accent)}
.template-shortcut img,.tool-card img{width:clamp(67px,7.25vw,125px);aspect-ratio:1;object-fit:contain;border-radius:14px;background:#122540}
.template-shortcut .category{color:var(--accent);font-size:.75em;font-weight:800}
.template-shortcut h3,.tool-card h3{font-size:clamp(16px,1.56vw,27px)}
.template-shortcut p,.tool-card p{font-size:.77em;color:var(--muted)}
.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tool-grid.four-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.tool-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.65em}
.tool-card h3{margin-bottom:.33em;word-break:normal}
.tool-card details{margin-top:.55em;color:var(--accent);font-size:.74em}
.tool-card details p{margin-top:.45em;color:var(--ink);font-size:1em}
.tool-card summary{cursor:pointer}
.catalog-control{justify-content:center}
.remix-steps{margin:0;padding-left:1.4em;font-size:.87em}
.remix-steps li+li{margin-top:.35em}
.remix-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.45em;padding:.5em .62em;background:#13243e;border-radius:7px}
.remix-controls img{width:auto;max-height:40px;object-fit:contain}
.card select{max-width:100%;padding:.35em .6em;border:1px solid var(--edge);border-radius:5px}
.callout{border-left:4px solid var(--accent);background:var(--tint);padding:.58em .82em;font-size:.83em}
.source,figcaption{font-size:.69em;color:var(--muted);line-height:1.55}
figcaption{margin-top:.45em}
img,video{display:block;max-width:100%}
video{width:100%;height:clamp(130px,20vw,320px);background:#101a2c;object-fit:contain;border-radius:6px}
audio{width:100%;height:40px}
.screenshots figure,.media-text figure{min-width:0}
.screenshots img,.media-text img,.thumbnails img{width:100%;height:clamp(120px,16.8vw,255px);object-fit:contain;background:var(--tint);border-radius:7px}
.media-text img{height:clamp(170px,22vw,300px)}
.thumbnails img{height:clamp(85px,10vw,145px)}
.prompt pre{font:inherit;line-height:1.55;font-size:.88em;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.prompt button{align-self:flex-start}
.prompt > p{font-size:.78em}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left;background:var(--surface);font-size:.85em}
th,td{padding:.63em .8em;border:1px solid var(--edge);line-height:1.4}
thead th{background:var(--tint)}
tbody th{color:var(--accent)}
.timeline{display:grid;grid-template-columns:4fr 4fr 5fr;gap:4px;color:#fff}
.timeline div{background:#2548ad;text-align:center;padding:.72em .25em;font-size:.8em;border-radius:5px}
.timeline div:nth-child(2){background:#167062}.timeline div:nth-child(3){background:#66348e}
.controls{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;gap:8px;padding:7px 12px;background:#fff;color:#142640;border-top:1px solid #ccd7e5;min-height:49px;font-size:14px}
.controls select,.controls button{background:#eaf0f8;color:#142640;border:1px solid #c8d5e6;border-radius:5px;padding:5px 8px}
.controls select{max-width:min(44vw,300px)}
.controls button:disabled{opacity:.4;cursor:default}
.spacer{flex:1}
#count{white-space:nowrap}
#progress{height:3px;position:fixed;bottom:0;left:0;background:#2457e6;z-index:3;transition:width 180ms ease}
#notice{position:fixed;right:14px;bottom:62px;z-index:4;border-radius:7px;background:#142640;color:#fff;padding:.65em 1em}
#notice:empty{display:none}
.slide:not([hidden]) > header,.slide.cover:not([hidden]) > div{animation:enter 260ms ease-out both}
@keyframes enter{from{opacity:.4;translate:0 8px}to{opacity:1;translate:0 0}}
@media(max-width:680px) and (orientation:portrait){
  .slide{width:100%;min-height:calc(100dvh - 50px);justify-content:flex-start;padding:24px 16px;font-size:16px}
  .slide.cover,.two,.three,.four{grid-template-columns:1fr}
  .tool-grid,.tool-grid.four-cards{grid-template-columns:1fr}
  .template-map{grid-template-columns:repeat(2,minmax(0,1fr))}
  .slide.cover{align-content:center}
  .feature-grid,.thumbnails{grid-template-columns:repeat(2,minmax(0,1fr))}
  .screenshots img,.media-text img{height:auto;max-height:250px}
  h1{font-size:clamp(34px,9vw,53px)}
  .controls{gap:5px;padding-inline:7px;min-height:49px}
  .controls label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
}
@media(max-height:550px) and (orientation:landscape){
  .slide{width:100%;padding:15px 25px;gap:9px}
  h2{font-size:clamp(24px,4vw,34px)}
  .card,.prompt{padding:9px}
  .screenshots img,.media-text img,video{height:135px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{
  .controls,#notice,#progress{display:none!important}
  .slide,.slide[hidden]{display:flex!important;width:100%;min-height:0;break-after:page;font-size:13px;padding:20px}
  .slide:last-child{break-after:auto}
}
