@font-face {
  font-family: "Instrument Sans Variable";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans Variable";
  src: url("fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Variable";
  src: url("fonts/roboto-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Variable";
  src: url("fonts/roboto-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--elea-color-surface-default);
  color: var(--elea-color-text-default);
  font-family: var(--elea-font-family-sans);
  line-height: var(--elea-font-leading-normal);
}
main { flex: 1; }
@layer elea.base {
  a { color: var(--elea-color-text-link); }
  :where(:focus-visible) { outline: 2px solid var(--elea-color-focus); outline-offset: 3px; }
}
a { text-underline-offset: 0.18em; }

.docs-guidebar {
  border-block-end: 1px solid var(--elea-color-border-default);
  background: var(--elea-color-surface-subtle);
}
.docs-guidebar__inner, .docs-layout {
  display: grid;
  grid-template-columns: var(--site-nav-rail) minmax(0, 1fr);
  column-gap: var(--site-nav-gap);
}
.docs-guidebar__inner { align-items: center; }
.docs-guidebar__label, .docs-toc p {
  color: var(--elea-color-text-muted);
  font-size: var(--elea-font-size-sm);
  font-weight: var(--elea-font-weight-semibold);
}
.docs-guidebar__links a { min-height: 2.75rem; }
.docs-layout { align-items: start; padding-block: var(--site-page-inset); }
.docs-toc { display: grid; align-content: start; }
.docs-toc p { margin: .5rem 0; }
.docs-toc a {
  padding-block: .35rem;
  color: var(--elea-color-text-muted);
  font-size: var(--elea-font-size-sm);
  text-decoration: none;
}
.docs-toc a:hover { color: var(--elea-color-text-link); text-decoration: underline; }
.docs-article {
  grid-column: 2;
  width: min(100%, 45rem);
  font-size: var(--elea-font-size-lg);
  line-height: var(--elea-font-leading-relaxed);
}
.docs-article h1, .docs-article h2, .docs-article h3 {
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.036em;
}
.docs-article h1 { margin: 0; font-size: var(--site-page-title); font-weight: 620; line-height: 1.03; letter-spacing: -.052em; }
.docs-article h2 { margin: var(--elea-space-8) 0 var(--elea-space-3); font-size: var(--elea-font-size-2xl); }
.docs-article p { margin: var(--elea-space-4) 0; color: var(--elea-color-text-muted); }
.docs-article code {
  font-family: var(--elea-font-family-mono);
  font-size: 0.82em;
  overflow-wrap: anywhere;
}
.docs-article :not(pre) > code {
  padding: 0.15em 0.35em;
  border-radius: var(--elea-radius-sm);
  background: var(--elea-color-surface-muted);
  color: var(--elea-color-text-default);
}
.docs-article pre {
  margin: var(--elea-space-5) 0;
  padding: var(--elea-space-5);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: var(--elea-radius-lg);
  background: var(--elea-color-neutral-950);
  color: var(--elea-color-neutral-100);
  font-size: var(--elea-font-size-base);
}

.typography-page {
  --elea-font-family-sans: "ELEA Sans", system-ui, sans-serif;
}
.type-book {
  max-width: 64rem;
  padding-block: var(--site-page-inset);
  font-synthesis: none;
}
.type-book :where(h1, h2, p, figure) { margin: 0; }
.type-cover__details, .type-book figcaption, .type-weights th {
  color: var(--elea-color-text-muted);
  font-size: .875rem;
  font-weight: 450;
}
.type-cover h1, .type-book h2, .type-weights caption {
  font-size: 1.125rem;
  font-weight: 600;
}
.type-cover {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "heading plate" "title plate" "details details";
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(1.5rem, 4vw, 4rem);
}
.type-cover h1 { grid-area: heading; }
.type-cover__family {
  grid-area: title;
  align-self: center;
  margin-block: 1.5rem;
}
.type-cover__download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--elea-space-3);
  margin-block-start: var(--elea-space-5);
  color: var(--elea-color-text-muted);
  font-size: var(--elea-font-size-sm);
}
.type-cover__title {
  margin: 0;
  font-size: clamp(4rem, 10.5vw, 9.25rem);
  font-weight: 480;
  line-height: 1;
  letter-spacing: -.045em;
}
.type-cover__title em { display: block; font-weight: 300; }
#glyph-carousel { grid-area: plate; min-width: 0; }
.type-plate .elea-carousel__header { min-height: 2.75rem; margin-block-end: 1rem; }
.type-plate .elea-carousel__header h2 { margin: 0; }
.type-plate .elea-carousel__position { min-width: 4em; text-align: center; }
.type-plate__sets { display: flex; gap: .25rem; }
.type-plate__sets [aria-pressed="true"] { background: var(--elea-color-surface-muted); color: var(--elea-color-text-default); }
.type-plate .elea-carousel__controls button { min-width: 2.75rem; min-height: 2.75rem; }
.type-plate #glyph-diagram { display: block; width: 100%; height: auto; aspect-ratio: 810 / 720; }
.type-plate__guide line, .type-plate__measure, .type-plate__outline, .type-plate__handles {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.type-plate__guide { stroke: var(--elea-color-border-strong); stroke-dasharray: 3 4; }
.type-plate__measure { stroke: var(--elea-color-text-muted); }
.type-plate__outline, .type-plate__handles, .type-plate__nodes { stroke: var(--elea-color-text-link); }
.type-plate__outline { stroke-width: 1.5px; }
.type-plate__nodes { fill: var(--elea-color-surface-default); stroke-width: 2; }
.type-plate__labels { fill: var(--elea-color-text-muted); font-size: 44px; }
.type-cover__details {
  grid-area: details;
  margin-block-start: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block-end: 1rem;
  border-block-end: 1px solid var(--elea-color-text-default);
}
.type-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-block: clamp(2rem, 5vw, 4rem);
}
.type-spread h2 { margin-block-end: 1.5rem; }
.type-glyphs > p {
  margin-block: .375rem;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.12;
}
.type-alphabet { letter-spacing: -.025em; }
.type-glyphs figure, .type-text figure + figure { margin-block-start: 1.5rem; }
.type-book figcaption { margin-block-end: .4rem; }
.type-small-caps { font-size: 1.875rem; font-variant-caps: small-caps; }
.type-display { font-size: 24pt; line-height: 1.2; }
.type-reading { max-width: 42ch; font-size: 12pt; line-height: 1.5; }
.type-note { max-width: 46ch; font-size: 9pt; font-weight: 500; line-height: 1.5; }
.type-weights { width: 100%; border-collapse: collapse; table-layout: fixed; }
.type-weights caption, .type-weights th { text-align: start; }
.type-weights caption { padding-block: 1.5rem; border-block-start: 1px solid var(--elea-color-text-default); }
.type-weights :is(td, th) { padding-block: .65rem; border-block-end: 1px solid var(--elea-color-border-default); }
.type-weights thead th:first-child { width: 24%; }
.type-weights th span { display: block; font-variant-numeric: tabular-nums; }
.type-weights td { font-size: clamp(1.5rem, 4vw, 3.5rem); font-weight: var(--weight); line-height: 1.15; }
.type-weights td:last-child { font-style: italic; }
@media (max-width: 42rem) {
  .type-cover { display: block; }
  .type-cover__title { font-size: clamp(3.75rem, 18vw, 7rem); }
  .type-cover__title em { display: inline; }
  .type-plate { margin-block-start: 2rem; }
  .type-plate__labels { font-size: 50px; }
  .type-spread { grid-template-columns: minmax(0, 1fr); }
  .type-weights thead th:first-child { width: 29%; }
}
@media print {
  .typography-page :is(.site__masthead, .site__skip, .site-footer) { display: none; }
  .typography-page { display: block; background: white; color: black; }
  .type-book { width: 100%; max-width: none; padding: 0; }
  .type-cover { display: grid; }
  .type-cover__title { font-size: 56pt; }
  .type-cover__title em { display: block; }
  .type-plate { margin: 0; break-inside: avoid; }
  .type-plate .elea-carousel__controls, .type-plate__sets, .type-cover__download { display: none; }
  .type-plate #glyph-diagram { max-height: 62mm; }
  .type-book :is(figcaption, th, .type-cover__details) { color: inherit; }
  .type-spread { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .type-glyphs > p { font-size: 22pt; }
  .type-weights { break-before: page; }
  .type-weights td { font-size: 22pt; }
  .type-weights tr, .type-book figure { break-inside: avoid; }
}

.home-intro {
  background: linear-gradient(120deg, var(--elea-color-surface-default) 45%, var(--elea-color-surface-subtle));
  border-block-end: 1px solid var(--elea-color-border-default);
}
.home-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5.4vw, 5rem);
  padding-block: var(--site-page-inset);
}
.home-eyebrow {
  margin: 0 0 1.15rem;
  color: var(--elea-color-text-link);
  font-weight: 600;
  font-size: .9rem;
}
.home-copy h1 {
  margin: 0;
  font: 560 clamp(3rem, 4.7vw, 4.2rem) / 1.045 var(--elea-font-family-sans);
  letter-spacing: -.046em;
}
.home-copy h1 span { color: var(--elea-color-text-link); }
.home-lead { max-width: 35ch; margin: 1.6rem 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.52; color: var(--elea-color-text-muted); }
.home-actions, .home-compat { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.home-actions > a:not(.elea-button) { color: var(--elea-color-text-default); font-weight: 580; text-decoration-color: var(--elea-color-border-strong); text-underline-offset: .3em; }
.home-actions > a:hover { text-decoration-color: currentColor; }
.home-compat { gap: .85rem; margin: 1.5rem 0 0; font-size: .84rem; color: var(--elea-color-text-muted); }
.home-compat a { color: inherit; border-inline-start: 1px solid var(--elea-color-border-strong); padding-inline-start: .85rem; }

.notebook {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--elea-shape-surface, var(--elea-radius-xl));
  overflow: hidden;
}
.notebook__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .7rem 1.2rem;
  background: var(--elea-color-primary-950);
  color: white;
}
.notebook__bar > span { white-space: nowrap; font: 520 1.12rem / 1.1 var(--elea-font-family-content); }
.notebook__switch { display: flex; gap: .15rem; padding: .18rem; }
.notebook__switch label { white-space: nowrap; padding: .25rem .55rem; border-radius: var(--elea-shape-indicator, var(--elea-radius-sm)); font-size: .73rem; font-weight: 600; cursor: pointer; }
#show-document:checked ~ .notebook__bar [for="show-document"], #show-blocks:checked ~ .notebook__bar [for="show-blocks"] {
  background: var(--elea-color-neutral-100); color: var(--elea-color-neutral-950);
}
#show-document:focus-visible ~ .notebook__bar [for="show-document"], #show-blocks:focus-visible ~ .notebook__bar [for="show-blocks"] {
  outline: 2px solid var(--elea-color-secondary-400); outline-offset: 2px;
}
.notebook__panes { position: relative; }
.notebook__document .elea-content {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  max-width: none;
  min-height: clamp(17.5rem, 24vw, 21.5rem);
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.35rem);
  color: white;
}
.notebook__document .elea-content::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 10%, color-mix(in srgb, var(--elea-color-primary-950) 45%, transparent) 50%, var(--elea-color-primary-950));
}
.notebook__document .elea-block--image { position: absolute; inset: 0; z-index: -2; margin: 0; }
.notebook__document .elea-figure, .notebook__document .elea-image { width: 100%; height: 100%; margin: 0; }
.notebook__document .elea-image { display: block; object-fit: cover; object-position: center 42%; border-radius: 0; }
.notebook__document .elea-caption { display: none; }
.notebook__document .elea-heading {
  color: white;
  margin: 0;
  font: 500 clamp(2.1rem, 4.1vw, 3.55rem) / 1.02 var(--elea-font-family-content);
  letter-spacing: -.048em;
}
.notebook__document .elea-block--paragraph { margin-top: .45rem; }
.notebook__document .elea-paragraph { font: 450 calc(var(--elea-font-size-lg) * .86) / var(--elea-font-leading-relaxed) var(--elea-font-family-content); color: white; }
.notebook__blocks { position: absolute; inset: 0; visibility: hidden; background: var(--elea-color-neutral-950); }
#show-blocks:checked ~ .notebook__panes .notebook__document { visibility: hidden; }
#show-blocks:checked ~ .notebook__panes .notebook__blocks { visibility: visible; }
.notebook__blocks pre {
  height: 100%; margin: 0; padding: 1.25rem; overflow: auto;
  color: var(--elea-color-primary-200); font: .8rem / 1.6 var(--elea-font-family-mono);
}
.notebook__blocks pre:focus-visible { outline-offset: -3px; }
.notebook__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; min-height: 3.55rem; padding: .65rem 1rem; background: var(--elea-color-surface-default); font-size: .82rem; }
.notebook__foot > span { color: var(--elea-color-text-muted); }
.notebook__foot code { font-size: .95em; font-family: var(--elea-font-family-mono); }
.notebook__foot a { color: var(--elea-color-text-link); font-weight: 620; text-decoration: none; }
.notebook__foot a:hover { text-decoration: underline; }

