/* Casement. A painted wall, a cream casement frame, dark glass.
   Type: Atkinson Hyperlegible Next for prose, Mono for anything a
   terminal would print. Scale: 14 / 16 / 18 / 21 / 24 / 36 / 48 / 72. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/atkinson-hyperlegible-mono.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --wall: #1f3247;
  --glass: #0a0e13;
  --frame: #ede6d6;
  --hinge: #c9bfac;
  --latch: #b3a891;
  --fog: #b9c6d3;
  --fog-dim: #8b98a8;
  --amber: #ffb547;
  --teal: #3fb8af;
  --prompt: #7ee787;
  --rule: rgb(237 230 214 / 0.16);

  --sans: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --page: 72rem;
  --measure: 36rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--frame);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--amber);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

code {
  font-size: 0.92em;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.05em 0.45em 0.12em;
  border-radius: 0.35em;
  background: var(--frame);
  color: var(--glass);
  box-shadow: inset 0 -0.16em 0 var(--hinge);
  font-size: 0.86em;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: var(--frame);
  color: var(--glass);
  font-weight: 650;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Status tiles: filled = works now, half = in progress, empty = later.
   The shape carries the meaning, and the words beside it say it too. */

.tile {
  display: inline-block;
  flex: none;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.5em;
  border-radius: 0.16em;
  vertical-align: -0.04em;
}

.tile-now {
  background: var(--teal);
}

.tile-progress {
  background: linear-gradient(90deg, var(--amber) 50%, transparent 50%);
  box-shadow: inset 0 0 0 0.12em var(--amber);
}

.tile-later {
  box-shadow: inset 0 0 0 0.12em var(--fog-dim);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark img {
  width: 44px;
  height: 44px;
  margin: -4px;
}

.site-header {
  flex-wrap: wrap;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(0.75rem, 2.5vw, 1.75rem);
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fog);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--frame);
  text-decoration: underline;
  text-decoration-color: var(--amber);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Hero */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 0;
}

.hero-text {
  display: grid;
  gap: 1.75rem;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-intro {
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}

.lede {
  font-size: 1.3125rem;
  line-height: 1.5;
}

.hero-note {
  color: var(--fog);
}

@media (min-width: 60rem) {
  .hero-text {
    grid-template-columns: 1fr 22rem;
    align-items: end;
    column-gap: 3rem;
  }

  .hero-intro {
    padding-bottom: 0.6rem;
  }

  .lede {
    font-size: 1.125rem;
  }
}

/* The casement: a terminal window glazed into a painted frame. The
   frame's mullions are the terminal's pane dividers. Everything inside
   is sized from the frame's font size, which follows the figure's
   width, so the drawing scales as one piece and, as in a real terminal,
   text stays the same size in every pane. */

.hero-figure {
  container: figure / inline-size;
  display: grid;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.casement {
  --bar: clamp(8px, 1.6cqi, 18px);

  position: relative;
  margin-inline: calc(var(--bar) * 2.2);
  border: var(--bar) solid var(--frame);
  border-radius: calc(var(--bar) * 1.5);
  background: var(--glass);
  font-size: clamp(9px, 1.2cqi, 14px);
}

/* Hinges on the left stile. */
.casement::before,
.casement::after {
  content: "";
  position: absolute;
  left: calc(var(--bar) * -2.1);
  width: calc(var(--bar) * 0.9);
  height: 11%;
  border-radius: calc(var(--bar) * 0.3);
  background: var(--hinge);
}

.casement::before {
  top: 10%;
}

.casement::after {
  bottom: 10%;
}

.glass {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--bar) * 0.6);
  overflow: hidden;
}

.term-title,
.term-status {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 0.75em 1.1em;
  color: var(--fog-dim);
  font-family: var(--mono);
  line-height: 1.3;
  white-space: nowrap;
}

.term-status {
  justify-content: space-between;
  border-top: 1px solid rgb(185 198 211 / 0.14);
}

.term-prefix {
  color: var(--fog);
}

.term-prefix.is-waiting {
  color: var(--amber);
}

.layout {
  display: flex;
  min-height: 0;
}

.split {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
}

.split-column {
  flex-direction: column;
}

.mullion {
  position: relative;
  flex: 0 0 var(--bar);
  background: var(--frame);
}

/* The latch sits on the first mullion only. */
.layout > .split-row > .mullion:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 16%;
  border-radius: 999px;
  background: var(--latch);
  transform: translate(-50%, -50%);
}

.pane {
  container: pane / size;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.6em;
  min-width: 0;
  min-height: 0;
  padding: 1em;
  cursor: default;
}

.pane-title {
  display: flex;
  flex: none;
  justify-content: space-between;
  gap: 1em;
  color: var(--fog-dim);
  font-family: var(--mono);
  line-height: 1.2;
  white-space: nowrap;
}

.pane-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pane-rate {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.focus-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--amber);
  visibility: hidden;
}

.is-focused .pane-title {
  color: var(--frame);
}

