@font-face {
  font-family: CLU Mono;
  src: url("/media/fonts/CascadiaMono.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 280px;
  background: var(--bg);
  scroll-behavior: smooth;
  overscroll-behavior: auto;
}
/* Set only by the same-origin phone chapter. The standalone page still scrolls. */
html[data-clu-parent-scroll],
html[data-clu-parent-scroll] body {
  overflow-y: hidden;
  scroll-behavior: auto;
}
body {
  position: relative;
  isolation: isolate;
  --bg: #101113;
  --ink: #eeeae4;
  --muted: #989895;
  --line: #ffffff1a;
  --accent: #ff9d58;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.clu-diamond-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
  filter: blur(1.8px);
}
.clu-diamond-streams {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
}
body > header,
body > .page {
  position: relative;
  z-index: 1;
}

button,
a,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  cursor: wait;
}
h1,
h2,
p {
  margin: 0;
}
button svg,
a svg {
  width: 17px;
  height: 17px;
}
em {
  font-style: normal;
}
small,
.eyebrow {
  font-family:
    CLU Mono,
    monospace;
}
header {
  height: 84px;
  max-width: 1480px;
  margin: auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 15px;
  align-items: center;
}
.brand strong {
  font-size: 28px;
  letter-spacing: -2px;
  font-weight: 650;
}
.brand .clu-original-mark {
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 24px;
  background: currentColor;
  mask: url("/clu-studies/clu-wordmark.svg") center / contain no-repeat;
}
html[data-clu-logo-owner="parent"] .clu-original-mark {
  visibility: hidden;
}
.brand span {
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1.5px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
  max-width: 120px;
}
.header-right {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 11px;
}
.header-right > span {
  color: var(--muted);
  font-family:
    CLU Mono,
    monospace;
  font-size: 9px;
  letter-spacing: 1px;
}
.repo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page {
  width: min(1384px, 100%);
  min-height: calc(100svh - 84px);
  padding: 50px 48px 140px;
  margin: auto;
  animation: page-in 300ms ease-out both;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
h1 {
  font-size: clamp(50px, 6.8vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 520;
}
h1 em {
  color: var(--accent);
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 7px;
  background: var(--accent);
  color: #171511;
  font-size: 12px;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: center;
  min-height: calc(100svh - 290px);
}

button {
  transition:
    background 150ms,
    color 150ms,
    transform 150ms;
}
button:active {
  transform: translateY(1px);
}
/* 01 / PERIMETER — an architectural permission boundary. */

/* 02 / PROOF — a warm editorial page with the real change in focus. */

/* 03 / TRACE — a cold, precise decision observatory. */

/* 04 / CONSENT — human approval, expressed as a quiet paper object. */

/* 05 / POLICY — a modular, live policy instrument. */
body[data-concept="policy"] {
  --bg: #1a1510;
  --ink: #f2e9dd;
  --muted: #ab9680;
  --line: #d0b18b24;
  --accent: #ff9a38;
  background-image:
    linear-gradient(#ff9a3804 1px, transparent 1px),
    linear-gradient(90deg, #ff9a3804 1px, transparent 1px);
  background-size: 48px 48px;
}

body[data-concept="policy"] > .page {
  padding-bottom: 54px;
}
.policy-page .split {
  gap: 7vw;
}
@media (min-width: 701px) {
  .policy-page .split {
    grid-template-columns: repeat(2, minmax(0, 440px));
    justify-content: space-between;
  }
}
.policy-copy h1 {
  font-size: clamp(54px, 6.7vw, 88px);
  max-width: none;
  letter-spacing: -0.02em;
  word-spacing: 0.035em;
  line-height: 1.08;
}
.policy-copy,
.policy-board {
  min-width: 0;
  width: 100%;
}
.policy-description {
  max-width: 44ch;
  width: 100%;
  margin-top: 25px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.policy-description p + p {
  margin-top: 15px;
}
.policy-github {
  margin-top: 26px;
}
body[data-concept="policy"] .brand strong {
  letter-spacing: -0.5px;
}

.policy-copy .eyebrow::before {
  border-radius: 0;
}

.policy-board {
  border: 1px solid #c4a07836;
  background: #241b13;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px #0002;
}
.policy-top {
  display: flex;
  justify-content: space-between;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
  font:
    9px CLU Mono,
    monospace;
  letter-spacing: 1px;
  color: #c7aa8c;
}
.policy-options {
  padding: 23px;
}
.policy-options > label {
  display: block;
  font-size: 11px;
  color: #bb9e82;
  margin-bottom: 13px;
}
.policy-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d0ae8925;
  border-radius: 7px;
  padding: 4px;
  gap: 3px;
}
.policy-modes button {
  min-height: 41px;
  background: none;
  color: #bba184;
  border-radius: 4px;
  font-size: 10px;
  padding: 7px 4px;
  line-height: 1.4;
}
.policy-modes button[aria-pressed="true"] {
  color: #291a0f;
  background: #ff9a38;
}
.policy-options .policy-protect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 23px 0;
  font-size: 11px;
  color: #cfb69b;
}
.policy-protect input {
  appearance: none;
  width: 33px;
  height: 19px;
  background: #886342;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.policy-protect input::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #321f10;
  transition: transform 180ms;
}
.policy-protect input:checked {
  background: #ff9a38;
}
.policy-protect input:checked::after {
  transform: translateX(14px);
}
.policy-code {
  font:
    10px/2.1 CLU Mono,
    monospace;
  border: 1px solid #d0af8a20;
  border-radius: 6px;
  padding: 15px;
  background: #1c140e;
  color: #bca17d;
}
.policy-code > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.policy-code b {
  font-weight: 400;
  color: #e7c09a;
}
.policy-try {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
}
.policy-try button {
  background: transparent;
  color: #ff9a38;
  min-height: 36px;
  font-size: 11px;
  text-align: left;
  padding: 0;
}
.policy-try output {
  font:
    8px CLU Mono,
    monospace;
  color: #e2bd96;
  text-align: right;
}
.policy-bottom {
  padding: 13px 23px;
  background: #ff9a3809;
  border-top: 1px solid #ff9a3820;
  color: #a98a69;
  font:
    8px CLU Mono,
    monospace;
  letter-spacing: 1px;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  .page {
    padding-top: 70px;
  }
  .split {
    gap: 100px;
  }
}
@media (max-width: 1000px) {
  header {
    padding: 0 30px;
  }
  .page {
    padding: 40px 30px 135px;
  }
  .split {
    gap: 35px;
  }
  h1 {
    font-size: clamp(49px, 7vw, 75px);
  }
}
@media (max-width: 740px) {
  header {
    height: 70px;
    padding: 0 22px;
  }
  .brand strong {
    font-size: 26px;
  }
  .brand span {
    font-size: 7px;
    max-width: 98px;
  }
  .header-right > span {
    display: none;
  }
  .header-right {
    font-size: 10px;
  }
  .page {
    padding: 34px 22px 135px;
    min-height: calc(100svh - 70px);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 35px;
    min-height: 0;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 22px;
  }
  h1,
  .policy-copy h1 {
    font-size: clamp(51px, 10.8vw, 75px);
  }

  .policy-page .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .policy-copy h1 {
    max-width: 11ch;
  }

  .policy-options {
    padding: 20px;
  }
  .policy-options .policy-protect {
    min-height: 44px;
  }
  .policy-modes button {
    min-height: 44px;
  }
  .policy-code {
    font-size: 9px;
  }
  .policy-try output {
    font-size: 7px;
  }
}
@media (max-width: 360px) {
  header,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand span {
    display: none;
  }
}
/* The embedded phone policy is one composition beneath the floating menu.
   Keep natural document height so short viewports and enlarged text remain
   readable through the parent chapter's overflow fallback. */
@media (max-width: 740px) {
  html[data-clu-logo-owner="parent"] body[data-concept="policy"] > header {
    height: calc(108px + env(safe-area-inset-top, 0px));
    padding: calc(64px + env(safe-area-inset-top, 0px)) 16px 0;
  }
  html[data-clu-logo-owner="parent"] .brand,
  html[data-clu-logo-owner="parent"] .repo {
    min-height: 44px;
  }
  html[data-clu-logo-owner="parent"] .brand {
    gap: 10px;
  }
  html[data-clu-logo-owner="parent"] .brand span {
    display: block;
    padding-left: 10px;
    letter-spacing: 1px;
  }
  html[data-clu-logo-owner="parent"] .repo {
    gap: 8px;
    font-size: 11px;
  }
  html[data-clu-logo-owner="parent"] body[data-concept="policy"] > .page {
    min-height: calc(var(--clu-parent-height, 100svh) - 108px - env(safe-area-inset-top, 0px));
    display: flex;
    flex-direction: column;
    padding: 8px 16px max(10px, env(safe-area-inset-bottom, 0px));
  }
  html[data-clu-logo-owner="parent"] .policy-page .split {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: 0;
    gap: 10px;
  }
  html[data-clu-logo-owner="parent"] .policy-copy,
  html[data-clu-logo-owner="parent"] .policy-board {
    flex-shrink: 0;
  }
  html[data-clu-logo-owner="parent"] .policy-board {
    /* Spend spare height on the shape above, retaining natural overflow. */
    margin-top: auto;
  }
  html[data-clu-logo-owner="parent"] .policy-copy .eyebrow {
    font-size: 8px;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  html[data-clu-logo-owner="parent"] .policy-copy h1 {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.25em;
    max-width: none;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
  }
  html[data-clu-logo-owner="parent"] .policy-copy h1 br {
    display: none;
  }
  html[data-clu-logo-owner="parent"] .policy-description {
    max-width: none;
    margin-top: 8px;
    font-size: clamp(13px, calc(var(--clu-clock-height, 100svh) * 0.016), 14px);
    line-height: 1.4;
  }
  html[data-clu-logo-owner="parent"] .policy-description p + p {
    margin-top: 6px;
  }
  html[data-clu-logo-owner="parent"] .policy-github {
    min-height: 44px;
    margin-top: 8px;
    padding: 0 16px;
    font-size: 12.5px;
  }
  html[data-clu-logo-owner="parent"] .policy-top {
    padding: 6px 10px;
    font-size: 8.5px;
    line-height: 1.3;
    letter-spacing: 0.6px;
  }
  html[data-clu-logo-owner="parent"] .policy-options {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
  }
  html[data-clu-logo-owner="parent"] .policy-options > label {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.3;
  }
  html[data-clu-logo-owner="parent"] .policy-modes {
    padding: 0;
  }
  html[data-clu-logo-owner="parent"] .policy-modes button {
    min-height: 44px;
    padding: 5px 4px;
    font-size: 11.5px;
  }
  html[data-clu-logo-owner="parent"] .policy-options .policy-protect {
    min-height: 44px;
    margin: 0;
  }
  html[data-clu-logo-owner="parent"] .policy-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr);
    gap: 8px;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1.5;
  }
  html[data-clu-logo-owner="parent"] .policy-code > div {
    flex-direction: column;
    gap: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  html[data-clu-logo-owner="parent"] .policy-try {
    min-height: 44px;
    gap: 12px;
    padding-top: 0;
  }
  html[data-clu-logo-owner="parent"] .policy-try button {
    min-height: 44px;
    font-size: 12px;
    line-height: 1.3;
  }
  html[data-clu-logo-owner="parent"] .policy-try output {
    max-width: 45%;
    font-size: 9px;
    line-height: 1.4;
  }
  html[data-clu-logo-owner="parent"] .policy-bottom {
    padding: 6px 10px;
    font-size: 8px;
    line-height: 1.3;
    letter-spacing: 0.5px;
  }
}
@media (max-width: 740px) {
  html[data-clu-logo-owner="parent"][data-clu-compact-height] body[data-concept="policy"] > .page {
    padding-top: 6px;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-page .split {
    gap: 8px;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-copy .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-copy h1 {
    display: block;
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(24px, 6.67vw, 28px);
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-copy h1 br {
    display: initial;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-github {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    gap: 12px;
    margin-top: 0;
    padding-inline: 12px;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-description {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.3;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-options {
    padding-block: 6px;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-code {
    padding-block: 4px;
  }
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-top,
  html[data-clu-logo-owner="parent"][data-clu-compact-height] .policy-bottom {
    padding-block: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
