:root {
  color-scheme: light dark;

  /* Light scheme */
  --canvas: #f6f3ec;
  --surface: #fdfcf9;
  --surface-alt: #ece6d9;
  --ink: #1c1f1b;
  --ink-soft: #5a5f57;
  --line: #d6d0c2;
  --accent: #b5451b;
  --accent-hover: #943614;
  --accent-ink: #fdfcf9;
  --focus: #1f5fbf;

  /* Slate ground, same in both schemes */
  --slate: #1f241f;
  --slate-deep: #161a16;
  --slate-line: #3a413a;
  --chalk: #f2efe6;
  --chalk-soft: #b9bdb2;
  --amber: #e9a64a;
  --amber-ink: #161a16;

  /* Board status chips (on slate) */
  --plenty-bg: #2f4a2c;
  --plenty-text: #cde9c2;
  --low-bg: #5a4214;
  --low-text: #f5d58c;
  --sold-bg: #3a3f3a;
  --sold-text: #c9cdc4;

  --shadow-sm: 0 1px 2px rgb(28 31 27 / 0.1);
  --shadow-md: 0 8px 24px rgb(28 31 27 / 0.14);
  --shadow-board: 0 24px 60px rgb(22 26 22 / 0.35), 0 2px 4px rgb(22 26 22 / 0.25);

  --hl-bg: #f8e3b0;
  --hl-text: #5c3a00;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rh: 3.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #151815;
    --surface: #1f241f;
    --surface-alt: #2a302a;
    --ink: #f2efe6;
    --ink-soft: #b9bdb2;
    --line: #3a413a;
    --accent: #e9a64a;
    --accent-hover: #f3bc6a;
    --accent-ink: #151815;
    --focus: #8db8ff;
    --slate: #262c26;
    --slate-deep: #1f241f;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-md: 0 8px 24px rgb(0 0 0 / 0.5);
    --shadow-board: 0 24px 60px rgb(0 0 0 / 0.6), 0 0 0 1px var(--slate-line);
    --hl-bg: var(--low-bg);
    --hl-text: var(--low-text);
  }
}

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

html {
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

@media (min-width: 700px) {
  body {
    font-size: 1.0625rem;
  }
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.soft {
  color: var(--ink-soft);
}

.small {
  font-size: 0.9375rem;
}

.measure-52 {
  max-width: 52ch;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--surface-alt);
}

.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
}

.btn-amber:hover {
  background: #f3bc6a;
}

.btn-chalk {
  border-color: var(--chalk);
  color: var(--chalk);
}

.btn-chalk:hover {
  background: rgb(242 239 230 / 0.12);
}

