/* eskiu-lang.org article pages (case studies): Editorial look shared with the homepage. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --paper: #fbf8f3; --ink: #1c1830; --ink2: #4a4560; --muted: #6b6580; --faint: #8b8699;
  --rule: #e6e0d6; --purple: #3b2a8c; --lilac: #e9e1f4; --lilac-2: #f1ecf8; --lilac-3: #d9d1f0;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 24px;
}
@media (min-width: 900px) { :root { --gutter: 48px; } }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink2); font-family: var(--sans); font-size: 17px;
       line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--ink); }
.bar { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, 0.94);
       backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.top-in { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800;
         font-size: 24px; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand .v { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--faint); margin-left: 2px; }
.nav { display: none; gap: 26px; font-weight: 500; font-size: 16px; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--purple); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { font-size: 15px; font-weight: 500; color: var(--faint); padding: 10px 4px; }
.lang a { color: var(--ink); }
.lang [aria-current] { color: var(--ink); font-weight: 700; }
.btn-install { display: none; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px;
               padding: 12px 20px; border-radius: 12px; }
.btn-install:hover { background: var(--purple); color: #fff; }
.menu-btn { width: 48px; height: 48px; border: 1.5px solid var(--ink); background: #fff; border-radius: 14px;
            display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; color: var(--ink); }
.drawer { display: none; border-top: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
.drawer a { display: block; padding-block: 14px; font-size: 18px; font-weight: 500; color: var(--ink);
            border-bottom: 1px solid var(--rule); }
.top.open .drawer { display: block; }
@media (min-width: 900px) { .btn-install { display: flex; } }
@media (min-width: 1280px) {
  .nav { display: flex; }
  .menu-btn, .drawer, .top.open .drawer { display: none; }
}

/* Article */
.article { max-width: calc(760px + 2 * var(--gutter)); padding-block: 48px 96px; overflow-wrap: break-word; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
           color: var(--purple); margin-bottom: 14px; }
.article h1 { margin: 0 0 32px; font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 6vw, 60px);
              line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); }
.article h2 { margin: 56px 0 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 32px);
              line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.article h3 { margin: 36px 0 10px; font-size: 20px; font-weight: 700; color: var(--ink); }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 1.3em; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 700; color: var(--ink); }
.article p a, .article li a, .article td a { text-decoration: underline; text-decoration-color: var(--lilac-3);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article p a:hover, .article li a:hover, .article td a:hover { text-decoration-color: var(--purple); }
.pull { margin: 0 0 40px; background: var(--lilac); border-radius: 20px; padding: 28px 26px;
        font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); }
.pull .stat { display: block; margin-top: 18px; padding-top: 16px; border-top: 1.5px solid rgba(59, 42, 140, 0.25);
              font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--purple); }
figure { margin: 8px 6px 36px 0; }
figure img { width: 100%; height: auto; display: block; border: 1.5px solid var(--ink); border-radius: 18px;
             box-shadow: 6px 6px 0 var(--lilac); }
figcaption { font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 14px; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--ink); background: var(--lilac-2);
       padding: 0.12em 0.38em; border-radius: 6px; overflow-wrap: anywhere; }
pre { margin: 0 6px 28px 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; padding: 18px 20px;
      overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink);
      box-shadow: 5px 5px 0 var(--lilac); }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.tablewrap { overflow-x: auto; margin: 0 0 28px; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
     color: var(--muted); background: var(--paper); border-bottom: 1.5px solid var(--ink); }
tr:last-child td { border-bottom: none; }
td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 900px) {
  .article { padding-block: 72px 120px; }
  .article p, .article li { font-size: 18px; }
  .pull { padding: 36px 40px; font-size: 24px; }
  pre { font-size: 14px; padding: 20px 24px; }
}

