:root {
  color-scheme: light dark;
  --page: #fff;
  --ink: #000;
  --rule: rgba(0, 0, 0, .18);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root { --page: #000; --ink: #fff; --rule: rgba(255, 255, 255, .22); }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { background: var(--ink); color: var(--page); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 14px; background: var(--page); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.home-page { display: flex; flex-direction: column; }
.home-main { display: grid; flex: 1; min-height: calc(100svh - 73px); place-items: center; padding: 70px 24px 95px; }
.home-center { display: flex; flex-direction: column; align-items: center; width: 100%; transform: translateY(-4px); }
.wordmark-stage { position: relative; display: grid; width: min(100%, 460px); height: 145px; place-items: center; isolation: isolate; }
.home-wordmark { position: relative; z-index: 1; margin: 0; font-size: clamp(3.15rem, 9vw, 4.75rem); font-weight: 500; letter-spacing: -.072em; line-height: 1; white-space: nowrap; animation: resolve-wordmark 1.7s cubic-bezier(.22, 1, .36, 1) both; }
.discovery-traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--ink); animation: clear-traces 1.7s ease-out both; }
.trace { fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: square; stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw-trace 1.25s cubic-bezier(.38, 0, .2, 1) both; }
.trace-a, .trace-c { transform-origin: center; animation-name: draw-trace-left; }
.trace-b, .trace-d { transform-origin: center; animation-name: draw-trace-right; }
.trace-b, .trace-d { animation-delay: .07s; }
.trace-c, .trace-d { animation-delay: .15s; }
.trace-e { stroke-dasharray: 28; stroke-dashoffset: 28; animation-delay: .1s; }
.trace-dot { fill: currentColor; opacity: 0; animation: dot-appear 1.35s ease-out both; }
.dot-b { animation-delay: .08s; }
.dot-c { animation-delay: .17s; }
.home-links { display: flex; flex-direction: column; align-items: center; gap: 17px; margin-top: 15px; animation: reveal-links .55s ease-out 1.12s both; }
.home-links a { font-size: 1rem; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; text-decoration: none; text-underline-offset: 5px; }
.home-links a:hover { text-decoration: underline; }

@keyframes draw-trace { 0%, 10% { stroke-dashoffset: 28; opacity: 0; } 30%, 72% { stroke-dashoffset: 0; opacity: .65; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(15px); } }
@keyframes draw-trace-left { 0%, 8% { stroke-dashoffset: 90; opacity: 0; transform: translateX(-16px); } 30%, 65% { stroke-dashoffset: 0; opacity: .62; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translate(24px, 6px); } }
@keyframes draw-trace-right { 0%, 8% { stroke-dashoffset: 90; opacity: 0; transform: translateX(16px); } 30%, 65% { stroke-dashoffset: 0; opacity: .62; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translate(-24px, 6px); } }
@keyframes dot-appear { 0%, 18% { opacity: 0; transform: scale(.7); } 30%, 65% { opacity: .72; transform: scale(1); } 100% { opacity: 0; transform: scale(.3); } }
@keyframes clear-traces { 0%, 85% { visibility: visible; } 100% { visibility: hidden; } }
@keyframes resolve-wordmark { 0%, 30% { opacity: 0; filter: blur(4px); transform: translateY(7px) scale(.985); } 76%, 100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
@keyframes reveal-links { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.site-header { width: 100%; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 80px, 1160px); margin: 0 auto; }
.header-inner { min-height: 100px; }
.header-brand { font-size: 1.34rem; font-weight: 500; letter-spacing: -.065em; text-decoration: none; }
.header-inner nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 48px); }
.header-inner nav a, .footer-inner nav a { font-size: .875rem; line-height: 1.4; text-decoration: none; text-underline-offset: 5px; }
.header-inner nav a:hover, .footer-inner nav a:hover, .header-inner nav a[aria-current="page"] { text-decoration: underline; }

