:root {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #e8ebec;
  background: #111619;
  --line: #354147;
  --muted: #a5b1b6;
  --accent: #a4d8d2;
  --bad: #f4a4a4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
select,
input {
  font: inherit;
}
button,
a,
summary,
select,
input {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
button {
  cursor: pointer;
  border: 1px solid #59676e;
  background: transparent;
  color: inherit;
  padding: 12px 18px;
  border-radius: 5px;
  font-size: 14px;
}
button:hover {
  background: #2b353b;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  background: #e8ebec;
  color: #111619;
  border-color: #e8ebec;
}
.primary:hover {
  background: #b7c6ce;
}
main,
.mast {
  max-width: 1440px;
  margin: auto;
}
.mast {
  display: flex;
  justify-content: space-between;
  padding: 25px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.mast a {
  text-decoration: none;
}
.mast span {
  color: var(--muted);
}
main {
  padding: 0 40px;
}
.intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 72px 0 60px;
}
.edition {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.065em;
  margin: 0;
}
.intro-copy > p:first-child {
  font-size: 28px;
  line-height: 1.25;
  margin-top: 0;
}
.sub {
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
  font-size: 16px;
}
.jump {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
}
.disclosure {
  border-block: 1px solid var(--line);
  padding: 15px 0;
  color: var(--muted);
  font-size: 12px;
}
.workbench {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.experiments {
  padding: 28px 24px 30px 0;
  border-right: 1px solid var(--line);
}
.experiments h2 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 20px;
}
.scenario {
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  padding: 14px 13px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.scenario span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.scenario[aria-pressed='true'] {
  border-left-color: var(--accent);
  background: #263438;
}
.legend {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 25px 10px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.experiment {
  padding: 30px 0 32px 32px;
  min-width: 0;
}
.experiment-head h2 {
  font-size: 34px;
  letter-spacing: -0.035em;
  font-weight: 450;
  margin: 0 0 12px;
}
.experiment-head p:last-child {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 740px;
}
.experiment-head .edition {
  margin-bottom: 12px;
}
.config {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: end;
  margin-top: 25px;
}
.config label {
  font-size: 12px;
  color: var(--muted);
}
select,
input {
  display: block;
  width: 100%;
  background: #1e272c;
  color: #fff;
  border: 1px solid #56636a;
  padding: 11px 12px;
  border-radius: 4px;
  margin-top: 8px;
}
select {
  font-size: 14px;
}
.config p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.policy {
  border-block: 1px solid var(--line);
  margin-top: 24px;
  font-size: 13px;
}
.policy summary {
  padding: 16px 0;
}
.policy summary span {
  float: right;
  color: var(--muted);
}
summary {
  cursor: pointer;
}
.inputs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 5px 0 16px;
}
.inputs label {
  font-size: 11px;
  color: var(--muted);
}
input {
  min-width: 0;
}
.policy p {
  color: var(--muted);
  font-size: 12px;
}
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
}
.controls span {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.controls button {
  padding: 10px 13px;
}
#error {
  color: var(--bad);
  margin: 0;
}
#error:empty {
  display: none;
}
.architecture {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr 18px 1fr;
  align-items: center;
  gap: 5px;
  margin: 10px 0 22px;
}
.architecture > div {
  padding: 20px 12px;
  min-height: 125px;
  border: 1px solid #435157;
  border-radius: 9px;
  background: #182126;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.architecture small,
.architecture span {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.architecture strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 9px 0;
}
.architecture b {
  font-weight: 400;
  text-align: center;
  color: #6c7d85;
}
.architecture .active {
  border-color: var(--accent);
  background: #25403e;
}
.architecture .unsafe {
  border-color: var(--bad);
  background: #492d32;
}
#outcome {
  padding: 18px 20px;
  background: #243135;
  border-left: 3px solid #6c848e;
  font-size: 16px;
  line-height: 1.5;
}
#outcome.safe {
  border-color: var(--accent);
  background: #203b37;
}
#outcome.unsafe {
  border-color: var(--bad);
  background: #472c31;
}
.investigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin-top: 20px;
}
.investigation h3 {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.investigation h3 span {
  color: var(--muted);
  font-size: 11px;
}
.trace {
  border-right: 1px solid var(--line);
}
.trace ol {
  list-style: none;
  padding: 8px;
  margin: 0;
}
.trace button {
  border: 0;
  border-radius: 3px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 10px;
}
.trace button[aria-pressed='true'] {
  background: #303d44;
}
.trace time {
  font-size: 11px;
  color: var(--muted);
}
.trace li[data-type='unsafe'] button {
  color: var(--bad);
}
.inspector {
  min-width: 0;
}
#evidence {
  padding: 16px;
  font-size: 12px;
  line-height: 1.5;
  min-height: 180px;
}
#evidence > p {
  color: var(--muted);
}
.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 5px;
  margin-bottom: 13px;
}
.check small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.pass {
  color: var(--accent);
}
.fail {
  color: var(--bad);
}
.inspector details {
  padding: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.7;
  color: #becbd1;
}
.lesson {
  font-size: 15px;
  line-height: 1.6;
  max-width: 750px;
  margin-bottom: 0;
  padding-left: 16px;
  border-left: 1px solid var(--accent);
}
.comparison {
  padding: 68px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 450;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.section-heading h2 {
  margin: 0;
}
.comparison > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 780px;
  margin: 22px 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 400;
  background: #1b252a;
}
td button {
  padding: 0;
  border: 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: left;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}
.deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 55px 0;
  border-block: 1px solid var(--line);
}
.deep-dive p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 580px;
}
.code {
  padding: 28px;
  background: #1b252a;
  border-radius: 9px;
  font-size: 13px;
  margin: 0;
  align-self: center;
}
.limits {
  padding: 60px 0;
}
.limits h2 {
  font-size: 30px;
}
.limits details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  max-width: 950px;
}
.limits summary {
  font-size: 16px;
}
.limits p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 850px;
}
.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  padding-bottom: 60px;
}
.sources h2 {
  grid-column: 1/-1;
  font-size: 30px;
}
.sources a {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.sources strong {
  display: block;
  font-weight: 500;
  font-size: 16px;
}
.sources span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 40px;
  font-size: 12px;
  color: var(--muted);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 1000px) {
  .workbench {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .experiment {
    padding-left: 20px;
  }
  .config {
    grid-template-columns: 1fr;
  }
  .architecture {
    grid-template-columns: 1fr 14px 1fr;
  }
  .architecture > b:nth-of-type(2) {
    display: none;
  }
  .investigation {
    grid-template-columns: 1fr;
  }
  .trace {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  main {
    padding: 0 18px;
  }
  .mast {
    padding: 20px 18px;
  }
  .mast span {
    display: none;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 32px;
  }
  h1 {
    font-size: 56px;
  }
  .intro-copy > p:first-child {
    font-size: 23px;
  }
  .intro-copy .sub {
    font-size: 14px;
  }
  .workbench {
    display: block;
  }
  .experiments {
    border: 0;
    padding: 22px 0 8px;
  }
  #scenarios {
    display: flex;
    overflow: auto;
    gap: 6px;
    padding-bottom: 8px;
  }
  .scenario {
    min-width: 180px;
    width: 180px;
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .scenario[aria-pressed='true'] {
    border-color: var(--accent);
  }
  .legend {
    display: none;
  }
  .experiment {
    padding: 18px 0;
  }
  .experiment-head h2 {
    font-size: 30px;
  }
  .inputs {
    grid-template-columns: 1fr 1fr;
  }
  .controls span {
    order: 5;
    margin-left: 0;
    width: 100%;
  }
  .architecture > div {
    padding: 16px 12px;
    min-height: 115px;
  }
  .section-heading {
    display: block;
  }
  .section-heading button {
    margin-top: 20px;
  }
  .comparison {
    padding: 42px 0;
  }
  td,
  th {
    padding: 12px 10px;
    min-width: 100px;
  }
  .deep-dive {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0;
  }
  .code {
    font-size: 11px;
    padding: 20px;
  }
  .sources {
    grid-template-columns: 1fr;
  }
  .limits {
    padding: 40px 0;
  }
  footer {
    flex-direction: column;
  }
  .disclosure {
    line-height: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: #e8ebec;
  color: #111619;
  padding: 16px;
}
.skip:focus {
  top: 16px;
}
.intro-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.framework {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 60px;
  scroll-margin-top: 24px;
}
.framework-heading > p:not(.edition) {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
  font-size: 15px;
}
.framework-heading h2 {
  font-size: clamp(28px, 3.3vw, 42px);
}
.framework-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 24px;
}
.framework-terminal {
  background: #1b252a;
  border: 1px solid #435157;
  border-radius: 8px;
  padding: 24px;
  align-self: center;
  min-width: 0;
}
.framework-terminal pre {
  font-size: 12px;
  margin: 22px 0;
}
.framework-terminal p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.framework-terminal .terminal-label {
  color: #e8ebec;
}
.framework-path {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1fr;
  gap: 32px;
}
.framework-path > div {
  border-top: 1px solid #64747c;
  padding-top: 20px;
}
.framework-path small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.framework-path strong {
  display: block;
  margin: 12px 0;
  font-size: 18px;
  font-weight: 500;
}
.framework-path p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 350px;
  margin-bottom: 0;
}
.framework-limit {
  grid-column: 1/-1;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  padding-top: 4px;
}
#share-panel {
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 14px;
}
#share-panel label {
  font-size: 12px;
  color: var(--muted);
}
#share-url {
  font-size: 12px;
}
#share-status,
#link-warning {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
#link-warning:empty {
  display: none;
}
#share-panel[hidden] {
  display: none;
}
@media (max-width: 800px) {
  .framework {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .framework-path {
    gap: 20px;
  }
}
@media (max-width: 650px) {
  .framework {
    padding: 32px 0;
  }
  .framework-path {
    grid-template-columns: 1fr;
  }
  .framework-terminal {
    padding: 18px;
  }
  .framework-terminal pre {
    font-size: 11px;
  }
  .framework-path p {
    max-width: none;
  }
}