.is-focused .focus-dot {
  visibility: visible;
}

.mac-window {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  border-radius: 0.8em;
  overflow: hidden;
  background: #f3f6f9;
  color: #2b3644;
}

.mac-light {
  background: #fbfaf6;
}

.mac-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5em;
  height: 2.1em;
  padding-inline: 0.9em;
  background: #cbd5e1;
}

.mac-bar i {
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: #ff5f57;
}

.mac-bar i:nth-child(2) {
  background: #febc2e;
}

.mac-bar i:nth-child(3) {
  background: #28c840;
}

.mac-url {
  width: 42%;
  height: 52%;
  margin-inline: auto;
  border-radius: 999px;
  background: #e6ecf3;
  transform: translateX(-12%);
}

/* Safari: a weather page whose picture is drawn in tiles, the unit
   Casement sends pictures in. */

.weather {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
}

.tiles {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  background: #f3f6f9;
}

.forecast {
  flex: none;
}

.forecast {
  display: grid;
  gap: 0.7em;
  padding: 0.9em 1.2em 1.1em;
}

.forecast-now {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}

.forecast-temp {
  font-size: 2.6em;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.forecast-sky {
  color: #5d6979;
}

.forecast-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4em;
  padding: 0;
  list-style: none;
  font-size: 0.92em;
  line-height: 1.2;
}

.forecast-days li {
  display: grid;
  justify-items: center;
  gap: 0.35em;
}

.forecast-days span {
  color: #6b7685;
}

.forecast-days i {
  width: 1.2em;
  height: 1.2em;
  border-radius: 0.2em;
  background: var(--amber);
}

.forecast-days .cloud {
  background: #b9cde2;
}

/* Notes */

.notes-body {
  flex: 1 1 0;
  min-height: 0;
  padding: 1.3em 1.6em;
  overflow: hidden;
  font-size: 1.1em;
  line-height: 1.55;
}

.notes-heading {
  margin-bottom: 0.35em;
  font-size: 1.45em;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.notes-list {
  padding: 0;
  list-style: none;
}

.notes-list li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  white-space: nowrap;
}

.notes-list li::before {
  content: "";
  flex: none;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.09em #a6b0bd;
}

.notes-list .is-done {
  color: #7c8796;
}

.notes-list .is-done::before {
  background: var(--amber);
  box-shadow: none;
}

.notes-text {
  margin-top: 0.8em;
  color: #4a5666;
}

/* Windows the split demo opens. */

.picker {
  display: grid;
  flex: 1 1 0;
  align-content: start;
  gap: 0.35em;
  min-height: 0;
  padding: 0.4em 0.2em;
  color: var(--fog);
  font-family: var(--mono);
  line-height: 1.3;
}

.picker p:first-child {
  margin-bottom: 0.4em;
  color: var(--frame);
}

.picker .is-chosen {
  color: var(--glass);
  background: var(--frame);
}

.picker p {
  padding-inline: 0.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: repeat(7, 1fr);
  align-content: start;
  gap: 0.35em;
  min-height: 0;
  padding: 0.9em;
}

.month i {
  aspect-ratio: 1.25;
  border-radius: 0.2em;
  background: #e3e9ef;
}

.month .is-today {
  background: #ff5f57;
}

.month .is-busy {
  background: #a9d7ff;
}

.photos {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: repeat(5, 1fr);
  align-content: start;
  gap: 0.3em;
  min-height: 0;
  padding: 0.6em;
  background: #1d232b;
}

.photos i {
  aspect-ratio: 1;
  border-radius: 0.15em;
  background: #3fb8af;
}

.photos i:nth-child(3n + 1) {
  background: #79bcff;
}

.photos i:nth-child(4n + 2) {
  background: #ffb547;
}

.photos i:nth-child(5n + 3) {
  background: #1f7a8c;
}

.photos i:nth-child(7n) {
  background: #ffd58a;
}

.document {
  display: grid;
  flex: 1 1 0;
  align-content: start;
  gap: 0.55em;
  min-height: 0;
  padding: 1.2em 1.6em;
}

.document i {
  height: 0.55em;
  border-radius: 999px;
  background: #d3dae2;
}

.document i:first-child {
  width: 55%;
  height: 0.9em;
  margin-bottom: 0.4em;
  background: #2b3644;
}

.document i:nth-child(3n) {
  width: 82%;
}

.document i:nth-child(5n) {
  width: 64%;
}

/* Small panes drop detail first, as a cramped window would. */
@container pane (max-height: 190px) {
  .forecast-days,
  .notes-text {
    display: none;
  }
}

@container pane (max-height: 120px) {
  .forecast {
    display: none;
  }
}

/* Sill, caption and the split demo controls */

.sill {
  height: calc(var(--bar, clamp(8px, 1.6cqi, 18px)) * 2);
  margin-top: -0.75rem;
  border-radius: clamp(4px, 0.8cqi, 9px);
  background: linear-gradient(var(--frame) 62%, var(--hinge) 62%);
}

