/*
  Sketchbook identity, layered over style.css and studio.css.
  Graphite on drawing paper, with non-photo blue for the construction marks an
  artist lays down before the final line: line of action, tilts, plumb line.
  Every selector starts with :root so it outranks the older light and
  [data-theme=dark] rules with one declaration that works in both themes.
*/
:root{
  --paper:#fcfcfa;--board:#eef1f1;--ink:#1d2125;--muted:#5d656c;--line:#dadfe1;
  --blue:#7fb8e3;--blue-ink:#1b67ad;--blue-wash:#e7f1fa;--grid:rgba(127,184,227,.2);
  --purple:var(--blue-ink);
  --sans:'Pretendard Variable',Pretendard,'Hiragino Sans','Yu Gothic','Meiryo','PingFang TC','Microsoft JhengHei','Noto Sans KR','Noto Sans JP','Noto Sans TC',system-ui,sans-serif;
  --num:'Archivo','Pretendard Variable',system-ui,sans-serif;
}
:root[data-theme=dark]{
  --paper:#141719;--board:#1c2023;--ink:#e8ebed;--muted:#a0a9b0;--line:#30363b;
  --blue:#5e9fd2;--blue-ink:#8fc4ef;--blue-wash:#192a38;--grid:rgba(94,159,210,.13);
}

:root body{font-family:var(--sans);font-size:15px;line-height:1.6;background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}
:root:lang(ko) body{word-break:keep-all}

/* Header */
:root body>header{background:var(--paper);border-bottom:1px solid var(--line)}
:root .brand{color:var(--ink);font-weight:800;letter-spacing:-.04em}
:root .brand-en{display:none}
:root body>header nav{color:var(--muted);font-size:14px;font-weight:500}
:root body>header nav a:hover{color:var(--ink)}
:root body>header nav .active{color:var(--ink);font-weight:700}
:root nav .active:after{background:var(--blue-ink)}
:root .quiet{color:var(--muted);font-size:13px}
:root .quiet:hover{color:var(--ink)}
:root #language,:root select,:root input[type=number],:root input[type=search],:root .library-filters input,:root .library-filters select{background-color:var(--paper);color:var(--ink);border-color:var(--line);border-radius:4px}
:root .language-label:before{color:var(--muted)}
:root .theme-toggle{border-color:var(--line);border-radius:4px;color:var(--ink)}
:root .theme-toggle:hover{background:var(--board)}

/* Hero: the copy on the left, a pose with its construction drawn over it on the right */
:root .intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);grid-template-rows:auto auto auto auto auto 1fr;grid-template-areas:'eyebrow fig' 'title fig' 'lead fig' 'note fig' 'cta fig' 'summary fig';column-gap:72px;row-gap:0;align-items:start;padding:64px 0 72px}
:root .intro .eyebrow{grid-area:eyebrow}:root .intro h1{grid-area:title}:root .intro>p{grid-area:lead}:root .intro-note{grid-area:note}:root .hero-cta{grid-area:cta}:root .service-summary{grid-area:summary!important}
:root .intro .eyebrow{font-size:13px;letter-spacing:0;font-weight:600;color:var(--muted);text-transform:none}
:root .intro .eyebrow>span{background:var(--blue);width:8px;height:8px}
:root .intro h1{font-size:clamp(40px,5.6vw,74px);line-height:1.1;letter-spacing:-.05em;font-weight:800;margin:22px 0 28px;color:var(--ink)}
:root .intro h1 em{font-style:normal;color:inherit}
:root .intro>p{font-size:17px;line-height:1.8;color:var(--muted);max-width:32em;margin:0}
:root .intro-note{font-size:13px;color:var(--muted);margin:18px 0 0}
:root .intro-note i{margin:0 6px;color:var(--line)}
:root .intro-note span{white-space:nowrap}
:root .hero-cta{justify-self:start;display:inline-flex;align-items:center;margin-top:32px;padding:16px 24px;background:var(--ink);color:var(--paper);border-radius:4px;font-size:15px;font-weight:700}
:root .hero-cta:hover{background:var(--blue-ink)}
:root .service-summary{max-width:36em;font-size:13px!important;line-height:1.8!important;margin:36px 0 0!important;padding-top:18px;border-top:1px solid var(--line)}

