/* DrawGuides — design system from drawguides-frontend-spec/09-homepage.md.

   Editorial, high-contrast. Two accents: blue carries action, lime carries emphasis

   (lime is a fill, never text on white). Borders over shadows. Art plates never invert. */



:root {

	--ink: #0A0A0A;

	--paper: #FFFFFF;

	--wash: #F3F3F1;

	--line: #DFDFDC;

	--mute: #767676;

	--blue: #2F3BFF;

	--lime: #D8FF3E;

	--plate: #F3F3F1;

	--plate-ink: #0A0A0A;

	--btn-bg: #0A0A0A;

	--btn-fg: #FFFFFF;

	--navbg: rgba(255, 255, 255, .88);

	--surface: #FFFFFF;

	--dark-plate: #0A0A0A;

	--disp: 'Bricolage Grotesque', system-ui, sans-serif;

	--body: 'Inter Tight', system-ui, sans-serif;

	--r: 16px;

}

:root[data-theme="dark"] {

	--ink: #F2F2F0; --paper: #0B0B0C; --wash: #141415; --line: #2A2A2C;

	--mute: #93939A; --surface: #141415; --btn-bg: #F2F2F0; --btn-fg: #0B0B0C; --blue: #7C86FF;

	--navbg: rgba(11, 11, 12, .86); --dark-plate: #17171A;

}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme="light"]) {

		--ink: #F2F2F0; --paper: #0B0B0C; --wash: #141415; --line: #2A2A2C;

		--mute: #93939A; --surface: #141415; --btn-bg: #F2F2F0; --btn-fg: #0B0B0C; --blue: #7C86FF;

		--navbg: rgba(11, 11, 12, .86); --dark-plate: #17171A;

	}

}



/* ---------- site-wide type ---------- */

body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, .dg-disp { font-family: var(--disp); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; color: var(--ink); }

.dg-page .entry-content > p, .dg-page .entry-content > ul { color: var(--ink); }

.dg-page .entry-content > h2 { font-size: clamp(29px, 3.6vw, 42px); margin-top: 1.8em; }

.dg-page .entry-content details, .dg details { border-top: 1.5px solid var(--line); padding: 19px 0; }

.dg-page .entry-content details:last-of-type, .dg details:last-of-type { border-bottom: 1.5px solid var(--line); }

.dg-page .entry-content summary, .dg summary { cursor: pointer; list-style: none; font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 20px; }

.dg-page .entry-content summary::-webkit-details-marker, .dg summary::-webkit-details-marker { display: none; }

.dg-page .entry-content summary::after, .dg summary::after { content: '+'; color: var(--blue); font-size: 23px; line-height: 1; }

.dg-page .entry-content details[open] summary::after, .dg details[open] summary::after { content: '–'; }

.dg-page .entry-content details p, .dg details p { color: var(--mute); margin-top: 11px; max-width: 70ch; font-size: 16.5px; }



/* ---------- building blocks ---------- */

.dg { font-family: var(--body); color: var(--ink); display: flex; flex-direction: column; gap: clamp(56px, 8vw, 88px); }

.dg *, .dg *::before, .dg *::after { box-sizing: border-box; }

.dg p { margin: 0; }

.dg h1, .dg h2, .dg h3 { margin: 0; }

.dg a { text-decoration: none; }

.dg a:not(.dg-btn) { color: inherit; }

.dg-h2 { font-size: clamp(29px, 3.6vw, 42px); }

.dg-sechead { max-width: 58ch; }

.dg-sechead p { color: var(--mute); margin-top: 14px; font-size: 18px; }

.dg-sechead--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.dg-sechead--row p { max-width: 46ch; }

.dg-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; background: var(--lime); color: #0A0A0A; padding: 8px 16px; border-radius: 999px; letter-spacing: .01em; align-self: flex-start; }

.dg-num { font-family: var(--disp); font-weight: 700; color: var(--blue); letter-spacing: .06em; }



.dg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--btn-bg); color: var(--btn-fg); border: none; border-radius: 999px; padding: 13px 24px; min-height: 48px; font: 600 15.5px/1 var(--body); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; }

