:root {
  --ink: #242424;
  --paper: #ffffff;
  --muted: #777777;
  --soft: #ababab;
  --blue: #1688e8;
  --deep-blue: #06134f;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* A continuous white field: the header is deliberately not visually separated. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; background: #fff; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: center; width: min(1420px, calc(100% - 52px)); height: 106px; margin: 0 auto; }
.brand-mark { position: absolute; top: calc(50% - 3px); left: 0; display: inline-flex; align-items: center; transform: translateY(-50%); }
.brand-mark img { display: block; width: auto; height: 70px; max-width: 280px; object-fit: contain; }
.site-nav { display: flex; gap: clamp(28px, 4.4vw, 68px); justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #292929; font-family: var(--mono); font-size: 17px; font-weight: 400; letter-spacing: .045em; line-height: 1; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #000; }
.header-note { position: absolute; right: 0; }

.shell { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.page-top { padding-top: 106px; }
.label, .number, .product-kicker, .systems-title, .footer-brand, .footer-links a { color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .075em; line-height: 1.45; text-transform: uppercase; }

.template-home { position: fixed; inset: 0; overflow: hidden; background: #fff; }
.template-home canvas { position: absolute; inset: 0; display: block; width: min(66vw, 720px); height: min(68vh, 720px); margin: auto; pointer-events: none; }
.network-fallback { position: fixed; inset: auto 0 2rem; display: none; margin: 0; color: #555; font: 14px/1.4 system-ui, sans-serif; text-align: center; }

/* Article pages */
.intro { display: block; padding: 116px 0 90px; text-align: center; }
.intro .label { display: block; margin: 0 0 34px; }
.intro h1 { max-width: 760px; margin: 0 auto; font-size: clamp(34px, 4.1vw, 54px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.intro-copy { max-width: 680px; margin: 42px auto 0; color: #4e4e4e; font-size: clamp(18px, 1.7vw, 21px); font-weight: 400; letter-spacing: -.01em; line-height: 1.55; }
.intro-copy p { margin: 0; }

.statement { padding: 68px 0 105px; }
.statement blockquote { max-width: 760px; margin: 0 auto; color: #2f2f2f; font-size: clamp(23px, 2.35vw, 31px); font-weight: 400; letter-spacing: -.025em; line-height: 1.36; text-align: center; }
.statement blockquote em { color: inherit; font-style: normal; font-weight: 500; }

.index-grid, .theory-grid { display: block; margin: 0; }
.index-item, .theory-card { max-width: 730px; min-height: 0; margin: 0 auto; padding: 0 0 76px; border: 0; }
.index-item + .index-item, .theory-card + .theory-card { padding-top: 18px; }
.index-item h2, .theory-card h2 { max-width: 700px; margin: 18px 0 0; color: #262626; font-size: clamp(25px, 2.45vw, 33px); font-weight: 500; letter-spacing: -.025em; line-height: 1.28; }
.theory-card p { max-width: 680px; margin: 18px 0 0; color: #555; font-size: 18px; font-weight: 400; line-height: 1.62; }
.about-principles .index-item { text-align: center; }
.about-principles .index-item h2 { margin-right: auto; margin-left: auto; }
.systems-section.about-principles { padding-top: 3cm; }
.mission-mark { display: block; width: 104px; height: auto; margin: 0 auto 3cm; }

.systems-section { padding: 0 0 42px; }
.systems-title { margin: 0 0 67px; color: #555; text-align: center; }

/* Theory library */
.theory-page { min-height: 100vh; }
.theory-library { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(44px, 8vw, 150px); width: min(1440px, calc(100% - 96px)); min-height: 100vh; margin: 0 auto; padding: 54px 0 0; }
.paper-sidebar { align-self: start; padding-top: 18px; }
.paper-sidebar-label { margin: 0 0 20px; color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .075em; text-transform: uppercase; }
.paper-list { display: grid; gap: 3px; border-top: 1px solid #e6e6e6; }
.paper-selector { width: 100%; padding: 16px 14px 16px 18px; color: #626262; background: transparent; border: 0; border-left: 1px solid transparent; cursor: pointer; font-family: var(--sans); text-align: left; transition: color .16s ease, border-color .16s ease; }
.paper-selector:hover { color: #252525; }
.paper-selector.is-active { color: #242424; border-left-color: #242424; }
.paper-selector:focus-visible { outline: 1px solid #242424; outline-offset: -1px; }
.paper-selector span { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.paper-selector small { display: block; margin-top: 6px; color: #7b7b7b; font-size: 12px; font-weight: 400; line-height: 1.45; }
.paper-sidebar-note { margin: 48px 0 0 18px; color: #8b8b8b; font-family: var(--mono); font-size: 11px; letter-spacing: .055em; line-height: 1.65; text-transform: uppercase; }
.paper-reader-shell { min-width: 0; padding: 18px 0 120px; }
.native-paper { max-width: 820px; color: #3d3d3d; font-family: var(--sans); font-size: 17px; font-weight: 400; line-height: 1.75; }
.paper-heading { margin: 0 0 78px; padding: 0; text-align: left; border: 0; }
.paper-heading .label { display: block; margin: 0 0 22px; }
.paper-heading h1 { max-width: 780px; margin: 0; color: #252525; font-family: var(--sans); font-size: clamp(36px, 4vw, 54px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.paper-heading h1 + p { max-width: 670px; margin: 18px 0 0; color: #5e5e5e; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.015em; line-height: 1.45; }
.paper-heading .paper-author { margin: 24px 0 0; color: #454545; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .06em; line-height: 1.45; text-transform: uppercase; }
.native-paper h1, .native-paper h2, .native-paper h3 { color: #292929; font-family: var(--sans); font-weight: 500; letter-spacing: -.025em; }
.native-paper h1 { margin: 92px 0 27px; font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }
.native-paper h2 { margin: 72px 0 22px; font-size: clamp(25px, 2.45vw, 32px); line-height: 1.22; }
.native-paper h3 { margin: 42px 0 16px; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
.native-paper p { max-width: 760px; margin: 0 0 23px; }
.native-paper ol, .native-paper ul { max-width: 760px; margin: 0 0 26px; padding-left: 1.35em; }
.native-paper li { margin: 0 0 10px; }
.native-paper a { color: #303030; text-decoration-color: #a9a9a9; text-underline-offset: 3px; }
.native-paper blockquote { max-width: 740px; margin: 30px 0; padding-left: 22px; color: #585858; border-left: 1px solid #b9b9b9; }
.native-paper .thesis, .native-paper .definition { max-width: 740px; margin: 31px 0; padding: 0 0 0 22px; color: #303030; border-left: 1px solid #737373; font-weight: 500; }
.native-paper .thesis p, .native-paper .definition p { margin: 0; }
.native-paper .definition .label { color: #616161; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.native-paper .keywords { color: #686868; font-size: 14px; line-height: 1.65; }
.native-paper math { font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", serif; }
.native-paper math[display="block"], .native-paper .math.display { overflow-x: auto; max-width: 100%; margin: 30px 0; text-align: center; }
.native-paper hr { display: none; }

.feature-link { display: block; max-width: 730px; margin: 0 auto; padding: 0 0 86px; text-decoration: none; }
.feature-link .label { display: block; margin-bottom: 18px; }
.feature-link h2 { margin: 0; color: #262626; font-size: clamp(31px, 3.3vw, 43px); font-weight: 500; letter-spacing: -.035em; line-height: 1.14; }
.feature-link p { max-width: 650px; margin: 17px 0 0; color: #555; font-size: 18px; line-height: 1.62; }
.feature-link strong { display: inline-block; margin-top: 18px; color: #333; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .055em; text-transform: uppercase; }
.feature-link:hover h2, .feature-link:hover strong { color: var(--blue); }

.product-hero { min-height: 0; padding: 118px 0 84px; text-align: center; }
.product-logo { display: block; width: 220px; height: auto; margin: 0 auto 35px; }
.product-kicker { margin: 0 0 29px; }
.product-hero h1 { max-width: 790px; margin: 0 auto; color: #252525; font-size: clamp(38px, 4.8vw, 63px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.product-hero p:not(.product-kicker) { max-width: 700px; margin: 37px auto 0; color: #4f4f4f; font-size: clamp(18px, 1.7vw, 21px); font-weight: 400; line-height: 1.58; }
.product-visit { display: inline-block; margin-top: 29px; color: #292929; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .065em; text-decoration: none; text-transform: uppercase; }
.product-visit:hover { color: var(--blue); }
.product-visit span { padding-left: 4px; }
.settle .product-hero h1 { color: var(--deep-blue); }

/* Conate follows the same editorial white field as the rest of the site. */
.conate { background: #fff; color: var(--ink); }
.conate .product-kicker { color: var(--muted); }
.conate .product-hero h1, .conate .theory-card h2 { color: #252525; }
.conate .product-hero p, .conate .theory-card p { color: #4f4f4f; }
.conate-wordmark { width: min(232px, 55vw); margin-bottom: 31px; }

.poem { width: 100%; margin-right: auto; margin-left: auto; padding: 45px 0 130px; }
.poem-layout { display: block; }
.poem-title { width: min(1400px, calc(100vw - 96px)); margin: 0 auto 74px; text-align: center; }
.poem-title .label { display: block; margin: 0 0 22px; }
.poem-title h2 { margin: 0; font-size: clamp(24px, 2.1vw, 34px); font-weight: 500; letter-spacing: -.025em; line-height: 1.16; }
.poem-copy { display: flex; align-items: center; flex-direction: column; width: 100%; max-width: 640px; margin-right: auto; margin-left: auto; text-align: center; }
.stanza { width: 100%; margin: 0 0 45px; padding: 0; color: #3f3f3f; font-size: clamp(17px, 1.55vw, 20px); font-weight: 400; line-height: 1.68; text-align: center; white-space: pre-line; }
.stanza:last-child { margin-bottom: 0; }
.stanza strong { color: #292929; font-family: var(--sans); font-size: 1em; font-weight: 500; }

.site-footer { padding: 42px 0 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { color: var(--soft); }
.footer-links { display: flex; gap: 25px; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .header-inner { width: min(100% - 40px, 1320px); height: 82px; }
  .brand-mark img { height: 56px; max-width: 224px; }
  .site-nav { gap: clamp(14px, 3.3vw, 32px); }
  .site-nav a { font-size: clamp(11px, 1.9vw, 15px); }
  .page-top { padding-top: 82px; }
  .theory-library { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; width: min(100% - 48px, 1100px); padding-top: 36px; }
  .paper-reader-shell { padding-top: 12px; }
}

@media (max-width: 620px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 58px 38px; width: calc(100% - 32px); height: 108px; padding: 6px 0; }
  .brand-mark { position: static; align-self: center; justify-self: center; transform: none; }
  .brand-mark img { height: 42px; max-width: 166px; }
  .header-inner nav { width: 100%; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0; }
  .site-nav a { display: block; padding: 10px 0; font-size: 10px; letter-spacing: .025em; }
  .header-note { display: none; }
  .page-top { padding-top: 108px; }
  .template-home canvas { width: 78vw; height: 78vw; }
  .theory-library { display: block; width: min(100% - 28px, 820px); padding-top: 26px; }
  .paper-sidebar { padding-top: 0; }
  .paper-sidebar-label { margin-bottom: 12px; }
  .paper-list { grid-template-columns: 1fr 1fr; gap: 0; }
  .paper-selector { min-height: 98px; padding: 12px; border-top: 1px solid #e6e6e6; border-left: 0; }
  .paper-selector + .paper-selector { border-left: 1px solid #e6e6e6; }
  .paper-selector.is-active { border-top-color: #242424; }
  .paper-selector span { font-size: 14px; }
  .paper-selector small { font-size: 10px; }
  .paper-sidebar-note { display: none; }
  .paper-reader-shell { margin-top: 28px; padding-top: 0; }
  .native-paper { font-size: 16px; line-height: 1.7; }
  .paper-heading { margin-bottom: 55px; }
  .native-paper h1 { margin-top: 70px; }
  .native-paper h2 { margin-top: 56px; }
  .shell { width: min(100% - 36px, 820px); }
  .intro { padding: 82px 0 70px; }
  .intro .label { margin-bottom: 27px; }
  .statement { padding: 52px 0 80px; }
  .index-item, .theory-card { padding-bottom: 61px; }
  .systems-title { margin-bottom: 52px; }
  .product-hero { padding: 84px 0 70px; }
  .product-logo { width: 184px; margin-bottom: 27px; }
  .poem { padding: 26px 0 88px; }
  .poem-title { width: min(100% - 36px, 1400px); }
  .poem-title { margin-bottom: 56px; }
  .stanza { margin-bottom: 38px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 1200px) {
  .poem-title h2 { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
