@font-face {
  font-family: "Bungee Shade";
  src: url("fonts/bungee-shade.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --blue: #003CFF;
  --green: #00FF44;
  --desk: #EEF2FF;      /* the demo's backdrop: the blue, very pale */
  --rule: #D5DBEA;
  --display: "Bungee Shade", "Arial Black", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: 20px;   /* room for the section dots on the right of a phone */
  --measure: 1040px;   /* the demo's width: text lines up with it (Charles, 2026-11-24) */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
}
@media (min-width: 720px) { body { font-size: 18px; } }
@media (min-width: 1100px) { body { font-size: 19px; } }

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

kbd, code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; }
code { overflow-wrap: anywhere; }

/* ---------- hero ---------- */

.hero, main, .footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { .hero, main, .footer { --gutter: 40px; } }

.hero { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(28px, 4vw, 48px); }

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 10.5vw, 120px);
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0 0 .35em;
  overflow-wrap: anywhere;
}

.headline {
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.012em;
  max-width: 26ch;
  margin: 0 0 .7em;
}

.lede { max-width: var(--measure); margin: 0 0 1.6em; }

.get { display: grid; gap: .6em; justify-items: start; max-width: var(--measure); }
.button {
  display: inline-block;
  background: var(--blue);
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
  padding: .8em 1.3em;
  border-radius: 12px;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.get-note { margin: 0; font-size: .92em; }
.facts { margin: 0; font-size: .92em; font-weight: 600; }

/* ---------- the demo band ---------- */

.demo {
  background: var(--desk);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(20px, 4vw, 48px) var(--gutter);
}
.stage { max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 7; position: relative; }
.controls, .caption { max-width: 1040px; margin-left: auto; margin-right: auto; }
.caption { min-height: 1.6em; margin-top: .8em; margin-bottom: 0; font-weight: 600; }

/* ---------- reading column ---------- */

main { padding-bottom: 24px; }
.prose { max-width: var(--measure); }
.intro { padding-top: clamp(28px, 4vw, 48px); }
.intro p:first-child { font-size: 1.08em; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.05;
  margin: clamp(56px, 9vw, 104px) 0 .5em;
}
.sub { font-weight: 650; font-size: 1.08em; }

.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--blue); }

.symbols { font-weight: 600; }

.ladder { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: .55em; }
.ladder li { display: grid; grid-template-columns: 7.2em 1fr; gap: .9em; align-items: baseline; margin: 0; }
.ladder li > kbd, .ladder span kbd {
  display: inline-block;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 8px;
  padding: .1em .5em;
  font-weight: 600;
  white-space: nowrap;
  background: var(--paper);
  box-shadow: 0 2px 0 var(--blue);
}
.ladder li > kbd { justify-self: start; }
@media (max-width: 600px) {
  .ladder li { grid-template-columns: 4.4em 1fr; gap: .5em; }
  .ladder li > kbd, .ladder span kbd { font-size: .8em; padding: .1em .4em; }
}
.more { font-size: .95em; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1em 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6em; margin: 0 0 1.1em; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.12em;
  font-family: var(--display);
  font-size: 1.6em;
  line-height: 1;
  color: var(--blue);
}

details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer;
  font-weight: 650;
  padding: .75em 2em .75em 0;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute; right: .2em; top: .55em;
  color: var(--blue);
  font-size: 1.3em;
  line-height: 1;
  transition: transform .15s ease-out;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1em; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  margin-top: clamp(56px, 9vw, 104px);
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: .92em;
}
.footer p { max-width: var(--measure); margin: 0 0 .6em; }
.footer-mark { font-family: var(--display); font-size: 1.6em; line-height: 1; margin-bottom: .5em !important; }
.credits { font-size: .9em; }

/* ---------- the demo scene ---------- */

@media (max-width: 600px) { .stage { aspect-ratio: 16 / 10; } }

.device { position: absolute; }
.display {
  position: absolute; inset: 0;
  background: #DCE4FA;
  border-radius: 3px;
  box-shadow: 0 0 0 clamp(3px, .6vw, 7px) var(--ink);
  transition: background .4s ease-out;
}
.is-unplugged .device-2 .display { background: #1D2130; }

.laptop-base {
  position: absolute; left: -9%; right: -9%;
  top: calc(100% + clamp(3px, .6vw, 7px));
  height: clamp(5px, 1vw, 11px);
  background: var(--ink);
  border-radius: 0 0 10px 10px;
}
.monitor-stand {
  position: absolute; left: 46%; width: 8%;
  top: calc(100% + clamp(3px, .6vw, 7px));
  height: 22%;
  background: var(--ink);
}
.monitor-stand::after {
  content: ""; position: absolute; left: -110%; right: -110%; bottom: 0;
  height: clamp(3px, .5vw, 6px); background: var(--ink); border-radius: 3px;
}

.cable { position: absolute; left: 39%; top: 84.5%; width: 25.5%; height: 5%; }
.cable svg { width: 100%; height: 100%; overflow: visible; }
.cable path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; transition: opacity .3s ease-out; }
.cable-loose { opacity: 0; }
.is-unplugged .cable-line { opacity: 0; }
.is-unplugged .cable-loose { opacity: 1; }