.home-editions { padding-block: clamp(2.3rem, 5vw, 4rem); border-block-end: 1px solid var(--elea-color-border-default); }
.home-editions__heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.home-editions__heading h2 { font-size: clamp(1.7rem, 3.3vw, 2.55rem); line-height: 1.1; letter-spacing: -.042em; margin: 0; font-weight: 620; }
.home-editions__heading p { margin: .5rem 0 0; color: var(--elea-color-text-muted); max-width: 62ch; }
.home-editions__heading > a { color: var(--elea-color-text-link); font-size: .95rem; font-weight: 580; }

.home-tools { display: grid; grid-template-columns: 1fr 1fr; padding-block: var(--site-page-inset); }
.home-tool { min-width: 0; }
.home-tool:first-child { padding-inline-end: clamp(1.25rem, 4vw, 3.5rem); border-inline-end: 1px solid var(--elea-color-border-default); }
.home-tool:last-child { padding-inline-start: clamp(1.25rem, 4vw, 3.5rem); }
.home-tool h2, .home-services h2 { margin: 0; font-size: clamp(1.6rem, 2.65vw, 2.25rem); letter-spacing: -.043em; line-height: 1.12; font-weight: 620; }
.home-tool h2 a { color: inherit; text-decoration: none; }
.home-tool h2 a span { color: var(--elea-color-text-link); font-size: .68em; vertical-align: .15em; }
.home-tool h2 a:hover { text-decoration: underline; }
.home-tool > p, .home-services p { max-width: 49ch; color: var(--elea-color-text-muted); margin: .7rem 0 1.3rem; }
.home-specimens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.home-specimen {
  position: relative; display: flex; flex-direction: column; gap: .5rem; min-width: 0;
  color: var(--elea-color-text-default); font-size: .85rem; font-weight: 560; text-decoration: none;
}
.home-specimen__demo { height: 4.1rem; border-radius: var(--elea-shape-surface, var(--elea-radius-md)); }
.home-specimen__demo { display: grid; place-items: center; background: var(--elea-color-surface-subtle); border: 1px solid var(--elea-color-border-default); }
.home-specimen__demo .elea-tabs__panel { padding: 0; }
.home-specimen a { width: fit-content; color: inherit; text-decoration: none; }
.home-specimen a::after { content: ""; position: absolute; inset: 0; }
.home-specimen:has(a:focus-visible) { outline: 2px solid var(--elea-color-focus); outline-offset: 3px; }
.home-specimen a:focus-visible { outline: none; }
.home-specimen a:hover { color: var(--elea-color-text-link); text-decoration: underline; }
.home-services .elea-button { margin-top: .1rem; }