/* Footer */
.foot { border-top: 1.5px solid var(--ink); }
.foot-in { padding-block: 40px 48px; display: flex; flex-direction: column; gap: 22px; font-size: 16px; color: var(--ink2); }
.foot .brand { font-size: 26px; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.foot-links a { color: var(--ink); padding-block: 12px; }
.foot-links a:hover { color: var(--purple); }
@media (min-width: 900px) {
  .foot-in { flex-direction: row; align-items: center; gap: 12px 32px; padding-block: 36px; }
  .foot .brand { font-size: 22px; }
  .foot-links { display: flex; gap: 26px; margin-left: auto; }
}

/* Quickstart extras */
.lede { font-size: 19px; line-height: 1.6; color: var(--ink2); margin: -12px 0 36px; max-width: 640px; }
.btns { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 20px; }
.btn-w { display: flex; align-items: center; min-height: 52px; padding: 10px 18px; background: #fff; color: var(--ink);
         border: 1.5px solid var(--ink); border-radius: 14px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.btn-w:hover { background: var(--ink); color: var(--paper); }
.note { font-size: 15px; line-height: 1.6; color: var(--muted); background: var(--lilac-2); border-radius: 14px; padding: 14px 18px; }
.article p.note { font-size: 15px; }
pre .c { color: var(--faint); }
pre .o { color: var(--purple); }
@media (min-width: 900px) {
  .lede { font-size: 21px; }
  .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nav a[aria-current] { color: var(--purple); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* Catalog and hub pages (packages, platforms, showcase) */
img { max-width: 100%; }
.article h2[id], .pkg[id] { scroll-margin-top: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; background: #fff; color: var(--ink);
           border: 1.5px solid var(--ink); border-radius: 12px; font-family: var(--mono); font-size: 14px; line-height: 1.3; }
.chips a:hover { background: var(--ink); color: var(--paper); }
.pkg { margin: 0; padding: 48px 0 8px; border-top: 1px solid var(--rule); }
.pkg:first-of-type { margin-top: 56px; }
.pkg h2 { margin-top: 0; }
.pkg h3 { margin-top: 28px; }
.pkg-example { margin: 24px 0 0; }
.pkg-example summary { cursor: pointer; width: fit-content; font-weight: 700; color: var(--ink); list-style: none;
                       display: inline-flex; align-items: center; gap: 8px; }
.pkg-example summary::-webkit-details-marker { display: none; }
.pkg-example summary::before { content: "+"; font-family: var(--mono); color: var(--purple); width: 1ch; }
.pkg-example[open] summary::before { content: "−"; }
.pkg-example summary:hover { color: var(--purple); }
.pkg-example pre { margin-top: 14px; }
.pkg-soon { padding-bottom: 32px; }
.pkg-soon .tag { color: var(--muted); background: var(--lilac-2); }
.pkg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; font-size: 15px; }
.pkg-meta img { display: block; height: 20px; width: auto; }
.pkg-meta a { font-weight: 700; }
.tag { font-family: var(--mono); font-size: 13px; color: var(--purple); background: var(--lilac); border-radius: 999px; padding: 2px 12px; }
.more { font-weight: 700; }
figure.fig-sq { max-width: 512px; }
figure.fig-sm { max-width: 420px; }
.labs { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.labs > .eyebrow { margin-bottom: 8px; }
.labs-intro { color: var(--muted); margin: 0 0 8px; }
.labs h2 { margin-top: 32px; }
.chips a.chip-labs { border-style: dashed; color: var(--muted); }
.chips a.chip-labs:hover { color: var(--paper); }

/* Closing call to action of the article pages */
.cta-band { margin-top: 72px; background: var(--purple); color: var(--paper); }
.cta-in { padding-block: 48px; display: flex; flex-direction: column; gap: 24px; }
.cta-txt { display: flex; flex-direction: column; gap: 10px; }
.cta-band h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.05; color: #fff; }
.cta-band p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--lilac-3); }
.cta-btns { display: flex; flex-direction: column; gap: 12px; }
.cta-btns a { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; border: 1.5px solid #fff; }
.cta-dark { background: #fff; color: var(--ink); }
.cta-dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-line { color: #fff; }
.cta-line:hover { background: #fff; color: var(--ink); }
@media (min-width: 900px) {
  .cta-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; padding-block: 56px; }
  .cta-btns { flex-direction: row; flex-shrink: 0; }
}

/* Main navigation: grouped menus (generated by build-docs.py, apply_nav) */
.nav { align-items: center; gap: 4px; }
.nav-g { position: relative; }
.nav-t { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font-family: var(--sans); font-weight: 500; font-size: 16px; color: var(--ink); cursor: pointer; }
.nav-t:hover, .nav-g:hover > .nav-t, .nav-g:focus-within > .nav-t { background: var(--lilac-2); color: var(--ink); }
.nav-t svg { transition: transform 0.15s; }
.nav-g:hover > .nav-t svg, .nav-g:focus-within > .nav-t svg { transform: rotate(180deg); }
.nav-g.cur > .nav-t { color: var(--purple); }
.nav-m { position: absolute; top: 100%; left: -6px; z-index: 40; display: none; flex-direction: column; gap: 2px; width: 320px; margin-top: 8px; padding: 8px; background: #fff; border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 8px 8px 0 var(--lilac); }
.nav-m::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-g:hover > .nav-m, .nav-g:focus-within > .nav-m { display: flex; }
.nav .nav-m a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav .nav-m a:hover { background: var(--lilac-2); color: var(--ink); }
.nav-m b { font-weight: 700; font-size: 15px; }
.nav-m span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.nav .nav-m a[aria-current] b { color: var(--purple); }
.dr-g { padding-block: 10px; border-bottom: 1px solid var(--rule); }
.dr-h { display: block; padding-block: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.drawer .dr-g a { border-bottom: 0; padding-block: 9px; font-size: 17px; }
.drawer .dr-g a[aria-current] { color: var(--purple); }
.drawer .dr-gh { border-bottom: 0; }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .menu-btn, .drawer, .top.open .drawer { display: none; }
}
