@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@500;700&family=DM+Sans:wght@400;500;600;700&family=Paytone+One&display=swap');

:root {
  --navy: #123d58;
  --dark: #0b2d43;
  --ink: #16384c;
  --orange: #dd4c22;
  --yellow: #f8b83e;
  --cream: #fff4db;
  --paper: #fffdf7;
  --edge: #d5c6a8;
  --muted: #405b6d;
  --mono: 'DM Mono', monospace;
  --display: 'Paytone One', 'Arial Black', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.55 'DM Sans', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #0876a0; outline-offset: 4px; }
.masthead :focus-visible { outline-color: var(--yellow); }
.wrap { width: min(100% - 10vw, 1180px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; inset: 12px auto auto 12px; padding: 12px; background: var(--paper); }

.masthead { background: radial-gradient(ellipse at 72% 55%, #1c516b, transparent 62%), var(--navy); color: var(--paper); }
.navigation { display: flex; align-items: center; min-height: 79px; gap: 27px; border-bottom: 1px solid #ffffff35; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; font: 400 15px/.94 var(--display); letter-spacing: -.025em; }
.wordmark img { object-fit: contain; border: 2px solid var(--cream); padding: 4px; border-radius: 11px; background: var(--paper); transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--dark); }
.wordmark strong { color: var(--yellow); font: 400 20px/.98 var(--display); }
.site-link { color: var(--cream); font-size: 13px; font-weight: 700; }
.site-link:hover { text-decoration: underline; }
.site-link span { margin-right: 5px; color: var(--yellow); }
.nav-cart { display: flex; align-items: center; gap: 9px; padding: 7px 12px; min-height: 44px; border: 1px solid #fff4db94; font-weight: 700; }
.nav-cart:hover { background: #ffffff19; }
.nav-cart span { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 4px; background: var(--yellow); color: var(--dark); font: 700 12px var(--mono); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.16fr); align-items: center; gap: clamp(25px, 5vw, 78px); padding-block: 50px 62px; }
.eyebrow { margin: 0 0 17px; color: var(--yellow); font: 700 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.045em; line-height: 1; }
h1 { font-size: clamp(61px, 7.7vw, 114px); line-height: .89; }
h1 em { display: block; color: var(--yellow); font-style: normal; }
.hero-copy { max-width: 330px; margin: 21px 0 25px; color: #ebf3f4; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 49px; padding: 11px 16px; border: 2px solid transparent; font-weight: 700; font-size: 14px; }
.button span { font-size: 18px; line-height: 1; }
.yellow { background: var(--yellow); color: var(--dark); box-shadow: 4px 4px 0 var(--dark); }
.yellow:hover { background: #ffd376; }
.hero-image { margin: 0 7px 0 0; transform: rotate(1.4deg); padding: 5px; background: var(--cream); box-shadow: 9px 10px 0 var(--orange); }
.hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.83; object-fit: cover; object-position: center; background: #dee4d8; }
.pickup-status { padding: clamp(18px, 3vw, 36px) 0; background: #c33e19; color: #fff; border-bottom: 3px solid var(--dark); }
.pickup-status[data-serving] { background: var(--yellow); color: var(--dark); }
.pickup-status-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pickup-status-copy { flex: 1 1 300px; min-width: 0; }
.pickup-status-kicker { margin: 0 0 6px; font: 700 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pickup-status[data-serving] .pickup-status-kicker::before { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: currentColor; content: ''; }
.pickup-status h2 { margin: 0; font: 400 clamp(23px, 3.4vw, 38px)/1.12 var(--display); overflow-wrap: anywhere; }
.pickup-status-detail { margin: 7px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pickup-status-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pickup-status-button { min-height: 44px; padding: 9px 14px; border: 2px solid var(--dark); background: var(--dark); color: var(--cream); font-weight: 700; }
.pickup-status-button:hover { background: var(--navy); }
.pickup-status-secondary { border-color: currentColor; background: transparent; color: inherit; }
.pickup-status-secondary:hover { background: rgba(0, 0, 0, .12); }

.ordering { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 350px); align-items: start; gap: clamp(24px, 5vw, 63px); padding-block: 44px 74px; }
#order-menu, #cart { scroll-margin-top: 18px; }
#order-menu > h2 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 20px; }
.menu-nav { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 18px; }
.menu-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 8px; border: 1px solid var(--edge); background: var(--paper); font-size: 13px; font-weight: 700; }
.menu-nav a:hover { border-color: var(--dark); background: var(--yellow); }
.menu-groups { display: grid; gap: 20px; }
.menu-group { border: 2px solid var(--dark); background: var(--paper); box-shadow: 5px 5px 0 #ddcaa5; }
.group-heading { padding: 12px 16px; background: var(--dark); color: var(--yellow); font-size: clamp(20px, 3vw, 25px); }
.menu-group ul { margin: 0; padding: 0 14px; list-style: none; }
.product { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 2px; }
.product + .product { border-top: 1px solid var(--edge); }
.product h4 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.12; }
.product-detail { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.price { display: block; margin-top: 5px; color: #a83011; font: 700 13px/1.2 var(--mono); white-space: nowrap; }
.flavors { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.flavor { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 44px; padding: 6px 10px; border: 1px solid #a5a291; background: var(--cream); color: var(--dark); font-size: 13px; font-weight: 700; }
.flavor:hover { border-color: var(--dark); background: var(--yellow); }
.flavor:active { transform: translateY(1px); }
.flavor span { color: #a83011; font-size: 17px; line-height: 1; }
.menu-note { color: var(--muted); font-size: 13px; margin: 15px 0 0; }

.cart { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; padding: 22px; border: 2px solid var(--dark); background: var(--paper); box-shadow: 6px 7px 0 var(--orange); }
.cart-heading, .checkout-heading, .subtotal { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.cart-heading h2, .checkout-heading h2 { font-size: clamp(27px, 3.1vw, 36px); }
.cart-heading > span { color: var(--muted); white-space: nowrap; font: 700 11px var(--mono); text-transform: uppercase; }
.pickup { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-bottom: 13px; border-bottom: 1px solid var(--edge); color: var(--ink); font-size: 13px; font-weight: 700; }
.pickup-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.cart-empty { margin: 16px 0; color: var(--muted); font-size: 14px; }
.cart-lines { margin: 2px 0 0; padding: 0; list-style: none; }
.cart-line { padding: 12px 0; }
.cart-line + .cart-line { border-top: 1px dashed var(--edge); }
.line-main { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; font-size: 14px; }
.line-main strong { font-size: 14px; }
.line-main span { white-space: nowrap; }
.line-controls { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.line-controls button, .close-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--edge); background: var(--cream); color: var(--ink); font-size: 19px; }
.line-controls button:hover, .close-button:hover { background: var(--yellow); }
.subtotal { margin-top: 6px; padding: 12px 0; border-top: 2px solid var(--dark); font-weight: 700; }
.subtotal strong { font-family: var(--mono); font-size: 17px; }
.cart-button { width: 100%; background: var(--dark); color: var(--paper); }
.cart-button:hover:not(:disabled) { background: var(--navy); box-shadow: 3px 3px 0 var(--yellow); }
.cart-button:disabled { background: #e6dfd0; color: #46505a; }
.cart-caption { margin: 11px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.drink-note { margin: 10px 0; padding: 7px 9px; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 700; }

.footer { background: var(--dark); color: var(--paper); padding: 20px 0; }
.footer > div { display: flex; justify-content: space-between; gap: 8px; }
.footer span:first-child { font-family: var(--display); color: var(--yellow); }
.footer span:last-child { font: 500 11px/1.8 var(--mono); text-align: right; }
.mobile-cart { display: none; }
dialog { width: min(100% - 28px, 460px); max-height: 90vh; max-height: 90dvh; overflow: auto; padding: clamp(14px, 4vw, 24px); border: 2px solid var(--dark); box-shadow: 6px 7px 0 var(--orange); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #071e2ed9; }
.checkout-heading { align-items: start; }
.close-button { margin-top: -4px; flex-shrink: 0; }
.checkout-note, #order-done p { margin: 10px 0 12px; color: var(--muted); font-size: 14px; }
.review-prices { margin: 8px 0 0; font-size: 14px; }
#review-lines .cart-line { padding-block: 8px; }
.review-prices > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; }
.review-prices > .subtotal { padding-block: 8px; }
.review-prices dd { margin: 0; font-family: var(--mono); }
#test-card-fields { min-width: 0; margin: 8px 0 0; padding: 0; border: 0; }
#test-card-fields legend { padding: 0; font-size: 15px; font-weight: 700; }
.card-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 5px; }
.card-field { display: grid; min-width: 0; gap: 3px; }
.card-field-wide { grid-column: 1 / -1; }
.card-field > span { font-size: 12px; font-weight: 700; line-height: 1.2; }
.card-slot { min-width: 0; height: 44px; overflow: hidden; border: 1px solid #ab9d83; border-radius: 5px; background: #fff; }
.card-slot:focus-within { border-color: var(--navy); outline: 2px solid #0876a0; outline-offset: 1px; }
.card-slot iframe { display: block; width: 100%; height: 100%; border: 0; }
.card-example { display: grid; align-items: center; height: 100%; padding-inline: 8px; color: var(--muted); font-size: 16px; }
.wallet-methods { display: grid; gap: 7px; margin-block: 8px 10px; }
.wallet-methods > div:empty { display: none; }
.wallet-methods > div { width: min(100%, 300px); height: 44px; }

@media (max-width: 860px) {
  .ordering { grid-template-columns: minmax(0, 1fr) 272px; gap: 25px; }
  .cart { padding: 17px; }
  .hero { gap: 30px; }
  .product { flex-wrap: wrap; }
  .flavors { justify-content: start; }
}
@media (max-width: 690px) {
  .navigation { gap: 10px; min-height: 68px; }
  .wordmark { font-size: 13px; gap: 8px; }
  .wordmark strong { font-size: 17px; }
  .wordmark img { width: 45px; height: 40px; }
  .site-link { font-size: 12px; }
  .nav-cart { padding-inline: 8px; gap: 5px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 30px 31px; }
  .hero-image { transform: none; }
  .hero-image img { aspect-ratio: 2.02; }
  .hero-copy { margin: 15px 0 17px; }
  .eyebrow { margin-bottom: 10px; font-size: 10px; }
  h1 { font-size: clamp(56px, 12vw, 89px); }
  .ordering { grid-template-columns: 1fr; gap: 27px; padding-block: 27px 90px; }
  .cart { position: static; max-height: none; scroll-margin-bottom: 70px; }
  .mobile-cart { position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 5vw max(10px, env(safe-area-inset-bottom)); background: var(--yellow); color: var(--dark); border-top: 2px solid var(--dark); box-shadow: 0 -4px 16px #0b2d4340; min-height: 52px; font-size: 13px; }
  .mobile-cart span { font-family: var(--mono); }
}
@media (max-width: 380px) {
  .site-link span { display: none; }
  .flavor { padding-inline: 7px; gap: 5px; }
  .menu-group ul { padding-inline: 9px; }
}

#pickup-window { margin: 14px 0; }
#pickup-stop, #pickup-time { scroll-margin-block: 20px; }
#pickup-place { margin: 0 0 8px; font-size: 14px; }
#pickup-window label, #card-payment label { display: block; font-weight: 700; }
#pickup-stop, #pickup-time, #receipt-email { width: 100%; min-height: 44px; margin: 4px 0 10px; padding: 8px; font: inherit; font-size: 16px; color: var(--navy); background: #fff; border: 1px solid #ab9d83; border-radius: 5px; }
#card-payment summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
#card-fields { margin: 0 0 12px; padding: 0; min-width: 0; border: 0; }
#pickup-human-check iframe { max-width: 100%; }
