:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #253b2e;
  background: #f7f5ee;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.button {
  font: inherit;
  font-size: 14px;
  border: 1px solid #294e3c;
  border-radius: 5px;
  padding: 12px 18px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  background: #294e3c;
  color: white;
  opacity: 0.55;
  cursor: not-allowed;
}
button:hover:not(:disabled),
.button:hover {
  background: #e8ece2;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #aa8237;
  outline-offset: 5px;
}
header,
footer {
  max-width: 1240px;
  margin: auto;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 35px;
  font-weight: 600;
  letter-spacing: -1.8px;
  display: inline-block;
}
.brand span {
  display: block;
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 3px;
  margin-top: 6px;
}
.brand.small {
  font-size: 24px;
}
.brand.small span {
  font-size: 7px;
  letter-spacing: 2px;
}
.hero {
  text-align: center;
  padding: 100px 20px 90px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.8;
}
h1 {
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 400;
  letter-spacing: -4px;
  line-height: 1.05;
  margin: 26px 0;
}
.intro {
  font-size: 22px;
  color: #647165;
}
.actions {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  margin: 36px 0 12px;
}
.actions a {
  font-size: 14px;
}
.quiet {
  font-size: 12px;
  line-height: 1.6;
  color: #758075;
}
h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.3px;
}
.demo-section {
  max-width: 1144px;
  margin: auto;
  padding: 0 24px;
}
.demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.demo-heading h2 {
  margin: 10px 0;
}
.demo {
  border: 1px solid #cbd4c8;
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcf8;
}
.demo-toolbar {
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce2dc;
  font-size: 10px;
  letter-spacing: 1px;
}
.status {
  color: #758075;
}
.demo-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 400px;
}
.editor {
  padding: 30px 26px;
}
.editor-title {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.editor-title > span:first-child {
  font-size: 9px;
  letter-spacing: 1px;
  width: 100%;
}
.editor-title strong {
  font-size: 25px;
  font-weight: 400;
}
.mock-button {
  font-size: 11px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #dce2dc;
  border-radius: 4px;
  margin-left: auto;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1px;
  background: #eef1e9;
  padding: 12px;
}
.demo-row {
  display: grid;
  grid-template-columns: 15px 1fr 25px 42px;
  gap: 12px;
  padding: 17px 6px;
  border-bottom: 1px solid #dce2dc;
  align-items: center;
  font-size: 12px;
  transition:
    transform 0.7s,
    opacity 0.6s,
    background 0.6s;
}
.demo-row strong {
  font-weight: 500;
}
.demo-row small {
  display: block;
  font-size: 9px;
  color: #758075;
  margin-top: 6px;
}
.grip {
  font-size: 21px;
  color: #899489;
}
.show {
  font-size: 9px;
}
.format {
  display: flex;
  align-items: center;
  font-size: 11px;
  margin: 25px 0;
}
.blocks {
  display: grid;
  gap: 8px;
}
.block {
  border: 1px solid #dce2dc;
  padding: 12px;
  font-size: 11px;
  transition: transform 0.7s;
}
.preview {
  background: #e9eee5;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.paper {
  background: #fffefa;
  box-shadow: 0 3px 10px #253b2e10;
  width: 100%;
  max-width: 280px;
  min-height: 340px;
  padding: 24px 28px;
  font-family: "Courier Prime", monospace;
  font-size: 10px;
  transition: transform 0.8s;
}
.restaurant {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 39px;
  margin: 0;
}
.menu-note {
  text-align: center;
  font-size: 7px;
  margin: 14px 0 24px;
}
.paper section {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s;
}
.paper h3 {
  font-size: 12px;
  font-weight: 400;
  margin: 12px 0;
}
.paper section p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 7px 0;
}
.paper-salad {
  transition: opacity 0.7s;
}
.publish {
  padding: 10px 20px;
  border: 1px solid #becaba;
  border-radius: 4px;
  font-size: 11px;
}
.demo-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid #dce2dc;
  padding: 12px 0;
}
.demo-caption > span {
  font: 11px monospace;
  color: #758075;
}
.notes {
  max-width: 1144px;
  margin: 100px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 0 24px;
}
.notes article > p:last-child {
  color: #647165;
  line-height: 1.8;
  max-width: 380px;
  font-size: 15px;
}
.closing {
  text-align: center;
  padding: 30px 20px 100px;
}
.closing h2 {
  font-size: 48px;
}
footer {
  border-top: 1px solid #dce2dc;
  font-size: 12px;
  color: #647165;
}
@media (max-width: 700px) {
  header,
  footer {
    padding: 24px;
  }
  .hero {
    padding: 65px 20px;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .intro {
    font-size: 18px;
  }
  .demo-heading {
    display: block;
  }
  .demo-toolbar {
    padding: 18px;
  }
  .demo-toolbar > span:nth-child(2) {
    display: none;
  }
  .demo-body {
    grid-template-columns: 1fr;
  }
  .editor {
    padding: 24px 18px;
  }
  .preview {
    padding: 28px;
  }
  .notes {
    grid-template-columns: 1fr;
    gap: 36px;
    margin: 64px auto;
  }
  .closing {
    padding-bottom: 64px;
  }
  .closing h2 {
    font-size: 36px;
  }
  footer > span:last-child {
    max-width: 120px;
    text-align: right;
    line-height: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
.editor {
  position: relative;
}
.demo-pointer {
  position: absolute;
  z-index: 4;
  width: 9px;
  height: 9px;
  border: 2px solid #294e3c;
  background: #fffefa;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.insertion-line {
  position: absolute;
  height: 2px;
  background: #294e3c;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}
.price {
  width: 30px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 3px 0;
}
.demo-row {
  min-height: 74px;
  background: #fbfcf8;
}
.demo-row strong,
.demo-row small {
  font-family: "Courier Prime", monospace;
}
.demo-row small {
  font-size: 11px;
  color: #596a5a;
}
.show {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  white-space: nowrap;
}
.show input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #294e3c;
}
.restaurant {
  font-family: Arial, sans-serif;
  font-size: 28px;
  letter-spacing: -1px;
}
.paper {
  display: flex;
  flex-direction: column;
  min-height: 362px;
}
.paper section {
  flex: none;
}
.paper h3 {
  flex: none;
}
.paper-salad {
  max-height: 30px;
  overflow: hidden;
  transition:
    opacity 0.6s,
    max-height 0.6s,
    margin 0.6s;
}
.publish {
  min-height: 44px;
}
.quiet,
.status,
.demo-caption > span {
  color: #5c6b5d;
}
.actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
input:focus-visible,
select:focus-visible {
  outline: 3px solid #aa8237;
  outline-offset: 3px;
}
.demo-caption {
  min-height: 68px;
  gap: 16px;
}
.demo-caption > span {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .demo-heading {
    align-items: flex-start;
    gap: 20px;
  }
  .demo-row {
    gap: 7px;
  }
  .editor {
    padding: 24px 16px;
  }
}
@media (max-width: 700px) {
  .demo-row {
    font-size: 13px;
    grid-template-columns: 15px 1fr 25px 45px;
  }
  .editor-title {
    margin-bottom: 18px;
  }
  .paper {
    max-width: 320px;
    height: 420px;
    min-height: 420px;
    font-size: 12px;
    padding: 24px;
  }
  .paper h3 {
    font-size: 14px;
  }
  .menu-note {
    font-size: 9px;
  }
  .demo-caption {
    font-size: 13px;
  }
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* One readable product viewport with six normal document-scroll zones. */
.viewport-probe {
  position: fixed;
  width: 0;
  height: 100vh;
  height: 100svh;
  max-height: 100dvh;
  visibility: hidden;
  pointer-events: none;
}
.scroll-story {
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  height: calc(var(--pin-height, 800px) + max(2880px, 510svh));
}
.demo-pin {
  position: sticky;
  top: var(--pin-top, 16px);
}
#demo input:disabled,
#demo select:disabled {
  color: inherit;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}
.publish {
  display: inline-flex;
  align-items: center;
}
@media (max-width: 700px) {
  .demo-section {
    padding: 0 16px;
  }
  .demo-toolbar {
    padding: 10px 14px;
  }
  .editor {
    padding: 12px;
  }
  .editor-title {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-bottom: 8px;
    gap: 2px 8px;
  }
  .editor-title > span:first-child {
    grid-column: 1 / -1;
    width: auto;
  }
  .editor-title strong {
    font-size: 18px;
  }
  .section-label {
    padding: 7px;
  }
  .demo-row {
    min-height: 52px;
    padding: 7px 2px;
  }
  .demo-row small {
    margin-top: 3px;
  }
  .format {
    margin: 10px 0;
  }
  .blocks {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .block {
    padding: 8px;
  }
  .preview {
    padding: 12px;
    gap: 8px;
  }
  .paper {
    height: 256px;
    min-height: 256px;
    padding: 12px 22px;
  }
  .restaurant {
    font-size: 22px;
  }
  .menu-note {
    margin: 6px 0 9px;
  }
  .paper h3 {
    margin: 7px 0;
  }
  .paper section p {
    margin: 5px 0;
  }
  .publish {
    min-height: 32px;
    padding: 7px 14px;
  }
  .demo-caption {
    min-height: 52px;
    padding: 6px 0;
  }
}

/* Keep the current action legible for the entire scroll zone. */
.demo-caption {
  background: #eef1e9;
  border-left: 3px solid #294e3c;
  border-radius: 0 0 6px 6px;
  padding: 12px 20px;
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 500;
  line-height: 1.3;
}
.demo-caption p {
  margin: 8px 0;
}
.demo-caption > span {
  color: #294e3c;
  font-size: 13px;
}
.demo[data-step="1"] .price,
.demo[data-step="1"] .paper-price,
.demo[data-step="2"] .olives,
.demo[data-step="2"] .paper-olives,
.demo[data-step="3"] .salad .show,
.demo[data-step="4"] #format-value,
.demo[data-step="4"] .paper h3,
.demo[data-step="5"] .blocks,
.demo[data-step="5"] .paper section,
.demo[data-step="6"] .publish {
  background-color: #faf6eb;
  border-radius: 3px;
}
.demo[data-step="1"] .blocks,
.demo[data-step="2"] .format,
.demo[data-step="2"] .blocks,
.demo[data-step="3"] .blocks,
.demo[data-step="4"] .demo-row,
.demo[data-step="5"] .demo-row,
.demo[data-step="6"] .editor {
  opacity: 0.55;
}
@media (max-width: 700px) {
  .demo-caption {
    padding: 8px 12px;
    font-size: 18px;
    min-height: 66px;
  }
  .demo-caption p {
    margin: 4px 0;
  }
}

/* One phone action spans about 70% of a small viewport, without scroll interception. */
@media (max-width: 700px) {
  .scroll-story {
    height: calc(var(--pin-height, 800px) + max(1800px, 420svh));
  }
  .demo-caption {
    min-height: 88px;
    align-items: center;
    box-shadow: 0 4px 14px #253b2e12;
  }
  .demo-caption p {
    max-width: 26ch;
  }
  .demo-caption > span {
    font-size: 11px;
    opacity: 0.75;
  }
}
/* Every moving property is scrubbed; CSS must not chase scroll with a timer. */
#demo *,
#demo *::before,
#demo *::after {
  transition: none;
}
.demo {
  position: relative;
}
.demo-row,
.block,
.paper section,
.paper section p {
  position: relative;
}
.paper-salad {
  max-height: none;
  flex: none;
}
.price-edit {
  position: relative;
  display: inline-block;
  width: 30px;
}
.price-edit .price {
  color: transparent;
  caret-color: transparent;
}
.value-layers {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  pointer-events: none;
}
.value-layers > span {
  grid-area: 1 / 1;
}
.value-layers .before {
  opacity: calc(1 - var(--value, 0));
}
.value-layers .after {
  opacity: var(--value, 0);
}
.editor-price-layers {
  --value: var(--edit);
}
.paper-price {
  position: relative;
  color: transparent;
}
.paper-price-layers {
  color: #253b2e;
  --value: var(--price-result);
}
.editor-price-layers .before {
  transform: translateY(calc(var(--edit) * -7px));
}
.editor-price-layers .after {
  transform: translateY(calc((1 - var(--edit)) * 7px));
}
.paper-price-layers .before {
  transform: translateY(calc(var(--price-result) * -5px));
}
.paper-price-layers .after {
  transform: translateY(calc((1 - var(--price-result)) * 5px));
}
.paper h3 {
  position: relative;
}
.heading-regular {
  opacity: calc(1 - var(--format));
}
.heading-italic {
  position: absolute;
  inset: 0;
  font-style: italic;
  opacity: var(--format);
}
#salad-show {
  appearance: none;
  border: 1px solid #647165;
  background: #fffefa;
  border-radius: 2px;
  position: relative;
}
#salad-show::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 4px;
  height: 7px;
  border: solid #294e3c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: var(--check);
}
.olives .grip {
  color: #aa8237;
  background: rgb(233 215 165 / var(--grip));
  border-radius: 3px;
}
.insertion-line {
  background: #aa8237;
  transform-origin: left;
}
.demo-pointer {
  border-color: #aa8237;
}
.paper {
  transform: translateY(calc(var(--reveal) * -3px));
  box-shadow: 0 calc(3px + var(--reveal) * 7px)
    calc(10px + var(--reveal) * 20px) #253b2e20;
}
#demo .publish {
  position: relative;
  min-width: 150px;
  justify-content: center;
  color: transparent;
  background: rgb(41 78 60 / var(--reveal));
}
.publish-layers {
  --value: var(--reveal);
  text-align: center;
}
.publish-layers .before {
  color: #253b2e;
}
.publish-layers .after {
  color: white;
}
.cause-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.cause-link path {
  fill: none;
  stroke: #aa8237;
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.cause-halo {
  position: absolute;
  z-index: 5;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px #aa823724,
    0 0 10px 3px #aa823728;
  pointer-events: none;
}
.demo-caption {
  position: relative;
  border-left-color: #aa8237;
  background: #f6efdf;
  min-height: 88px;
  font-weight: 600;
}
.demo-caption::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aa8237;
  box-shadow: 0 0 0 4px #aa82371a;
}
.demo-caption p {
  margin-right: auto;
}
.demo-caption > span {
  font-weight: 400;
  opacity: 0.7;
}
@media (max-width: 700px) {
  .demo-caption {
    gap: 10px;
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .editor-price-layers > span,
  .paper-price-layers > span,
  .paper {
    transform: none;
  }
}

/* Reserve browser/safe-area space without scaling text or cutting off context. */
@media (min-width: 701px) {
  .scroll-story[data-compact="true"] .editor {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .scroll-story[data-compact="true"] .editor-title {
    margin-bottom: 16px;
    gap: 8px;
  }
  .scroll-story[data-short="true"] .demo-toolbar {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .scroll-story[data-short="true"] .demo-row {
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .scroll-story[data-short="true"] .format {
    margin: 10px 0;
  }
}

@media (max-width: 700px) {
  .scroll-story[data-compact="true"] .demo-toolbar {
    padding: 6px 10px;
    min-height: 32px;
  }
  .scroll-story[data-compact="true"] .demo-toolbar .brand {
    font-size: 18px;
  }
  .scroll-story[data-compact="true"] .demo-toolbar .brand span {
    margin-top: 2px;
  }
  .scroll-story[data-compact="true"] .editor {
    padding: 8px;
  }
  .scroll-story[data-compact="true"] .editor-title {
    margin-bottom: 4px;
  }
  .scroll-story[data-compact="true"] .section-label {
    padding: 4px 6px;
  }
  .scroll-story[data-compact="true"] .demo-row {
    min-height: 44px;
    padding: 4px 2px;
  }
  .scroll-story[data-compact="true"] .format {
    margin: 6px 0;
  }
  .scroll-story[data-compact="true"] .block {
    padding: 5px 8px;
  }
  .scroll-story[data-compact="true"] .preview {
    padding: 8px;
    gap: 5px;
  }
  .scroll-story[data-compact="true"] .paper {
    min-height: 218px;
    height: 218px;
    padding: 8px 20px;
  }
  .scroll-story[data-compact="true"] .paper .menu-note {
    margin: 3px 0;
  }
  .scroll-story[data-compact="true"] .paper h3 {
    margin: 5px 0;
  }
  .scroll-story[data-compact="true"] .paper section p {
    margin: 3px 0;
  }
  .scroll-story[data-compact="true"] .demo-caption {
    min-height: 76px;
  }
  .scroll-story[data-short="true"] .demo-toolbar {
    display: none;
  }
  .scroll-story[data-short="true"] .demo-row small {
    display: none;
  }
  .scroll-story[data-short="true"] .demo-row {
    min-height: 32px;
  }
  .scroll-story[data-short="true"] .mock-button {
    padding: 5px 8px;
  }
  .scroll-story[data-short="true"] .paper .menu-note {
    display: none;
  }
  .scroll-story[data-short="true"] .paper {
    height: 190px;
    min-height: 190px;
  }
}
@media (max-width: 700px) {
  .scroll-story[data-tight="true"] .format {
    margin: 3px 0;
  }
  .scroll-story[data-tight="true"] .block {
    padding: 3px 8px;
  }
  .scroll-story[data-tight="true"] .editor {
    padding: 2px 8px;
  }
  .scroll-story[data-tight="true"] .section-label {
    display: none;
  }
  .scroll-story[data-tight="true"] .preview {
    position: relative;
    padding: 2px 8px 30px;
  }
  .scroll-story[data-tight="true"] .paper {
    height: 170px;
    min-height: 170px;
    padding: 6px 20px;
  }
  .scroll-story[data-tight="true"] .paper h3 {
    margin: 3px 0;
  }
  .scroll-story[data-tight="true"] .paper section p {
    margin: 2px 0;
  }
  .scroll-story[data-tight="true"] #demo .publish {
    position: absolute;
    bottom: 4px;
    min-height: 26px;
    padding: 4px 12px;
  }
  .scroll-story[data-tight="true"] .demo-caption {
    min-height: 60px;
    padding: 4px 10px;
  }
}

/* The exact six visible step captions are also available without running JS. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