:root .hero-figure{grid-area:fig;margin:0;align-self:start}
:root .figure-sheet{position:relative;aspect-ratio:2/3;background-color:var(--board);background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:24px 24px;border:1px solid var(--line);overflow:hidden}
:root .figure-sheet picture,:root .figure-sheet img{display:block;width:100%;height:100%}
:root .figure-sheet img{object-fit:cover;filter:grayscale(1) contrast(.92) brightness(1.06);mix-blend-mode:multiply;opacity:.9}
:root[data-theme=dark] .figure-sheet img{mix-blend-mode:normal;opacity:.55;filter:grayscale(1) contrast(.9)}
:root .construction{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
:root .construction .stroke{fill:none;stroke:var(--blue);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
:root .construction .action{stroke-width:8}
:root .construction .plumb{fill:none;stroke:var(--blue);stroke-width:3}
:root .construction .joint{fill:var(--paper);stroke:var(--blue);stroke-width:4}
:root .construction .bob{fill:var(--blue)}
:root .construction .ruler line{stroke:var(--blue);stroke-width:3}
:root .construction .ruler text{fill:var(--blue-ink);font:600 24px var(--num);text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:var(--board);stroke-width:8px}
:root .construction .tag{fill:var(--blue-ink);font:700 30px var(--sans);paint-order:stroke;stroke:var(--paper);stroke-width:10px;stroke-linejoin:round}
:root .hero-figure figcaption{display:flex;gap:10px;align-items:baseline;margin-top:12px;font-size:13px;color:var(--muted)}
:root .hero-figure figcaption span{font:600 13px var(--num);font-stretch:85%;color:var(--ink)}

/* One orchestrated moment: the construction draws itself once, in the order an artist would lay it in. */
@keyframes sketch-draw{to{stroke-dashoffset:0}}
@keyframes sketch-show{to{opacity:1}}
:root .construction .stroke,:root .construction .plumb{stroke-dasharray:1;stroke-dashoffset:1;animation:sketch-draw .8s cubic-bezier(.4,0,.2,1) forwards}
:root .construction .joint,:root .construction .bob,:root .construction .tag,:root .construction .ruler{opacity:0;animation:sketch-show .4s ease-out forwards}
:root .construction .ruler{animation-delay:.1s}
:root .construction .s1{animation-delay:.3s}
:root .construction .s2{animation-delay:.7s;animation-duration:1.1s}
:root .construction .t2{animation-delay:1.6s}
:root .construction .s3{animation-delay:1.5s}
:root .construction .t3{animation-delay:2s}
:root .construction .s4{animation-delay:1.8s}
:root .construction .t4{animation-delay:2.3s}
:root .construction .s5{animation-delay:2.2s}
:root .construction .t5{animation-delay:2.8s}
@media(prefers-reduced-motion:reduce){
  :root .construction *{animation:none!important;opacity:1!important;stroke-dashoffset:0!important}
}

/* Section headings: plain, large, no English caps labels above them */
:root .section-title .eyebrow,:root .guide .eyebrow,:root .workspace-head h2 span{display:none}
:root h2,:root .section-title h2{font-size:28px;line-height:1.3;letter-spacing:-.035em;font-weight:800;color:var(--ink)}
:root .section-title h2{margin:0}
:root .section-title{align-items:baseline;margin-bottom:22px}
:root .muted,:root .section-title>.small,:root .workspace-head>.small{color:var(--muted);font-size:13px}

/* Practice studio: a drawing board beside a settings sheet */
:root .workspace-head{border-top:1px solid var(--ink);padding-top:22px;margin-bottom:20px;align-items:baseline}
:root .studio-grid{border:1px solid var(--line);border-radius:6px;background:var(--paper);box-shadow:none}
:root .preview{background:var(--board);border-color:var(--line)}
:root .preview-top,:root .preview-bottom{background:var(--paper);color:var(--muted);border-color:var(--line);font-size:13px}
:root .preview-top>span:first-child{color:var(--ink);font-weight:600}
:root .sample{background:var(--paper);color:var(--muted);border:1px solid var(--line);border-radius:3px;font-size:11px}
:root .photo-wrap{background-color:var(--board);background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:24px 24px}
:root .photo-wrap:before,:root .photo-wrap:after{border-color:var(--blue);opacity:1}
:root .preview.is-empty .photo-wrap{background-color:var(--board)}
:root .icon{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:4px}
:root .icon:hover{border-color:var(--ink);background:var(--paper)}
:root .empty-preview{color:var(--muted)}

:root .settings{background:var(--paper)}
:root .tabs{background:var(--board);border-radius:5px}
:root .tabs button{color:var(--muted);font-size:14px;border-radius:3px}
:root .tabs button.selected{background:var(--paper);color:var(--ink);font-weight:700;box-shadow:0 0 0 1px var(--line)}
:root .field-heading{font-size:15px;font-weight:700;color:var(--ink)}
:root .subject{background:var(--paper);border:1px solid var(--line);border-radius:4px;color:var(--blue-ink)}
:root .subject strong{font-size:14px;color:var(--ink)}
:root .subject small,:root .asset-note,:root .selection-note,:root .prepare-note,:root .setting-row small{color:var(--muted)}
:root .asset-note,:root .selection-note{font-size:12px}
:root .pose-picker label{color:var(--muted);font-size:13px;font-weight:600}
:root .pose-picker select{font-size:13px}
:root .pose-picker button,:root .upload-item button{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:4px;font-size:13px;font-weight:600}
:root .pose-picker #browseLibrary{background:var(--board)}
:root .pose-picker button:hover,:root .upload-item button:hover{border-color:var(--ink);background:var(--paper)}
:root .pose-focus{background:var(--blue-wash);color:var(--ink);border-left:2px solid var(--blue);border-radius:0 4px 4px 0;font-size:13px}

/* Durations read like a figure-drawing schedule: 30″, 1′, 3′, 5′ */
:root .time-options{gap:6px}
:root .time-options button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 2px 10px;background:var(--paper);border:1px solid var(--line);border-radius:4px;color:var(--muted);font-size:12px;line-height:1.2}
:root .time-options button:before{display:block;font:600 26px/1 var(--num);font-stretch:80%;color:var(--ink);letter-spacing:-.01em}
:root .time-options [data-time="30"]:before{content:'30″'}
:root .time-options [data-time="60"]:before{content:'1′'}
:root .time-options [data-time="180"]:before{content:'3′'}
:root .time-options [data-time="300"]:before{content:'5′'}
:root .time-options #customBtn:before{content:'+'}
:root .time-options button:hover{border-color:var(--ink)}
:root .time-options .selected{background:var(--ink);border-color:var(--ink);color:var(--paper)}
:root .time-options .selected:before{color:var(--paper)}
:root .setting-row{font-size:14px}
:root .switch span{background:var(--line)}
:root .switch input:checked+span{background:var(--blue-ink)}
:root .session-summary{border-top:1px solid var(--line);color:var(--muted);font-size:13px}
:root .session-summary strong{color:var(--ink);font-size:15px;font-weight:700}
:root .start{background:var(--ink);color:var(--paper);border-radius:4px;font-size:15px;font-weight:700;padding:17px;box-shadow:none}
:root .start:hover{background:var(--blue-ink)}
:root .next-goal,:root .review-goal p,:root .record-goal{color:var(--blue-ink)}
:root #error{color:#c2412f}
:root .drop{background:var(--blue-wash);border:1px dashed var(--blue);color:var(--blue-ink);border-radius:4px}
:root .drop.drag{background:var(--board)}

/* Courses: the mark under each title is its schedule, one bar per pose, bar length = time per pose */
:root .courses{padding:56px 0 48px}
:root .course,:root .course.purple{background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:26px 24px;box-shadow:none;transform:none}
:root .course:hover{transform:none;border-color:var(--ink)}
:root .course.purple{border-color:var(--ink);padding-top:26px}
:root .course-icon.rhythm{position:relative;display:block;height:12px;width:calc(var(--total) / 15 * 64%);margin:0 0 26px;font-size:0;--bar:var(--ink);background:repeating-linear-gradient(90deg,var(--line) 0 calc(100% / var(--n) - 3px),transparent 0 calc(100% / var(--n)))}
:root .course-icon.rhythm:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,var(--bar) 0 calc(100% / var(--n) - 3px),transparent 0 calc(100% / var(--n)))}
:root .purple .course-icon.rhythm{--bar:var(--blue-ink)}
:root .tag,:root .purple .tag{background:var(--board);color:var(--muted);border-radius:3px;font-size:11px;font-weight:600}
:root .purple .tag{background:var(--blue-wash);color:var(--blue-ink)}
:root .course h3{font-size:19px;font-weight:800;letter-spacing:-.03em;color:var(--ink)}
:root .course p{font-size:13px;line-height:1.75;color:var(--muted)}
:root .course>div{border-top:1px solid var(--line);color:var(--muted);font-size:12px}
:root .course b,:root .purple b{font:600 34px/1 var(--num);font-stretch:80%;letter-spacing:-.01em;color:var(--ink)}
:root .course b small{font-size:11px;letter-spacing:.02em;font-stretch:100%}

