:root {
  color-scheme: light;
  --ink: #241633;
  --muted: #62586b;
  --purple: #632391;
  --pink: #b21e72;
  --line: #e7dfea;
  --soft: #f7f3fa;
  font: 16px/1.6 "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box }
body, figure, h1, h2, h3, p { margin: 0 }
a { color: var(--purple); text-underline-offset: .19em }
a:hover { color: var(--pink) }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px }
code, pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace }
p code { font-size: .86em; background: var(--soft); border-radius: .3em; padding: .12em .3em }
.site-header, footer { margin: auto; padding: 1.2rem max(5vw, calc((100% - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line) }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.14rem; font-weight: 760; letter-spacing: -.035em; color: var(--ink); text-decoration: none; white-space: nowrap }
.brand span { color: white; border-radius: .45rem; padding: .05em .32em; background: linear-gradient(115deg, var(--purple), var(--pink)) }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem }
nav a { color: var(--muted); font-size: .87rem; font-weight: 570; text-decoration: none }
main { max-width: 1240px; width: 90%; margin: auto }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); scroll-margin: 1.5rem }
.hero > figure { margin-top: 2rem; scroll-margin-top: 1rem }
.eyebrow { color: var(--purple); font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 720 }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; letter-spacing: -.045em }
h1 { margin: .9rem 0 1.4rem; font-size: clamp(2.65rem, 4.5vw, 4.15rem); font-weight: 740 }
h1 em { display: block; font-style: normal; color: var(--pink); background: linear-gradient(110deg, var(--purple), var(--pink)); background-clip: text; -webkit-text-fill-color: transparent }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); margin: .7rem 0 1.5rem }
h3 { font-size: 1.4rem; margin-bottom: .65rem }
p { color: var(--muted); overflow-wrap: break-word }
p + p { margin-top: .85rem }
figure { min-width: 0 }
video, .profiler img { display: block; width: 100%; height: auto; border-radius: .85rem; border: 1px solid var(--line) }
video { background: #1e142d; box-shadow: 0 18px 50px -30px #4c126a80 }
figcaption, .caption { color: var(--muted); font-size: .88rem; margin: .85rem 0 }
.film-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .7rem; font-size: .92rem }
#proof:not(:target) { display: none }
.actions { margin-top: 1.5rem; font-size: .92rem; font-weight: 630 }
.button { color: white; background: linear-gradient(115deg, var(--purple), #9a236f); padding: .65rem 1.1rem; border-radius: .4rem; text-decoration: none }
.button:hover { color: white; background: var(--purple) }
.trace { border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; margin: 1.6rem 0 1rem }
.trace-head, .exchange, .permission-change { max-width: none; margin: 0; padding: .8rem 1.1rem; font-size: .87rem }
.trace-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; background: #2a1a3c; color: white }
.trace-head code { background: none; font-size: 1em; padding: 0 }
.trace-head span { font-weight: 430; color: #e2d5ec }
.programmatic-trace summary { grid-template-columns: 1rem 1fr }
.programmatic-trace details:first-child { border-top: 0 }
.exchange { color: var(--ink); border-top: 1px solid var(--line) }
.exchange strong { color: var(--purple); margin-right: .5em }
.permission-change { margin: 0; color: #872351; background: #fcf1f6 }
details { border-top: 1px solid var(--line) }
summary { display: grid; align-items: center; grid-template-columns: 1rem 9.5rem 1fr auto; gap: .7rem; padding: .8rem 1rem; cursor: pointer }
summary:hover, details[open] summary { background: var(--soft) }
summary::-webkit-details-marker { display: none }
summary::before { content: '▸'; color: var(--purple) }
details[open] summary::before { content: '▾' }
summary code { color: var(--purple); font-weight: 650; font-size: .86rem }
summary span { font-size: .91rem; overflow-wrap: anywhere }
summary small { font-size: .78rem; font-weight: 600 }
.success { color: #30624c }
.denied { color: #a32a55 }
pre { overflow: auto; font-size: .87rem; line-height: 1.65 }
details pre, .command { margin: 0; padding: 1.1rem 1.5rem; color: #f6f1fa; background: #20142e }
.command { border-radius: .7rem; margin: 1.3rem 0; max-width: 80ch }
.structured-review pre { white-space: pre-wrap; overflow-wrap: anywhere }
.structured-review blockquote { margin: 1rem 1.5rem; padding-left: .8rem; border-left: 3px solid var(--purple) }
.field-handoff { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 1.2rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--purple); background: var(--soft) }
.field-handoff dt { font-size: .85rem; color: var(--muted) }
.field-handoff dd { margin: .2rem 0 0; overflow-wrap: anywhere }
.field-handoff dd strong { color: var(--purple) }
#quickstart blockquote { border-left: 3px solid var(--purple); margin: 1rem 0; padding: .3rem 1.2rem; max-width: 65ch; font-size: 1.08rem }
.profiler { padding-block: 1rem; scroll-margin-block: 1rem }
.profiler > a { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: .85rem }
.profiler img { min-width: 53rem; border: 0; border-radius: 0 }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(1rem, 3vw, 2rem); margin: 2rem 0 }
.steps article { border-top: 2px solid #c9a6d8; padding-top: .95rem }
.architecture { margin: 2rem auto 0; container-type: inline-size }
.diagram-view { display: block; overflow-x: auto }
.architecture img { display: block; width: 100%; min-width: 64rem; height: auto }
.diagram-hint { display: none; margin-bottom: .6rem; font-size: .9rem }
@container (max-width: 64rem) {
  .diagram-hint { display: block }
}
.decisions { display: grid; gap: 1.25rem }
.decisions article { display: grid; grid-template-columns: 1fr 2.2fr; gap: 2rem; padding: 1.15rem 0 0; border-top: 1px solid var(--line) }
.topic-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin: 1.5rem 0 }
.topic-cards article { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.2rem, 2.4vw, 2rem); border: 1px solid var(--line); border-radius: .85rem; background: linear-gradient(145deg, var(--soft), white) }
.topic-cards h3 { margin: 0 }
.topic-cards a { margin-top: auto; padding-top: .45rem }
#whats-next .topic-cards article { border: 0; border-radius: 0; border-top: 2px solid var(--pink); background: transparent; padding-inline: 0 }
footer { flex-wrap: wrap; border: 0; font-size: .87rem }
footer p { flex-basis: 100% }
@media (max-width: 800px) {
  .site-header { flex-wrap: wrap }
  nav, .actions { gap: 1rem }
  .decisions article { display: block }
}
@media (max-width: 530px) {
  summary { grid-template-columns: .6rem 1fr auto; gap: .3rem .5rem }
  summary span { grid-column: 2; grid-row: 2 }
  .programmatic-trace summary span { grid-row: 1 }
  summary small { grid-column: 3; grid-row: 1 }
  .site-header { padding: .85rem 5% }
  nav a { font-size: .8rem }
}