.btn-pill {
  min-height: 44px;
  padding: 0 20px;
  white-space: nowrap;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-row.center {
  justify-content: center;
}

@media (max-width: 419px) {
  .btn-row {
    flex-direction: column;
  }
  .btn-row .btn {
    width: 100%;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: 1160px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  margin-right: auto;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav {
  display: none;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9375rem;
}

.nav a:hover {
  color: var(--ink);
}

@media (min-width: 700px) {
  .nav {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  gap: 40px;
  padding: 32px 20px 56px;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-loaf {
  position: absolute;
  width: 520px;
  height: 364px;
  right: -140px;
  top: -40px;
  fill: var(--surface-alt);
  opacity: 0.6;
  pointer-events: none;
  transform: translate(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -6px));
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0 4px;
}

.hero h1 {
  font-size: 2.25rem;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 60ch;
}

.hero-visual {
  position: relative;
}

@media (min-width: 700px) {
  .hero h1 {
    font-size: clamp(2.75rem, 4.4vw, 4rem);
    letter-spacing: -0.025em;
  }
}

@media (min-width: 960px) {
  :root {
    --rh: 3.25rem;
  }
  .hero {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    min-height: max(640px, calc(100vh - 64px));
    padding: 48px 20px;
    gap: 56px;
  }
  .hero-visual {
    margin-right: clamp(-80px, calc(32px - (100vw - 1160px) / 2), 0px);
  }
}

/* The board */
.board-rise {
  position: relative;
  padding-bottom: 0;
}

.board {
  background: var(--slate);
  border-radius: 24px;
  box-shadow: var(--shadow-board);
  padding: 6px;
  color: var(--chalk);
  transform: perspective(1200px) rotateX(calc(var(--ry, 0) * -2deg)) rotateY(calc(var(--rx, 0) * 2deg));
}

.board-frame {
  border: 6px solid var(--slate-line);
  border-radius: 18px;
  padding: 24px 20px 20px;
  position: relative;
}

@media (min-width: 700px) {
  .board-frame {
    padding: 32px 36px 28px;
  }
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.board-title,
.bname {
  font-family: var(--display);
  font-weight: 500;
  color: var(--chalk);
  text-shadow: 0 1px 0 var(--chalk-soft);
  text-shadow: 0 1px 0.5px color-mix(in srgb, var(--chalk-soft) 70%, transparent);
}

.board-title {
  font-size: 1.625rem;
  letter-spacing: -0.015em;
}

.board-updated {
  position: relative;
  display: grid;
  font-size: 0.8125rem;
  color: var(--chalk-soft);
}

.board-updated > span {
  grid-area: 1 / 1;
  text-align: right;
}

.u-old {
  opacity: 0;
}

.board-day {
  margin-top: 4px;
  color: var(--chalk-soft);
  font-size: 0.9375rem;
}

.board-rows {
  position: relative;
  height: calc(var(--rh) * 5);
  margin-top: 16px;
}

.brow {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--rh);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed var(--slate-line);
}

.r1 { top: 0; }
.r2 { top: var(--rh); }
.r3 { top: calc(var(--rh) * 2); transform: translateY(calc(var(--rh) * 2)); }
.r4 { top: calc(var(--rh) * 3); transform: translateY(calc(var(--rh) * -1)); }
.r5 { top: calc(var(--rh) * 4); transform: translateY(calc(var(--rh) * -1)); }

.bname {
  font-size: 1.0625rem;
  line-height: 1.2;
  min-width: 0;
}

.bname-text {
  position: relative;
  display: inline-block;
}

.bname-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 2px;
  background: var(--chalk);
}

@media (min-width: 700px) {
  .bname {
    font-size: 1.25rem;
  }
}

.bprice {
  font-weight: 600;
  color: var(--amber);
}

.bchip {
  display: grid;
  justify-items: end;
}

.bchip > * {
  grid-area: 1 / 1;
}

.chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: nowrap;
}

.chip-plenty {
  background: var(--plenty-bg);
  color: var(--plenty-text);
}

.chip-low {
  background: var(--low-bg);
  color: var(--low-text);
}

.chip-sold {
  background: var(--sold-bg);
  color: var(--sold-text);
}

/* Final state is the default (reduced motion); the loop only adds motion. */
.c-old {
  opacity: 0;
}

.board-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--chalk-soft);
}

.open-card {
  position: relative;
  margin: 16px 0 0 16px;
  width: fit-content;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transform: translate(calc(var(--mx, 0) * 4px), calc(var(--my, 0) * 4px));
}

.chip-open {
  font-size: 0.9375rem;
}

@media (min-width: 700px) {
  .open-card {
    position: absolute;
    left: -24px;
    bottom: -28px;
    margin: 0;
  }
}

@media (max-width: 699px) {
  :root {
    --rh: 3.5rem;
  }
  .board-frame {
    padding-left: 16px;
    padding-right: 16px;
  }
  .bname {
    font-size: 1rem;
  }
  .bchip {
    min-width: 0;
  }
  .open-card {
    margin: 12px 0 0;
  }
  .code {
    font-size: 0.8125rem;
    padding: 16px;
  }
}