.hero-figure figcaption {
  max-width: var(--measure);
  color: var(--fog);
  font-size: 0.875rem;
  line-height: 1.5;
}

.demo {
  display: grid;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.demo-label {
  color: var(--fog);
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgb(10 14 19 / 0.35);
  color: var(--frame);
  font: inherit;
  cursor: pointer;
}

.demo button:hover:not(:disabled) {
  border-color: var(--hinge);
}

.demo button:disabled {
  color: var(--fog-dim);
  cursor: not-allowed;
}

.demo button:disabled kbd {
  opacity: 0.5;
}

.demo-keys {
  display: inline-flex;
  gap: 0.25em;
}

/* Touch screens have no Ctrl-]; the buttons alone do the job there. */
@media (pointer: coarse) {
  .demo-keys {
    display: none;
  }
}

@container figure (min-width: 56rem) {
  .hero-figure {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .casement,
  .sill {
    grid-column: 1 / -1;
  }

  .demo {
    justify-items: end;
    text-align: right;
  }
}

/* Narrow screens: panes stack, so the first mullion becomes a transom. */
@container figure (max-width: 34rem) {
  .glass {
    aspect-ratio: 4 / 5;
  }

  .layout > .split-row {
    flex-direction: column;
  }

  .layout > .split-row > .mullion:nth-child(2)::after {
    display: none;
  }
}

/* One orchestrated moment: the first frame arrives tile by tile, as
   Casement sends it, then a cloud keeps drifting across the sky so the
   window reads as live. Nothing moves when reduced motion is asked for. */

.tiles g:nth-child(1) { --r: 0; }
.tiles g:nth-child(2) { --r: 1; }
.tiles g:nth-child(3) { --r: 2; --sky: #8fc8ff; }
.tiles g:nth-child(4) { --r: 3; --sky: #9bcfff; }
.tiles g:nth-child(5) { --r: 4; }
.tiles g:nth-child(6) { --r: 5; }
.tiles g:nth-child(7) { --r: 6; }
.tiles g:nth-child(8) { --r: 7; }
.tiles g:nth-child(9) { --r: 8; }

.tiles rect:nth-child(1) { --c: 0; }
.tiles rect:nth-child(2) { --c: 1; }
.tiles rect:nth-child(3) { --c: 2; }
.tiles rect:nth-child(4) { --c: 3; }
.tiles rect:nth-child(5) { --c: 4; }
.tiles rect:nth-child(6) { --c: 5; }
.tiles rect:nth-child(7) { --c: 6; }
.tiles rect:nth-child(8) { --c: 7; }
.tiles rect:nth-child(9) { --c: 8; }
.tiles rect:nth-child(10) { --c: 9; }
.tiles rect:nth-child(11) { --c: 10; }
.tiles rect:nth-child(12) { --c: 11; }
.tiles rect:nth-child(13) { --c: 12; }
.tiles rect:nth-child(14) { --c: 13; }
.tiles rect:nth-child(15) { --c: 14; }
.tiles rect:nth-child(16) { --c: 15; }
.tiles rect:nth-child(17) { --c: 16; }
.tiles rect:nth-child(18) { --c: 17; }
.tiles rect:nth-child(19) { --c: 18; }
.tiles rect:nth-child(20) { --c: 19; }
.tiles rect:nth-child(21) { --c: 20; }
.tiles rect:nth-child(22) { --c: 21; }
.tiles rect:nth-child(23) { --c: 22; }
.tiles rect:nth-child(24) { --c: 23; }

@media (prefers-reduced-motion: no-preference) {
  .tiles rect {
    animation: tile-in 240ms both;
    animation-delay: calc(350ms + var(--r) * 70ms + var(--c) * 18ms);
  }

  /* Each tile on the cloud's track turns to cloud for part of a cycle;
     offsetting the cycle by column makes the cloud move right. */
  .tiles g:nth-child(3) .drift {
    animation: tile-in 240ms both, drift-high 14s linear infinite;
    animation-delay: calc(350ms + var(--r) * 70ms + var(--c) * 18ms), calc(var(--c) * 0.7s - 11.9s);
  }

  .tiles g:nth-child(4) .drift {
    animation: tile-in 240ms both, drift-low 14s linear infinite;
    animation-delay: calc(350ms + var(--r) * 70ms + var(--c) * 18ms), calc(var(--c) * 0.7s - 11.9s);
  }

  .forecast,
  .notes-heading,
  .notes-list li,
  .notes-text {
    animation: tile-in 300ms 1.3s both;
  }

  .notes-list li:nth-child(2) { animation-delay: 1.36s; }
  .notes-list li:nth-child(3) { animation-delay: 1.42s; }
  .notes-list li:nth-child(4) { animation-delay: 1.48s; }
  .notes-list li:nth-child(5) { animation-delay: 1.54s; }
  .notes-list li:nth-child(6) { animation-delay: 1.6s; }
  .notes-text { animation-delay: 1.7s; }

  .pane.is-new {
    animation: tile-in 260ms ease-out both;
  }
}

@keyframes tile-in {
  from {
    opacity: 0;
  }
}

@keyframes drift-high {
  0%,
  38% {
    fill: var(--sky);
  }

  46%,
  64% {
    fill: #e8f3ff;
  }

  72%,
  100% {
    fill: var(--sky);
  }
}

@keyframes drift-low {
  0%,
  30% {
    fill: var(--sky);
  }

  38%,
  72% {
    fill: #e8f3ff;
  }

  80%,
  100% {
    fill: var(--sky);
  }
}

/* Sections */

.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7.5rem) var(--gutter) 0;
}

.section h2 {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section h3 {
  font-size: 1.3125rem;
  font-weight: 680;
  line-height: 1.3;
}

/* How it works: a real sequence, so it is numbered. */

.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  grid-row: 1 / span 2;
  color: var(--hinge);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.step-text {
  display: grid;
  gap: 0.5rem;
  max-width: var(--measure);
}

.step-text p:not(.status) {
  color: var(--fog);
}

.step > .term-line,
.step > .keys {
  grid-column: 2;
}

.status {
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.status-later {
  color: var(--fog);
}

.term-line {
  justify-self: start;
  max-width: 100%;
  margin: 0;
  padding: 0.85rem 1.1rem;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px rgb(237 230 214 / 0.08);
  color: var(--frame);
  font-size: 1rem;
  line-height: 1.7;
}

.ps {
  color: var(--prompt);
  user-select: none;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.keys kbd {
  padding: 0.2em 0.6em 0.3em;
}

.keys-word {
  color: var(--fog);
  font-size: 0.875rem;
}

@media (min-width: 52rem) {
  .step {
    grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: start;
    column-gap: 2rem;
  }

  .step::before {
    grid-row: auto;
  }

  .step > .term-line,
  .step > .keys {
    grid-column: 3;
  }
}

/* Why it's different: the parts, then the points. */

.flow {
  display: grid;
  gap: 0;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.flow-side {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.flow-place {
  color: var(--fog);
  font-size: 0.875rem;
}

.flow-mac {
  padding: 1rem;
  border: 1px solid rgb(201 191 172 / 0.45);
  border-radius: 18px;
}

.flow-mac-inner {
  display: grid;
}

.flow-node {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 12px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px rgb(237 230 214 / 0.1);
  color: var(--fog);
  font-size: 0.875rem;
  line-height: 1.5;
}

.flow-name {
  color: var(--frame);
  font-size: 1.125rem;
  font-weight: 680;
}

.flow-name code {
  font-size: 0.95em;
  font-weight: 600;
}

.flow-node-app {
  box-shadow: inset 0 0 0 2px var(--frame);
}

.flow-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding: 0;
  list-style: none;
}

.flow-perms li {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--frame);
  color: var(--glass);
  font-weight: 650;
}

.flow-link {
  display: grid;
  grid-template-columns: 2px 1fr;
  column-gap: 1rem;
  align-items: center;
  padding: 0.75rem 0 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.flow-link::before {
  content: "";
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 2px;
  min-height: 3.5rem;
  border-radius: 2px;
  background: var(--frame);
}

.flow-link-name {
  align-self: end;
  font-family: var(--mono);
  font-weight: 650;
}

.flow-link-note {
  align-self: start;
  color: var(--fog);
}

.flow figcaption {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--fog);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 60rem) {
  .flow {
    grid-template-columns: minmax(10rem, 0.75fr) 8.5rem minmax(0, 3fr);
    align-items: center;
  }

  .flow-here {
    align-self: center;
  }

  .flow-mac-inner {
    grid-template-columns: minmax(0, 1fr) 9.5rem minmax(0, 1fr);
    align-items: stretch;
  }

  .flow-link {
    grid-template-columns: none;
    grid-template-rows: 1fr 2px 1fr;
    row-gap: 0.6rem;
    justify-items: center;
    padding: 0 0.75rem;
    text-align: center;
  }

  .flow-link::before {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    height: 2px;
    min-height: 0;
  }

  .flow-link-name {
    grid-row: 1;
  }

  .flow-link-note {
    grid-row: 3;
  }

  .flow-link-ssh {
    align-self: stretch;
    margin-top: 1.9rem;
  }

  .flow figcaption {
    grid-column: 1 / -1;
  }
}

.points {
  display: grid;
}

.point {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.point p {
  max-width: var(--measure);
  color: var(--fog);
}

@media (min-width: 52rem) {
  .points {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }
}

/* Why not VNC or X11: a table on wide screens, one block per question on
   narrow ones. Casement's column is glazed like the hero. */

.section-intro {
  max-width: var(--measure);
  margin: calc(clamp(1.75rem, 4vw, 3rem) * -0.5) 0 clamp(1.75rem, 4vw, 2.5rem);
  color: var(--fog);
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.compare th,
.compare td {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.compare td {
  color: var(--fog);
}

.compare thead th,
.compare thead td {
  border-top: 0;
  color: var(--frame);
  font-size: 1.125rem;
  font-weight: 680;
  line-height: 1.3;
  vertical-align: bottom;
}

.compare thead code {
  display: block;
  margin-top: 0.2rem;
  color: var(--fog);
  font-size: 0.875rem;
  font-weight: 400;
}

.compare tbody th {
  width: 21%;
  padding-left: 0;
  color: var(--frame);
  font-weight: 650;
}

.compare .is-casement {
  border-right: 3px solid var(--frame);
  border-left: 3px solid var(--frame);
  background: var(--glass);
  color: var(--frame);
}

.compare thead .is-casement {
  border-top: 3px solid var(--frame);
  border-radius: 14px 14px 0 0;
}

.compare tbody tr:last-child .is-casement {
  border-bottom: 3px solid var(--frame);
  border-radius: 0 0 14px 14px;
}

.compare code {
  font-size: 0.9em;
}

/* Yes, Partly, No: always a word, with a round mark beside it. */
.mark {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 0.15rem;
  color: var(--frame);
  font-weight: 650;
}

.mark::before {
  content: "";
  flex: none;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
}

.mark-yes::before {
  background: var(--teal);
}

.mark-part::before {
  background: linear-gradient(90deg, var(--amber) 50%, transparent 50%);
  box-shadow: inset 0 0 0 0.12em var(--amber);
}

.mark-no::before {
  box-shadow: inset 0 0 0 0.12em var(--fog-dim);
}

.limits {
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.limits ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.1em;
  color: var(--fog);
}

.limits li::marker {
  color: var(--hinge);
}

@media (max-width: 51.99rem) {
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare tbody tr {
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
  }

  .compare tbody th {
    width: auto;
    padding: 0 0 0.75rem;
    border: 0;
    font-size: 1.125rem;
  }

  .compare td {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    column-gap: 1rem;
    padding: 0.6rem 0.9rem;
    border: 0;
    border-left: 3px solid transparent;
  }

  .compare td::before {
    content: attr(data-label);
    grid-row: 1 / span 2;
    color: var(--frame);
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.7;
  }

  .compare td .mark {
    grid-column: 2;
  }

  .compare .is-casement,
  .compare tbody tr:last-child .is-casement {
    margin-bottom: 0.25rem;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-left: 3px solid var(--frame);
    border-radius: 0 10px 10px 0;
  }
}

/* What you need: two lights of one window, joined by SSH. */

.two-lights {
  --bar: 12px;

  display: grid;
  border: var(--bar) solid var(--frame);
  border-radius: 18px;
  background: var(--glass);
}

.light {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.light ul {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.1em;
  color: var(--fog);
}

.light li::marker {
  color: var(--hinge);
}

.two-lights-bar {
  display: grid;
  place-items: center;
  height: var(--bar);
  background: var(--frame);
}

.two-lights-bar span {
  padding: 0.15em 0.8em;
  border-radius: 999px;
  background: var(--frame);
  box-shadow: 0 0 0 3px var(--glass);
  color: var(--glass);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (min-width: 52rem) {
  .two-lights {
    grid-template-columns: 1fr var(--bar) 1fr;
  }

  .two-lights-bar {
    width: var(--bar);
    height: auto;
  }
}

/* Setting up your Mac: a walkthrough. Each step hangs from a numbered
   tile on one cord, so the order reads at a glance. */

.guide {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
}

.guide-step {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 0 0 2.5rem 3.75rem;
  counter-increment: guide;
}

.guide-step::before {
  content: counter(guide);
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--frame);
  box-shadow: inset 0 -0.2rem 0 var(--hinge);
  color: var(--glass);
  font-size: 1.0625rem;
  font-weight: 750;
  font-variant-numeric: lining-nums tabular-nums;
}

.guide-step::after {
  content: "";
  position: absolute;
  top: 2.65rem;
  bottom: 0.4rem;
  left: calc(1.125rem - 1px);
  width: 2px;
  border-radius: 2px;
  background: rgb(237 230 214 / 0.22);
}

.guide-step:last-child {
  padding-bottom: 0;
}

@media (max-width: 40rem) {
  .guide-step {
    padding-left: 3rem;
  }

  .command {
    font-size: 0.875rem;
  }
}

.guide-step:last-child::after {
  display: none;
}

.guide-step > p,
.guide-step > ul {
  max-width: 42rem;
  color: var(--fog);
}

.guide-step > .commands,
.guide-step > .ui-figure {
  max-width: 46rem;
}

.guide-step > ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1em;
  list-style: disc;
}

.guide-step li::marker {
  color: var(--hinge);
}

.guide-step strong {
  color: var(--frame);
  font-weight: 650;
}

.guide-step code {
  color: var(--frame);
}

/* Command blocks. Clicking a command selects all of it, so it can be
   copied without scripts; with scripts each line gets a Copy button. */

.commands {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  border-radius: 12px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px rgb(237 230 214 / 0.1);
  overflow: hidden;
}

.commands-where {
  padding: 0.6rem 1.1rem 0.5rem;
  border-bottom: 1px solid rgb(185 198 211 / 0.12);
  color: var(--fog-dim);
  font-size: 0.8125rem;
}

.command {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  color: var(--frame);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.command + .command {
  border-top: 1px solid rgb(185 198 211 / 0.07);
}

.command code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  font-size: inherit;
  white-space: pre;
  user-select: all;
  -webkit-user-select: all;
}

.command code::before {
  content: "$ ";
  color: var(--prompt);
  user-select: none;
  -webkit-user-select: none;
}

.commands[data-kind="config"] .command code::before {
  content: none;
}

.copy {
  flex: none;
  min-width: 4.75rem;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  color: var(--fog);
  font-family: var(--sans);
  font-size: 0.8125rem;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--hinge);
  color: var(--frame);
}

.copy.is-done {
  border-color: var(--teal);
  color: var(--frame);
}

.trouble {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
  margin-top: clamp(3rem, 6vw, 4rem);
}

.trouble dl {
  display: grid;
  margin: 0;
}

.trouble dl > div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.trouble dt {
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.trouble dt.is-symptom {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
}

.trouble dd {
  margin: 0;
  color: var(--fog);
}

@media (min-width: 52rem) {
  .trouble dl > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2rem;
  }
}

/* Drawn interface illustrations for the setup guide. Schematic, but laid
   out like the real macOS windows so a reader recognises them. They
   follow the viewer's light or dark appearance and use the system font,
   as the real windows do. Sizes are in em, from a font size that tracks
   the figure's width, so each drawing scales as one piece. */

.ui-figure {
  container-type: inline-size;
  display: grid;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.ui-figure figcaption {
  color: var(--fog);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.ui {
  --ui-content: #f5f5f7;
  --ui-sidebar: #e3e3e8;
  --ui-group: #ffffff;
  --ui-text: #1d1d1f;
  --ui-sub: #6e6e73;
  --ui-bar: #d1d1d6;
  --ui-sep: #e3e3e8;
  --ui-accent: #0a7aff;
  --ui-off: #dadade;
  --ui-edge: rgb(0 0 0 / 0.2);
  --ui-field: #d6d6db;
  --ui-green: #28a745;

  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(9px, 2.9cqi, 13px);
  line-height: 1.3;
}

@media (prefers-color-scheme: dark) {
  .ui {
    --ui-content: #1e1e20;
    --ui-sidebar: #2a2a2d;
    --ui-group: #2b2b2e;
    --ui-text: #f2f2f7;
    --ui-sub: #9a9aa1;
    --ui-bar: #47474c;
    --ui-sep: #3a3a3e;
    --ui-accent: #0a84ff;
    --ui-off: #48484d;
    --ui-edge: rgb(255 255 255 / 0.14);
    --ui-field: #3a3a3e;
    --ui-green: #30d158;
  }
}

.ui p {
  margin: 0;
}

.ui-window {
  overflow: hidden;
  border-radius: 0.85em;
  background: var(--ui-content);
  box-shadow: 0 0 0 1px var(--ui-edge), 0 1em 2.4em rgb(0 0 0 / 0.35);
  color: var(--ui-text);
}

.ui-lights {
  display: inline-flex;
  gap: 0.4em;
}

.ui-lights i {
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: #ff5f57;
}

.ui-lights i:nth-child(2) {
  background: #febc2e;
}

.ui-lights i:nth-child(3) {
  background: #28c840;
}

.ic {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: 0.3em;
  background: #8e8e93;
}

.ic-blue {
  background: #2f8cff;
}

.ic-teal {
  background: #30b0c7;
}

.ic-amber {
  background: #ff9f0a;
}

/* System Settings */

.settings {
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  min-height: 19em;
}

.settings-sidebar {
  display: grid;
  align-content: start;
  gap: 0.25em;
  padding: 0.85em 0.55em;
  background: var(--ui-sidebar);
}

.settings-sidebar .ui-lights {
  margin: 0 0 0.75em 0.3em;
}

.ui-search {
  height: 1.6em;
  margin-bottom: 0.5em;
  border-radius: 0.45em;
  background: var(--ui-field);
}

.side-item {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.4em;
  overflow: hidden;
  border-radius: 0.45em;
  font-size: 0.92em;
  white-space: nowrap;
}

.side-item b,
.ui-row b {
  width: 60%;
  height: 0.5em;
  border-radius: 999px;
  background: var(--ui-bar);
}

.side-item.is-selected {
  background: var(--ui-accent);
  color: #fff;
}

.side-item.is-selected .ic {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.7);
}

.settings-content {
  display: grid;
  align-content: start;
  gap: 0.55em;
  min-width: 0;
  padding: 0.95em 1em;
}

.settings-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.3em;
  overflow: hidden;
  font-size: 1.08em;
  font-weight: 700;
  white-space: nowrap;
}

/* A back chevron. */
.ui-back {
  flex: none;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.2em;
  border-bottom: 0.14em solid var(--ui-sub);
  border-left: 0.14em solid var(--ui-sub);
  transform: rotate(45deg);
}

.ui-text-bar {
  height: 0.5em;
  border-radius: 999px;
  background: var(--ui-bar);
}

.ui-text-bar.is-short {
  width: 68%;
}

.ui-group {
  margin-top: 0.35em;
  overflow: hidden;
  border-radius: 0.6em;
  background: var(--ui-group);
  box-shadow: 0 0 0 1px var(--ui-sep);
}

.ui-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55em;
  min-height: 2.35em;
  padding: 0.45em 0.7em;
  border-top: 1px solid var(--ui-sep);
  white-space: nowrap;
}

.ui-row:first-child {
  border-top: 0;
}

.ui-row b {
  width: 38%;
}

.ui-row img {
  width: 1.4em;
  height: 1.4em;
  margin: -0.05em;
}

/* The row to look for, ringed in the page's amber. */
.ui-row.is-marked {
  box-shadow: inset 0 0 0 2px var(--amber);
  border-radius: 0.45em;
}

.ui-row-tools {
  gap: 1em;
  min-height: 1.9em;
  color: var(--ui-sub);
  font-size: 1.05em;
}

.ui-switch {
  position: relative;
  flex: none;
  width: 2.1em;
  height: 1.2em;
  margin-left: auto;
  border-radius: 999px;
  background: var(--ui-off);
}

.ui-switch::after {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0.12em;
  width: 0.96em;
  height: 0.96em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}

.ui-switch.is-on {
  background: var(--ui-accent);
}

.ui-switch.is-on::after {
  left: auto;
  right: 0.12em;
}

/* An info button. */
.ui-info {
  flex: none;
  width: 1em;
  height: 1em;
  margin-left: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.1em var(--ui-sub);
}

.ui-info + .ui-switch {
  margin-left: 0.5em;
}

/* Casement's setup window and its floating helper. */

.ui-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 13.5em);
  align-items: center;
  padding: 0.5em 0;
}

.ui-titlebar {
  position: relative;
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--ui-sep);
  text-align: center;
}

.ui-titlebar .ui-lights {
  position: absolute;
  top: 50%;
  left: 0.95em;
  transform: translateY(-50%);
}

.ui-title {
  font-weight: 600;
}

.setup-rows {
  display: grid;
  gap: 0.95em;
  margin: 0;
  padding: 1.2em 1.5em 1.4em;
  list-style: none;
}

.setup-rows li {
  display: grid;
  grid-template-columns: 1.3em minmax(0, 1fr);
  column-gap: 0.8em;
  row-gap: 0.15em;
}

.setup-mark {
  position: relative;
  grid-row: 1 / span 3;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.12em var(--ui-bar);
}

.is-done .setup-mark {
  background: var(--ui-green);
  box-shadow: none;
}

/* A tick. */
.is-done .setup-mark::after {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0.33em;
  width: 0.55em;
  height: 0.3em;
  border-bottom: 0.14em solid #fff;
  border-left: 0.14em solid #fff;
  transform: rotate(-45deg);
}

.is-current .setup-mark {
  box-shadow: inset 0 0 0 0.12em var(--ui-accent);
}

.is-current .setup-mark::after {
  content: "";
  position: absolute;
  inset: 0.33em;
  border-radius: 50%;
  background: var(--ui-accent);
}

.setup-name {
  grid-column: 2;
  font-weight: 600;
}

.setup-why {
  grid-column: 2;
  color: var(--ui-sub);
}

.setup-buttons {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 0.5em;
  margin-top: 0.5em;
}

.ui-button {
  padding: 0.3em 0.85em;
  border-radius: 0.45em;
  background: var(--ui-group);
  box-shadow: 0 0 0 1px var(--ui-sep), 0 1px 1px rgb(0 0 0 / 0.1);
  white-space: nowrap;
}

.ui-button-default {
  background: var(--ui-accent);
  box-shadow: none;
  color: #fff;
}

.helper-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.6em;
  margin-left: -2.5em;
  padding: 1.1em 1em 1.2em;
  text-align: center;
}

.helper-panel img {
  width: 3.6em;
  height: 3.6em;
}

@container (max-width: 30rem) {
  .ui-setup {
    grid-template-columns: minmax(0, 1fr);
  }

  .helper-panel {
    justify-self: end;
    width: 72%;
    margin: -1.75em 0.5em 0 0;
  }
}

/* Ghostty, split: a shell on the left, Casement on the right. */

.ghostty {
  overflow: hidden;
  border-radius: 0.85em;
  background: #15171c;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 1em 2.4em rgb(0 0 0 / 0.4);
  color: #c9d1d9;
}

.ghostty-bar {
  position: relative;
  padding: 0.65em 1em;
  background: #1f2228;
  color: #9aa3ad;
  text-align: center;
}

.ghostty-bar .ui-lights {
  position: absolute;
  top: 50%;
  left: 0.95em;
  transform: translateY(-50%);
}

.ghostty-splits {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) 2px minmax(0, 1.25fr);
  min-height: 17em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.ghostty-shell {
  display: grid;
  align-content: start;
  gap: 0.3em;
  padding: 0.9em 1em;
  overflow: hidden;
  white-space: nowrap;
}

.sh-ps {
  color: #7ee787;
}

.sh-col {
  display: inline-block;
  width: 6.5em;
  color: #f0f3f6;
}

.sh-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: #c9d1d9;
  vertical-align: -0.2em;
}

.ghostty-divider {
  background: #2d3139;
}

.ghostty-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55em;
  min-width: 0;
  padding: 0.9em 1em 1em;
}

