:root {
  color-scheme: light;
  --paper: #fffefa;
  --ink: #101f36;
  --muted: #495a70;
  --blue: #064d9b;
  --blue-dark: #073a78;
  --sky: #e4f1fc;
  --line: #a4b8ce;
  --soft-line: #cdd9e6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:where(a, summary, button, input, [tabindex]):focus-visible { outline: 3px solid #0b66bf; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.13; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 4rem, 71rem); margin-inline: auto; }
.reading { width: min(100% - 3rem, 47rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: .6rem; left: .6rem; padding: .65rem 1rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.masthead { padding-top: .55rem; }
.languages ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .12rem .45rem; list-style: none; margin: 0 0 .6rem; padding: 0; }
.languages a { display: inline-flex; gap: .42rem; align-items: center; min-height: 2.75rem; padding: .3rem .58rem; border-radius: .3rem; color: var(--ink); font-size: .88rem; font-weight: 650; text-decoration: none; }
.languages a:hover { text-decoration: underline; }
.languages a[aria-current='page'] { color: var(--blue-dark); background: var(--sky); }
.languages img { flex: none; border-radius: 2px; outline: 1px solid #101f3629; }
.masthead-row { display: flex; justify-content: center; text-align: center; }
.brand { color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; }
.brand-name { display: block; font-size: clamp(2.65rem, 6.55vw, 5.55rem); line-height: 1.02; letter-spacing: -.055em; }
.brand-tagline { display: block; margin-top: .6rem; color: var(--blue); font-size: clamp(1rem, 2.45vw, 1.78rem); line-height: 1.2; }
.header-nav { margin-top: clamp(1.2rem, 3vw, 2.35rem); border-block: 1px solid var(--line); }
.header-nav ul, .mobile-nav ul, .footer-nav { margin: 0; padding: 0; list-style: none; }
.header-nav ul { display: flex; justify-content: center; gap: clamp(1.15rem, 4.15vw, 3.4rem); }
.header-nav a, .mobile-nav a { display: block; color: var(--ink); font-weight: 650; text-decoration: none; }
.header-nav a { padding-block: .73rem; }
:is(.header-nav, .mobile-nav) a:is(:hover, [aria-current='page']) { color: var(--blue); text-decoration: underline; }
.mobile-nav { display: none; }

.home { padding-top: clamp(1.4rem, 3.4vw, 2.9rem); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 25%); gap: clamp(1.3rem, 3.4vw, 2.8rem); align-items: center; padding: clamp(1.45rem, 3.6vw, 2.8rem); background: var(--sky); }
.feature h1 { color: var(--blue-dark); font-size: clamp(2.3rem, 4.8vw, 4.4rem); letter-spacing: -.042em; line-height: 1.02; }
.feature h1 span { display: block; }
.feature-copy > p { max-width: 35rem; margin-top: .85rem; font-size: clamp(1.04rem, 1.9vw, 1.25rem); line-height: 1.55; }
.button { display: inline-flex; min-height: 3rem; justify-content: center; align-items: center; padding: .66rem 1.2rem; border: 1px solid var(--blue); border-radius: .4rem; color: white; background: var(--blue); font-weight: 700; text-decoration: none; text-align: center; line-height: 1.3; }
.button:hover { color: white; background: var(--blue-dark); }
.feature-copy .button { margin-top: 1.3rem; }
.feature-author { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; gap: .78rem; padding-left: clamp(1rem, 3vw, 2.4rem); border-left: 1px solid #b2c9df; text-align: center; }
.feature-author picture { flex: none; }
.avatar { border-radius: 50%; object-fit: cover; aspect-ratio: 1; background: #c3d3de; }
.feature-author .avatar { width: clamp(5.8rem, 13vw, 9rem); height: auto; }
.author-name { display: block; font: 700 clamp(1.15rem, 2.3vw, 1.6rem)/1.18 var(--serif); text-decoration: none; color: var(--ink); }
.author-location { display: block; margin-top: .25rem; font-size: .92rem; color: var(--muted); }
.section { margin-top: clamp(2rem, 3.8vw, 3.1rem); }
.section-title { padding-bottom: .65rem; border-bottom: 1px solid var(--line); font-size: clamp(1.85rem, 3.5vw, 2.8rem); letter-spacing: -.035em; }
.story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 1.2rem 0 0; }
.story-list > li { padding-inline: 1.7rem; }
.story-list > li:first-child { padding-left: 0; }
.story-list > li:last-child { padding-right: 0; }
.story-list > li + li { border-left: 1px solid var(--soft-line); }
.story-link { display: block; height: 100%; text-decoration: none; color: var(--ink); }
.story-link:hover .story-title { color: var(--blue); text-decoration: underline; }
.story-label, .eyebrow { display: block; color: var(--blue); font-size: .84rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.story-title { margin-top: .4rem; font-family: var(--serif); display: block; font-weight: 700; font-size: clamp(1.32rem, 2.2vw, 1.9rem); letter-spacing: -.022em; line-height: 1.2; text-wrap: pretty; }
.story-description { display: block; margin-top: .48rem; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 700; }
.home-check { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; margin-top: 2.3rem; padding: 1.1rem 1.3rem; background: var(--sky); border-left: 3px solid var(--blue); }
.home-check h2 { font-size: clamp(1.4rem, 2.75vw, 1.9rem); }
.home-check p { margin-top: .35rem; max-width: 36rem; color: var(--muted); }
.home-check a { flex-shrink: 0; font-weight: 700; }
.home-topics { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 1rem; list-style: none; padding: 0; margin: .4rem 0 0; }
.home-topics a { display: block; padding: .75rem 0; line-height: 1.35; font-weight: 650; }

.page { margin-top: clamp(2rem, 5vw, 3.6rem); }
.breadcrumb { margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.breadcrumb a { color: var(--muted); }
.page h1 { margin-top: .2rem; font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -.045em; }
.page-dek { margin-top: .8rem; font-size: clamp(1.04rem, 1.8vw, 1.22rem); line-height: 1.55; color: var(--muted); }
.byline { display: flex; align-items: center; gap: .65rem; margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }
.byline a { font-weight: 650; color: var(--ink); }
.page-intro { padding-bottom: 1.4rem; border-bottom: 1px solid var(--soft-line); }
.toc { margin: 1.25rem 0; padding: .85rem 1.1rem; background: var(--sky); border-left: 3px solid var(--blue); }
.toc p { font-weight: 750; }
.toc ul, .toc ol { margin: .35rem 0 0; padding-left: 1.1rem; }
.toc li { margin: .15rem 0; }
.prose { font-size: 1.0625rem; overflow-wrap: anywhere; }
.prose h2 { margin: 2rem 0 .7rem; font-size: clamp(1.6rem, 3.7vw, 2.18rem); letter-spacing: -.025em; scroll-margin-top: 1rem; }
.prose h3 { margin: 1.3rem 0 .5rem; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol, .prose dl { margin: .72rem 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35rem; }
.prose blockquote { margin: 1.25rem 0; padding: .7rem 1.05rem; border-left: 3px solid var(--blue); background: var(--sky); }
.prose blockquote p { margin: .3rem 0; }
.tutorial-shot { width: min(100%, 24rem); margin: .8rem 0 1.9rem; }
.tutorial-shot a { display: block; }
.tutorial-shot img { width: 100%; height: auto; border: 1px solid var(--soft-line); border-radius: .4rem; }
.tutorial-shot figcaption { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 1rem 0; border: 1px solid var(--soft-line); }
.prose .table-scroll-hint { margin: .9rem 0 .25rem; color: var(--muted); font-size: .875rem; }
.table-scroll-hint:not([hidden]) + .table-wrap { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.4; }
.prose caption { padding: .55rem .7rem; color: var(--muted); text-align: left; }
.prose :is(th, td) { padding: .65rem .62rem; border-bottom: 1px solid var(--soft-line); text-align: left; vertical-align: top; overflow-wrap: normal; min-width: 5rem; }
.prose th { background: #eaf3fb; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.sources { border-top: 1px solid var(--line); margin-top: 2.1rem; padding-top: 1rem; }
.sources h2, .related h2 { font-size: 1.5rem; }
.sources ul { margin: .55rem 0 0; padding-left: 1.15rem; }
.related { margin-top: 1.6rem; padding: 1.1rem 1.2rem; background: var(--sky); }
.related a { display: inline-block; margin-top: .4rem; font-weight: 650; }
.related .topic-reference { display: block; width: fit-content; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.3rem; }
.share :is(a, button) { min-height: 44px; padding: .42rem .75rem; font: 650 .94rem/1.4 var(--sans); display: inline-flex; align-items: center; background: transparent; color: var(--blue-dark); border: 1px solid var(--line); border-radius: .3rem; text-decoration: none; cursor: pointer; }
.share :is(a, button):hover { background: var(--sky); }
.share-status { color: var(--muted); font-size: .88rem; }

.index-section { margin: 1.6rem 0 2rem; }
.index-section h2 { font-size: 1.65rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li + li { border-top: 1px solid var(--soft-line); }
.index-list .story-link { padding-block: .82rem; }
.series-intro { padding-top: .65rem; color: var(--muted); }
.tutorial-list { list-style: decimal; padding-inline-start: 1.75rem; }
.tutorial-list li::marker { color: var(--blue); font-weight: 750; }
.tutorial-nav a { display: block; width: fit-content; }
.guide-search { margin-top: 1.15rem; }
.guide-search label { display: block; font-weight: 700; }
.guide-search input { display: block; width: 100%; min-height: 44px; margin-top: .4rem; padding: .5rem .65rem; border: 1px solid #7b8fa6; border-radius: .25rem; background: #fff; color: var(--ink); font: inherit; }
.search-status { margin-top: .4rem; color: var(--muted); }
.qa { border-bottom: 1px solid var(--soft-line); }
.qa summary { padding: 1rem 1.5rem 1rem 0; font-weight: 700; color: var(--ink); cursor: pointer; }
.qa summary::marker { color: var(--blue); }
.qa p { padding-bottom: 1rem; color: var(--muted); }
.about-author { display: flex; gap: 1rem; align-items: center; margin: 1.25rem 0; }
.about-author .avatar { width: 5.4rem; height: 5.4rem; }
.about-author p { color: var(--muted); }
.footer { margin-top: clamp(2.5rem, 6vw, 4.1rem); padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-brand { color: var(--ink); font: 700 1.25rem var(--serif); text-decoration: none; }
.footer p { margin-top: .35rem; max-width: 44rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .6rem; }

@media (max-width: 46rem) {
  .wrap { width: calc(100% - 1.75rem); }
  .reading { width: min(100% - 2rem, 47rem); }
  .masthead { padding-top: .35rem; }
  .masthead-row { position: relative; }
  .languages ul { gap: .15rem; margin-bottom: .45rem; }
  .languages a { padding-inline: .48rem; }
  .masthead-row { justify-content: space-between; align-items: flex-start; text-align: left; gap: .45rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
  .brand { display: block; min-width: 0; }
  .brand-name { font-size: clamp(1.55rem, 7.05vw, 2.65rem); letter-spacing: -.045em; }
  .brand-tagline { margin-top: .28rem; font-size: clamp(.76rem, 3.38vw, 1rem); }
  .header-nav { display: none; }
  .mobile-nav { display: block; flex: none; }
  .mobile-nav summary { list-style: none; border: 0; display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; border-radius: .3rem; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 22px; height: 2px; background: currentColor; }
  .mobile-nav[open] summary { background: var(--sky); }
  .mobile-nav nav { position: absolute; z-index: 2; inset: 100% 0 auto; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 5px 12px #263d5226; }
  .mobile-nav a { padding: .72rem .95rem; }
  .mobile-nav li + li { border-top: 1px solid var(--soft-line); }
  .home { padding-top: 1rem; }
  .feature { display: block; padding: 1.15rem; }
  .feature h1 { font-size: clamp(2rem, 9.3vw, 3.2rem); }
  .feature-copy > p { margin-top: .7rem; }
  .feature-copy .button { display: flex; margin-top: .9rem; }
  .feature-author { flex-direction: row; justify-content: flex-start; padding: .9rem 0 0; gap: .65rem; border: 0; text-align: left; }
  .feature-author .avatar { width: 2.6rem; }
  .feature-author .author-location { display: none; }
  .story-list { display: block; padding-top: 0; }
  .story-list > li { padding: .75rem 0 .85rem; }
  .story-list > li + li { border-left: 0; border-top: 1px solid var(--soft-line); }
  .story-title { margin-top: .25rem; }
  .home-check { display: block; }
  .home-check a { display: inline-block; padding-top: .65rem; }
  .home-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 23rem) {
  .wrap { width: calc(100% - 1.2rem); }
  .reading { width: calc(100% - 1.4rem); }
  .feature { padding: .95rem; }
}

@media print {
  .languages, .header-nav, .mobile-nav, .footer, .share, .related, .skip-link { display: none !important; }
  .brand-name, .page h1 { font-size: 2.2rem; }
  .wrap, .reading { width: 100%; }
}