/* Learning guides and pose library link */
:root .learning{border-top:1px solid var(--line)}
:root .learning .eyebrow{display:none}
:root .learning-card{background:var(--paper);border:1px solid var(--line);border-radius:6px}
:root .learning-card strong{font-size:16px;font-weight:700;color:var(--ink)}
:root .learning-card span{font-size:13px;color:var(--muted)}
:root .learning-card:hover{background:var(--paper);border-color:var(--ink)}
:root .catalog-link{background:var(--board);border-radius:6px}
:root .catalog-link strong{color:var(--ink)}
:root .catalog-link span{color:var(--muted);font-size:13px}
:root .catalog-link:hover strong{color:var(--blue-ink)}

/* Guide */
:root .guide{border-top:1px solid var(--line)}
:root .guide h2{font-size:28px;line-height:1.4}
:root .guide p{font-size:14px;line-height:1.85;color:var(--muted)}
:root .guide-link{color:var(--blue-ink)}
:root details{border-color:var(--line)}
:root .guide summary{font-size:15px;font-weight:600;color:var(--ink)}
:root summary span{font:600 13px var(--num);font-stretch:85%;color:var(--muted)}
:root summary b{color:var(--muted)}

/* Footer */
:root .home-languages{color:var(--muted);font-size:13px}
:root .home-languages a[aria-current=page]{color:var(--ink);font-weight:700}
:root footer{border-color:var(--line);color:var(--muted)}
:root .footer-message,:root .operator-note,:root .footer-links a{color:var(--muted);font-size:13px}
:root .footer-links a:hover{color:var(--ink)}