@media (max-width: 57rem) {
  .home-spread { grid-template-columns: 1fr; gap: 2rem; }
  .home-copy h1 { font-size: clamp(2.42rem, 8.5vw, 4.6rem); }
  .home-lead { max-width: 45ch; }
  .notebook__document .elea-content { min-height: clamp(16rem, 39vw, 22rem); }
}
@media (max-width: 60rem) {
  .docs-guidebar__inner { display: block; }
  .docs-guidebar__label { display: none; }
  .docs-guidebar__links { justify-content: flex-start; gap: 1rem; }
  .docs-guidebar__links a { font-size: .8125rem; }
}
@media (max-width: 52rem) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-article { grid-column: 1; grid-row: 1; }
  .docs-toc { display: none; }
}
@media (max-width: 46rem) {
  .home-tools { grid-template-columns: 1fr; gap: 1.8rem; }
  .home-tool:first-child { padding: 0 0 1.8rem; border: 0; border-block-end: 1px solid var(--elea-color-border-default); }
  .home-tool:last-child { padding: 0; }

}
@media (max-width: 30rem) {
  .home-spread { padding-block: 2rem; }
  .home-actions { gap: .8rem; }
  .notebook__bar, .notebook__foot { padding-inline: .8rem; }
  .home-specimens { gap: .4rem; }
  .home-specimen__demo .elea-tabs__tab { padding-inline: .25rem; font-size: .75rem; }
  .home-specimen__demo .elea-button { padding-inline: .4rem; }
}