.win {
  position: absolute;
  display: flex; flex-direction: column;
  padding: 0; margin: 0;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .35);
  border-radius: clamp(3px, .5vw, 6px);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 30, 120, .12);
  transition: left .45s cubic-bezier(.2, .7, .2, 1), top .45s cubic-bezier(.2, .7, .2, 1),
              width .45s cubic-bezier(.2, .7, .2, 1), height .45s cubic-bezier(.2, .7, .2, 1),
              box-shadow .2s ease-out;
}
.instant .win { transition: none; }
.win.is-focused { z-index: 2; }
.win-bar {
  display: flex; align-items: center; gap: 3px;
  flex: none;
  height: clamp(9px, 1.5vw, 18px);
  padding: 0 clamp(3px, .5vw, 6px);
  background: #ECEFF5;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.win-bar i { width: clamp(3px, .45vw, 6px); aspect-ratio: 1; border-radius: 50%; background: #C3C9D6; flex: none; }
.win-name { margin-left: .4em; font-size: clamp(9px, .85vw, 11px); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win[data-app="Chrome"] .win-bar { background: #FFE7A3; }
.win[data-app="VS Code"] .win-bar { background: #C9DAFF; }
.win[data-app="Notes"] .win-bar { background: #EEDCFF; }
.win[data-app="Messages"] .win-bar { background: #C6F3D3; }
.win.is-focused .win-bar { background: var(--blue); }
.win.is-focused .win-bar i { background: rgba(255, 255, 255, .55); }
.win.is-focused .win-name { color: var(--paper); }
.win-body {
  flex: 1;
  margin: 9% 12% 8%;
  background: repeating-linear-gradient(to bottom, #E3E7F0 0 2px, transparent 2px 9px);
}
.win[data-app="Chrome"] .win-body { margin-top: 5%; }
.win.ring { box-shadow: 0 0 0 3px var(--blue), 0 2px 6px rgba(0, 30, 120, .12); }
.win.landed::after {
  content: "✓";
  position: absolute; top: 3px; right: 3px;
  width: clamp(12px, 1.4vw, 18px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-size: clamp(8px, .9vw, 11px);
  font-weight: 800;
}
@media (max-width: 560px) { .win-name { display: none; } }

/* ---------- the demo's controls ---------- */

.controls { display: grid; gap: 10px; margin-top: clamp(18px, 3vw, 28px); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.controls button { font: inherit; font-size: .95em; cursor: pointer; }
.controls button:disabled { cursor: not-allowed; }

.plug {
  background: var(--blue); color: var(--paper);
  border: 0; border-radius: 12px;
  padding: .65em 1.15em; font-weight: 650;
  box-shadow: 0 2px 0 var(--ink);
}
.plug:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }

.scope {
  background: var(--paper); color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 999px;
  padding: .4em .95em; font-weight: 600;
}
.scope[aria-pressed="true"] { background: var(--blue); color: var(--paper); }

.action {
  display: inline-flex; align-items: baseline; gap: .55em;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 10px;
  padding: .45em .8em; font-weight: 600;
}
.action kbd { color: var(--blue); font-weight: 600; font-size: .82em; }
.action:disabled { border-style: dashed; }   /* dashed, never grey: nothing the user reads is drawn faint */
.needs-monitor { margin: 0; font-size: .9em; }

/* phones: the demo's buttons in tidy rows (Charles, 2026-11-24) */
@media (max-width: 600px) {
  .plug { width: 100%; }
  .row-scope { flex-wrap: nowrap; gap: 6px; }
  .scope { flex: 1 1 auto; font-size: .8em !important; padding: .55em .4em; white-space: nowrap; border-radius: 10px; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  /* keys under the name: "menu: Everything" is too wide to sit beside it (Charles, 2026-11-25) */
  .action { flex-direction: column; align-items: flex-start; gap: .15em; font-size: .88em !important; white-space: nowrap; }
}

/* ---------- section dots: where you are on the page ---------- */

.dots {
  position: fixed; right: clamp(2px, 1.2vw, 20px); top: 50%; transform: translateY(-50%);
  z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.dots a {
  display: grid; place-items: center;
  width: 14px; height: 20px;
  border-radius: 7px;
}
.dots a::before {
  content: "";
  width: 7px; height: 7px; border-radius: 4px;
  border: 1.5px solid var(--blue);
  background: var(--paper);
  transition: height .2s ease-out, background .2s ease-out;
}
.dots a[aria-current="true"]::before { height: 16px; background: var(--blue); }
.dots .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) and (min-width: 900px) {
  .dots a:hover .label, .dots a:focus-visible .label {
    clip: auto; width: auto; height: auto; overflow: visible;
    right: 22px; background: var(--ink); color: var(--paper);
    font-size: 13px; font-weight: 600; padding: .2em .6em; border-radius: 6px;
  }
}
@media (prefers-reduced-motion: reduce) { .dots a::before { transition: none; } }
