:root {
  color-scheme: light;
  --paper: #faf7ef;
  --white: #fffdf8;
  --ink: #2d2119;
  --muted: #65594e;
  --line: #e7ddd0;
  --dark: #241a15;
  --ochre: #a83b19;
  --ochre-dark: #823016;
  --green: #236047;
  --mint: #e8f3e9;
  --route: #245fc9;
  --round: 1.15rem;
  font: 400 16px/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a04425; outline-offset: 4px; }
.shell { width: min(74rem, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .75rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header, .hero { background: var(--dark); color: #fff1dc; }
.site-header { border-bottom: 1px solid #ffffff28; }
.header-inner, .footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1rem; align-items: center; }
.header-inner { min-height: 4.15rem; }
.portfolio-link, .reset-button { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: #fff1dc; }
.portfolio-link { font-weight: 700; text-decoration: none; }
.portfolio-link:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.reset-button { border: 1px solid #ffffff44; border-radius: .6rem; padding: .3rem .8rem; background: transparent; font-size: .85rem; }
.reset-button:hover { background: #ffffff15; }
.hero { background: radial-gradient(ellipse at 79% 2%, #684127, transparent 66%), var(--dark); padding-block: clamp(2rem, 5vw, 4.6rem); }
.hero-layout { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(1.65rem, 5vw, 5.5rem); }
.hero-copy { animation: appear .5s ease-out both; }
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { display: flex; gap: .5rem; align-items: center; color: #ffe0a9; }
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #eab376; box-shadow: 0 0 0 4px #eab37630; }
.hero h1 { font: 400 clamp(3.5rem, 7.6vw, 7.4rem)/.92 Georgia, serif; letter-spacing: -.085em; margin: .8rem 0 1.1rem; }
.hero h1 em { color: #ffd08d; }
.hero-copy > p:not(.eyebrow) { max-width: 28rem; color: #f2e1d0; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.hero-button { display: inline-flex; gap: .8rem; align-items: center; margin-top: 1.35rem; padding: .72rem 1rem; min-height: 46px; border-radius: .65rem; background: #ffcf8a; color: #382115; font-weight: 750; text-decoration: none; }
.hero-button:hover { background: #ffe2b6; }
.hero-photo { overflow: hidden; border: 1px solid #ffffff40; border-radius: 1.2rem; background: #38271e; }
.hero-photo img { aspect-ratio: 2.05; height: auto; object-fit: cover; object-position: center top; }
.hero-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .75rem; padding: .6rem .85rem; color: #fff1de; font-size: .83rem; }
.hero-photo figcaption span { color: #f9cc90; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }

.workspace { padding-block: clamp(1.8rem, 5vw, 4rem) 2.85rem; scroll-margin-top: 1rem; }
.workspace-heading { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.workspace-label { color: var(--ochre); }
.workspace-heading h2 { font: 400 clamp(2rem, 5vw, 3.55rem)/1.04 Georgia, serif; letter-spacing: -.055em; }
.demo-notice { font-size: .8rem; color: var(--muted); }
.demo-notice span { color: var(--green); margin-right: .25rem; }
.role-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-bottom: .9rem; }
.role-picker button { display: flex; gap: .6rem; align-items: center; min-height: 64px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); color: var(--ink); text-align: left; font-weight: 780; }
.role-picker button:hover { border-color: #9f7159; }
.role-picker button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff1dc; }
.role-icon { display: grid; width: 2.1rem; height: 2.1rem; flex: 0 0 2.1rem; place-items: center; background: #f2e6d9; border-radius: 50%; color: #653c28; font-size: .72rem; }
.role-picker button[aria-pressed="true"] .role-icon { background: #ffcf8a; }
.role-picker small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.role-picker button[aria-pressed="true"] small { color: #f0d4bf; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); gap: .9rem; align-items: start; }
.role-panel, .guide { min-width: 0; border: 1px solid var(--line); border-radius: var(--round); background: var(--white); }
.role-panel { min-height: 27rem; padding: clamp(.9rem, 2.75vw, 1.55rem); }
.guide { background: #f2ebde; padding: clamp(.9rem, 2.75vw, 1.3rem); }
.guide .eyebrow { color: var(--ochre); }
.guide h2, .panel-heading h3 { font: 400 clamp(1.5rem, 3.4vw, 2.05rem)/1.12 Georgia, serif; letter-spacing: -.035em; }
.guide-header { margin-bottom: .8rem; }
.guide-current { padding: .7rem .8rem; border-left: 3px solid var(--ochre); border-radius: .35rem; background: var(--white); }
.guide-current strong { display: block; }
.guide-current p, .guide-note { color: var(--muted); font-size: .85rem; }
.guide-current button { margin-top: .65rem; }
.guide-list { padding: 0; margin: .9rem 0 0; list-style: none; }
.guide-list li { display: flex; align-items: center; gap: .6rem; margin-top: .55rem; color: var(--muted); font-size: .86rem; }
.guide-list li[aria-current="step"] { font-weight: 750; color: var(--ink); }
.step-marker { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; flex-shrink: 0; border: 1px solid #ccbead; border-radius: 50%; font-size: .74rem; }
.guide-list li[aria-current="step"] .step-marker { background: var(--dark); color: #fff1dc; border-color: var(--dark); }
.guide-list .done .step-marker { background: var(--mint); color: var(--green); border-color: #bcd2bf; font-weight: 800; }

.panel-heading { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.panel-heading .eyebrow { color: var(--ochre); margin-bottom: .3rem; }
.panel-heading p:not(.eyebrow), .muted { color: var(--muted); font-size: .88rem; }
.panel-heading h3 { margin-bottom: .25rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: .75rem; }
.stack > * + * { margin-top: .75rem; }
.box { min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.box.tinted { background: #f9f4eb; }
.box h4 { margin-bottom: .35rem; }
.field, .select { width: 100%; min-height: 44px; padding: .35rem .55rem; border: 1px solid #cdbfb1; border-radius: .55rem; background: var(--white); color: var(--ink); }
label { font-size: .86rem; font-weight: 700; }
.control-label { display: block; margin-bottom: .3rem; }
.menu-list, .cart-list, .activity { padding: 0; margin: 0; list-style: none; }
.menu-item, .cart-item { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.menu-item:last-child, .cart-item:last-child { border-bottom: 0; }
.menu-item-top, .total-line, .cart-item, .row, .order-label { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.menu-item-top strong, .cart-item strong { font-size: .9rem; }
.menu-item .muted { margin: .18rem 0 .38rem; font-size: .78rem; }
.option-row { display: flex; align-items: center; gap: .45rem; }
.option-row select { flex: 1; font-size: .8rem; }
.veg-mark { display: inline-flex; justify-content: center; align-items: center; width: .83rem; height: .83rem; border: 1px solid var(--green); border-radius: .17rem; color: var(--green); font-size: .52rem; vertical-align: .07rem; }
.price { white-space: nowrap; font-size: .85rem; font-weight: 750; }
.empty { padding: .8rem; border: 1px dashed #cdbfb1; border-radius: .65rem; color: var(--muted); font-size: .87rem; }
.box .empty { margin-top: .55rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .35rem; border: 1px solid transparent; border-radius: .55rem; padding: .42rem .68rem; min-height: 44px; background: var(--ochre); color: white; text-decoration: none; font-size: .84rem; font-weight: 750; }
.button:not(:disabled):hover { background: var(--ochre-dark); }
.button.secondary { background: var(--white); color: var(--ink); border-color: #cdbfb1; }
.button.secondary:not(:disabled):hover { background: #f4eadb; }
.button.small { padding-inline: .55rem; }
.button.wide { width: 100%; }
.action-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cart-item { align-items: start; }
.quantity { display: flex; align-items: center; gap: .2rem; font-size: .82rem; }
.quantity button { padding: 0; flex: 0 0 2rem; width: 2rem; min-height: 44px; }
.total-line { font-size: .85rem; }
.total-line.total { padding-top: .45rem; border-top: 1px solid var(--line); font-size: .97rem; font-weight: 800; }
.discount { color: var(--green); }
.coupon-note { font-size: .77rem; color: var(--muted); }
.coupon-note.error { color: #9c281e; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: .15rem .55rem; align-items: start; padding: .55rem; border: 1px solid var(--line); border-radius: .55rem; cursor: pointer; }
.choice input { grid-row: 1 / span 2; margin-top: .28rem; accent-color: var(--ochre); }
.choice small { font-weight: 500; color: var(--muted); }
fieldset { margin: 0; padding: 0; border: none; }
legend { margin-bottom: .3rem; font-size: .88rem; font-weight: 800; }
fieldset .choice + .choice { margin-top: .4rem; }
.status { display: inline-flex; border-radius: 2rem; padding: .22rem .6rem; background: #f7e4d6; color: #79351c; font-weight: 750; font-size: .75rem; }
.status.complete { background: var(--mint); color: var(--green); }
.timeline { display: grid; gap: .44rem; padding: 0; margin: .7rem 0 0; list-style: none; }
.timeline li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.timeline li::before { content: ""; width: .58rem; height: .58rem; border: 1px solid #927e6b; border-radius: 50%; }
.timeline li.reached::before { background: var(--green); border-color: var(--green); }
.timeline li[aria-current="step"] { color: var(--ink); font-weight: 800; }
.route-box { background: radial-gradient(ellipse at 30% 15%, #fffaf2, #eef2fa); }
.route-box h4 { margin-bottom: .95rem; }
.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: .2rem 0 .65rem; list-style: none; text-align: center; }
.route li { position: relative; line-height: 1.3; font-size: .75rem; color: #414e67; }
.route li::after { content: ""; position: absolute; top: .55rem; left: 50%; width: 100%; height: 3px; background: #c4cee1; }
.route li:last-child::after { display: none; }
.route li.passed::after { background: var(--route); }
.route li span { position: relative; z-index: 1; display: grid; place-items: center; margin: 0 auto .45rem; width: 1.2rem; height: 1.2rem; border: 2px solid #8192b2; border-radius: 50%; background: #f4f7fc; }
.route li.passed span, .route li[aria-current] span { border-color: var(--route); background: var(--route); }
.route li[aria-current] span { outline: 3px solid #abc4fb; outline-offset: 1px; }
.route li[aria-current] { font-weight: 800; color: #143e83; }
.cash { background: var(--mint); color: var(--green); }
.activity li { padding-block: .43rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.activity li:last-child { border: 0; }
.rating button { min-width: 44px; }
.rating button[aria-pressed="true"] { background: var(--dark); color: #fff1dc; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.metric { padding: .5rem; border-radius: .55rem; background: #f7efe3; font-size: .75rem; }
.metric strong { display: block; font-size: 1.12rem; }
.footer { padding-block: 1.4rem 1.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

@media (max-width: 57rem) {
  .work-grid { grid-template-columns: minmax(0, 1fr) minmax(12rem, .54fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 42rem) {
  .shell { width: calc(100% - 1.5rem); }
  .hero-layout, .work-grid { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 2; }
  .role-panel { min-height: auto; }
}
@media (max-width: 28rem) {
  .role-picker { gap: .35rem; }
  .role-picker button { gap: .3rem; padding-inline: .4rem; font-size: .83rem; }
  .role-picker small { display: none; }
  .role-icon { flex-basis: 1.45rem; width: 1.45rem; height: 1.45rem; font-size: .65rem; }
  .metrics { gap: .27rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