.dg-btn:hover { background: var(--blue); color: #fff; }

.dg-btn--alt { background: var(--lime); color: #0A0A0A; }

.dg-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

.dg-btn--ghost:hover { background: var(--btn-bg); color: var(--btn-fg); }

.dg-btn svg, .dg-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.dg-icon .is-fill { fill: currentColor; }

.dg a:focus-visible, .dg button:focus-visible, .dg input:focus-visible, .dg select:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }



.dg-plate { background: var(--plate); border-radius: 24px; }

.dg-svg { display: block; width: 100%; height: 100%; }

.dg-line { fill: none; stroke: var(--plate-ink); stroke-linecap: round; stroke-linejoin: round; }



/* theme toggle */

.dg-theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 16px/1 var(--body); cursor: pointer; display: inline-grid; place-items: center; flex: none; }

.dg-theme-toggle:hover { border-color: var(--ink); }



/* ---------- player ---------- */

.dg-player, .dg-player__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.dg-player.is-live { display: block; }

.dg-panel { display: flex; flex-direction: column; gap: 16px; }

.dg-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.dg-panel__status { font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: -.02em; }

.dg-canvas { position: relative; background: var(--plate); border-radius: 24px; padding: 20px 20px 64px; aspect-ratio: 1 / 1; max-height: 620px; display: flex; flex-direction: column; align-items: center; }

.dg-canvas .dg-svg--main { flex: 1; min-height: 0; }

.dg-canvas__caption { position: absolute; left: 0; right: 0; bottom: 62px; z-index: 6; pointer-events: none; text-align: center; font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--plate-ink); min-height: 1.3em; }
.dg-canvas--captions { padding-bottom: 64px; }
.dg-canvas--captions .dg-canvas__caption { left: 6%; right: 6%; bottom: 78px; }
.dg-canvas__caption--spoken { padding: 0 14px; background: transparent; color: #18233b; font: 650 16px/1.32 var(--body); letter-spacing: 0; box-shadow: none; text-wrap: balance; }
.dg-speed { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; background: #fff; padding: 5px; border-radius: 999px; box-shadow: 0 3px 14px rgba(0, 0, 0, .09); }

.dg-speed button { font: 600 13px var(--body); border: none; background: transparent; color: #767676; border-radius: 999px; padding: 7px 15px; min-height: 34px; cursor: pointer; }

.dg-speed button[aria-pressed="true"] { background: #0A0A0A; color: #fff; }

.dg-pen { transition: opacity .2s; }

.dg-noscript { color: var(--mute); }

.dg-controls { display: flex; flex-direction: column; gap: 14px; }

.dg-controls input[type="range"] { width: 100%; margin: 0; accent-color: var(--blue); }

.dg-controls__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.dg-controls__time { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 72px; }

.dg-iconbtn, .dg-voice { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 600 14.5px var(--body); cursor: pointer; }

.dg-iconbtn { width: 48px; }

.dg-voice { padding: 0 18px; margin-left: auto; }

.dg-iconbtn:hover, .dg-voice:hover { border-color: var(--ink); }

.dg-voice[aria-pressed="true"] { background: var(--lime); color: #0A0A0A; border-color: var(--lime); }



/* roadmap */

.dg-roadmap { display: flex; flex-direction: column; gap: 14px; }

.dg-roadmap__title { font-size: clamp(26px, 2.6vw, 34px); }

.dg-roadmap__title em { font-style: normal; color: var(--blue); }

.dg-roadmap__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.dg-roadstep { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; min-height: 64px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--body); transition: border-color .15s; }

button.dg-roadstep { cursor: pointer; }

button.dg-roadstep:hover, .dg-roadstep.is-active { border-color: var(--ink); }

.dg-roadstep > span:last-child { display: flex; flex-direction: column; gap: 2px; }

.dg-roadstep strong { font: 700 16.5px/1.2 var(--disp); letter-spacing: -.02em; }

.dg-roadstep > span:last-child > span { font-size: 14.5px; color: var(--mute); line-height: 1.4; }

.dg-roadstep__n { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); display: inline-grid; place-items: center; font: 700 14px var(--disp); color: var(--blue); }

.dg-roadstep.is-active .dg-roadstep__n { background: var(--lime); border-color: var(--lime); color: #0A0A0A; }

.dg-roadstep.is-done .dg-roadstep__n { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }

.dg-tip { font-size: 15px; color: var(--mute); border-top: 1.5px solid var(--line); padding-top: 14px; }

.dg-tip strong { color: var(--ink); }



/* short version */

.dg-short { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); padding: 30px 0; margin-top: -24px; }

.dg-short h2 { font-size: 22px; }

.dg-short p { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }



/* steps */

.dg-steps { display: flex; flex-direction: column; gap: 32px; }

.dg-steps__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dg-steps__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dg-step { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s, transform .18s; }

.dg-step.is-clickable { cursor: pointer; }

.dg-step.is-clickable:hover { border-color: var(--ink); transform: translateY(-3px); }

.dg-step__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 16%; background: var(--plate); }

.dg-step__art img { width: 100%; height: 100%; object-fit: contain; }

.dg-step__n { position: absolute; top: 10px; left: 12px; font: 700 13px var(--disp); letter-spacing: .06em; color: var(--blue); }

.dg-step__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }

.dg-step__body h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

.dg-step__body p { font-size: 14.5px; line-height: 1.5; color: var(--mute); }

.dg-step--finish { border-color: var(--ink); }

.dg-step--finish .dg-btn { min-height: 42px; padding: 0 16px; font-size: 14px; margin-top: 4px; }



.dg-practice-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px 26px; margin-top: -8px; }

