:root {
  --ink: #233e34;
  --green: #244d3f;
  --cream: #faf6ed;
  --orange: #dd6835;
  --muted: #737970;
  --line: #dfdfcf;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
}
header,
main {
  max-width: 1240px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
}
.brand {
  font-weight: 900;
  font-size: 27px;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin: 8px 0 0 38px;
}
.city {
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
select,
input {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.hero {
  padding: 65px 36px 55px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--orange);
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 76px;
  line-height: 1.08;
  letter-spacing: -3px;
  margin: 22px 0;
}
h1 em {
  color: var(--orange);
  font-weight: 400;
}
.hero p:not(.eyebrow):not(.fine) {
  line-height: 1.7;
  color: var(--muted);
}
.button {
  display: inline-block;
  background: var(--green);
  border: 0;
  border-radius: 9px;
  color: white;
  padding: 17px 23px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: #346650;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.hero-art {
  position: relative;
  background: #eadcc0;
  border-radius: 50% 50% 10px 10px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cup {
  font-size: 160px;
  filter: drop-shadow(8px 22px 6px #233e3425);
  transform: rotate(-10deg);
}
.steam {
  position: absolute;
  top: 30px;
  font-size: 50px;
  color: #977b59;
  letter-spacing: 10px;
}
.stamp {
  position: absolute;
  right: 0;
  bottom: 50px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  padding: 24px 13px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  transform: rotate(12deg);
}
.art-note {
  position: absolute;
  bottom: 22px;
  left: 30px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
}
.ribbon {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  border-block: 1px solid var(--line);
  padding: 19px;
  font-size: 12px;
  font-weight: 700;
}
.shop {
  padding: 55px 36px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 35px;
}
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 33px;
  margin: 12px 0;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.product {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fffdf8;
}
.product-art {
  height: 130px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 65px;
  background: #f0e5d1;
  position: relative;
}
.product:nth-child(2) .product-art {
  background: #e8ebdc;
}
.product:nth-child(3) .product-art {
  background: #e0e9df;
}
.product:nth-child(4) .product-art {
  background: #f3dfcb;
}
.tag {
  position: absolute;
  left: 9px;
  top: 9px;
  background: #ffffffaa;
  font-size: 9px;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.product h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 18px 0 8px;
}
.product p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 40px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.add,
.quantity button {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.cart {
  background: #eeeee3;
  padding: 24px;
  border-radius: 12px;
  align-self: start;
  position: sticky;
  top: 20px;
}
.cart h2 {
  font-size: 27px;
}
.cart h2 span {
  font-family: Arial, sans-serif;
  font-size: 13px;
  background: white;
  border-radius: 50%;
  padding: 5px 9px;
}
.cart .button {
  width: 100%;
  margin-top: 18px;
}
.cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quantity button {
  padding: 5px 9px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  font-size: 13px;
}
.grand {
  font-weight: bold;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.empty {
  padding: 30px 0;
  line-height: 1.7;
  color: var(--muted);
  font-size: 13px;
}
.tracking {
  margin: 0 36px 40px;
  padding: 30px;
  background: #e5ebdd;
  border-radius: 12px;
}
.steps {
  display: flex;
  gap: 10px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.step {
  padding: 10px 18px;
  background: #ffffff80;
  border-radius: 6px;
  font-size: 13px;
}
.step.active {
  background: var(--green);
  color: white;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 36px;
  border-top: 1px solid var(--line);
}
footer p,
footer a {
  font-size: 12px;
  color: var(--muted);
}
.mono {
  font-family: monospace;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.console {
  padding: 36px;
}
.console-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.console-nav .button {
  padding: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 25px 0;
}
.stat {
  padding: 20px;
  background: #eeeee3;
  border-radius: 10px;
}
.stat strong {
  display: block;
  font-size: 30px;
  margin: 12px 0;
}
.panel {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  background: #fffdf8;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 350px;
  overflow: auto;
}
.trace {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.span-row {
  display: grid;
  grid-template-columns: 220px 1fr 80px;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  margin: 8px 0;
}
.span-bar {
  height: 12px;
  background: var(--orange);
  min-width: 3px;
}
.error {
  color: #ad352d;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
td,
th {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  h1 {
    font-size: 56px;
  }
  .hero {
    gap: 25px;
  }
  .hero-art {
    height: 280px;
  }
  .shop {
    grid-template-columns: 1fr 280px;
    padding-inline: 24px;
    gap: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .span-row {
    grid-template-columns: 150px 1fr 60px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 20px;
  }
  .brand {
    font-size: 22px;
  }
  .city {
    display: block;
  }
  .city select {
    display: block;
    padding: 6px;
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 20px;
    gap: 30px;
  }
  h1 {
    font-size: 60px;
  }
  .hero-art {
    height: 240px;
  }
  .cup {
    font-size: 125px;
  }
  .ribbon {
    font-size: 9px;
    padding: 15px 8px;
    gap: 8px;
  }
  .shop {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  .cart {
    position: static;
  }
  .menu-grid {
    gap: 12px;
  }
  .product {
    padding: 12px;
  }
  .product-art {
    height: 110px;
  }
  .product h3 {
    font-size: 20px;
  }
  .product p {
    min-height: 60px;
  }
  .tracking {
    margin-inline: 20px;
  }
  footer {
    flex-wrap: wrap;
    padding: 25px 20px;
  }
  .console {
    padding: 20px;
  }
  .span-row {
    grid-template-columns: 110px 1fr 55px;
  }
  table {
    font-size: 10px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px;
  }
}

@media (max-width: 650px) {
  header {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ChaiCart storefront and incident workspace. */
:root {
  --cream: #f8f7f2;
  --muted: #59665c;
  --line: #d8ddd3;
  --orange: #a34e32;
}
body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}
header {
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  letter-spacing: -0.04em;
}
.brand:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 24px;
  background: #a34e32;
  border-radius: 3px 3px 9px 9px;
  margin-right: 10px;
  vertical-align: middle;
}
.brand span {
  margin-left: 30px;
  letter-spacing: 0.12em;
}
.button {
  min-height: 48px;
  border-radius: 10px;
  padding: 14px 20px;
  font: 600 14px system-ui;
}
.button.secondary {
  background: #f1f3eb;
  color: #233e34;
  border: 1px solid #b9c7bc;
}
.button[aria-pressed="true"] {
  outline: 3px solid #a34e32;
  outline-offset: 3px;
}
.button.recovery {
  background: #244d3f;
}
.hero {
  padding-block: 56px;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
}
.hero-art {
  background: #e7e6d5;
  border-radius: 24px;
  height: 350px;
  overflow: hidden;
}
.brew-illustration {
  width: 82%;
  max-width: 320px;
  height: auto;
  display: block;
}
.product-art .brew-illustration {
  width: 180px;
  height: 120px;
}
.stamp {
  background: #a34e32;
  right: 18px;
  bottom: 28px;
  font-size: 11px;
  padding: 18px 12px;
}
.art-note {
  bottom: 22px;
  left: 24px;
  font-size: 16px;
}
.product {
  border-radius: 16px;
  padding: 20px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.product:hover {
  border-color: #315447;
  box-shadow: 0 4px 12px #203a3008;
}
.product-art {
  height: 150px;
  border-radius: 12px;
}
.product p {
  font-size: 14px;
}
.tag {
  font-size: 10px;
  color: #233e34;
  background: #fffdf5;
}
.product h3 {
  font-size: 25px;
}
.add,
.quantity button {
  min-height: 44px;
  min-width: 44px;
  font-size: 14px;
  border-radius: 8px;
}
.cart {
  border: 1px solid var(--line);
  background: #eef1e8;
  border-radius: 16px;
}
.cart-row {
  font-size: 15px;
  gap: 8px;
}
.cart-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.total-row {
  font-size: 15px;
}
.fine {
  font-size: 13px;
}
.muted {
  font-size: 15px;
}
.mobile-cart {
  display: none;
}
.order-card {
  padding: 18px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.order-card h3 {
  font-size: 16px;
  margin: 0;
  overflow-wrap: anywhere;
}
.order-card p {
  margin: 8px 0;
  color: var(--muted);
}
.order-status {
  padding: 5px 10px;
  background: #e7eee8;
  border-radius: 6px;
  font-size: 13px;
}
#history-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}
.tracking {
  border: 1px solid #c7d6c5;
}
.steps .step {
  min-height: 44px;
}
.console h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
}
.control-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.control-group {
  padding: 22px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.control-group h2 {
  font:
    500 22px Georgia,
    serif;
  margin: 0;
}
.control-group p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
}
.control-group .button {
  width: 100%;
  text-align: left;
}
.scenario-state {
  padding: 18px 22px;
  background: #e7eee8;
  border: 1px solid #c7d6c5;
  border-radius: 12px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.stats .fine {
  grid-column: 1/-1;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
}
.panel {
  border-radius: 16px;
}
#business {
  overflow: auto;
}
#business table {
  min-width: 480px;
}
pre {
  font-size: 13px;
  padding: 14px;
  background: #203a30;
  color: #e7eee8;
  border-radius: 10px;
}
.span-row {
  font-size: 13px;
  grid-template-columns: minmax(100px, 220px) minmax(0, 1fr) 80px;
}
.span-row > span:first-child {
  overflow-wrap: anywhere;
}
.span-row > div {
  overflow: hidden;
}
.trace summary {
  overflow-wrap: anywhere;
  min-height: 44px;
  font-size: 13px;
}
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 900px) {
  .control-groups {
    grid-template-columns: 1fr;
  }
  .control-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .control-group h2,
  .control-group p {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  body {
    padding-bottom: 90px;
  }
  .hero {
    padding: 32px 20px;
  }
  .hero-art {
    height: 230px;
  }
  .hero-art .brew-illustration {
    width: 230px;
  }
  .stamp {
    right: 12px;
    bottom: 18px;
  }
  .art-note {
    left: 18px;
    font-size: 14px;
  }
  .city select {
    min-height: 44px;
    padding: 10px;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .product {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px 16px;
    padding: 16px;
  }
  .product-art {
    grid-row: 1/4;
    height: 160px;
  }
  .product-art .brew-illustration {
    width: 100%;
    height: auto;
  }
  .product h3 {
    margin: 0;
    font-size: 24px;
  }
  .product p {
    margin: 0;
    min-height: 0;
  }
  .product-bottom {
    gap: 12px;
  }
  .tag {
    left: 4px;
    top: 6px;
    font-size: 8px;
    padding: 4px;
    max-width: 100%;
    white-space: normal;
  }
  .mobile-cart {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: #233e34;
    color: #fffdf7;
    border-radius: 14px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 8px 24px #203a3025;
  }
  .cart {
    scroll-margin-top: 20px;
  }
  .ribbon {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .control-group {
    grid-template-columns: 1fr;
  }
  .control-group h2,
  .control-group p {
    grid-column: auto;
  }
  .span-row {
    grid-template-columns: 100px minmax(0, 1fr) 60px;
    font-size: 12px;
  }
  .tracking {
    padding: 22px;
    margin-inline: 20px;
  }
  h1 {
    letter-spacing: -0.04em;
  }
  .cart .button {
    white-space: normal;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat strong {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
