:root {
  color-scheme: light;
  --paper: #f4efe8;
  --paper-deep: #ebe2d8;
  --surface: #fbf8f3;
  --ink: #1a1b19;
  --ink-soft: #2b2c29;
  --muted: #68635d;
  --line: rgba(26, 27, 25, 0.2);
  --line-strong: rgba(26, 27, 25, 0.42);
  --accent: #c6532f;
  --accent-soft: #e8b5a2;
  --white: #fffdf9;
  --surface-strong: #1a1b19;
  --surface-strong-text: #fffdf9;
  --surface-strong-muted: rgba(255, 253, 249, 0.67);
  --surface-strong-line: rgba(255, 253, 249, 0.15);
  --shadow: 0 25px 60px rgba(45, 34, 24, 0.15);
  --shell: min(1180px, calc(100% - 48px));
  --radius-card: 18px;
  --radius-control: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("assets/paper-texture.png") center / 720px auto;
  content: "";
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.brand,
.nav-shell {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-height: 42px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-shell {
  gap: 16px;
}

.nav-shell a {
  min-height: 34px;
  padding: 8px 9px;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-shell a:hover,
.nav-shell a:focus-visible {
  color: var(--ink);
  background: var(--paper-deep);
}

.nav-shell a:active {
  transform: translateY(1px);
}

.nav-shell .nav-repo {
  background: var(--surface-strong);
  color: var(--surface-strong-text);
}

.nav-shell .nav-repo:hover,
.nav-shell .nav-repo:focus-visible {
  background: var(--ink-soft);
  color: var(--surface-strong-text);
}

.hero {
  display: grid;
  min-height: calc(100dvh - 86px);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-top: 64px;
  padding-bottom: 94px;
}

.hero > * {
  min-width: 0;
}

.eyebrow,
.feature-kicker,
.proof-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 {
  max-width: 9ch;
  margin-bottom: 28px;
  font-size: clamp(4.25rem, 7.2vw, 6.8rem);
  font-weight: 850;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lede {
  max-width: 33rem;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.15;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button-primary {
  background: var(--surface-strong);
  color: var(--surface-strong-text);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ink-soft);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface);
}

.command-bar {
  display: flex;
  width: min(100%, 510px);
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-control);
  background: var(--surface-strong);
  color: var(--surface-strong-text);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.command-bar:hover {
  background: var(--ink-soft);
  box-shadow: 0 9px 22px rgba(26, 27, 25, 0.18);
}

.command-bar:active {
  transform: translateY(1px) scale(0.99);
}

.command-bar:disabled {
  cursor: wait;
  opacity: 0.6;
}

.prompt-sign {
  color: var(--accent-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
}

.command-bar code {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-label {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--surface-strong-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-note {
  margin: 10px 0 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  padding: 26px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-deep);
}

.paper-texture {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.proof-card {
  position: relative;
  z-index: 1;
  width: min(100%, 570px);
  min-width: 0;
  margin: 52px auto 0;
  padding: 24px 25px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-card-topline,
.proof-card-footer,
.boundary-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.proof-card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 50px 0 25px;
}

.proof-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.proof-status {
  margin: 0;
  color: var(--accent);
  font-size: clamp(4.7rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.76;
}

.proof-seal {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.proof-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.proof-details div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.proof-details dt,
.proof-details dd {
  margin: 0;
  font-size: 13px;
}

.proof-details dt {
  color: var(--muted);
}

.proof-details dd {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-card-footer {
  padding-top: 17px;
  font-size: 9px;
}

figcaption {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-align: left;
}

.setup-section {
  padding-top: 54px;
  padding-bottom: 118px;
  border-top: 1px solid var(--line);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.setup-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.setup-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.setup-label {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.setup-card h3 {
  margin: 9px 0 0;
  font-size: 27px;
  font-weight: 800;
}

.setup-card > p {
  max-width: 34rem;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.setup-command,
.inline-command {
  background: var(--surface-strong);
  color: var(--surface-strong-text);
}

.setup-command {
  margin: 0;
  padding: 16px 17px;
  overflow: auto;
  border-radius: var(--radius-control);
}

.setup-command code {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface-strong-text);
}

.copy-button:active {
  transform: translateY(1px) scale(0.98);
}

.setup-note {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.setup-note > div:first-child p:last-child {
  max-width: 28rem;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.inline-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-control);
}

.inline-command code {
  min-width: 0;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.5;
}

.inline-command .copy-button {
  min-height: 100%;
  border-color: var(--surface-strong-line);
  border-width: 0 0 0 1px;
  border-radius: 0;
  color: var(--surface-strong-text);
}

.inline-command .copy-button:hover,
.inline-command .copy-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
}

.signal-section,
.method-section,
.schema-section {
  padding-top: 118px;
  padding-bottom: 118px;
}

.section-intro {
  max-width: 870px;
}

.section-intro h2 {
  max-width: 10ch;
  margin: 12px 0 22px;
  font-size: clamp(3.25rem, 6.5vw, 6.2rem);
  font-weight: 850;
  text-wrap: balance;
}

.section-intro > p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.signal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(34px, 8vw, 120px);
  align-items: start;
  margin-top: 62px;
}

.signal-feature {
  min-height: 330px;
  padding: 34px 34px 30px;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
  color: var(--surface-strong-text);
  box-shadow: 0 20px 44px rgba(26, 27, 25, 0.16);
}

.signal-feature .feature-kicker {
  margin-bottom: 28px;
}

.signal-feature h3 {
  max-width: 9ch;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
}

.signal-feature > p:not(.feature-kicker) {
  max-width: 31rem;
  margin-bottom: 31px;
  color: var(--surface-strong-muted);
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--surface-strong-text);
  font-size: 13px;
  font-weight: 750;
}

.text-link span {
  color: var(--accent-soft);
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.handoff-list,
.method-list,
.privacy-aside ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.handoff-list {
  border-top: 1px solid var(--line-strong);
}

.handoff-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.list-number,
.list-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.list-number {
  color: var(--accent);
}

.list-note {
  text-align: right;
}

.method-section {
  border-top: 1px solid var(--line);
}

.narrow-intro {
  max-width: 680px;
}

.narrow-intro h2 {
  max-width: 8ch;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 70px;
  border-top: 1px solid var(--line-strong);
}

.method-list li {
  min-height: 260px;
  padding: 20px 26px 18px 0;
  border-bottom: 1px solid var(--line);
}

.method-list li + li {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.method-number {
  display: block;
  margin-bottom: 43px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.method-list h3 {
  margin-bottom: 13px;
  font-size: 27px;
  font-weight: 800;
}

.method-list p {
  max-width: 19rem;
  min-height: 72px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.method-list code {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.schema-section {
  border-top: 1px solid var(--line);
}

.schema-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.9fr);
  gap: clamp(36px, 8vw, 130px);
  align-items: start;
  margin-top: 58px;
}

.boundary-panel {
  padding: 28px 28px 23px;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
  color: var(--surface-strong-text);
  box-shadow: 0 20px 44px rgba(26, 27, 25, 0.14);
}

.boundary-heading {
  padding-bottom: 22px;
  color: var(--accent-soft);
}

.boundary-row {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-strong-line);
}

.boundary-row code {
  overflow: hidden;
  color: var(--surface-strong-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boundary-arrow {
  color: var(--accent-soft);
  text-align: center;
}

.boundary-caption {
  padding-top: 22px;
  color: var(--surface-strong-muted);
  font-size: 12px;
}

.privacy-aside {
  padding-top: 5px;
}

.privacy-aside .feature-kicker {
  margin-bottom: 22px;
}

.privacy-aside li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.privacy-aside li::before {
  display: inline-block;
  width: 25px;
  color: var(--accent);
  content: "×";
  font-weight: 800;
}

.closing-section {
  display: flex;
  min-height: 330px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 42px;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
  color: var(--surface-strong-text);
}

.closing-section .eyebrow {
  margin-bottom: 25px;
}

.closing-section h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 850;
}

.button-light {
  flex: 0 0 auto;
  background: var(--surface-strong-text);
  color: var(--surface-strong);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--accent-soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 32px;
  padding-bottom: 35px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.site-footer strong {
  color: var(--ink);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

html.js body.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

html.js body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.js body.js-ready .reveal-late.is-visible {
  transition-delay: 100ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #171817;
    --paper-deep: #242522;
    --surface: #232421;
    --ink: #f1eee8;
    --ink-soft: #d9d4ca;
    --muted: #a7a198;
    --line: rgba(241, 238, 232, 0.17);
    --line-strong: rgba(241, 238, 232, 0.38);
    --accent: #ee7953;
    --accent-soft: #f1b7a2;
    --white: #f8f5ee;
    --surface-strong: #0f100f;
    --surface-strong-text: #f1eee8;
    --surface-strong-muted: rgba(241, 238, 232, 0.68);
    --surface-strong-line: rgba(241, 238, 232, 0.15);
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.32);
  }

  body::before {
    opacity: 0.035;
    filter: invert(1);
    mix-blend-mode: screen;
  }

  .button-secondary {
    background: transparent;
  }

  .paper-texture {
    opacity: 0.06;
    filter: invert(1);
    mix-blend-mode: screen;
  }

  .proof-card .proof-card-footer,
  .boundary-panel .boundary-heading,
  .boundary-panel .boundary-arrow {
    color: var(--accent);
  }

  .proof-card {
    border-color: var(--line);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 92px;
  }

  h1 {
    max-width: 7ch;
  }

  .hero-visual {
    min-height: 470px;
    padding-inline: 16px;
  }

  .paper-texture {
    right: 0;
    width: 100%;
  }

  .setup-grid,
  .setup-note,
  .signal-layout,
  .schema-layout {
    grid-template-columns: 1fr;
  }

  .method-list {
    grid-template-columns: 1fr;
  }

  .method-list li,
  .method-list li + li {
    min-height: 0;
    padding: 22px 0 28px;
    border-left: 0;
  }

  .method-list li + li {
    border-top: 1px solid var(--line);
  }

  .method-list p {
    min-height: 0;
  }

  .closing-section {
    min-height: 390px;
    align-items: start;
    flex-direction: column;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .site-header {
    padding-top: 18px;
  }

  .nav-shell a {
    padding-inline: 11px;
    font-size: 12px;
  }

  .nav-shell a:nth-child(2),
  .nav-shell a:nth-child(3) {
    display: none;
  }

  .hero {
    padding-top: 76px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(4.2rem, 20vw, 6rem);
  }

  .hero-visual {
    min-height: 408px;
  }

  .setup-section {
    padding-top: 42px;
    padding-bottom: 82px;
  }

  .setup-card {
    padding: 21px;
  }

  .setup-card-head {
    align-items: end;
  }

  .setup-card h3 {
    font-size: 24px;
  }

  .setup-note {
    gap: 17px;
  }

  .inline-command {
    grid-template-columns: 1fr;
  }

  .inline-command .copy-button {
    min-height: 42px;
    border-width: 1px 0 0;
    text-align: left;
  }

  .proof-card {
    padding: 20px 18px 16px;
  }

  .proof-card-heading {
    padding-top: 39px;
  }

  .proof-details div {
    grid-template-columns: 0.58fr 1.42fr;
    gap: 8px;
  }

  .proof-details dt,
  .proof-details dd {
    font-size: 12px;
  }

  .signal-section,
  .method-section,
  .schema-section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .signal-feature,
  .boundary-panel,
  .closing-section {
    padding: 26px 23px;
  }

  .signal-feature h3 {
    font-size: 3rem;
  }

  .handoff-list li {
    grid-template-columns: 35px 1fr auto;
    gap: 10px;
    font-size: 16px;
  }

  .boundary-row {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  }

  .boundary-row code {
    font-size: 11px;
  }

  .closing-section {
    min-height: 370px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  html.js body.js-ready .reveal,
  html.js body.js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
