:root {
  color-scheme: dark;
  --rev-bg: #101b2c;
  --rev-panel: #18263a;
  --rev-ink: #edf2f9;
  --rev-dim: #b9c6d8;
  --rev-accent: #accbec;
  --rev-line: #394c64;
  --rev-rose: #df949c;
  --rev-mono: 'Fold Mono', ui-monospace, monospace;
  font: 100%/1.5 'Fold Sans', system-ui, sans-serif;
  color: var(--rev-ink);
  background: var(--rev-bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--rev-accent); outline-offset: 4px; }
::selection { background: var(--rev-accent); color: #122238; }
.rev-width { width: min(1320px, calc(100% - clamp(40px, 8.5vw, 140px))); margin-inline: auto; }
.rev-skip { position: fixed; left: 12px; top: -5rem; z-index: 5; padding: .65rem; background: var(--rev-ink); color: var(--rev-bg); }
.rev-skip:focus { top: 8px; }
.rev-mast { border-bottom: 1px solid var(--rev-line); }
.rev-bar, .rev-tools, .rev-brand, .rev-langs, .rev-console-foot, .rev-file, .rev-inspect-head { display: flex; align-items: center; }
.rev-bar { justify-content: space-between; gap: 1rem; min-height: 74px; }
.rev-brand { gap: .7rem; text-decoration: none; font-size: clamp(1.02rem, 1.75vw, 1.4rem); font-weight: 620; line-height: 1.07; letter-spacing: -.055em; }
.rev-brand img { display: block; width: 34px; height: 34px; border-radius: 3px; padding: 3px; background: var(--rev-ink); }
.rev-brand b { color: var(--rev-accent); font-weight: 500; }
.rev-brand small { display: block; margin-top: .24rem; font: 450 .69rem/1 var(--rev-mono); color: var(--rev-dim); letter-spacing: -.04em; }
.rev-tools { gap: clamp(14px, 2vw, 34px); }
.rev-tools > a { text-decoration: none; font-size: .91rem; }
.rev-tools > a:hover, .rev-site-foot a:hover { color: var(--rev-accent); text-decoration: underline; text-underline-offset: .25em; }
.rev-langs { padding: 2px; border: 1px solid var(--rev-line); border-radius: 3px; }
.rev-langs button { min-height: 34px; min-width: 35px; padding: 2px 6px; background: transparent; color: var(--rev-dim); border: none; border-radius: 1px; font: .78rem var(--rev-mono); }
.rev-langs [aria-pressed=true] { color: var(--rev-accent); background: #293d56; }
.rev-intro { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); grid-template-areas: "title visual" "body visual"; align-items: end; gap: 1.45rem clamp(28px, 6vw, 104px); padding-block: clamp(2.5rem, 5vw, 5.75rem); }
.rev-intro > div:first-child { grid-area: title; }
.rev-kicker { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; color: var(--rev-accent); font: 500 .78rem/1.5 var(--rev-mono); }
.rev-kicker > span:first-child { width: 1.15rem; height: .65rem; background: repeating-linear-gradient(90deg, var(--rev-rose) 0 2px, transparent 2px 5px); }
.rev-intro h1 { margin: 0; font-weight: 520; font-size: clamp(3.55rem, 5.7vw, 6.35rem); line-height: .99; letter-spacing: -.078em; }
.rev-intro em { display: block; color: var(--rev-accent); font-family: 'Fold Serif', Georgia, serif; font-weight: 400; letter-spacing: -.065em; }
.rev-side { grid-area: body; align-self: start; }
.rev-side p { max-width: 40ch; margin: 0 0 1.3rem; color: var(--rev-dim); font-size: clamp(1rem, 1.38vw, 1.18rem); line-height: 1.55; text-wrap: pretty; }
.rev-link { display: inline-flex; align-items: center; gap: 1.4rem; min-height: 44px; padding: .6rem .95rem; background: var(--rev-accent); color: #152a42; border-radius: 3px; text-decoration: none; font-weight: 620; font-size: .95rem; }
.rev-link:hover { background: #cae0f5; }
.rev-visual { grid-area: visual; margin: 0; align-self: center; min-width: 0; }
.rev-visual-frame { padding: clamp(4px,.6vw,9px); background: #213146; border: 1px solid #475e77; border-radius: 5px; box-shadow: 0 15px 46px #060e1a55; }
.rev-visual img { filter: grayscale(1); display: block; width: 100%; height: auto; border-radius: 1px; }
.rev-visual figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-top: .7rem; color: var(--rev-dim); font: .75rem/1.45 var(--rev-mono); }
.rev-visual figcaption a { color: var(--rev-accent); text-underline-offset: .22em; }
.rev-inspector { scroll-margin-top: 12px; margin-bottom: clamp(2rem, 4vw, 4rem); border: 1px solid #425870; background: var(--rev-panel); border-radius: 5px; }
.rev-inspector:focus-visible { outline-offset: 2px; }
.rev-inspect-head { padding: 1.05rem clamp(16px, 2vw, 32px); justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rev-line); }
.rev-inspect-head h2 { display: flex; align-items: center; gap: .65rem; margin: 0; font-size: clamp(1.13rem, 2vw, 1.6rem); font-weight: 570; line-height: 1.2; letter-spacing: -.045em; }
.rev-terminal-icon { color: var(--rev-accent); font: 600 1.1em/1 var(--rev-mono); }
.rev-source { display: flex; align-items: center; gap: .7rem; color: var(--rev-dim); font: .78rem/1.4 var(--rev-mono); }
.rev-source select { min-height: 40px; max-width: 100%; padding: .35rem .65rem; border: 1px solid #59728c; border-radius: 3px; background: #20334a; color: var(--rev-ink); }
.rev-columns { display: grid; grid-template-columns: minmax(205px, .32fr) minmax(0, 1fr); }
.rev-steps { display: flex; flex-direction: column; padding: clamp(12px, 1.8vw, 26px); gap: .2rem; border-right: 1px solid var(--rev-line); }
.rev-steps button { display: flex; align-items: center; gap: .68rem; min-height: 48px; padding: .5rem .7rem; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--rev-dim); text-align: left; font-size: .94rem; }
.rev-steps button:hover { background: #223249; color: var(--rev-ink); }
.rev-steps button[aria-pressed=true] { color: var(--rev-accent); border-color: var(--rev-accent); background: #273c55; font-weight: 600; }
.rev-index { opacity: .8; font: .74rem/1 var(--rev-mono); }
.rev-readout { min-width: 0; padding: clamp(1.15rem, 2.5vw, 2.6rem); background: #101d2e; }
.rev-file { justify-content: space-between; flex-wrap: wrap; gap: .6rem; font: .78rem/1.4 var(--rev-mono); color: #a8bad0; }
.rev-status { padding: .18rem .5rem; border: 1px solid #526981; border-radius: 2px; color: var(--rev-dim); }
.rev-status:is([data-state=ready],[data-state=masked]) { color: var(--rev-accent); }
.rev-status[data-state=held] { color: #efadb1; border-color: #915b65; background: #392a37; }
.rev-code { display: flex; gap: .75rem; padding-block: clamp(1.3rem, 2.4vw, 2.3rem) 1rem; }
.rev-caret { color: var(--rev-accent); font: 600 1.5rem/1.2 var(--rev-mono); }
.rev-code samp { font: 450 clamp(1.03rem, 1.8vw, 1.63rem)/1.55 var(--rev-mono); letter-spacing: -.04em; overflow-wrap: anywhere; }
.rev-code mark { color: #d3e6fa; background: #293f58; }
.rev-readout p { color: var(--rev-dim); margin: 0; max-width: 65ch; font-size: .93rem; }
.rev-console-foot { justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; min-height: 52px; padding: .75rem clamp(16px, 2vw, 32px); border-top: 1px solid var(--rev-line); font: .76rem/1.5 var(--rev-mono); color: var(--rev-dim); }
.rev-console-foot p { display: flex; align-items: baseline; gap: .65rem; margin: 0; }
.rev-led { flex: 0 0 6px; align-self: center; height: 6px; border-radius: 50%; background: var(--rev-accent); }
.rev-playground { color: var(--rev-accent); text-decoration: none; }
.rev-playground:hover { text-decoration: underline; text-underline-offset: 3px; }
.rev-nojs { margin: 0; padding: .75rem 1rem; }
.studio-page.reverse-page .price-section { --price-bg: #142135; --price-text: var(--rev-ink); --price-muted: var(--rev-dim); --price-rule: var(--rev-line); --price-outline: #72869d; --price-hover: #24364d; border-top: 1px solid var(--rev-line); }
.studio-page.reverse-page .price-wrap { width: min(1320px, calc(100% - clamp(40px, 8.5vw, 140px))); }
.rev-site-foot { border-top: 1px solid var(--rev-line); }
.rev-site-foot > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.55rem; font-weight: 600; }
.rev-site-foot small { color: var(--rev-dim); font-weight: 450; }
.rev-site-foot a { color: var(--rev-dim); font-size: .86rem; font-weight: 450; text-underline-offset: .2em; }
@media(max-width: 780px) {
  .rev-intro { grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "visual" "body"; gap: 1.25rem; padding-block: 1.85rem 2rem; }
  .rev-intro h1 { font-size: clamp(2.8rem, 8vw, 4.2rem); }
  .rev-intro h1 em { display: inline; }
  .rev-kicker { margin-bottom: .5rem; }
  .rev-side p { max-width: 55ch; margin-bottom: .85rem; }
  .rev-columns { grid-template-columns: minmax(0, 1fr); }
  .rev-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; padding: .55rem; border-right: 0; border-bottom: 1px solid var(--rev-line); }
  .rev-steps button { align-items: flex-start; flex-direction: column; gap: .3rem; border-left: 0; border-bottom: 2px solid transparent; font-size: .84rem; }
}
@media(max-width: 520px) {
  .rev-bar { min-height: 60px; gap: .4rem; }
  .rev-brand { gap: .45rem; font-size: 1.03rem; }
  .rev-brand img { width: 27px; height: 27px; }
  .rev-tools { gap: .55rem; }
  .rev-tools > a { font-size: .8rem; }
  .rev-langs button { min-width: 27px; padding-inline: 2px; }
  .rev-inspect-head { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .rev-readout { min-height: 200px; }
  .rev-visual figcaption { font-size: .7rem; }
  .rev-steps button { padding-inline: .4rem; }
}
@media(max-width: 365px) {
  .rev-width, .studio-page.reverse-page .price-wrap { width: calc(100% - 28px); }
  .rev-brand { font-size: .95rem; }
}