.inner-page { display: flex; flex-direction: column; }
.content-main { flex: 1; width: min(100% - 48px, 720px); margin: 0 auto; padding: clamp(65px, 10vw, 128px) 0 130px; }
.page-intro { margin-bottom: clamp(90px, 13vw, 146px); }
.section-kicker { margin-bottom: 19px; font-size: .73rem; font-weight: 500; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.page-intro h1, .article-header h1 { margin: 0; font-size: clamp(3.1rem, 8vw, 5.6rem); font-weight: 500; letter-spacing: -.075em; line-height: 1.05; }
.library { min-height: 190px; }
.empty-state { margin: 0; font-size: clamp(1.15rem, 2.7vw, 1.45rem); letter-spacing: -.025em; line-height: 1.55; }
.article-list, .product-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.article-list li, .product-list li { border-bottom: 1px solid var(--rule); }
.article-list a { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; padding: 28px 0 30px; text-decoration: none; }
.article-list time, .article-header time { display: block; font-size: .81rem; letter-spacing: .02em; line-height: 1.5; }
.article-list time { grid-column: 1 / -1; }
.list-title { font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -.04em; line-height: 1.18; }
.list-description { grid-column: 1 / -1; max-width: 55ch; font-size: .95rem; line-height: 1.6; }
.list-arrow { grid-column: 2; grid-row: 2; align-self: start; font-size: 1.3rem; transition: transform .2s ease; }
.article-list a:hover .list-arrow { transform: translate(3px, -3px); }
.product-list li { padding: 27px 0 30px; }
.product-list h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 500; letter-spacing: -.04em; }
.product-list h2 a { text-decoration: none; }
.product-list h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.product-list p { max-width: 55ch; margin: 0; font-size: .95rem; line-height: 1.6; }

.newsletter { margin-top: 64px; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--rule); border-radius: 12px; }
.newsletter h2 { margin: 0 0 9px; font-size: clamp(1.25rem, 2.5vw, 1.45rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.25; }
.newsletter p { max-width: 53ch; margin: 0 0 20px; font-size: .95rem; line-height: 1.55; }
.newsletter-embed { display: block; width: 100%; height: 46px; border: 0; }

@media (prefers-color-scheme: dark) {
  .newsletter-embed { height: 48px; }
}

.article-main { width: min(100% - 48px, 740px); padding-top: clamp(38px, 7vw, 75px); }
.back-link { display: inline-block; margin-bottom: clamp(80px, 11vw, 135px); font-size: .875rem; text-decoration: none; text-underline-offset: 5px; }
.back-link:hover { text-decoration: underline; }
.article-header { margin-bottom: 72px; }
.article-header time { margin-bottom: 20px; }
.article-header h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.article-deck { max-width: 60ch; margin: 27px 0 0; font-size: clamp(1.1rem, 2.5vw, 1.35rem); line-height: 1.55; }
.article-body { max-width: 68ch; font-size: clamp(1.04rem, 2vw, 1.13rem); line-height: 1.78; }
.article-body > :first-child { margin-top: 0; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote { margin: 0 0 1.45em; }
.article-body h2, .article-body h3 { margin: 2.3em 0 .8em; font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
.article-body h2 { font-size: 1.8em; }
.article-body h3 { font-size: 1.35em; }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body li + li { margin-top: .4em; }
.article-body blockquote { margin-left: 0; padding-left: 1.2em; border-left: 1px solid var(--ink); }
.article-body img { max-width: 100%; height: auto; }
.article-body a { text-underline-offset: 4px; }
.article-body pre { max-width: 100%; padding: 18px 0; overflow-x: auto; font-size: .86em; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.not-found-copy { margin: 25px 0 40px; font-size: 1.1rem; line-height: 1.6; }
.page-intro .back-link { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 73px; gap: 25px; }
.footer-inner > span { font-size: .8rem; letter-spacing: -.02em; }
.footer-inner nav { gap: clamp(16px, 3vw, 32px); }
.footer-inner nav a { font-size: .8rem; }

@media (max-width: 600px) {
  .header-inner, .footer-inner { width: min(100% - 40px, 1160px); }
  .header-inner { min-height: 76px; }
  .header-inner nav { gap: 21px; }
  .content-main { padding-top: 76px; padding-bottom: 100px; }
  .article-main { padding-top: 40px; }
  .page-intro { margin-bottom: 86px; }
  .home-main { min-height: calc(100svh - 67px); padding-bottom: 85px; }
  .wordmark-stage { height: 126px; }
  .home-links { margin-top: 6px; }
  .footer-inner { min-height: 67px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-wordmark, .home-links, .discovery-traces, .trace, .trace-dot { animation: none !important; }
  .home-wordmark, .home-links { opacity: 1; filter: none; transform: none; }
  .discovery-traces { display: none; }
  .list-arrow { transition: none; }
}