/* Dialogs */
:root dialog{background:var(--paper);color:var(--ink);border-color:var(--line);border-radius:6px}
:root .info-copy,:root .history{color:var(--muted)}
:root .library-card{background:var(--paper);border:1px solid var(--line);border-radius:4px}
:root .library-card:hover{background:var(--board);border-color:var(--ink)}
:root .library-card img,:root .upload-item img,:root .review-grid .pose-photo,:root .review-grid img{background-color:var(--board)}
:root .library-card small{color:var(--blue-ink)}
:root .library-card span,:root .library-disclosure,:root .library-head p{color:var(--muted)}

/* Practice room */
:root #session{border-radius:0}
:root .session-header{background:var(--paper);border-color:var(--line)}
:root .practice-image{background-color:var(--board);border:1px solid var(--line);border-radius:4px}
:root aside .eyebrow{color:var(--muted);font-size:13px;letter-spacing:0}
:root #timer{font:600 104px/1 var(--num);font-stretch:75%;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
:root #phase{color:var(--muted);font-size:14px}
:root .timer-track{background:var(--line);height:4px}
:root #timerBar{background:var(--blue-ink)}
:root .session-tools button{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:4px;font-size:13px}
:root .session-tools button:hover{border-color:var(--ink)}
:root .shortcut{color:var(--muted);font-size:12px}
:root .timer-chip{color:var(--ink)}
:root .timer-chip i{background:var(--line)}
:root #chipBar{background:var(--blue-ink)}
:root #chipTime{font-family:var(--num);font-stretch:80%;font-weight:600}
:root .show-controls{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:4px}

:root :focus-visible{outline-color:var(--blue-ink)}

@media(max-width:900px){
  :root .intro{column-gap:40px;grid-template-columns:minmax(0,1fr) minmax(240px,300px)}
}
@media(max-width:800px){
  :root .intro{grid-template-columns:minmax(0,1fr) 40%;grid-template-rows:auto auto auto 1fr auto auto;grid-template-areas:'eyebrow eyebrow' 'title title' 'lead fig' 'note fig' 'cta cta' 'summary summary';column-gap:22px;padding:36px 0 44px}
  :root .intro h1{font-size:clamp(34px,8.4vw,56px);margin:16px 0 22px}
  :root .intro>p{font-size:15px}
  :root .service-summary{margin-top:28px!important}
  :root h2,:root .section-title h2,:root .guide h2{font-size:24px}
  :root #timer{font-size:72px}
  :root .course-grid{gap:12px}
}
@media(max-width:600px){
  :root .intro{grid-template-columns:minmax(0,1fr) 44%;column-gap:16px;padding:28px 0 36px}
  :root .intro-note span{display:block;white-space:normal;margin-top:4px}
  :root .intro-note i{display:none}
  :root .construction .stroke{stroke-width:8}
  :root .construction .action{stroke-width:12}
  :root .construction .plumb{stroke-width:5}
  :root .construction .ruler text{display:none}
  :root .intro h1{font-size:clamp(32px,9.6vw,44px)}
  :root .intro>p{font-size:14px;line-height:1.75}
  :root .intro-note{font-size:12px}
  :root .hero-cta{margin-top:24px}
  :root .hero-figure figcaption #heroCode,:root .hero-figure figcaption #heroName{display:none}
  :root .construction .tag{font-size:40px;stroke-width:12px}
  :root .hero-cta{width:100%;justify-content:center}
  :root .time-options button:before{font-size:22px}
  :root .course b,:root .purple b{font-size:28px}
}