.dg-practice-cta strong { font: 700 20px var(--disp); letter-spacing: -.02em; display: block; }

.dg-practice-cta span { color: var(--mute); font-size: 15.5px; }



/* printable */

.dg-print { background: var(--wash); border-radius: 26px; padding: clamp(28px, 5vw, 58px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.dg-print__sheets { position: relative; height: 340px; }

.dg-sheet { position: absolute; width: 200px; height: 270px; background: #fff; border: 1.5px solid #DFDFDC; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; color: #0A0A0A; }

.dg-sheet > span { align-self: flex-start; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.dg-sheet--1 { left: 0; top: 40px; transform: rotate(-8deg); }

.dg-sheet--2 { left: 26%; top: 16px; transform: rotate(-2deg); }

.dg-sheet--3 { left: 52%; top: 42px; transform: rotate(6deg); }

.dg-sheet__strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 100%; }

.dg-sheet__box { flex: 1; width: 100%; border: 1.5px dashed #DFDFDC; border-radius: 4px; }

.dg-sheet__trace { opacity: .25; width: 82%; }

.dg-sheet--3 > .dg-svg { width: 82%; }

.dg-sheet__ref { align-self: flex-end; width: 38px; border: 1.5px solid #DFDFDC; border-radius: 6px; padding: 2px; }

.dg-print__text { display: flex; flex-direction: column; gap: 18px; }

.dg-rules { list-style: none; margin: 0; padding: 0; font-size: 16.5px; }

.dg-rules li { border-top: 1.5px solid var(--line); padding: 12px 0; }

.dg-rules li:last-child { border-bottom: 1.5px solid var(--line); }

.dg-print__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14.5px; color: var(--mute); }



/* watch: inverted plate like the parents band */

.dg-watch, .dg-parents { background: var(--dark-plate); color: #fff; border-radius: 26px; padding: clamp(32px, 5vw, 62px) clamp(24px, 5vw, 58px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.dg-watch :is(h1, h2, h3), .dg-parents :is(h1, h2, h3) { color: #fff; }
.dg-watch p, .dg-parents p { color: rgba(255, 255, 255, .76); }
.dg-watch h2, .dg-parents h2 { color: #fff; }

.dg-watch h2 em, .dg-parents h2 em { font-style: normal; color: var(--lime); }

.dg-watch p, .dg-parents p { color: #A9A9B4; font-size: 18px; }
.dg-parents p, .dg-parents .dg-plist li { color: #DFDFE6 !important; }
.dg-watch__text { display: flex; flex-direction: column; gap: 18px; }

.dg-watch__video { justify-self: center; width: min(260px, 100%); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #000; }

.dg-watch__video iframe { width: 100%; height: 100%; border: 0; }

.dg-pills { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }

.dg-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #3A3A3F; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14.5px; }

.dg-pills a:hover { border-color: var(--lime); }

.dg-plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }

.dg-plist li { display: flex; gap: 13px; font-size: 16.5px; align-items: flex-start; color: #DFDFE6; }

.dg-plist i { flex: none; width: 21px; height: 21px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin-top: 2px; }

.dg-plist i::after { content: ''; width: 7px; height: 4px; border-left: 2px solid #0A0A0A; border-bottom: 2px solid #0A0A0A; transform: rotate(-45deg) translate(1px, -1px); }



/* method + next + cards */

.dg-related { gap: 56px; }

.dg-method { display: flex; align-items: center; gap: 20px; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); padding: 24px 0; }

.dg-method p { font-size: 16px; color: var(--mute); }

.dg-method strong { color: var(--ink); }

.dg-method__badge { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--lime); color: #0A0A0A; display: grid; place-items: center; font: 800 20px var(--disp); }

.dg-next { display: flex; flex-direction: column; gap: 32px; }

.dg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.dg-card { display: flex; flex-direction: column; height: 100%; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); color: var(--ink); transition: border-color .18s, transform .18s; }

.dg-card:hover { border-color: var(--ink); transform: translateY(-3px); }

.dg-card__art { background: var(--plate); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.dg-card__art svg, .dg-card__art img { width: 47%; height: auto; max-height: 86%; }

.dg-card__body { padding: 18px 20px 20px; }

.dg-card__body strong { font: 700 18.5px var(--disp); letter-spacing: -.02em; display: block; }

.dg-card__body span { color: var(--mute); font-size: 14px; }



/* ---------- homepage ---------- */

.dg-home { gap: 0; }

.dg-home .dg-sec { padding: 78px 0; }

.dg-home .dg-sec--wash { background: var(--wash); box-shadow: 0 0 0 100vmax var(--wash); clip-path: inset(0 -100vmax); }

.dg-hero { padding: 76px 0 54px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }

.dg-hero h1 { font-size: clamp(42px, 5.6vw, 72px); margin-top: 22px; }

.dg-hero h1 em { font-style: normal; color: var(--blue); }

.dg-lede { font-size: 19.5px; color: var(--mute); margin-top: 22px !important; max-width: 44ch; }

.dg-herocta { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }

.dg-trust { display: flex; gap: 22px; margin-top: 30px; font-size: 14.5px; color: var(--mute); flex-wrap: wrap; }

.dg-trust b { color: var(--ink); font-weight: 600; }

.dg-hero__canvas { position: relative; background: var(--plate); border-radius: 24px; padding: 20px 20px 64px; }
.dg-hero__canvas svg { display: block; width: 100%; aspect-ratio: 1 / 1; }
.dg-hero__raster { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; transition: opacity .22s ease; }
.dg-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }

.dg-path { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 30px 28px 26px; display: flex; flex-direction: column; min-height: 236px; transition: border-color .18s, transform .18s; }

.dg-path:hover { border-color: var(--ink); transform: translateY(-3px); }

.dg-path .dg-num { font-size: 13px; margin-bottom: auto; }

.dg-path h3 { font-size: 25px; margin: 26px 0 9px !important; }

.dg-path p { font-size: 15.5px; color: var(--mute); }

.dg-path .dg-go { margin-top: 18px; font-size: 15px; font-weight: 600; }

.dg-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 38px; }

.dg-st .dg-fig { background: var(--plate); border-radius: var(--r); aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 20px; overflow: hidden; }

.dg-st .dg-fig svg { width: 62%; }

.dg-st b { font: 700 20px var(--disp); display: block; margin-bottom: 7px; letter-spacing: -.02em; }

.dg-st b span { color: var(--blue); }

.dg-st p { color: var(--mute); font-size: 16px; }

.dg-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }

.dg-cat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 13px; padding: 20px 20px 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; transition: .15s; }

.dg-cat:hover { border-color: var(--ink); background: var(--lime); }

.dg-cat:hover span, .dg-cat:hover small { color: #0A0A0A; }

.dg-cat span { font: 700 18.5px var(--disp); letter-spacing: -.02em; }

.dg-cat small { color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; }

.dg-home .dg-cards { margin-top: 38px; }

.dg-faq { max-width: 820px; }

.dg-faq .dg-sechead { margin-bottom: 38px; }



/* ---------- category hubs ---------- */

.dg-hub { display: flex; flex-direction: column; gap: 72px; margin: 72px 0; }

.dg-hub__tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; list-style: none; margin: 38px 0 0; padding: 0; counter-reset: dg-tip; }

.dg-hub__tips li { counter-increment: dg-tip; display: flex; flex-direction: column; gap: 8px; }

.dg-hub__tips li::before { content: '0' counter(dg-tip); font: 700 13px var(--disp); letter-spacing: .06em; color: var(--blue); }

.dg-hub__tips h3 { font-size: 20px; font-weight: 700; }

.dg-hub__tips p { color: var(--mute); font-size: 16px; }



/* ---------- printables list ---------- */

.dg-printables { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.dg-printables li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 13px; padding: 14px 16px; }

.dg-printables a:first-child { font: 700 17px var(--disp); letter-spacing: -.02em; }

.dg-printables a:last-child { font-size: 14px; font-weight: 600; color: var(--blue); }



.dg-empty { padding: 24px; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--mute); }



@media (max-width: 940px) {

	.dg-player, .dg-player__inner, .dg-print, .dg-watch, .dg-parents, .dg-short, .dg-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }

	.dg-paths, .dg-steps3, .dg-cards { grid-template-columns: minmax(0, 1fr); }

	.dg-cats { grid-template-columns: repeat(2, 1fr); }

	.dg-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

	.dg-print__sheets { height: 300px; transform: scale(.85); transform-origin: left top; }

	.dg-voice { margin-left: 0; }

	.dg-short { gap: 12px; }

}

@media (prefers-reduced-motion: reduce) {

	.dg *, .dg *::before, .dg *::after { transition: none !important; }

	.dg-pen { display: none; }

}



/* ---------- practice tool (spec 10): one tool, the site's own drawings ---------- */

.dgp { max-width: 1180px; margin: 0 auto; padding: 32px 0 72px; font-family: var(--body); color: var(--ink); }

.dgp *, .dgp *::before, .dgp *::after { box-sizing: border-box; }

.dgp a { color: inherit; text-decoration: none; }

.dgp h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 0; }

.dgp h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }

.dgp svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.dgp button:focus-visible, .dgp a:focus-visible, .dgp input:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }

.dgp [hidden] { display: none !important; }



/* picker */

.dgp-head { max-width: 62ch; }

.dgp-head p { color: var(--mute); font-size: 18px; margin: 14px 0 0; }

.dgp-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 32px 0 26px; }

.dgp-search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 18px; min-height: 48px; min-width: 260px; background: var(--surface); color: var(--mute); }

.dgp-search:focus-within { border-color: var(--ink); }

.dgp-search svg { width: 18px; height: 18px; flex: none; }

.dgp-search input { border: 0; background: transparent; font: 500 15.5px var(--body); color: var(--ink); width: 100%; outline: none; padding: 12px 0; }

.dgp-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.dgp-chips button { font: 600 14.5px var(--body); border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 0 16px; min-height: 44px; cursor: pointer; transition: border-color .15s, background .15s; }

.dgp-chips button:hover { border-color: var(--ink); }

.dgp-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.dgp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.dgp-card { display: flex; flex-direction: column; height: 100%; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); transition: border-color .18s, transform .18s; }

.dgp-card:hover { border-color: var(--ink); transform: translateY(-3px); }

.dgp-card__art { background: var(--plate); aspect-ratio: 1; display: grid; place-items: center; }
.dgp-card__art svg { width: 70%; height: 70%; stroke: none; }
.dgp-card__art img { width: 100%; height: 100%; object-fit: contain; }
.dgp-card__meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }

.dgp-card__meta strong { font: 700 18px var(--disp); letter-spacing: -.02em; }

.dgp-card__meta small { color: var(--mute); font-size: 14px; }

.dgp-none { color: var(--mute); padding: 32px 0; }



/* tool */

.dgp-toolbar { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-bottom: 22px; }

.dgp-toolbar h1 { flex: 1; min-width: 220px; font-size: clamp(28px, 3.4vw, 40px); }

.dgp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--mute) !important; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px 0 12px; min-height: 44px; }

.dgp-back:hover { border-color: var(--ink); color: var(--ink) !important; }

.dgp-back svg { width: 18px; height: 18px; }

.dgp-seg { display: inline-flex; background: var(--wash); border-radius: 999px; padding: 4px; gap: 3px; }

.dgp-seg button { border: none; background: transparent; color: var(--mute); font: 600 15px var(--body); border-radius: 999px; padding: 0 22px; min-height: 42px; cursor: pointer; }

.dgp-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.dgp-seg button:disabled { opacity: .35; cursor: default; }



.dgp-work { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }

.dgp-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.dgp-stage { position: relative; background: var(--plate); border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; max-height: calc(100vh - 220px); margin: 0 auto; width: 100%; max-width: calc(100vh - 220px); min-width: 280px; touch-action: none; user-select: none; -webkit-user-select: none; }

