/* Standalone article using the marketing site's Gilroy and Happy palette. */
@font-face {
  font-family: Gilroy;
  src: url('../fonts/gilroy/Gilroy-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Gilroy;
  src: url('../fonts/gilroy/Gilroy-Semibold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Gilroy;
  src: url('../fonts/gilroy/Gilroy-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #041c40;
  --muted: #5c6579;
  --purple: #5456d4;
  --wash: #f2f2ff;
  --line: #dbdce5;
  font-family: Gilroy, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--purple); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; border-radius: 2px; }
::selection { background: #dbdcfa; }
[id] { scroll-margin-top: 32px; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 20px; background: white; z-index: 5; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.nav-wrap { max-width: 1200px; margin: auto; min-height: 88px; padding: 20px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nav-wrap img, .site-footer img { display: block; width: 172px; height: 20px; }
.tech-link { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.tech-link span { margin-left: 12px; }
.article-header { background: linear-gradient(180deg, #f2f2fd 0%, #fafaff 100%); padding: 76px 32px 68px; }
.hero-inner { max-width: 1000px; margin: auto; }
.eyebrow { font-size: 13px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; text-decoration: none; }
h1 { max-width: 990px; font-size: clamp(38px, 4.8vw, 66px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; margin: 28px 0 24px; text-wrap: balance; }
h1 span { color: var(--purple); }
.dek { font-size: 21px; line-height: 1.5; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; font-size: 14px; font-weight: 600; color: var(--muted); }
.reading-layout { max-width: 1120px; margin: 64px auto 96px; padding: 0 32px; display: grid; grid-template-columns: minmax(0, 744px) 240px; gap: 64px; align-items: start; }
article { grid-column: 1; grid-row: 1; min-width: 0; font-size: 19px; line-height: 1.75; overflow-wrap: break-word; }
article > p:first-of-type { font-size: 22px; line-height: 1.6; }
p { margin: 0 0 24px; }
h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; margin: 64px 0 24px; text-wrap: balance; }
article > h2 { padding-top: 32px; border-top: 1px solid var(--line); }
article ul, article ol { padding-left: 1.4em; margin: 24px 0 32px; }
article li { padding-left: 8px; margin-bottom: 12px; }
article li::marker { color: var(--purple); font-weight: 700; }
blockquote { margin: 32px 0; padding: 28px 32px; border-left: 3px solid #8587e9; border-radius: 0 16px 16px 0; background: var(--wash); font-size: 22px; line-height: 1.55; }
blockquote p { margin: 0; }
sup { font-size: .65em; line-height: 0; }
sup a { padding: 0 3px; font-weight: 700; text-decoration: none; }
figure { margin: 40px 0; }
figure > a { display: block; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; }
figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contents { grid-column: 2; grid-row: 1; position: sticky; top: 40px; font-size: 14px; line-height: 1.5; }
.contents-label { margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contents ol { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--line); }
.contents li { margin-bottom: 18px; }
.contents a { color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--purple); text-decoration: underline; }
.back-top { display: inline-block; margin-top: 24px; font-weight: 600; }
.footnotes { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; color: var(--muted); }
.footnotes h2 { color: var(--ink); margin-top: 32px; font-size: 28px; }
.footnotes li { scroll-margin-top: 32px; }
.footnotes li:target { background: var(--wash); border-radius: 8px; }
.footnotes a { overflow-wrap: anywhere; }
.backlink { text-decoration: none; padding: 4px; }
.site-footer { background: var(--ink); padding: 40px max(32px, calc((100vw - 1056px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer a { color: #fff; font-size: 14px; text-decoration: none; }
@media (max-width: 960px) {
  .reading-layout { grid-template-columns: minmax(0, 1fr); max-width: 800px; gap: 36px; margin-top: 40px; }
  .contents { grid-column: 1; grid-row: 1; position: static; padding: 24px; background: #f7f7fa; border-radius: 16px; }
  .contents li:last-child { margin-bottom: 0; }
  .contents .back-top { display: none; }
  article { grid-row: 2; }
}
@media (max-width: 540px) {
  .nav-wrap { min-height: 72px; padding: 20px; gap: 16px; }
  .nav-wrap img { width: 138px; height: auto; }
  .tech-link { font-size: 13px; }
  .tech-link span { margin-left: 2px; }
  .article-header { padding: 48px 20px 40px; }
  .dek { font-size: 19px; }
  .reading-layout { padding: 0 20px; margin-bottom: 56px; }
  article { font-size: 18px; line-height: 1.7; }
  article > p:first-of-type { font-size: 20px; }
  blockquote { padding: 22px; font-size: 20px; }
  h2 { margin-top: 48px; }
  figure { margin: 32px 0; }
  .site-footer { padding: 32px 20px; }
  .site-footer img { width: 138px; height: auto; }
}
@media print {
  .site-header, .contents, .site-footer, .skip-link { display: none; }
  .article-header { background: none; padding: 0 0 24px; }
  .reading-layout { display: block; margin: 0; padding: 0; max-width: none; }
  h1 { font-size: 32pt; }
  article { font-size: 11pt; }
  h2 { break-after: avoid; }
  figure { break-inside: avoid; }
  a { color: inherit; }
}

/* Keep a leading article hero aligned with the contents panel. */
article > figure:first-child { margin-top: 0; }