/* ---- Motion ---------------------------------------------------------- */
/* Hero demo: lines redraw for each pose; the timer line runs out under the sheet. */
:root .hero-figure.reset .construction *,:root .hero-figure.reset .figure-timer b{animation:none!important}
:root .figure-sheet picture,:root .figure-sheet .construction{transition:opacity .28s ease}
:root .figure-sheet.swap picture,:root .figure-sheet.swap .construction{opacity:0}
:root .figure-timer{display:none;position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(127,184,227,.25)}
:root .hero-figure.is-live .figure-timer{display:block}
:root .figure-timer b{display:block;height:100%;background:var(--blue-ink);transform-origin:left center;transform:scaleX(0);animation:hero-timer 6.5s linear forwards}
@keyframes hero-timer{to{transform:scaleX(1)}}
:root .hero-figure figcaption{align-items:center;min-height:30px}
:root .motion-toggle{margin-left:auto;flex:none;padding:5px 10px;border:1px solid var(--line);border-radius:3px;background:transparent;color:var(--muted);font-size:12px;cursor:pointer}
:root .motion-toggle:hover{color:var(--ink);border-color:var(--ink)}

/* Contact sheet: a slow strip of poses with frame numbers, like a proof sheet */
:root .contact-sheet{display:block;width:100%;margin:0 0 56px;padding:18px 0 14px;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
:root .sheet-track{display:flex;width:max-content;animation:sheet-roll 110s linear infinite}
:root .sheet-run{display:flex;gap:10px;padding-right:10px}
:root .frame{display:flex;flex-direction:column;gap:7px}
:root .frame img{display:block;height:132px;width:auto;background:var(--board);filter:grayscale(1) contrast(.95);transition:filter .3s ease}
:root .frame span{font:600 11px/1 var(--num);font-stretch:80%;color:var(--muted)}
:root .contact-sheet:hover .frame img,:root .contact-sheet:focus-visible .frame img{filter:none}
:root .contact-sheet:hover .sheet-track,:root .contact-sheet:focus-visible .sheet-track{animation-play-state:paused}
:root .sheet-caption{display:block;padding:14px 5% 0;font-size:14px;font-weight:700;color:var(--ink)}
:root .contact-sheet:hover .sheet-caption{color:var(--blue-ink)}
@keyframes sheet-roll{to{transform:translateX(-50%)}}

/* Course schedules play through one pose at a time */
:root .rhythm-ready .course-icon.rhythm:after{clip-path:inset(0 100% 0 0)}
:root .rhythm-ready .is-playing .course-icon.rhythm:after{animation:rhythm-play calc(var(--total) * .16s) steps(var(--n),end) forwards}
@keyframes rhythm-play{to{clip-path:inset(0 0 0 0)}}

:root.motion-paused .construction *,:root.motion-paused .figure-timer b,:root.motion-paused .sheet-track{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){
  :root .sheet-track,:root .figure-timer b{animation:none!important}
  :root .rhythm-ready .course-icon.rhythm:after{clip-path:none;animation:none}
}
@media(max-width:600px){
  :root .frame img{height:96px}
  :root .contact-sheet{margin-bottom:40px}
  :root .motion-toggle{margin-left:0;width:100%}
}

/* Headline: it first appears as a blue underdrawing, then each line is inked in graphite, left to right. */
:root .intro h1 .hero-line{display:block;width:fit-content;max-width:100%}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  :root .intro h1 .hero-line{color:transparent;-webkit-text-stroke:1.4px var(--blue);background-image:linear-gradient(90deg,var(--ink),var(--ink));background-repeat:no-repeat;background-position:0 0;background-size:0% 100%;-webkit-background-clip:text;background-clip:text;animation:hero-ink 1.05s cubic-bezier(.65,0,.25,1) .45s forwards,hero-unsketch .7s ease 1.3s forwards}
  :root .intro h1 .hero-line+.hero-line{animation-delay:.95s,1.8s}
}
@keyframes hero-ink{to{background-size:100% 100%}}
@keyframes hero-unsketch{to{-webkit-text-stroke-color:transparent}}
@media(prefers-reduced-motion:reduce){
  :root .intro h1 .hero-line{animation:none!important;color:var(--ink);-webkit-text-stroke:0;background:none}
}
:root .hub-link{margin:18px 0 0;font-size:14px;font-weight:700}
:root .hub-link a{color:var(--blue-ink)}
:root body>header nav{scrollbar-width:none}:root body>header nav::-webkit-scrollbar{display:none}
