.type-demo {
  --type-blue: var(--blue, #075de8);
  --type-ink: var(--text, #17243b);
  --type-muted: var(--muted, #65738a);
  width: min(100%, 560px);
  min-width: 0;
  color: var(--type-ink);
  font: 13px/1.5 "DM Sans", sans-serif;
}

.type-demo *, .type-demo *::before, .type-demo *::after { box-sizing: border-box; }
.type-demo p, .type-demo h3, .type-demo figure, .type-demo blockquote { margin: 0; }
.type-demo button, .type-demo input { color: inherit; font: inherit; }
.type-demo [hidden] { display: none !important; }
.type-control { min-height: 30px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); padding: 5px 10px; color: var(--type-blue) !important; font-size: 10px !important; font-weight: 800 !important; cursor: pointer; }
.type-control:hover, .type-control:focus-visible { border-color: var(--type-blue); background: var(--blue-soft); outline: 0; }
.type-demo small { color: var(--type-muted); }

.type-specimen, .type-size-stage, .type-style-stage, .type-tracking-stage, .type-variable-stage, .type-scale-stage, .type-display-stage, .type-lead-stage, .type-eyebrow-stage, .type-alignment-stage, .type-link-stage, .type-resize-stage, .type-reflow-stage, .type-wrap-stage, .type-hyphen-stage, .type-truncate-stage, .type-language-stage { display: grid; gap: 8px; }
.type-specimen { justify-items: start; padding: 8px; }
.type-specimen .type-kicker { color: var(--type-blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.type-specimen strong { font-family: "DM Serif Display", Georgia, serif; font-size: 30px; font-weight: 400; line-height: 1; }
.type-specimen.alt strong, .type-specimen.alt p { font-family: Georgia, serif; }

.type-stack { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; width: min(100%, 300px); }
.type-stack code { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 7px 9px; color: var(--type-blue); font: 11px "IBM Plex Mono", monospace; }
.type-stack > span { color: var(--type-muted); }.type-stack small { grid-column: 1 / -1; text-align: center; }
.type-size-stage { grid-template-columns: auto 1fr; align-items: center; }
.type-size-stage > span { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--type-blue); font-family: "DM Serif Display", serif; font-size: 42px; line-height: 1; }
.type-size-stage div { display: grid; }.type-size-stage .type-control { grid-column: 1 / -1; justify-self: start; }
.type-size-stage.large > span { font-size: 56px; }.type-size-stage.large > span + div b::after { content: ""; }

.type-weight-stage { display: grid; gap: 4px; width: 100%; }.type-weight-stage span { border-left: 3px solid transparent; padding: 3px 8px; font-size: 16px; }.type-weight-stage span.active { border-color: var(--type-blue); background: var(--blue-soft); }.type-weight-stage button { justify-self: start; margin-top: 3px; }
.type-style-stage { justify-items: start; font-family: "DM Serif Display", serif; font-size: 22px; line-height: 1.1; }.type-style-stage em { color: var(--type-blue); }.type-style-stage .upright { font-style: normal; }
.type-reading-stage { max-width: 36ch; border-left: 3px solid var(--type-blue); padding-left: 12px; }.type-reading-stage p { line-height: 1.5; }.type-reading-stage.loose p { line-height: 2; }.type-demo-line-height > .type-control { margin-top: 12px; }
.type-tracking-stage { justify-items: start; }.type-tracking-stage > span { font-size: 17px; font-weight: 800; letter-spacing: .12em; }.type-tracking-stage.tight > span { letter-spacing: 0; }.type-tracking-stage.wide > span { letter-spacing: .2em; }
.type-contrast-stage { display: grid; gap: 5px; border: 1px solid var(--border); border-radius: 9px; background: #10243e; padding: 18px; color: #fff; }.type-contrast-stage p { color: #c7d8ee; }.type-contrast-stage.low { background: #e4e8ee; color: #9aa2ad; }.type-contrast-stage.low p { color: #a4abb4; }
.type-variable-stage strong { font-size: 30px; font-variation-settings: "wght" 420; }.type-variable-stage > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }.type-variable-stage i { height: 5px; overflow: hidden; border-radius: 99px; background: var(--border); }.type-variable-stage i::before { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--type-blue); content: ""; }.type-variable-stage.heavy strong { font-weight: 800; font-variation-settings: "wght" 780; }.type-variable-stage.heavy i::before { width: 78%; }

.type-scale-stage { align-items: start; }.type-scale-stage > span { font-family: "DM Serif Display", serif; font-size: 30px; line-height: 1; }.type-scale-stage > strong { font-size: 20px; }.type-scale-stage.compact > span { font-size: 25px; }.type-scale-stage.compact > strong { font-size: 18px; }
.type-display-stage { text-align: center; }.type-display-stage small { color: var(--type-blue); font-weight: 800; letter-spacing: .13em; }.type-display-stage strong { font-family: "DM Serif Display", serif; font-size: clamp(27px, 4vw, 43px); font-weight: 400; line-height: .95; letter-spacing: -.035em; }.type-display-stage span { color: var(--type-muted); }
.type-headline-stage { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; }.type-headline-stage > span { color: var(--type-blue); font: 800 11px "IBM Plex Mono", monospace; }.type-headline-stage h3 { font-family: "DM Serif Display", serif; font-size: 25px; font-weight: 400; line-height: 1.05; }.type-headline-stage p { margin-top: 6px; color: var(--type-muted); }
.type-lead-stage h3 { font-family: "DM Serif Display", serif; font-size: 23px; font-weight: 400; }.type-lead-stage p { max-width: 38ch; color: color-mix(in srgb, var(--type-ink) 78%, var(--type-muted)); font-size: 16px; line-height: 1.5; }
.type-body-stage { max-width: 54ch; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; font-size: 15px; line-height: 1.7; }
.type-eyebrow-stage small { color: var(--type-blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }.type-eyebrow-stage h3 { font-family: "DM Serif Display", serif; font-size: 25px; font-weight: 400; }.type-eyebrow-stage p { color: var(--type-muted); }
.type-caption-stage { width: min(100%, 310px); }.type-caption-stage > div { display: grid; height: 86px; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #0e3a72, #1686db); color: white; }.type-caption-stage > div span { font: 38px "DM Serif Display", serif; }.type-caption-stage figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; font-size: 11px; }
.type-label-stage { display: grid; gap: 5px; width: min(100%, 310px); font-weight: 800; }.type-label-stage > span { justify-self: end; margin-top: -23px; color: #a23a3a; font-size: 9px; }.type-label-stage input { width: 100%; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); padding: 8px; }.type-label-stage small { font-weight: 400; }
.type-metadata-stage { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; }.type-metadata-stage > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--type-blue); font-weight: 800; }.type-metadata-stage div { min-width: 0; }.type-metadata-stage p { color: var(--type-muted); font-size: 10px; }.type-metadata-stage p b { color: var(--type-ink); }

.type-measure-stage { display: grid; grid-template-columns: 1px 1fr 1px; gap: 10px; max-width: 43ch; }.type-measure-stage i { background: var(--type-blue); }.type-measure-stage p { line-height: 1.7; }.type-measure-stage small { grid-column: 2; text-align: center; }
.type-paragraph-stage { max-width: 42ch; }.type-paragraph-stage p { line-height: 1.55; }.type-paragraph-stage p + p { margin-top: 1em; }
.type-alignment-stage p { min-height: 68px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); padding: 9px; }.type-alignment-stage p.center { text-align: center; }.type-alignment-stage p.end { text-align: end; }
.type-emphasis-stage { max-width: 39ch; border-left: 3px solid var(--type-blue); padding: 12px 14px; font-size: 15px; line-height: 1.65; }.type-emphasis-stage strong { color: var(--type-blue); }
.type-link-stage { max-width: 40ch; font-size: 15px; line-height: 1.65; }.type-link-stage a { color: var(--type-blue); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }.type-link-stage a.visited { color: #7546a7; text-decoration-style: double; }
.type-list-stage { display: grid; gap: 8px; }.type-list-stage ul, .type-list-stage ol { margin: 0; padding-left: 22px; }.type-list-stage li { padding-left: 4px; line-height: 1.75; }.type-list-stage li::marker { color: var(--type-blue); font-weight: 800; }.type-list-stage .type-control { justify-self: start; }
.type-quote-stage { max-width: 40ch; border-left: 4px solid var(--type-blue); background: color-mix(in srgb, var(--blue-soft) 55%, transparent); padding: 14px 16px; }.type-quote-stage p { font-family: "DM Serif Display", serif; font-size: 20px; line-height: 1.35; }.type-quote-stage cite { display: block; margin-top: 8px; color: var(--type-muted); font-size: 10px; font-style: normal; }
.type-code-stage { display: grid; gap: 6px; overflow: hidden; border: 1px solid #243850; border-radius: 8px; background: #101b2a; padding: 12px; color: #d7e3f4; }.type-code-stage > span { color: #79b8ff; font-size: 9px; font-weight: 800; letter-spacing: .12em; }.type-code-stage code { overflow-x: auto; font: 11px/1.6 "IBM Plex Mono", monospace; white-space: nowrap; }.type-code-stage code b { color: #7ee787; }.type-code-stage small { color: #91a4bc; }
.type-numeral-stage { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; }.type-numeral-stage b { font: 700 15px "IBM Plex Mono", monospace; }.type-numeral-stage.proportional b { font-family: "DM Sans", sans-serif; font-variant-numeric: proportional-nums; }.type-numeral-stage .type-control { grid-column: 1 / -1; justify-self: start; }

.type-responsive-stage { display: flex; align-items: end; justify-content: center; gap: 12px; }.type-responsive-stage > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 10px; }.type-responsive-stage .wide { width: 170px; }.type-responsive-stage .narrow { width: 112px; }.type-responsive-stage b { color: var(--type-blue); font: 29px "DM Serif Display", serif; }.type-responsive-stage span { font-size: 9px; }.type-responsive-stage span strong { font-family: "IBM Plex Mono", monospace; }
.type-fluid-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; text-align: center; }.type-fluid-stage div { display: grid; gap: 2px; }.type-fluid-stage div b { color: var(--type-blue); font: 29px "DM Serif Display", serif; }.type-fluid-stage div:last-of-type b { font-size: 48px; }.type-fluid-stage div span { color: var(--type-muted); font-size: 9px; }.type-fluid-stage code { grid-column: 1 / -1; border-radius: 5px; background: var(--surface); padding: 5px; font: 9px "IBM Plex Mono", monospace; }
.type-resize-stage article, .type-reflow-stage article { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 10px; transition: width .2s ease; }.type-resize-stage article p, .type-reflow-stage article p { margin-top: 4px; color: var(--type-muted); }.type-resize-stage.zoomed article { font-size: 20px; }.type-reflow-stage.narrow article { width: 165px; }
.type-wrap-stage p { overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 9px; color: var(--type-blue); font: 10px "IBM Plex Mono", monospace; white-space: nowrap; text-overflow: clip; }.type-wrap-stage.wrapped p { overflow-wrap: anywhere; white-space: normal; }
.type-hyphen-stage p { max-width: 25ch; border-left: 3px solid var(--type-blue); padding-left: 10px; }.type-hyphen-stage.hyphenated p { hyphens: auto; text-align: justify; }
.type-truncate-stage > strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.type-truncate-stage.expanded > strong { white-space: normal; }.type-truncate-stage .type-control { justify-self: start; }
.type-bidi-stage { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 10px; }.type-bidi-stage > span { border-radius: 99px; background: var(--blue-soft); padding: 3px 7px; color: var(--type-blue); font-size: 9px; font-weight: 800; }.type-bidi-stage > strong { border-bottom: 1px solid var(--border); padding: 4px; }.type-bidi-stage .type-control { grid-column: 1 / -1; justify-self: start; }
.type-language-stage nav { display: flex; gap: 4px; }.type-language-stage nav button { border: 1px solid var(--border); border-radius: 99px; background: var(--surface); padding: 4px 8px; font-size: 9px; cursor: pointer; }.type-language-stage nav button.active { border-color: var(--type-blue); background: var(--blue-soft); color: var(--type-blue); }.type-language-stage > strong { font-family: "DM Serif Display", Georgia, serif; font-size: 27px; font-weight: 400; }.type-language-stage[dir="rtl"] { text-align: right; }

.concept-card-preview .type-demo { width: 100%; overflow: hidden; font-size: 10px; }
.concept-card-preview .type-control { min-height: 24px; padding: 3px 7px; font-size: 8px !important; }
.concept-card-preview .type-specimen { padding: 0; }.concept-card-preview .type-specimen strong { font-size: 23px; }
.concept-card-preview .type-size-stage > span { width: 56px; height: 56px; font-size: 32px; }
.concept-card-preview .type-weight-stage span { padding-block: 1px; font-size: 12px; }
.concept-card-preview .type-style-stage { font-size: 18px; }
.concept-card-preview .type-display-stage strong { font-size: 29px; }
.concept-card-preview .type-lead-stage p { font-size: 12px; }.concept-card-preview .type-lead-stage h3, .concept-card-preview .type-eyebrow-stage h3 { font-size: 19px; }
.concept-card-preview .type-body-stage { font-size: 11px; }
.concept-card-preview .type-responsive-stage { gap: 5px; }.concept-card-preview .type-responsive-stage > div { grid-template-columns: 1fr; gap: 2px; padding: 6px; }.concept-card-preview .type-responsive-stage .wide { width: 90px; }.concept-card-preview .type-responsive-stage .narrow { width: 63px; }
.concept-card-preview .type-bidi-stage { grid-template-columns: 1fr; gap: 2px; }.concept-card-preview .type-bidi-stage > span { display: none; }.concept-card-preview .type-bidi-stage > strong { padding: 2px; }
.concept-card-preview .type-language-stage > strong { font-size: 21px; }

@media (max-width: 480px) {
  .type-demo { font-size: 12px; }
  .type-responsive-stage .wide { width: 160px; }
  .type-responsive-stage .narrow { width: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  .type-demo *, .type-demo *::before, .type-demo *::after { transition: none !important; }
}
