/* The morsel site: the editor's own palette and type, on a page. */
:root {
  --bg: #0b0d10;
  --panel: #12151a;
  --panel-2: #181c22;
  --line: #262c35;
  --line-2: #323a45;
  --text: #e7eaef;
  --dim: #8993a1;
  --faint: #5b6471;
  --accent: #ffb020;
  --accent-ink: #1a1200;
  --pink: #ff5fa2;
  --blue: #3aa0ff;
  --item: #b6e35a;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: 1120px;
  --read: 720px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #ffc55a;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.86em;
}
code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}
pre {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.7;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
  font-size: 13.5px;
}
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  color: var(--text);
}
.logo-dots {
  display: grid;
  grid-template-columns: repeat(4, 5px);
  gap: 2px;
}
.logo-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #262b33;
}
.logo-dots i:nth-child(2),
.logo-dots i:nth-child(5),
.logo-dots i:nth-child(7),
.logo-dots i:nth-child(12) {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(255, 176, 32, 0.6);
}
.logo-dots i:nth-child(10) {
  background: var(--pink);
  box-shadow: 0 0 6px rgba(255, 95, 162, 0.6);
}
.topnav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.topnav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}
.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel-2);
}

/* ---------- landing: hero ---------- */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}
.eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero h1 {
  margin: 18px auto 0;
  max-width: 14ch;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  margin: 22px auto 0;
  max-width: 34em;
  color: var(--dim);
  font-size: 18px;
}
.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--line-2);
  color: var(--text);
  background: var(--panel-2);
}
.btn:hover {
  color: var(--text);
  border-color: var(--dim);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn.primary:hover {
  background: #ffc04a;
  color: var(--accent-ink);
}

/* ---------- landing: the panel ---------- */

.stagebox {
  position: relative;
  max-width: 980px;
  margin: 56px auto 0;
}
/* The panel's own light, spilling onto the page behind it. */
.glow {
  position: absolute;
  inset: 4% 6%;
  width: 88%;
  height: 92%;
  filter: blur(48px) saturate(1.5);
  opacity: 0.5;
  image-rendering: auto;
  pointer-events: none;
}
.device {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1b1e23, #0f1114);
  border: 1px solid #2a2f37;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 80px rgba(0, 0, 0, 0.55);
}
.device canvas[data-panel] {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 6px;
  background: #07080a;
}

/* The deck as a timeline strip, the way the editor draws one. */
.reel-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 980px;
  margin: 18px auto 0;
}
.reel-toggle {
  flex: none;
  width: 72px;
  font: 600 12px var(--mono);
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.reel-toggle:hover {
  color: var(--text);
}
.reel-track {
  position: relative;
  flex: 1;
  display: flex;
  gap: 3px;
  min-width: 0;
}
.reel-slide {
  flex-basis: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--dim);
  font: 500 13px var(--font);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.reel-slide:hover {
  border-color: var(--line-2);
  color: var(--text);
}
.reel-slide.on {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
}
.reel-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.reel-tr {
  font: 11px var(--mono);
  color: var(--faint);
  white-space: nowrap;
}
.reel-playhead {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  margin-left: -1px;
  background: var(--pink);
  border-radius: 1px;
  pointer-events: none;
}
.reel-playhead::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -5px;
  border: 6px solid transparent;
  border-top-color: var(--pink);
  border-bottom: 0;
}
.reel-note {
  max-width: 980px;
  margin: 14px auto 0;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- landing: sections ---------- */

.section {
  padding: 96px 0 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head h2,
.run h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.section-head p {
  color: var(--dim);
  margin: 14px 0 0;
  font-size: 17px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.feature:nth-of-type(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature:nth-of-type(even) .feature-text {
  order: 2;
}
.feature h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.feature p {
  color: var(--dim);
  margin: 10px 0 0;
}
.feature-text .tag {
  display: inline-block;
  margin-bottom: 12px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.card h3 {
  margin: 0;
  font-size: 17px;
}
.card p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 15px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}

.run {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 48px;
  padding: 96px 0 0;
}
.run p {
  color: var(--dim);
}
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.step-label {
  font: 600 12px var(--mono);
  color: var(--dim);
  margin-bottom: 8px;
}

.footer {
  margin-top: 112px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
.footer .wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer a {
  color: var(--dim);
}

/* ---------- the guide ---------- */

.guide {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}
.toc {
  position: sticky;
  top: 60px;
  align-self: start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 36px 0;
  font-size: 14px;
}
.toc p {
  margin: 18px 0 6px;
  font: 600 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.toc p:first-child {
  margin-top: 0;
}
.toc a {
  display: block;
  padding: 4px 10px;
  margin-left: -10px;
  border-radius: 6px;
  color: var(--dim);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
}
.toc a.on {
  color: var(--text);
  background: var(--panel-2);
}
.article {
  max-width: var(--read);
  padding: 48px 0 0;
}
.article h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.article .lede {
  color: var(--dim);
  font-size: 18px;
  margin: 18px 0 0;
}
.article h2 {
  margin: 80px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.article h3 {
  margin: 48px 0 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article h3 .glyph {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}
.article h4 {
  margin: 28px 0 0;
  font-size: 16px;
}
.article p,
.article li {
  color: #c9ced6;
}
.article p {
  margin: 14px 0 0;
}
.article ul {
  margin: 14px 0 0;
  padding-left: 20px;
}
.article li {
  margin: 8px 0 0;
}
.article li::marker {
  color: var(--faint);
}
.article strong {
  color: var(--text);
  font-weight: 600;
}
.figure {
  margin: 26px 0 0;
}
.figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.figure.small img {
  max-width: 360px;
}
.figure.medium img {
  max-width: 640px;
}
/* Wide figures reach past the text column when there's room. */
@media (min-width: 1180px) {
  .figure.wide {
    margin-right: -160px;
  }
}
.figure figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13.5px;
}
.callout {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--item);
  background: color-mix(in srgb, var(--item) 6%, var(--panel));
  border-radius: 0 10px 10px 0;
}
.callout p:first-child {
  margin-top: 0;
}
.side-by-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---------- small screens ---------- */

@media (max-width: 880px) {
  .feature,
  .feature:nth-of-type(even),
  .run {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .feature:nth-of-type(even) .feature-text {
    order: 0;
  }
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .toc {
    display: none;
  }
  .side-by-side {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .wrap,
  .guide {
    padding: 0 16px;
  }
  .hero {
    padding-top: 48px;
  }
  .device {
    padding: 10px;
    border-radius: 12px;
  }
  .reel-tr {
    display: none;
  }
  .reel-slide {
    padding: 8px 6px;
    font-size: 11px;
  }
  .reel-toggle {
    width: 56px;
  }
  .section,
  .run {
    padding-top: 64px;
  }
  .topbar .wrap {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- the Mac app page ---------- */

.mac-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1040px;
  margin: 56px auto 0;
  text-align: left;
}
.pane-label {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
/* A Mac desktop: wallpaper, a menu bar, and the app's menu open under its icon. */
.desk {
  position: relative;
  height: 100%;
  min-height: 520px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 85% 10%, #3a2f6b 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 100%, #13456b 0%, transparent 60%),
    linear-gradient(160deg, #1d2238, #0d1220);
}
.menubar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  height: 28px;
  padding: 0 14px;
  background: rgba(20, 22, 30, 0.55);
  backdrop-filter: blur(20px);
  font: 500 12.5px var(--font);
  color: #e9ecf2;
}
.menubar .mb-icon {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 2px;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
}
.menubar .mb-icon i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}
.menubar svg {
  width: 15px;
  height: 15px;
  opacity: 0.9;
}
.desk .menu-shot {
  position: absolute;
  top: 34px;
  right: 74px;
  width: 340px;
  max-width: calc(100% - 24px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.tidbyt {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tidbyt .stagebox {
  margin: 0;
  max-width: none;
  flex: none;
}
.tidbyt .reel-bar {
  margin-top: 14px;
  max-width: none;
}
.tidbyt p {
  color: var(--dim);
  font-size: 15px;
  margin: 18px 0 0;
}
/* A macOS window around a settings pane. */
.window {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3a3d44;
  background: #1e1e1e;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: #2a2a2c;
  border-bottom: 1px solid #111;
  font: 600 12.5px var(--font);
  color: #c8cad0;
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}
.window-bar span {
  margin: 0 auto;
  transform: translateX(-24px);
}
.window img {
  display: block;
  width: 100%;
  height: auto;
}
.mac-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.mac-feature h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.mac-feature p,
.mac-feature li {
  color: var(--dim);
}
.mac-feature p {
  margin: 10px 0 0;
}
.mac-feature ul {
  margin: 12px 0 0;
  padding-left: 18px;
}
.mac-feature li {
  margin: 6px 0 0;
}
.steps-list {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps-list > li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 62px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--dim);
}
.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 17px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
  color: var(--accent);
  font: 600 13px var(--mono);
}
.steps-list strong {
  color: var(--text);
}
.steps-list pre {
  margin-top: 12px;
}
.note {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
  color: var(--dim);
  font-size: 15px;
}
.note strong {
  color: var(--text);
}
.status-dots {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.status-dots div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--dim);
}
.status-dots i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-1px);
}
@media (max-width: 880px) {
  .mac-hero,
  .mac-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .desk {
    min-height: 480px;
  }
  .desk .menu-shot {
    right: 50%;
    transform: translateX(50%);
  }
}