.dgp-stage > svg, .dgp-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.dgp-stage > svg { pointer-events: none; transition: opacity .25s; stroke: none; }

.dgp-stage [data-dgp="guide"] g { transition: opacity .3s; }

.dgp-stage canvas { cursor: crosshair; touch-action: none; }

.dgp-stage.dgp-color canvas { pointer-events: none; }

.dgp-stage.dgp-color [data-dgp="fills"] { pointer-events: auto; cursor: pointer; }

.dgp-stage.dgp-hideguide [data-dgp="guide"] { opacity: 0; }

.dgp [data-dgp="fills"] path { transition: fill .12s; }

.dgp [data-dgp="fills"] path:hover { opacity: .85; }

.dgp-chip { position: absolute; top: 14px; left: 14px; right: 14px; width: fit-content; max-width: calc(100% - 28px); background: #fff; color: #0A0A0A; border-radius: 999px; padding: 8px 16px; font: 700 14.5px var(--disp); letter-spacing: -.02em; box-shadow: 0 3px 14px rgba(0, 0, 0, .09); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }



.dgp-bar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

.dgp :where(.dgp-bar, .dgp-guide, .dgp-done__actions) button { font: 600 15px var(--body); cursor: pointer; border-radius: 999px; padding: 0 20px; min-height: 48px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }

.dgp button svg { width: 18px; height: 18px; }

.dgp :where(.dgp-bar, .dgp-guide, .dgp-done__actions) button:hover:not(:disabled) { border-color: var(--ink); }

.dgp button:disabled { opacity: .34; cursor: default; }

.dgp :where(.dgp-bar, .dgp-guide, .dgp-done__actions) button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.dgp .dgp-bar .dgp-primary { margin-left: auto; }

.dgp :where(.dgp-bar, .dgp-done__actions) button.dgp-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); min-width: 150px; }

.dgp :where(.dgp-bar, .dgp-done__actions) button.dgp-primary:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; }



.dgp-side { display: flex; flex-direction: column; gap: 22px; }

.dgp-panel, .dgp-done { border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px 20px 22px; }

.dgp-panel p { color: var(--mute); font-size: 14.5px; margin: 14px 0 0; }

.dgp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.dgp-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--mute); padding: 6px 0; }

.dgp-steps li span { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); display: inline-grid; place-items: center; font: 700 13px var(--disp); color: var(--blue); }

.dgp-steps li.is-current { color: var(--ink); font-weight: 600; }

.dgp-steps li.is-current span { background: var(--lime); border-color: var(--lime); color: #0A0A0A; }

.dgp-steps li.is-done span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }

.dgp-guide { display: flex; flex-direction: column; gap: 12px; border-top: 1.5px solid var(--line); margin-top: 16px; padding-top: 16px; }

.dgp-guide label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--mute); }

.dgp-guide input[type="range"] { width: 100%; accent-color: var(--ink); }

.dgp-pal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.dgp-sw { width: 100%; aspect-ratio: 1; max-width: 56px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; transition: transform .12s; }

.dgp-sw[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }

.dgp-sw.dgp-erase { background: var(--surface); position: relative; }

.dgp-sw.dgp-erase::after { content: ''; position: absolute; inset: 22%; border-top: 2px solid var(--mute); transform: rotate(-45deg); transform-origin: center; top: 50%; }

.dgp-done { border-color: var(--ink); }

.dgp-done h2 { font-size: 24px; margin-bottom: 4px; }

.dgp-done p { color: var(--mute); font-size: 15px; margin: 0 0 16px; }

.dgp-done__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.dgp-done__actions .dgp-primary { grid-column: 1 / -1; }

.dgp-note { font-size: 13.5px; color: var(--mute); margin: 12px 0 0 !important; }

.dgp-link { font-size: 15px; font-weight: 600; color: var(--blue) !important; }

.dgp-tip { margin: 28px 0 0; padding-top: 16px; border-top: 1.5px solid var(--line); font-size: 14.5px; color: var(--mute); max-width: 70ch; }



@media (max-width: 940px) {

	.dgp-work { grid-template-columns: minmax(0, 1fr); }

	.dgp-stage { max-height: none; max-width: none; }

	.dgp-toolbar h1 { order: 3; flex-basis: 100%; }

	.dgp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

	.dgp-search { flex: 1; min-width: 0; }

	.dgp-pal { grid-template-columns: repeat(6, 1fr); }

}

.dgp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }


/* ---------- free bundle landing page ---------- */
.dg-bundle { max-width: 1180px; margin: 0 auto; padding: 0 28px 90px; display: grid; gap: 86px; }
.dg-bundle__hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 34px; }
.dg-bundle__text { display: flex; flex-direction: column; align-items: flex-start; }
.dg-bundle h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: .98; letter-spacing: -.035em; margin: 20px 0 0; }
.dg-bundle__lead { font-size: 18px; color: var(--mute); margin: 18px 0 0; max-width: 46ch; }
.dg-bundle__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.dg-bundle__list li { position: relative; padding-left: 28px; font-size: 16px; }
.dg-bundle__list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.dg-bundle__form { margin: 32px 0 0; width: 100%; max-width: 520px; }
.dg-bundle__row { display: flex; gap: 10px; }
.dg-bundle__row input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; min-height: 54px; padding: 0 22px; background: var(--surface); color: var(--ink); font: 500 16px var(--body); }
.dg-bundle__row input:focus { border-color: var(--ink); outline: none; }
.dg-bundle__row .dg-btn { min-height: 54px; white-space: nowrap; }
.dg-bundle__consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 2px 0; font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.dg-bundle__consent input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.dg-bundle__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dg-bundle__note { font-size: 14px; color: var(--mute); margin: 12px 2px 0; min-height: 1.2em; }
.dg-bundle__note.is-error { color: #C0392B; }
.dg-bundle__done { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 32px 0 0; }
.dg-bundle__done span { font-size: 14px; color: var(--mute); }
.dg-bundle__done p { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--mute); }

.dg-bundle__art { position: relative; }
.dg-bundle__stack { position: relative; height: 470px; }
.dg-bundle__sheet { position: absolute; width: 68%; aspect-ratio: 1 / 1.414; background: var(--plate); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(10, 10, 10, .12); display: grid; place-items: center; padding: 9%; }
.dg-bundle__sheet svg { width: 100%; height: 100%; }
.dg-bundle__sheet--1 { left: 26%; top: 6%; z-index: 3; transform: rotate(4deg); }
.dg-bundle__sheet--2 { left: 10%; top: 12%; z-index: 2; transform: rotate(-3deg); }
.dg-bundle__sheet--3 { left: 0; top: 20%; z-index: 1; transform: rotate(-9deg); }
.dg-bundle__badge { position: absolute; right: 4%; bottom: 2%; z-index: 4; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }

.dg-bundle__inside h2, .dg-bundle__grid h2 { font-size: clamp(27px, 3.2vw, 38px); letter-spacing: -.03em; margin: 0 0 26px; }
.dg-bundle__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dg-bundle__card { border: 1.5px solid var(--line); border-radius: 20px; padding: 26px; background: var(--surface); }
.dg-bundle__n { font: 700 13px var(--disp); color: var(--blue); }
.dg-bundle__card h3 { font-size: 20px; margin: 10px 0 8px; letter-spacing: -.02em; }
.dg-bundle__card p { color: var(--mute); font-size: 15px; margin: 0; }

.dg-bundle__grid ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dg-bundle__grid a { display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.dg-bundle__grid a > svg, .dg-bundle__grid a .dg-line { background: var(--plate); border-radius: 16px; aspect-ratio: 1; padding: 14%; width: 100%; height: auto; }
.dg-bundle__grid span { font-size: 15px; font-weight: 600; }

@media (max-width: 940px) {
	.dg-bundle { gap: 56px; padding: 0 16px 64px; }
	.dg-bundle__hero { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.dg-bundle__art { order: -1; }
	.dg-bundle__stack { height: 320px; }
	.dg-bundle__row { flex-wrap: wrap; }
	.dg-bundle__row .dg-btn { width: 100%; justify-content: center; }
	.dg-bundle__cards { grid-template-columns: minmax(0, 1fr); }
	.dg-bundle__grid ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dg-print__all { flex-basis: 100%; font-size: 14.5px; font-weight: 600; color: var(--blue) !important; text-decoration: none; }
.dg-print__all:hover { text-decoration: underline; text-underline-offset: 4px; }
.dg-bundle__grid { display: grid; justify-items: start; }
.dg-bundle__grid ul { width: 100%; }
.dg-watch__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.dg-line--guide { stroke: var(--line); }
.dg-raster { display: block; max-width: 100%; }
.dg-raster--main { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.dg-raster-stage { position: relative; width: 100%; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.dg-raster-stage__image, .dg-raster-stage__ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.dg-raster-stage__image { display: block; object-fit: contain; object-position: center; }
.dg-raster-stage__ink { z-index: 1; }
.dg-raster-stage__image--current { z-index: 2; }
.dg-raster-stage__wash { position: absolute; inset: 0; z-index: 3; background: #fff; pointer-events: none; }
.dg-raster-stage__highlight { position: absolute; z-index: 4; border: 0; border-radius: 999px; background: rgba(216, 255, 62, .34); box-shadow: none; mix-blend-mode: multiply; pointer-events: none; }
.dg-step__art > img, .dg-sheet img, .dg-card__art img { width: 100%; height: 100%; object-fit: contain; }

.dg-print__previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
.dg-print__previews figure{margin:0;min-width:0;text-align:center;font-size:.8rem}
.dg-print__previews img{display:block;width:100%;height:auto;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 4px 14px #0a0a0a18}
.dg-print__previews figcaption{margin-top:.35rem;color:var(--ink)}
.dg-bundle__sheet--preview{padding:0;overflow:hidden;aspect-ratio:621 / 810;background:#fff}
.dg-bundle__sheet--preview img{width:100%;height:100%;object-fit:contain}

/* Keep narration text on the light player plate and the lime marker aligned to the square artwork. */
.dg-player .dg-canvas--captions { aspect-ratio: auto; max-height: none; padding: clamp(12px, 2vw, 20px); gap: 10px; }
.dg-player .dg-canvas--captions .dg-raster-stage { flex: none; aspect-ratio: 1; }
.dg-player .dg-canvas--captions p.dg-canvas__caption {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0 10px;
    min-height: 3.96em;
    color: #18233b !important;
    background: transparent;
    font: 650 16px/1.32 var(--body);
    letter-spacing: 0;
    text-wrap: balance;
}
.dg-player .dg-canvas--captions .dg-speed { position: static; transform: none; }
