/* The /ds page (Edugalbs design system, PT and EN): the system shown in its own look. Tokens in /ds/tokens.css. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: var(--bg-200) transparent; }
html, body { background: var(--bg-000); }
body { font-family: var(--font-body); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 1rem; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover, a:focus-visible { text-decoration-color: var(--amber); outline: none; }
code { font-family: var(--font-mono); font-size: .88em; overflow-wrap: anywhere; color: var(--amber-soft); }
pre { margin-top: .8rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-100); overflow-x: auto; font: .85rem/1.55 var(--font-mono); }
pre code { color: var(--ink); overflow-wrap: normal; }

.top { max-width: 64rem; margin: 0 auto; padding: 1.1rem 16px 0; display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.top a { color: var(--ink-muted); text-decoration: none; }
.top a:hover, .top a:focus-visible { color: var(--ink); }

.page { max-width: 64rem; margin: 0 auto; padding: 2rem 16px 4rem; }
.eyebrow { font: 500 .75rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-soft); }

/* the cover: the system's own Cover component */
.cover { position: relative; margin-top: 1rem; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--bg-000); }
.cover svg { display: block; width: 100%; height: auto; }
.cover-text { padding: 1.5rem 1.5rem 1.75rem; border-top: 1px solid var(--line); }
.cover h1 { font: 800 clamp(3rem, 11vw, 6rem)/.9 var(--font-display); letter-spacing: -.02em; }
.cover .tag { margin-top: .75rem; color: var(--ink-muted); }
.lead { margin-top: 2rem; font-size: 1.15rem; line-height: 1.55; max-width: 44rem; }
.lead + p { margin-top: .8rem; max-width: 44rem; color: var(--ink-muted); }

section { margin-top: 4rem; }
h2 { margin-top: .5rem; font: 700 clamp(1.6rem, 4vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -.01em; }
h3 { margin-top: 2rem; font: 700 1.2rem/1.2 var(--font-display); }
p, ol, ul, table, .grid { margin-top: 1rem; }
section > p, section > ul, section > ol { max-width: 44rem; }
ol, ul { padding-left: 1.3rem; }
li + li { margin-top: .5rem; }
li::marker { color: var(--ink-muted); }
.muted { color: var(--ink-muted); font-size: .9rem; }
em.k { font-style: normal; color: var(--amber); }

.table-wrap { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0; }
th, td { text-align: left; vertical-align: top; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--line); }
th { font: 600 .8rem/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
td code { white-space: nowrap; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card { background: var(--bg-100); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem; position: relative; overflow: hidden; }
.card p { margin-top: .5rem; font-size: .92rem; color: var(--ink-muted); }

/* pillars */
.pillar h3 { margin-top: .5rem; font-size: 1.5rem; color: var(--accent); }
.pillar .eyebrow { color: var(--accent-soft); }
.pillar .hex { font-family: var(--font-mono); font-size: .85rem; color: var(--ink); }
.pillar::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 35%, transparent); filter: blur(40px); }
.pillar.broke { padding-left: calc(1.25rem + 12px); }
.pillar.broke::before { display: none; }
.pillar.broke .eyebrow { color: var(--danger); }

/* colours */
.swatch { padding: 0; }
.swatch .chips { display: grid; grid-template-columns: 2fr 1fr; height: 5.5rem; }
.swatch .chips span { display: flex; align-items: flex-end; padding: .4rem .6rem; font: .72rem/1 var(--font-mono); }
.swatch .info { padding: 1rem 1.1rem 1.1rem; }
.swatch .info b { font: 600 .95rem/1.2 var(--font-mono); }
.swatch .info p { margin-top: .4rem; font-size: .85rem; }
.swatch .hexes { margin-top: .35rem; font: .78rem/1.4 var(--font-mono); color: var(--ink-muted); }

/* type specimens, at half the size they have on a 1080px canvas */
.specimen { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .6rem 2rem; grid-template-columns: minmax(0, 1fr) 15rem; align-items: baseline; }
.specimen .sample { overflow-wrap: anywhere; }
.specimen .meta { font: .78rem/1.5 var(--font-mono); color: var(--ink-muted); }
.specimen .meta b { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .specimen { grid-template-columns: 1fr; } }
.families { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 1rem; }
.families .card .big { font-size: 2.6rem; line-height: 1; margin-top: .4rem; }

/* spacing, radius, glow */
.scale-row { display: flex; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font: .82rem/1.3 var(--font-mono); }
.scale-row .name { width: 7.5rem; flex: none; }
.scale-row .bar { height: 12px; background: var(--amber); border-radius: 2px; flex: none; }
.scale-row .use { color: var(--ink-muted); font-family: var(--font-body); font-size: .85rem; }
.radii { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.radii div { width: 7rem; height: 7rem; background: var(--bg-100); border: 2px solid var(--violet); display: flex; align-items: flex-end; padding: .6rem; font: .75rem/1.3 var(--font-mono); }
.glow-demo { position: relative; margin-top: 1rem; height: 12rem; border-radius: var(--radius-md); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.glow-demo::before { content: ""; position: absolute; width: 14rem; height: 14rem; border-radius: 50%; background: color-mix(in srgb, var(--amber) 35%, transparent); filter: blur(60px); }
.glow-demo b { position: relative; font: 800 2rem/1 var(--font-display); }

/* templates */
.molde { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.molde h3 { margin-top: 0; font-family: var(--font-mono); font-weight: 500; }
.molde .what { color: var(--ink-muted); margin-top: .5rem; max-width: 44rem; }
.molde ul { font-size: .95rem; }
.molde figure { margin-top: 1.25rem; background: var(--bg-100); border: 1px solid var(--line); border-radius: var(--radius-md); padding: .5rem; }
.molde iframe { display: block; width: 100%; height: 22rem; border: 0; }
.molde figcaption { padding: .5rem .5rem .25rem; font-size: .82rem; color: var(--ink-muted); }

.dont li::marker { content: "✕  "; color: var(--danger); }
.files li { font-size: .95rem; }

footer { max-width: 64rem; margin: 0 auto; padding: 1.5rem 16px 3rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-muted); }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
footer a { color: var(--ink-muted); }