.view-title {
  overflow: hidden;
  color: #ede6d6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-safari {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 0.55em;
  background: #1f3247;
}

.mini-toolbar {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.45em 0.6em;
  background: #e8ebef;
}

.mini-url {
  flex: 1;
  min-width: 0;
  padding: 0.15em 0.6em;
  overflow: hidden;
  border-radius: 0.4em;
  background: #fff;
  color: #4a5666;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  font-size: 0.85em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-page {
  display: grid;
  align-content: start;
  gap: 0.45em;
  padding: 0.8em 0.9em 1em;
}

.mini-logo {
  width: 1.8em;
  height: 1.8em;
  margin: -0.2em 0 0.15em -0.2em;
}

.mini-head {
  width: 80%;
  height: 0.75em;
  border-radius: 999px;
  background: #ede6d6;
}

.mini-head.is-short {
  width: 50%;
}

.mini-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25em;
  height: 4.6em;
  margin-top: 0.5em;
  padding: 0.25em;
  border-radius: 0.35em;
  background: #ede6d6;
}

.mini-frame i {
  border-radius: 0.15em;
  background: linear-gradient(#79bcff 55%, #3fb8af 55%);
}

.mini-frame i + i {
  background: linear-gradient(#cbd5e1 18%, #fbfaf6 18%);
}

.mini-sill {
  height: 0.4em;
  margin-inline: -0.35em;
  border-radius: 999px;
  background: #ede6d6;
}

@container (max-width: 28rem) {
  .ghostty-splits {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 2px auto;
  }
}

/* The three permission steps, side by side where there's room. */

.guide-step > .perm-steps {
  display: grid;
  gap: 2.25rem 1.75rem;
  max-width: none;
  margin: 0.75rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

.perm-steps li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  max-width: 30rem;
  color: var(--fog);
}

.apple-guide {
  font-size: 0.875rem;
}

@media (min-width: 68rem) {
  .guide-step > .perm-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Where it stands */

.stages {
  display: grid;
  padding: 0;
  list-style: none;
}

.stage {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.stage-now {
  border-top: 3px solid var(--teal);
}

.stage h3 {
  display: flex;
  align-items: center;
}

.stage-date {
  color: var(--fog);
  font-size: 0.875rem;
}

.stage > p:not(.stage-date),
.stage ul {
  color: var(--fog);
}

.stage ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1em;
  list-style: disc;
}

.stage li::marker {
  color: var(--hinge);
}

.stage code {
  color: var(--frame);
}

.release-note {
  max-width: var(--measure);
  margin-top: 2rem;
  font-size: 1.3125rem;
  line-height: 1.5;
}

@media (min-width: 52rem) {
  .stages {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3rem;
  }
}

/* Platforms: the Mac now, Linux and Windows next. */

.platforms {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.platforms > p {
  max-width: var(--measure);
  color: var(--fog);
}

.platform-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.platform {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.25rem 1.4rem 1.4rem;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--rule);
}

.platform-current {
  background: var(--glass);
  box-shadow: inset 0 0 0 3px var(--frame);
}

.platform-name {
  font-size: 1.125rem;
  font-weight: 680;
}

.platform-state {
  display: flex;
  align-items: center;
  color: var(--fog);
  font-size: 0.875rem;
}

.platform-current .platform-state {
  color: var(--frame);
}

.platform-note {
  color: var(--fog);
  font-size: 0.875rem;
}

@media (min-width: 52rem) {
  .platform-list {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--page) - 2 * var(--gutter)));
  margin: clamp(4rem, 10vw, 7.5rem) auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--fog);
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-text {
  display: grid;
  gap: 0.4rem;
  max-width: 40rem;
}

/* 404 */

.not-found {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 7rem) var(--gutter) 0;
}

.not-found h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.not-found p {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--fog);
}

.empty-pane {
  display: grid;
  place-items: center;
  max-width: 34rem;
  aspect-ratio: 16 / 9;
  margin-top: 2.5rem;
  border: 12px solid var(--frame);
  border-radius: 18px;
  background: var(--glass);
  color: var(--fog-dim);
  font-family: var(--mono);
  font-size: 0.875rem;
}
