.collection-page,.library-page{padding:32px clamp(16px,2vw,32px) 56px}
.paths-page,.glossary-page{max-width:1440px;margin-inline:auto}
.library-page{padding-top:28px}
.collection-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:32px}
.collection-heading h1,.about-intro h1{font-size:clamp(44px,5vw,72px);font-weight:700;line-height:.95;letter-spacing:-.045em;margin:0}
.collection-heading h1 em,.about-intro h1 em{font-family:'Source Serif 4',Georgia,serif;font-style:italic;font-weight:400;font-size:1.05em;line-height:.95;color:var(--coral-ink)}
.collection-heading>p{font-size:17px;line-height:1.5;max-width:480px;margin:0}
.library-search{flex:1;max-width:520px;min-width:250px;display:flex;align-items:center;gap:10px;background:var(--win);border:2px solid var(--ink);border-radius:8px;box-shadow:4px 4px 0 var(--shd);padding:0 14px;height:50px;margin:0}
.search-submit{font-size:23px;line-height:1;display:grid;place-items:center;min-height:44px;min-width:28px;border:0;background:none;padding:0;cursor:pointer}
.library-search input{flex:1;min-width:0;width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font:500 16px 'Hanken Grotesk',sans-serif}
.library-search:focus-within{outline:3px solid var(--accent);outline-offset:3px}
.library-search input::placeholder{color:var(--muted);opacity:1}
.library-page .collection-heading{margin-bottom:24px}
.library-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.library-filters{position:sticky;top:64px;box-shadow:5px 5px 0 var(--shd);overflow:hidden}
.library-filter-body{padding:12px}
.filter-label{font-size:11px;font-weight:600;color:var(--muted);margin:2px 4px 8px}
.tool-filters{display:flex;flex-direction:column;gap:4px;margin-bottom:18px}
.tool-filter{display:flex;align-items:center;gap:10px;text-align:left;border:2px solid transparent;background:transparent;border-radius:6px;padding:6px 8px;font-size:14px;font-weight:500;color:var(--ink);text-decoration:none;min-height:40px}
.tool-filter:hover{background:var(--soft);color:var(--ink)}
.tool-filter.is-active{background:var(--tint);border-color:var(--ink)}
.tool-filter>span:nth-last-child(2){flex:1}
.tool-filter>.brand-icon{width:24px;height:24px;border:2px solid var(--ink);border-radius:5px;padding:2px;background:#fff}
.tool-count{font-size:12px;color:var(--muted)}
.filter-all-icon{width:24px;height:24px;display:grid;place-items:center;background:#fff;color:#1f1e1b;border:2px solid var(--ink);border-radius:5px;flex:none;font-size:17px}
.format-filters{display:flex;flex-wrap:wrap;gap:6px}
.format-filter{padding:5px 10px;border:2px solid var(--ink);border-radius:999px;font-size:12px;font-weight:600;color:var(--ink);text-decoration:none;line-height:1.4}
.format-filter:hover{background:var(--soft);color:var(--ink)}
.format-filter.is-active{background:var(--ink);color:var(--win)}
.library-results{min-width:0}
.result-count{font-size:13px;margin:0 0 14px}
.library-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:22px}
.library-card-grid>div{min-width:0}
.library-card-grid .guide-card{height:100%}
.empty-results{display:flex;align-items:center;gap:22px;max-width:560px;padding:28px;box-shadow:5px 5px 0 var(--shd)}
.empty-results h2{font-size:20px;margin:0 0 4px}
.empty-results p{font-size:15px;color:var(--muted);margin:0;line-height:1.5}
.text-button{border:0;background:none;padding:0;font:inherit;color:var(--coral-ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.paths-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:26px;align-items:stretch}
.paths-grid>.path-card{display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:0;min-width:0}
.paths-grid .path-card-copy{display:flex;flex-direction:column;align-self:stretch;min-width:0}
.paths-grid .path-progress-row{margin-top:auto}
.path-card{overflow:hidden;border-radius:12px;box-shadow:6px 6px 0 var(--shd)}
.path-card-heading{padding:24px 24px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;border-bottom:2px dashed var(--line)}
.path-card h2{font-size:30px;line-height:1.05;letter-spacing:-.03em;margin:0 0 8px}
.path-card h2 a{color:var(--ink);text-decoration:none}
.path-card h2 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.path-description{font-size:15px;line-height:1.5;margin:0 0 14px;color:var(--muted)}
.path-progress-row{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600}
.path-progress-row>.mono{white-space:nowrap}
.path-progress{flex:1;max-width:180px;height:12px;border:2px solid var(--ink);border-radius:4px;background:var(--win);overflow:hidden}
.path-progress>span{display:block;height:100%;width:0;background:var(--path-color);transition:width .3s}
.path-robot{margin-top:4px;width:82px;height:106px}
.path-robot .robot-head{width:66px;height:50px;border-radius:13px;gap:6px}
.path-robot .robot-eyes{gap:12px}
.path-robot .robot-eye{width:12px;height:12px}
.path-robot .robot-mouth{width:var(--mouth-width,12px);height:4px;border-radius:0 0 6px 6px}
.path-robot .robot-arm,.path-robot .robot-feet,.path-robot .robot-neck{display:none}
.path-robot .robot-body{width:40px;height:22px;border-top:0;border-radius:0 0 7px 7px}
.path-robot .robot-screen{background:transparent;color:var(--ink);font-size:10px}
.path-lessons{list-style:none;margin:0;padding:8px}
.path-lessons>li{display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:6px;min-height:48px}
.path-lessons>li:hover{background:var(--soft)}
.lesson-check{border:0;background:none;width:44px;min-height:44px;flex:none;display:grid;place-items:center;padding:0;cursor:pointer;color:var(--ink)}
.lesson-check>span{width:24px;height:24px;border:2px solid var(--ink);border-radius:5px;background:var(--win);display:grid;place-items:center;font-weight:700;font-size:13px}
.lesson-check[aria-pressed=true]>span{background:var(--path-color)}
.path-lessons a{flex:1;min-width:0;overflow-wrap:anywhere;color:var(--ink);font-size:15px;font-weight:500;line-height:1.35;text-decoration:none}
.path-lessons a:hover{color:var(--coral-ink);text-decoration:underline}
.path-lessons li.is-done>a{text-decoration:line-through;color:var(--muted)}
.lesson-format{font-size:11px;color:var(--muted);flex:none}
.path-card-footer{padding:6px 20px 20px}
.path-cta{display:flex;width:100%;justify-content:center;min-height:46px;background:var(--path-color);color:var(--ink)}
.collection-breadcrumb{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:22px;font-size:13px}
.path-detail-page{max-width:1040px;margin:auto}
.path-card-detail .path-card-heading{padding:32px;gap:32px}
.path-card-detail h1{font-size:clamp(36px,5vw,58px);line-height:1.02;letter-spacing:-.04em;margin:0 0 16px}
.path-card-detail .path-description{font-size:18px;max-width:620px;margin-bottom:22px}
.path-card-detail .path-progress{max-width:320px}
.path-card-detail .path-lessons{padding:14px 22px}
.path-card-detail .path-lessons>li{padding:8px;min-height:64px}
.path-card-detail .path-lessons a{font-size:18px}
.lesson-number{color:var(--coral-ink);font-size:13px;margin-right:5px}
.path-card-detail .path-card-footer{padding:10px 32px 32px}
.path-storage-note{color:var(--muted);font-size:14px;margin:24px 0 16px}
.back-link{font-size:15px;font-weight:600}
.glossary-page .collection-heading{margin-bottom:22px}
.glossary-page .library-search{max-width:460px}
.glossary-alphabet{position:sticky;top:52px;z-index:10;display:flex;flex-wrap:wrap;gap:6px;background:var(--win);border:2px solid var(--ink);border-radius:10px;box-shadow:4px 4px 0 var(--shd);padding:8px;margin-bottom:30px}
.alphabet-letter{width:34px;height:34px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:6px;background:var(--tint);font:600 14px 'JetBrains Mono',monospace;color:var(--ink);text-decoration:none;flex:none}
.alphabet-letter:hover{background:var(--accent);color:var(--ink)}
.alphabet-letter.is-disabled{border-color:var(--line);color:var(--muted);background:transparent;cursor:default;opacity:.65}
.glossary-groups{display:flex;flex-direction:column;gap:34px}
.glossary-group{display:grid;grid-template-columns:90px minmax(0,1fr);gap:20px;scroll-margin-top:166px}
.glossary-letter{font-size:64px;font-weight:700;line-height:.9;letter-spacing:-.05em;color:var(--coral-ink)}
.term-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.term-grid>.term-card{min-width:0;overflow-wrap:anywhere}
.term-card{padding:18px 18px 16px;display:flex;flex-direction:column;gap:10px;box-shadow:4px 4px 0 var(--shd)}
.term-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.term-heading h2{font-size:24px;font-weight:700;letter-spacing:-.02em;margin:0;line-height:1.2}
.term-heading h2 a{color:var(--ink);text-decoration:none}
.term-heading h2 a:hover{text-decoration:underline;text-underline-offset:4px}
.term-english{font:italic 400 17px 'Source Serif 4',Georgia,serif;color:var(--muted)}
.term-definition{font-size:16px;line-height:1.5;margin:0}
.term-example{font-size:14px;line-height:1.5;margin:0;padding:10px 12px;background:var(--tint-yellow);border:2px solid var(--ink);border-radius:6px}
.term-example b{font-size:11px;font-weight:600;display:block;margin-bottom:2px}
.term-guide{font-size:14px;font-weight:600;margin-top:auto;min-height:32px;display:flex;align-items:center;gap:5px}
.term-detail-page{max-width:920px;margin:auto;min-height:70vh}
.term-detail-window{overflow:hidden}
.term-card-detail{box-shadow:none;border:0;border-radius:0;padding:clamp(22px,4vw,42px);gap:22px}
.term-card-detail h1{font-size:clamp(42px,6vw,64px);letter-spacing:-.045em;line-height:1;margin:0}
.term-card-detail .term-english{font-size:23px}
.term-card-detail .term-definition{font-size:20px;line-height:1.6}
.term-card-detail .term-example{font-size:17px;line-height:1.65;padding:18px}
.term-card-detail .term-guide,.term-back{font-size:16px;font-weight:600}
.term-back{padding-top:20px;border-top:2px dashed var(--line)}
.about-page{padding:32px clamp(16px,2vw,32px) 56px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:28px;align-items:start}
.about-photo-column,.about-content-column{display:flex;flex-direction:column;gap:28px;min-width:0}
.about-page .window{border-radius:12px;box-shadow:6px 6px 0 var(--shd);overflow:hidden}
.about-portrait img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.about-robot-note{display:flex;align-items:flex-end;gap:16px}
.about-robot-note p{flex:1;background:var(--win);border:2px solid var(--ink);border-radius:12px 12px 12px 2px;box-shadow:4px 4px 0 var(--shd);padding:12px 14px;font-size:15px;line-height:1.45;margin:0}
.about-intro-copy{padding:clamp(22px,3vw,36px)}
.about-intro h1{font-size:clamp(42px,4.4vw,64px);margin-bottom:20px}
.about-intro p{font-size:18px;line-height:1.6;margin:0 0 14px;max-width:640px;text-wrap:pretty}
.about-intro p:last-child{margin-bottom:0}
.about-rules-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.about-rules-grid>div{padding:20px 22px;border-right:2px dashed var(--line)}
.about-rules-grid>div:last-child{border-right:0}
.about-rules-grid .mono{display:block;font-size:13px;font-weight:700;color:var(--coral-ink);margin-bottom:8px}
.about-rules h2{font-size:19px;line-height:1.2;margin:0 0 6px}
.about-rules p{font-size:15px;line-height:1.5;color:var(--muted);margin:0}
.about-tools>div:last-child{padding:18px 20px;display:flex;flex-wrap:wrap;gap:10px}
.about-tool{display:flex;align-items:center;gap:8px;min-height:42px;border:2px solid var(--ink);border-radius:8px;padding:4px 10px 4px 4px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none}
.about-tool:hover{background:var(--tint);color:var(--ink)}
.about-contact{background:var(--accent);padding:clamp(20px,3vw,30px);display:flex;justify-content:space-between;gap:20px;align-items:center;color:#1f1e1b}
.about-contact h2{font-size:28px;font-weight:700;line-height:1.05;letter-spacing:-.03em;margin:0 0 8px}
.about-contact p{font-size:15px;line-height:1.5;margin:0 0 14px}
.contact-email{font-size:18px;font-weight:600;color:#1f1e1b;text-underline-offset:4px;overflow-wrap:anywhere}
.contact-email:hover{color:#1f1e1b}
.not-found-page{min-height:calc(100svh - 160px);display:grid;place-items:center;padding:48px 20px}
.not-found-window{width:min(760px,100%);border-radius:12px;box-shadow:8px 8px 0 var(--shd);overflow:hidden}
.not-found-content{padding:clamp(28px,5vw,48px);display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:center}
.lost-robot{border:0;background:none;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;transform:rotate(-8deg);transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.confused-robot.robot--large{zoom:1;width:154px;height:198px}
.confused-robot .robot-antenna{width:3px;height:24px;transform:rotate(25deg);margin-bottom:3px}
.confused-robot .robot-antenna:before{width:14px;height:14px;left:-5px;top:-6px;background:#e8c26a;border:2px solid var(--ink)}
.confused-robot .robot-head{width:130px;height:100px;border-width:3px;border-radius:22px;gap:12px}
.confused-robot .robot-eyes{gap:24px;align-items:center}
.confused-robot .robot-eye{width:24px;height:24px;border-width:3px}
.confused-robot .robot-eye+ .robot-eye{width:16px;height:16px}
.confused-robot .robot-eye i{width:8px;height:8px}
.confused-robot .robot-eye+ .robot-eye i{width:6px;height:6px}
.confused-robot .robot-ears:before,.confused-robot .robot-ears:after{width:10px;height:30px;top:32px;border-radius:4px}
.confused-robot .robot-ears:before{left:-14px}
.confused-robot .robot-ears:after{right:-14px}
.confused-robot .robot-mouth{width:28px;height:6px;transform:rotate(-8deg)}
.confused-robot .robot-neck{width:44px;height:10px}
.confused-robot .robot-body{width:96px;height:40px;border-width:3px;border-radius:12px 12px 4px 4px;background:var(--win)}
.confused-robot .robot-screen{background:none;color:var(--ink);font-size:13px}
.confused-robot .robot-arm,.confused-robot .robot-feet{display:none}
.not-found-copy h1{font-size:clamp(80px,10vw,128px);font-weight:700;line-height:.85;letter-spacing:-.06em;margin:0}
.not-found-title{font:italic 400 clamp(26px,3vw,36px)/1.1 'Source Serif 4',Georgia,serif;color:var(--coral-ink);margin:10px 0 14px}
.not-found-line{font-size:17px;line-height:1.55;margin:0 0 22px;max-width:420px;min-height:3.1em}
.not-found-actions{display:flex;gap:10px;flex-wrap:wrap}
.not-found-actions .button{padding-inline:18px;white-space:nowrap}
[hidden]{display:none!important}
@media(max-width:1199px){.term-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:899px){
  .collection-page,.library-page{padding:20px 16px 32px}
  .collection-heading{display:flex;flex-direction:column;align-items:stretch;gap:18px;margin-bottom:22px}
  .collection-heading h1{font-size:38px;line-height:.95}
  .collection-heading h1 em{font-size:40px}
  .collection-heading>p{font-size:16px;max-width:100%}
  .library-search{flex:auto;min-width:0;max-width:none;width:100%;height:50px;box-shadow:3px 3px 0 var(--shd)}
  .library-page .collection-heading{margin-bottom:18px}
  .library-layout{display:block}
  .library-filters{position:static;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible;margin-bottom:18px}
  .library-filters>.window-bar,.library-filters .filter-label{display:none}
  .library-filter-body{padding:0}
  .tool-filters{flex-direction:row;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 4px}
  .tool-filters::-webkit-scrollbar,.format-filters::-webkit-scrollbar,.glossary-alphabet::-webkit-scrollbar{display:none}
  .tool-filter{flex:none;min-height:44px;padding:0 14px;border-color:var(--ink);border-radius:999px;background:var(--win);font-weight:600}
  .tool-filter>.brand-icon,.tool-filter>.filter-all-icon,.tool-filter>.tool-count{display:none}
  .tool-filter.is-active{background:var(--accent)}
  .format-filters{gap:8px;margin-top:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .format-filter{min-height:44px;display:flex;align-items:center;flex:none;padding:4px 12px}
  .result-count{margin-bottom:18px}
  .library-card-grid{gap:18px}
  .library-page .guide-card-content{padding:12px 14px 14px;gap:4px}
  .library-page .guide-card h2{font-size:19px;line-height:1.2}
  .library-page .guide-card p,.library-page .guide-card-meta{display:none}
  .paths-grid{grid-template-columns:1fr;gap:18px}
  .paths-grid>.path-card{display:block;grid-row:auto}
  .paths-grid .path-card-copy{display:block}
  .paths-page .path-card{border-radius:10px;box-shadow:5px 5px 0 var(--shd)}
  .paths-page .path-card-heading{padding:16px;border-bottom:0;display:flex;flex-direction:row-reverse;align-items:center;gap:18px;justify-content:flex-end}
  .paths-page .path-card-copy{flex:1}
  .paths-page .path-robot{width:52px;height:59px;margin-top:0}
  .paths-page .path-robot .robot-head{width:49px;height:39px;border-radius:10px}
  .paths-page .path-robot .robot-eyes{gap:9px}
  .paths-page .path-robot .robot-eye{width:9px;height:9px}
  .paths-page .path-robot .robot-body,.paths-page .path-robot .robot-mouth{display:none}
  .paths-page .path-card h2{font-size:21px;line-height:1.1;margin-bottom:8px;letter-spacing:-.02em}
  .paths-page .path-description,.paths-page .path-lessons{display:none}
  .paths-page .path-progress{max-width:none}
  .paths-page .path-card-footer{padding:0 16px 16px}
  .paths-page .path-cta{font-size:15px;box-shadow:none}
  .path-card-detail .path-card-heading{padding:22px;gap:18px}
  .path-card-detail .path-lessons{padding:10px}
  .path-card-detail .path-lessons a{font-size:16px}
  .path-card-detail .path-card-footer{padding:10px 20px 24px}
  .path-card-detail .path-robot{display:none}
  .glossary-page .library-search{max-width:none}
  .glossary-alphabet{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;top:76px;margin:0 -16px 22px;padding:8px 16px;border:0;border-radius:0;box-shadow:none;background:var(--desk);gap:6px}
  .alphabet-letter{width:44px;height:44px;border-radius:8px;font-size:15px;background:var(--win)}
  .alphabet-letter:first-child{background:var(--tint)}
  .alphabet-letter.is-disabled{display:none}
  .glossary-groups{gap:24px}
  .glossary-group{display:block;scroll-margin-top:150px}
  .glossary-letter{font-size:56px;margin-bottom:18px}
  .term-grid{gap:18px}
  .term-card{padding:16px;gap:8px}
  .term-heading h2{font-size:22px}
  .glossary-page .term-english,.glossary-page .term-example{display:none}
  .term-guide{min-height:44px;margin-top:0}
  .term-card-detail{padding:24px;gap:18px}
  .term-card-detail .term-definition{font-size:18px}
  .about-page{padding:20px 16px 32px;display:flex;flex-direction:column;gap:24px}
  .about-photo-column,.about-content-column{width:100%;gap:22px}
  .about-portrait{max-width:620px;width:100%;margin:auto}
  .about-robot-note{display:none}
  .about-page .about-intro{border:0;background:transparent;box-shadow:none;border-radius:0}
  .about-intro>.window-bar{display:none}
  .about-intro-copy{padding:0}
  .about-intro h1{font-size:38px;margin-bottom:18px}
  .about-intro h1 em{font-size:40px}
  .about-intro p{font-size:17px}
  .about-rules-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
  .about-contact{padding:18px}
  .about-contact h2{font-size:22px}
  .about-contact .robot{display:none}
  .about-tools>div:last-child{padding:14px;gap:8px}
  .not-found-page{padding:32px 16px;min-height:calc(100svh - 220px)}
  .not-found-window{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible}
  .not-found-window>.window-bar{display:none}
  .not-found-content{display:flex;flex-direction:column;text-align:center;gap:28px;padding:12px 0 0}
  .confused-robot.robot--large{width:130px;height:122px}
  .confused-robot .robot-head{width:110px;height:84px;border-radius:18px}
  .confused-robot .robot-eye{width:18px;height:18px}
  .confused-robot .robot-eye+ .robot-eye{width:12px;height:12px}
  .confused-robot .robot-eye i{width:5px;height:5px}
  .confused-robot .robot-eye+ .robot-eye i{width:3px;height:3px}
  .confused-robot .robot-body,.confused-robot .robot-neck,.confused-robot .robot-ears{display:none}
  .not-found-copy{width:100%}
  .not-found-copy h1{font-size:88px;line-height:.9}
  .not-found-title{font-size:28px;margin:14px 0}
  .not-found-line{font-size:16px;margin:0 auto 24px}
  .not-found-actions{flex-direction:column;gap:16px}
  .not-found-actions .button{justify-content:center;min-height:50px}
}
@media(max-width:599px){.term-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){
  .library-card-grid{grid-template-columns:minmax(0,1fr)}
  .path-card-detail .lesson-format{display:none}
  .about-rules-grid{grid-template-columns:1fr}
  .about-rules-grid>div{border-right:0;border-bottom:2px dashed var(--line)}
  .about-rules-grid>div:last-child{border-bottom:0}
  .empty-results{padding:20px 16px;gap:16px}
  .empty-results .robot{transform:scale(.8);transform-origin:center}
}
@media(prefers-reduced-motion:reduce){.path-progress>span,.lost-robot{transition:none}}