/* Board loop: 16s, transform / opacity / clip-path only */
@media (prefers-reduced-motion: no-preference) {
  .board-rise {
    animation: rise 400ms ease-out both;
  }

  .board-rows {
    animation: stack 16s linear infinite;
  }

  .r1 { animation: wr1 16s linear infinite; }
  .r2 { animation: wr2 16s linear infinite; }
  .r3 { animation: wr3 16s linear infinite; }
  .r4 { animation: wr4 16s linear infinite; }
  .r5 { animation: wr5 16s linear infinite; }

  .r1 .c-old { animation: chip-out 16s linear infinite; }
  .r1 .c-new { animation: chip-in 16s linear infinite; }
  .r3 .c-old { animation: chip-out3 16s linear infinite; }
  .r3 .c-new { animation: chip-in3 16s linear infinite; }
  .bname-text::after { animation: strike 16s linear infinite; }
  .u-old { animation: stamp-out 16s linear infinite; }
  .u-new { animation: stamp-in 16s linear infinite; }

  /* The chip pair in a row starts as Plenty, so the old chip shows first. */
  .c-old {
    opacity: 1;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes stack {
  0%, 90.625% { opacity: 1; }
  93.125%, 99.99% { opacity: 0; }
  100% { opacity: 1; }
}

/* Row i writes in at 0.8s + 0.5s*(i-1) over 350ms (2.19%). Row 3 also moves down at 9.0s,
   rows 4 and 5 move up, over 480ms (3%). */
@keyframes wr1 {
  0%, 5% { clip-path: inset(0 100% 0 0); }
  7.1875%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes wr2 {
  0%, 8.125% { clip-path: inset(0 100% 0 0); }
  10.3125%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes wr3 {
  0%, 11.25% { clip-path: inset(0 100% 0 0); transform: translateY(0); }
  13.4375% { clip-path: inset(0 0 0 0); }
  56.25% { transform: translateY(0); animation-timing-function: ease-in-out; }
  59.25%, 100% { clip-path: inset(0 0 0 0); transform: translateY(calc(var(--rh) * 2)); }
}
@keyframes wr4 {
  0%, 14.375% { clip-path: inset(0 100% 0 0); transform: translateY(0); }
  16.5625% { clip-path: inset(0 0 0 0); }
  56.25% { transform: translateY(0); animation-timing-function: ease-in-out; }
  59.25%, 100% { clip-path: inset(0 0 0 0); transform: translateY(calc(var(--rh) * -1)); }
}
@keyframes wr5 {
  0%, 17.5% { clip-path: inset(0 100% 0 0); transform: translateY(0); }
  19.6875% { clip-path: inset(0 0 0 0); }
  56.25% { transform: translateY(0); animation-timing-function: ease-in-out; }
  59.25%, 100% { clip-path: inset(0 0 0 0); transform: translateY(calc(var(--rh) * -1)); }
}

/* Chips swap in 240ms (1.5%) */
@keyframes chip-out {
  0%, 37.5% { opacity: 1; transform: scale(1); }
  39%, 100% { opacity: 0; transform: scale(0.9); }
}
@keyframes chip-in {
  0%, 37.5% { opacity: 0; transform: scale(0.9); }
  39%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes chip-out3 {
  0%, 56.25% { opacity: 1; transform: scale(1); }
  57.75%, 100% { opacity: 0; transform: scale(0.9); }
}
@keyframes chip-in3 {
  0%, 56.25% { opacity: 0; transform: scale(0.9); }
  57.75%, 100% { opacity: 1; transform: scale(1); }
}

/* Strike-through wipes over 300ms (1.875%) */
@keyframes strike {
  0%, 56.25% { clip-path: inset(0 100% 0 0); }
  58.125%, 100% { clip-path: inset(0 0 0 0); }
}

/* Timestamp crossfade at 9.2s */
@keyframes stamp-out {
  0%, 57.5% { opacity: 1; }
  59%, 100% { opacity: 0; }
}
@keyframes stamp-in {
  0%, 57.5% { opacity: 0; }
  59%, 100% { opacity: 1; }
}

/* Sections */
.section {
  padding: 72px 0;
}

@media (min-width: 700px) {
  .section {
    padding: 112px 0;
  }
  h2 {
    font-size: 3rem;
    letter-spacing: -0.025em;
  }
}

.how {
  background: var(--canvas);
}

.how-head {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.steps {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: 48px;
  padding-left: 28px;
}

.steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.step {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.step-time {
  font-family: var(--display);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 36px 0 0;
  }
  .steps::before {
    left: 0;
    right: 0;
    top: 5px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .step::before {
    left: 24px;
    top: -36px;
  }
}

.eyebrow {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.features {
  background: var(--surface-alt);
}

.features h2 {
  max-width: 18ch;
}

.bento {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.tile > p {
  max-width: 60ch;
}

@media (min-width: 700px) {
  .tile {
    padding: 32px;
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }
  .tile-a { grid-column: span 7; }
  .tile-b { grid-column: span 5; }
  .tile-c { grid-column: span 5; }
  .tile-d { grid-column: span 7; }
}

.mini-board {
  margin-top: auto;
  padding: 16px 18px;
  background: var(--slate);
  border: 1px solid var(--slate-line);
  border-radius: 14px;
  color: var(--chalk);
}

.mini-updated {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--chalk-soft);
}

.mini-board li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 2.75rem;
  border-bottom: 1px dashed var(--slate-line);
  font-family: var(--display);
  font-weight: 500;
}

.mini-board li:last-child {
  border-bottom: 0;
}

.struck {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.demo {
  display: grid;
  gap: 12px;
}

.afilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.afilter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  font-weight: 600;
}

.afilter.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.hours {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.hours th,
.hours td {
  padding: 8px 14px;
  text-align: left;
}

.hours td {
  text-align: right;
}

.hours tr.today th,
.hours tr.today td {
  background: var(--hl-bg);
  color: var(--hl-text);
  font-weight: 600;
}

.hours tr.today th {
  border-radius: 10px 0 0 10px;
}

.hours tr.today td {
  border-radius: 0 10px 10px 0;
}

/* Cake planner: radios and :has(), no JavaScript */
.planner {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.planner fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
  cursor: pointer;
}

.opt:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.opt:has(input:focus-visible),
.msg-chip:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.opt input,
.msg-chip input {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  margin: 0;
}

.opt-body {
  display: grid;
  flex: 1;
  line-height: 1.35;
  min-width: 0;
}

.opt-body .soft {
  font-size: 0.9375rem;
}

.opt-price {
  font-weight: 600;
}

.msg-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  font-weight: 600;
  cursor: pointer;
}

.msg-chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.msg-chip input {
  accent-color: var(--accent-ink);
}

.total {
  display: grid;
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.625rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.t {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms ease-out,
    visibility 0s linear 160ms;
}

@media (prefers-reduced-motion: reduce) {
  .t {
    transition: none;
  }
}

.planner:has(#size6:checked):not(:has(#msg:checked)) .t28,
.planner:has(#size6:checked):has(#msg:checked) .t31,
.planner:has(#size8:checked):not(:has(#msg:checked)) .t38,
.planner:has(#size8:checked):has(#msg:checked) .t41,
.planner:has(#size10:checked):not(:has(#msg:checked)) .t52,
.planner:has(#size10:checked):has(#msg:checked) .t55 {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Try it */
.try {
  background: var(--canvas);
}

.try-head {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 20px;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out;
}

.tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.frame {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.frame-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.addr {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 16px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.frame iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: var(--canvas);
}

@media (min-width: 700px) {
  .frame iframe {
    height: 680px;
  }
}

.frame-note {
  max-width: 1040px;
  margin: 16px auto 0;
  text-align: center;
}

@media (max-width: 699px) {
  .try .wrap {
    padding: 0;
  }
  .try-head,
  .tabs,
  .frame-note {
    padding: 0 20px;
  }
  .frame {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
}

/* Make it yours */
.yours {
  background: var(--canvas);
}

.yours-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.yours-copy {
  display: grid;
  gap: 20px;
}

.nots-title {
  margin-top: 16px;
}

.nots {
  display: grid;
  gap: 14px;
}

.nots li {
  position: relative;
  padding-left: 28px;
}

.nots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.code {
  margin: 0;
  padding: 24px;
  background: var(--slate);
  border: 1px solid var(--slate-line);
  border-radius: 16px;
  color: var(--chalk);
  font: 0.9375rem/1.7 var(--mono);
  overflow-x: auto;
  min-width: 0;
  box-shadow: var(--shadow-md);
}

.code i {
  font-style: normal;
  color: var(--amber);
}

.code .cm {
  color: var(--chalk-soft);
}

@media (min-width: 960px) {
  .yours-grid {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }
  .code {
    grid-column: 1;
    grid-row: 1;
  }
  .yours-copy {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Close */
.close {
  position: relative;
  overflow: clip;
  display: grid;
  place-items: center;
  padding: 64px 20px;
  background: var(--slate);
  color: var(--chalk);
  text-align: center;
}

@media (min-width: 700px) {
  .close {
    min-height: 70vh;
    padding: 96px 20px;
  }
}

.close-loaf {
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: 760px;
  height: 532px;
  max-width: none;
  transform: translateX(-50%);
  fill: var(--slate-line);
  pointer-events: none;
}

.close-copy {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 820px;
}

.close h2 {
  font-size: 2.25rem;
  letter-spacing: -0.015em;
  color: var(--chalk);
}

.close p {
  max-width: 44ch;
  color: var(--chalk-soft);
}

@media (min-width: 700px) {
  .close h2 {
    font-size: 3rem;
    letter-spacing: -0.025em;
  }
}

.site-footer {
  background: var(--slate);
  color: var(--chalk-soft);
  border-top: 1px solid var(--slate-line);
  font-size: 0.8125rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.footer-inner strong {
  color: var(--chalk);
  font-family: var(--display);
  font-weight: 600;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  color: var(--chalk);
}

.site-footer :focus-visible,
.close :focus-visible {
  outline-color: #8db8ff;
}

/* Entry reveals: only when main.js has run and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 400ms ease-out calc(var(--i, 0) * 80ms),
      transform 400ms ease-out calc(var(--i, 0) * 80ms);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  .js .frame.reveal {
    transform: translateY(24px);
  }
  .js .frame.reveal.in {
    transform: none;
  }
  .js .steps::before {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 480ms ease-out;
  }
  .js .steps.in::before {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .js .steps::before {
    clip-path: inset(0 0 100% 0);
  }
  .js .steps.in::before {
    clip-path: inset(0 0 0 0);
  }
}
