/* Atalaya · Shared design tokens. Header and footer deliberately remain black. */
@font-face { font-family: "Bebas Neue"; src: url("assets/fonts/BebasNeue-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("assets/fonts/ArchivoNarrow.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
:root {
  --paper: #f2f0e9;
  --ink: #1a1a1a;
  --red: #ef3d31;
  --line: #292929;
  --muted: #57524d;
  --content-width: 1024px;
  --heading-font: "Bebas Neue", Impact, sans-serif;
  --body-font: "Archivo Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.35 var(--body-font); }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; top: -70px; left: 10px; z-index: 100; padding: 10px; background: var(--paper); }
.skip-link:focus { top: 10px; }
.muted { color: var(--muted); font-size: 16px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: 1.3px; font-weight: 700; text-transform: uppercase; }
.empty { padding: 24px 0; }
.full { width: 100%; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 12px 18px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.text-button { border: 0; padding: 8px 0; background: none; text-decoration: underline; color: var(--ink); text-align: left; }
.icon-button { border: 0; background: transparent; color: inherit; width: 44px; height: 44px; flex: 0 0 44px; }
.icon-button, .add, .quantity-controls button { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; appearance: none; color: inherit; }
.control-icon { display: block; width: 24px; height: 24px; flex: none; pointer-events: none; }

/* Shared navigation */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--ink); color: var(--paper); border-bottom: 4px solid var(--red); }
.topbar-inner { max-width: var(--content-width); min-height: 64px; margin: auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-inner--catalog { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.topbar-inner > .icon-button { justify-self: start; }
.brand { display: flex; align-items: center; gap: 8px; font: 24px var(--heading-font); letter-spacing: 1px; text-decoration: none; text-align: center; }
.brand img { object-fit: contain; background: var(--paper); }
.cart-toggle { display: flex; justify-self: end; align-items: center; gap: 6px; border: 0; color: inherit; background: none; min-height: 44px; font-weight: 700; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 22px; padding: 2px 5px; border-radius: 20px; font-size: 14px; line-height: 1; background: var(--red); text-align: center; font-variant-numeric: tabular-nums; }
.site-footer { background: var(--ink); color: var(--paper); border-top: 4px solid var(--red); padding: 28px max(20px, calc((100vw - 960px)/2)); display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer b { font: 28px var(--heading-font); }
.site-footer p { margin: 0; font-size: 15px; }

/* Landing and category artwork */
.hero { max-width: var(--content-width); margin: auto; padding: 32px; }
.hero-board { position: relative; min-height: 350px; padding: 42px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: repeating-linear-gradient(-35deg, #ffffff09 0 2px, transparent 2px 11px), radial-gradient(circle at 80% 10%, #4d4d4d, #1a1a1a 47%, #050505); }
.hero-board::before { content: ""; position: absolute; inset: 15px; border: 1px solid #ffffffa6; pointer-events: none; }
.hero h1 { font: clamp(64px, 10vw, 124px)/.9 var(--heading-font); letter-spacing: 1px; margin: 0; }
.hero-board > p:not(.eyebrow) { max-width: 340px; font-weight: 700; margin: 20px 0; }
.specialties { max-width: var(--content-width); margin: auto; padding: 18px 32px 40px; }
.section-bar { display: flex; gap: 9px; align-items: center; border-bottom: 3px solid var(--line); padding-bottom: 7px; }
.section-bar span { color: var(--red); }
.section-bar h2 { font: 30px/1 var(--heading-font); letter-spacing: .6px; margin: 0; }
.specialty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.specialty { position: relative; min-height: 245px; display: flex; flex-direction: column; justify-content: end; border: 2px solid var(--line); border-bottom: 5px solid var(--red); text-decoration: none; overflow: hidden; background: var(--ink); color: var(--paper); }
.specialty > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.specialty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 25%, rgba(0, 0, 0, .25) 52%, rgba(0, 0, 0, .9) 100%); pointer-events: none; }
.specialty-label { position: relative; z-index: 1; padding: 18px; text-shadow: 0 1px 3px #000; }
.specialty h3 { font: 42px/.95 var(--heading-font); margin: 0; }

/* Catalog */
.category-page { max-width: var(--content-width); min-height: calc(100dvh - 164px); margin: auto; padding: 32px; }
.back-link { display: inline-block; margin-bottom: 28px; text-decoration: none; font-weight: 700; }
.menu-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 4px solid var(--line); padding-bottom: 10px; }
.menu-head .eyebrow { color: #b42019; }
.menu-head h1 { margin: 0; font: 56px/.95 var(--heading-font); }
.menu-head > p { white-space: nowrap; margin: 0; }
.catalog-status { padding: 20px 0; }
.demo-notice { max-width: 960px; margin: 16px auto 0; padding: 9px 16px; background: #fff3c7; font-size: 15px; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.product { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; align-items: stretch; gap: 12px; }
.product-photo { flex: 0 0 88px; align-self: flex-start; width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--line); }
.product-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.product-category { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.product h2 { font: 28px/1 var(--heading-font); margin: 0; }
.product-description { margin: 0; font-size: 16px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.price { font: 26px/1.15 var(--heading-font); }
.product-controls { display: flex; flex: none; margin-left: auto; }
.add { width: 44px; height: 44px; flex: none; background: transparent; border: 2px solid var(--line); }
.quantity-controls { display: inline-flex; align-items: center; align-self: start; border: 2px solid var(--line); width: fit-content; flex: none; }
.quantity-controls button { width: 40px; height: 40px; flex: none; border: 0; background: transparent; }
.quantity-controls output { min-width: 28px; padding: 0 2px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }

/* Native dialogs provide focus containment, Escape and background inertness. */
.panel { color: var(--ink); background: var(--paper); border: 3px solid var(--line); padding: 20px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
.panel::backdrop { background: #0009; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.panel-heading h2 { font: 38px/1 var(--heading-font); margin: 0; }
.menu-panel { width: 340px; margin: 0 auto 0 0; height: 100dvh; max-height: 100dvh; }
.drawer-links { display: grid; }
.drawer-links > a, .drawer-links > details { border-bottom: 1px solid var(--line); padding: 18px 4px; text-decoration: none; font-weight: 700; }
.drawer-links summary { cursor: pointer; }
.drawer-links details p { font-weight: 400; }
.cart-panel { width: 450px; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; }
.cart-panel[open] { display: block; overflow-y: auto; }
.cart-items { min-width: 0; }
.checkout-form { margin-top: 20px; }
.checkout-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout-fields > legend { font: 28px/1.2 var(--heading-font); margin-bottom: 14px; }
.checkout-choices { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; display: grid; gap: 8px; }
.checkout-choices legend { font-weight: 700; margin-bottom: 8px; }
.checkout-choices label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); min-height: 46px; padding: 10px; cursor: pointer; }
.checkout-choices label:has(input:checked) { border-color: var(--red); box-shadow: inset 3px 0 var(--red); }
.checkout-choices input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
.checkout-address label { display: block; font-weight: 700; margin-bottom: 6px; }
.checkout-address > input { width: 100%; min-width: 0; min-height: 46px; padding: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 0; }
.checkout-address .muted { margin: 6px 0 16px; }
.cart-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-row h3 { font-size: 21px; margin: 0; }
.cart-row p { margin: 6px 0; }
.cart-bottom { border-top: 3px solid var(--line); padding-top: 14px; }
.cart-bottom .muted { margin: 8px 0 14px; }
.total-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.total-row strong { font-size: 26px; }
.shipping-row { margin-top: 8px; }
.final-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
.status-message { font-size: 16px; margin: 0 0 12px; }
.status-message:empty { display: none; }
.custom-panel { width: 460px; box-shadow: 6px 6px 0 var(--red); }
.custom-panel h3 { font: 34px/1 var(--heading-font); margin: 18px 0; }
.extra-options { border: 0; padding: 0; margin: 20px 0; }
.extra-options legend { padding: 0 0 10px; }
.choice-group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.extra-options label { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.extra-options input { width: 20px; height: 20px; accent-color: var(--ink); }
.custom-total { font-weight: 700; font-size: 24px; }

/* Privacy, commercial information and licensed resources */
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 16px; }
.legal-page { padding: 28px 24px 50px; max-width: 850px; }
.legal-page h1 { font: 48px/1.1 var(--heading-font); }
.legal-page h2 { font: 30px/1.2 var(--heading-font); margin-top: 32px; }
.legal-page p, .legal-page li { line-height: 1.55; }
.legal-page dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; }
.legal-page dd { margin: 0; overflow-wrap: anywhere; }
.legal-page dt { font-weight: 700; }
.legal-page section { scroll-margin-top: 85px; }
.privacy-note { font-size: 15px; line-height: 1.4; }
.tax-price { display: block; font-size: 13px; line-height: 1.3; font-weight: 400; margin-top: 5px; }
.extra-options .tax-price { grid-column: 2 / -1; }
.regulatory-links { padding: 10px 16px; max-width: var(--content-width); margin: auto; font-size: 15px; }
.data-fiscal img { width: 70px; height: auto; }

/* Responsive layout */
@media (max-width: 700px) {
  .topbar-inner { padding: 0 8px; gap: 6px; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .cart-toggle { font-size: 15px; }
  .hero { padding: 16px; }
  .hero-board { min-height: 290px; padding: 32px 20px; }
  .hero h1 { font-size: clamp(56px, 13vw, 80px); }
  .specialties { padding: 18px 16px 30px; }
  .specialty-grid, .products { grid-template-columns: 1fr; }
  .specialty { min-height: 180px; }
  .specialty h3 { font-size: 36px; }
  .category-page { padding: 24px 16px; }
  .menu-head h1 { font-size: 42px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .demo-notice { margin: 12px 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
