:root {
  color-scheme: dark;
  --page: #151821;
  --surface: #1c202b;
  --line: #383f51;
  --text: #f3f5fa;
  --muted: #b0bacb;
  --blue: #60a5fa;
  --edge: #3b82f6;
  font: 100%/1.6 system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--text); }
.container { width: min(100% - 48px, 1072px); margin-inline: auto; }
main { flex: 1; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #93c5fd; outline-offset: 4px; border-radius: 3px; }
.skip { position: fixed; z-index: 2; inset: .75rem auto auto .75rem; padding: .55rem .8rem; background: var(--page); transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.site-footer { border-block-start: 1px solid var(--line); border-block-end: 0; }
.site-bar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.brand { color: var(--text); display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; text-decoration: none; letter-spacing: -.025em; }
.brand::before { content: ""; width: .55rem; height: .55rem; background: var(--blue); border-radius: 2px; }
.site-nav, .footer-nav { display: flex; gap: .32rem 1.5rem; flex-wrap: wrap; align-items: center; }
.site-nav a, .footer-nav a, .crumbs a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .footer-nav a:hover, .crumbs a:hover { color: var(--text); text-decoration: underline; }
.site-nav a[aria-current] { color: var(--blue); text-decoration: underline; }
.footer-bar { padding-block: 1.35rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem 2rem; font-size: .875rem; color: var(--muted); }
h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); margin-block-end: .24em; font-weight: 690; }
h2 { font-size: 1.4rem; margin-block-end: .45em; }
p { margin-block-end: .9rem; }
.lead, .muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 60ch; }
.home { padding-block: clamp(2.8rem, 8vw, 6rem) clamp(3.3rem, 8vw, 5.6rem); }
.home-intro { margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--edge);
  border-radius: 12px;
  background: var(--surface);
}
.feature-copy { align-self: center; padding: clamp(1.4rem, 5.3vw, 3.5rem); }
.feature h2 { font-size: clamp(2.3rem, 6vw, 4.1rem); margin-block-end: .13em; }
.product-name { color: var(--text); font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 550; }
.action {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 44px;
  padding: .5rem 1rem; font-weight: 650; border: 1px solid #4d76ae; border-radius: 6px;
  color: #dceaff; background: #212f48; text-decoration: none;
}
.action:hover { background: #2b3f60; text-decoration: none; }
.feature-art {
  display: grid; place-items: center; min-height: 300px; padding: clamp(1.35rem, 5vw, 3rem);
  border-inline-start: 1px solid var(--line);
  background: radial-gradient(ellipse at 57% 50%, #263b60, #1b2436 58%, #181e2b 84%);
  border-start-end-radius: 10px; border-end-end-radius: 10px;
}
.feature-art img { display: block; width: min(100%, 230px); height: auto; }
.home-links { margin-block-start: 1.5rem; display: flex; flex-wrap: wrap; gap: .55rem 1.7rem; }
.home-links a { text-decoration: none; }
.home-links a:hover { text-decoration: underline; }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem .65rem; color: var(--muted); margin-block: 1.6rem 2.3rem; font-size: .9rem; }
.project { padding-block-end: 5rem; }
.project-title { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.8rem); margin-block-end: 1.45rem; }
.project-title img { width: clamp(56px, 12vw, 96px); flex: none; height: auto; }
.project-title h1 { margin-block-end: .07em; }
.project-title .product-name { margin: 0; }
.resources { margin-block-start: 2.8rem; max-width: 50rem; }
.resources-list { list-style: none; padding: 0; margin: 0; border-block-start: 1px solid var(--line); }
.resources-list li { border-block-end: 1px solid var(--line); }
.resource { display: grid; grid-template-columns: 10rem 1fr auto; align-items: center; gap: .6rem 1.3rem; padding-block: .9rem; text-decoration: none; }
.resource span:nth-child(2) { color: var(--muted); font-size: .93rem; }
.resource span:last-child { color: var(--blue); }
.document { padding-block-end: 5rem; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { min-width: 0; max-width: 70ch; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.prose-header { padding-block-end: 1.3rem; border-block-end: 1px solid var(--line); }
.prose-header > p:last-child { margin-block-end: 0; }
.meta { color: var(--muted); font-size: .91rem; }
.prose section { scroll-margin-top: 1.5rem; margin-block-start: 2.15rem; }
.prose section :is(p,li) { color: #d1d8e5; }
.prose a[href^="mailto:"] { overflow-wrap: anywhere; }
.prose ul { padding-inline-start: 1.3em; }
.prose li + li { margin-block-start: .37rem; }
.prose code { color: #e0eaff; background: #252b39; padding: .12em .3em; border-radius: 4px; overflow-wrap: anywhere; }
.toc { margin-block-start: 1.1rem; border-inline-start: 1px solid var(--line); padding-inline-start: 1.2rem; position: sticky; top: 1.5rem; }
.toc h2 { color: var(--text); font-size: .95rem; letter-spacing: normal; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-block: .6rem; }
.toc a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 730px) {
  .doc-layout { display: block; }
  .toc { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 0; border-inline-start: 0; border-block-start: 1px solid var(--line); border-radius: 0 0 10px 10px; }
  .feature-art img { width: min(44vw, 180px); }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 36px); }
  .site-bar { justify-content: flex-start; padding-block: .85rem; flex-wrap: wrap; column-gap: 1.25rem; }
  .site-nav, .footer-nav { gap: .35rem 1rem; font-size: .88rem; }
  .site-nav a, .footer-nav a, .home-links a { padding-block: .3rem; }
  .footer-bar { flex-direction: column; }
  .resource { grid-template-columns: 1fr auto; gap: .15rem 1rem; }
  .resource span:nth-child(2) { grid-row: 2; }
  .resource span:last-child { grid-column: 2; grid-row: 1 / 3; }
}
