/* Shared STARK identity. Loaded after page-specific layout styles. */
:root {
  color-scheme: light;
  --paper: #f4f1e9; --ink: #20212a; --muted: #6e706d; --accent: #456557;
  --bg: var(--paper); --bg-2: #efede5; --card: #fbfaf6; --card-grad-end: #fbfaf6;
  --text: var(--ink); --dim: var(--muted); --line: #deded6; --line-soft: #e5e3da;
  --blue: #456557; --blue-soft: #456557; --cyan: #e5e9df; --blue-tint: #e5e9df;
  --blue-hairline: #bdcbbc; --blue-select: #d2dfd1;
  --cream: #e9ede5; --cream-text: var(--ink); --cream-dim: #63705f; --cream-line: #d0d7ca; --cream-ink: #456557;
  --ico-from: #e5e9df; --ico-to: #e5e9df;
  --btn-face: #20212a; --btn-face-hover: #3b3c45; --btn-ink: #fff;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --display: var(--body);
  --fw-semibold: 600; --fw-medium: 500;
  --fs-display-page: clamp(2rem, 4.5vw, 3.5rem); --lh-display-page: 1.12; --tr-display: -.055em;
  --fs-h2: clamp(1.7rem, 3vw, 2.7rem); --lh-h2: 1.16; --tr-h2: -.045em;
  --lh-h3: 1.25; --tr-h3: -.03em;
  --shell: 1100px; --shell-narrow: 760px; --shell-gutter: 40px; --shell-gutter-wide: 64px;
  --r-md: 26px; --r-feature: 26px; --r-pill: 99px;
  --lift-card: 0; --lift-option: 0; --shadow-card-hover: 0 8px 24px #20212a08;
}
* { box-sizing: border-box; }
body { margin: 0; background: #e8e8e3; color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.site-frame { max-width: 1500px; margin: 24px auto; background: var(--paper); border-radius: 32px; overflow: clip; }
:focus-visible { outline: 3px solid #658875; outline-offset: 5px; }
.global-header { background: var(--paper); }
.global-nav { width: min(1100px, calc(100% - 64px)); margin: auto; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.global-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font: 700 23px/1.2 var(--body); letter-spacing: -1px; }
.global-brand img { display: block; width: 30px; height: 30px; border-radius: 9px; mix-blend-mode: multiply; }
.global-brand > span { color: var(--accent); margin-left: -8px; }
.global-links { display: flex; gap: 32px; }
.global-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 500; }
.global-links a:hover, .global-links a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
.global-languages { display: flex; font-size: 12px; }
.global-languages a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); }
.global-languages a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; }
.global-footer { width: min(1100px, calc(100% - 64px)); margin: auto; padding: 36px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; }
.global-footer p { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 24px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
.inner-page .display, .inner-page .h1, .inner-page .h2 { text-transform: none; font-family: var(--body); font-weight: 600; letter-spacing: -.05em; line-height: 1.15; text-wrap: balance; }
.inner-page .h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.inner-page .eyebrow, .inner-page .pill, .inner-page .tag, .inner-page .filters label { text-transform: none; letter-spacing: .02em; }
.inner-page .eyebrow::before { display: none; }
.inner-page .page-hero, .inner-page .enc-hero { padding: 58px 0 48px; }
.inner-page .page-hero > .shell, .inner-page .enc-hero > .shell { text-align: center; }
.inner-page .page-hero .display, .inner-page .enc-hero .display { max-width: 22ch; margin-inline: auto; }
.inner-page .page-hero .lede, .inner-page .enc-hero .lede { max-width: 60ch; margin-inline: auto; font-size: 15px; line-height: 1.8; }
.inner-page .card, .inner-page .theme-card, .inner-page .prog-card, .inner-page .topic-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 26px; box-shadow: none; padding: 28px; }
.inner-page .theme-card .ico { background: #e5e9df; box-shadow: none; }
.inner-page .section { border-top-color: var(--line-soft); }
.inner-page .btn, .inner-page .chip { border-radius: 99px; }
.inner-page .filters input, .inner-page .filters select { font-size: 16px; letter-spacing: normal; }
.inner-page .filters select { max-width: 100%; }
.inner-page .ex-item, .inner-page .tile { border-radius: 20px; }
.inner-page .facts { border-radius: 22px; }
.inner-page .detail-media { border-radius: 30px; }
.inner-page .h3 { line-height: 1.3; letter-spacing: -.025em; }
.inner-page .shell { width: min(1100px, calc(100% - 64px)); }
.reading-page main .shell { width: min(760px, calc(100% - 64px)); padding: 35px 0 64px; }
.reading-page main h2 { font-family: var(--body); font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.reading-page main p, .reading-page main li { font-size: 15px; line-height: 1.85; }
.reading-page main p a { color: var(--accent); text-decoration: underline; }
.reading-page .faq-item summary { font-weight: 500; min-height: 54px; }
.js .inner-page .reveal { opacity: 1; transform: none; transition: none; }
.features-intro { text-align: center; padding: 48px 0 54px; }
.features-intro h1 { font-size: clamp(36px, 4.5vw, 60px); margin: 20px 0; }
.features-intro .intro { max-width: 600px; margin: auto; }
.feature-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 32px auto 0; }
.feature-jumps a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 17px; font-size: 12px; border-radius: 99px; background: #fbfaf6; border: 1px solid var(--line-soft); }
.feature-jumps a:hover { background: #e5e9df; }
.feature-details { max-width: 1000px; }
.feature-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 75px; align-items: center; padding: 58px 0; scroll-margin-top: 30px; border-top: 1px solid var(--line-soft); }
.feature-description h2 { margin: 15px 0 20px; font-size: clamp(28px, 3vw, 40px); }
.feature-lede { color: var(--muted); font-size: 14px; line-height: 1.85; }
.feature-description ul { padding: 0; margin: 24px 0 0; list-style: none; }
.feature-description li { position: relative; padding: 0 0 0 20px; margin-bottom: 13px; font-size: 13px; line-height: 1.8; color: #596354; }
.feature-description li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border: 1px solid #879382; border-radius: 50%; }
.feature-figure { background: #e5e9df; border-radius: 110px 110px 28px 28px; padding: 34px 28px 18px; margin: 0; }
.feature-figure img { display: block; width: 235px; height: auto; max-height: 510px; object-fit: contain; border-radius: 25px; margin: auto; box-shadow: 0 16px 34px #202b2320; }
.feature-figure figcaption { text-align: center; font-size: 10px; color: #63705f; margin-top: 16px; }
.feature-detail:nth-child(even) .feature-figure { grid-column: 1; grid-row: 1; background: #e9e3d8; }
.feature-detail:nth-child(even) .feature-description { grid-column: 2; grid-row: 1; }
.features-close { text-align: center; background: #e9ede5; border-radius: 32px; padding: 60px 24px; margin-top: 30px; margin-bottom: 64px; }
.features-close h2 { margin: 18px 0 26px; }
@media (max-width: 900px) {
 .site-frame { margin: 12px; border-radius: 26px; }
 .feature-detail { gap: 35px; }
}
@media (max-width: 680px) {
 body { background: var(--paper); }
 .site-frame { margin: 0; border-radius: 0; }
 .global-nav { width: calc(100% - 40px); gap: 0; flex-wrap: wrap; padding-top: 8px; }
 .global-brand { min-height: 48px; font-size: 21px; }
 .global-brand img { width: 27px; height: 27px; }
 .global-links { order: 3; width: 100%; justify-content: center; gap: 24px; padding: 3px 0 9px; }
 .global-links a { font-size: 12px; min-height: 44px; }
 .global-languages { margin-left: auto; }
 .global-footer { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 20px; padding-bottom: 100px; }
 .footer-links { gap: 0 24px; }
 .inner-page .shell, .reading-page main .shell { width: calc(100% - 40px); }
 .inner-page .page-hero, .inner-page .enc-hero { padding: 30px 0 36px; }
 .inner-page .display, .inner-page .h1 { font-size: 32px; overflow-wrap: anywhere; }
 .inner-page .h2 { font-size: 28px; }
 .inner-page .page-hero .lede, .inner-page .enc-hero .lede { font-size: 14px; }
 .inner-page .card, .inner-page .theme-card, .inner-page .prog-card, .inner-page .topic-card { padding: 23px; }
 .inner-page .section { padding-block: 40px; }
 .reading-page main .shell { padding-top: 15px; }
 .reading-page main p, .reading-page main li { font-size: 14px; }
 .features-intro { padding: 28px 0 38px; }
 .features-intro h1 { font-size: 38px; }
 .features-intro .intro { font-size: 14px; }
 .feature-jumps { gap: 6px; margin-top: 24px; }
 .feature-jumps a { font-size: 11px; padding-inline: 12px; }
 .feature-detail { display: flex; flex-direction: column; align-items: stretch; gap: 26px; padding: 40px 0; }
 .feature-description h2 { font-size: 30px; }
 .feature-figure { padding: 28px 24px 18px; border-radius: 90px 90px 24px 24px; }
 .feature-figure img { width: 230px; }
 .features-close { padding: 42px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }
