:root {
  --ink: #110e0c;
  --paper: #f4efe5;
  --paper-deep: #e9e1d3;
  --red: #d9182b;
  --line: rgba(17, 14, 12, .16);
  --sans: "DM Sans", sans-serif;
  --display: "Anton", sans-serif;
  --serif: "Instrument Serif", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body::selection { background: var(--red); color: white; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }

.preview-mark { position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; justify-content: space-around; overflow: hidden; pointer-events: none; opacity: .11; transform: rotate(-12deg) scale(1.22); }
.preview-mark span { white-space: nowrap; font-family: var(--display); font-size: clamp(1rem, 2.1vw, 2rem); letter-spacing: .1em; color: var(--red); }

.order-header { position: sticky; z-index: 30; top: 0; min-height: 5.3rem; padding: 1rem 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: rgba(244, 239, 229, .94); backdrop-filter: blur(16px); }
.back-link, .call-link { width: max-content; padding: .75rem 1rem; border: 1px solid var(--ink); border-radius: 999px; font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; transition: .25s ease; }
.back-link:hover, .call-link:hover { background: var(--ink); color: white; }
.call-link { justify-self: end; background: var(--red); border-color: var(--red); color: white; }
.call-link:hover { background: #aa1020; border-color: #aa1020; }
.order-brand { display: flex; align-items: center; gap: .7rem; font-size: .7rem; font-weight: 600; line-height: .9; text-transform: uppercase; }
.order-brand__seal { display: grid; place-items: center; width: 2.6rem; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--display); font-size: 1rem; }

main { position: relative; z-index: 1; }
.order-intro { min-height: 35rem; padding: 7rem 6vw 5rem; display: flex; align-items: end; justify-content: space-between; gap: 3rem; background: var(--ink); color: white; background-image: linear-gradient(90deg, rgba(17,14,12,.98), rgba(17,14,12,.62) 60%, rgba(17,14,12,.25)), url("assets/facebook-sushi-cinematic-v1.png"); background-size: cover; background-position: center; }
.kicker { margin: 0 0 .75rem; color: var(--red); font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }
.order-intro h1 { margin: 0; font-family: var(--display); font-size: clamp(4.8rem, 9vw, 9rem); font-weight: 400; line-height: .88; text-transform: uppercase; letter-spacing: -.025em; }
.order-intro h1 em { color: var(--red); font-family: var(--serif); font-weight: 400; text-transform: none; }
.service-card { flex: 0 0 min(25rem, 100%); padding: .65rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: white; color: var(--ink); border-radius: 1rem; box-shadow: 0 22px 70px rgba(0,0,0,.3); }
.service-option { min-height: 5rem; padding: .8rem; display: grid; gap: .3rem; border: 1px solid var(--line); border-radius: .65rem; background: white; text-align: left; }
.service-option span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.service-option strong { font-size: .85rem; }
.service-option.is-active { background: var(--red); border-color: var(--red); color: white; }
.service-option:disabled { opacity: .48; }

.order-layout { padding: 6rem 4vw; display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); align-items: start; gap: 4vw; }
.section-heading { margin-bottom: 2.5rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.5rem); font-weight: 400; line-height: .95; }
.section-heading > p { max-width: 18rem; margin: 0; color: rgba(17,14,12,.58); font-size: .75rem; line-height: 1.55; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.menu-item { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 8px 28px rgba(17,14,12,.06); transition: transform .3s ease, box-shadow .3s ease; }
.menu-item:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(17,14,12,.12); }
.menu-item.is-highlighted { outline: 3px solid var(--red); outline-offset: 4px; }
.menu-item > img { height: 15rem; object-fit: cover; }
.menu-item__body { padding: 1.35rem; }
.menu-item__body > p { margin: 0 0 .65rem; color: var(--red); font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.menu-item h3 { min-height: 2.5rem; margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; }
.menu-item__body > span { min-height: 3.7rem; padding-top: .7rem; display: block; color: rgba(17,14,12,.62); font-size: .78rem; line-height: 1.55; }
.add-button { width: 100%; min-height: 3rem; padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: .45rem; background: var(--red); color: #fff; cursor: pointer; font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; transition: background .2s, transform .2s; }
.add-button:hover { background: #a90f20; transform: translateY(-1px); }
.add-button.is-added { background: var(--ink); }

.cart { position: sticky; top: 7rem; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: var(--ink); color: white; box-shadow: 0 25px 70px rgba(17,14,12,.2); }
.cart__top { padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.13); }
.cart__top h2 { margin: 0; font-family: var(--serif); font-size: 2.3rem; font-weight: 400; }
.cart-count { display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: white; font-size: .75rem; font-weight: 600; }
.cart-items { min-height: 12rem; max-height: 28rem; padding: .7rem 1.5rem; overflow: auto; }
.cart-empty { min-height: 10rem; display: grid; place-content: center; gap: .8rem; text-align: center; color: rgba(255,255,255,.55); }
.cart-empty span { color: var(--red); }
.cart-empty p { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.cart-row { padding: 1rem 0; display: grid; grid-template-columns: 1fr auto; gap: .8rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.cart-row h3 { margin: 0 0 .3rem; font-size: .83rem; font-weight: 500; }
.cart-row small { color: rgba(255,255,255,.55); }
.qty { display: flex; align-items: center; gap: .65rem; }
.qty button { width: 1.8rem; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: white; cursor: pointer; }
.qty button:hover { background: white; color: var(--ink); }
.cart__summary { padding: 1.5rem; border-top: 1px solid rgba(255,255,255,.13); }
.cart__summary > div { margin-bottom: 1.1rem; display: flex; justify-content: space-between; font-size: .8rem; }
.cart-total { font-size: 1.15rem; }
.checkout-button { width: 100%; min-height: 3.5rem; padding: 1rem; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: .45rem; background: var(--red); color: white; cursor: pointer; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.checkout-button:hover:not(:disabled) { background: #a90f20; }
.checkout-button:disabled { background: #494442; color: #c4bfba; cursor: not-allowed; }
.cart__summary > p { margin: 1rem 0 0; color: rgba(255,255,255,.48); font-size: .62rem; line-height: 1.5; }

.checkout-dialog { width: min(90vw, 31rem); padding: 3.5rem; border: 0; border-radius: 1rem; background: var(--paper); color: var(--ink); box-shadow: 0 35px 100px rgba(0,0,0,.45); }
.checkout-dialog::backdrop { background: rgba(17,14,12,.75); backdrop-filter: blur(8px); }
.checkout-dialog h2 { margin: .5rem 0 1rem; font-family: var(--serif); font-size: 3.4rem; font-weight: 400; line-height: .95; }
.checkout-dialog > p:not(.kicker) { color: rgba(17,14,12,.68); line-height: 1.65; }
.checkout-dialog > a { margin-top: 1rem; padding: 1rem; display: flex; justify-content: space-between; border-radius: .45rem; background: var(--red); color: white; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); cursor: pointer; font-size: 1.25rem; }

@media (max-width: 900px) {
  .order-intro { padding: 6rem 1.25rem 2rem; align-items: start; flex-direction: column; justify-content: end; }
  .service-card { flex-basis: auto; width: 100%; }
  .order-layout { padding: 4rem 1.25rem; grid-template-columns: 1fr; }
  .cart { position: relative; top: auto; grid-row: 1; }
}

@media (max-width: 620px) {
  .order-header { min-height: 4.5rem; padding: .7rem .8rem; grid-template-columns: 1fr auto; }
  .order-brand { grid-column: 2; }
  .call-link { display: none; }
  .back-link { padding: .65rem .8rem; }
  .back-link span { display: none; }
  .order-intro { min-height: 31rem; }
  .order-intro h1 { font-size: clamp(4rem, 19vw, 6rem); }
  .section-heading { align-items: start; flex-direction: column; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-item > img { height: 14rem; }
  .checkout-dialog { padding: 3.5rem 1.4rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
