@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/BarlowCondensed600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0b0b0f;
  --panel: #151318;
  --cream: #fff6e9;
  --quiet: #c0b3b6;
  --pink: #ff2d78;
  --pink-text: #ff6099;
  --cheddar: #ffc53d;
  --cyan: #00e5ff;
  --line: #392731;
  --body: Barlow, system-ui, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --title: "Alfa Slab One", Rockwell, Georgia, serif;
  --gutter: clamp(1.15rem, 4.6vw, 4.5rem);
  --header-height: 5.4rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-height) + .85rem);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 1rem/1.55 var(--body);
}
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.12; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(100% - var(--gutter) * 2, 78rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: 1rem;
  padding: .65rem 1rem;
  color: var(--night);
  background: var(--cream);
}

.header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--night);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header-inner { min-height: var(--header-height); }
.brand { display: block; flex: 0 0 auto; width: clamp(7.6rem, 13vw, 10.9rem); }
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 3rem);
  color: var(--quiet);
  font: 600 1rem/1 var(--label);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.main-nav a:hover, .back-link:hover { color: var(--pink-text); }
.order-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .7rem 1.1rem;
  min-height: 2.8rem;
  border: 1px solid var(--pink);
  border-radius: .35rem;
  font: 600 1.03rem/1 var(--label);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.order-button { background: #241019; color: var(--cream); }
.order-button:hover { background: #3b1627; }
.order-count {
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: .08rem .25rem;
  border-radius: .25rem;
  background: var(--pink);
  color: var(--night);
  letter-spacing: 0;
}
.button-primary {
  background: var(--pink);
  color: var(--night);
  min-height: 3.25rem;
  box-shadow: 0 6px 24px rgb(255 45 120 / .14);
}
.button-primary:hover { background: #ff679e; border-color: #ff679e; }
.button-primary span { font-size: 1.35em; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(1.5rem, 4.4vw, 4.8rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5.1vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(-1 * var(--gutter));
  background: radial-gradient(ellipse at 75% 48%, #261319, transparent 68%);
  pointer-events: none;
}
.kicker, .product-bread, .hero-frame figcaption span, .photo-label {
  color: var(--cheddar);
  font: 600 .9rem/1.3 var(--label);
  letter-spacing: .17em;
  text-transform: uppercase;
}
.kicker span { color: var(--pink-text); margin-inline: .35em; }
.hero h1 {
  margin: .85rem 0 1.15rem;
  font-size: clamp(2.65rem, 5.55vw, 5.75rem);
  letter-spacing: -.055em;
  line-height: 1.02;
}
.hero h1 em { color: var(--pink-text); font-style: normal; }
.hero-lead {
  color: var(--quiet);
  max-width: 24ch;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.4;
}
.hero .button { margin-top: 1.9rem; padding-inline: 1.35rem; }
.hero-frame {
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1.26;
  border-radius: 1rem;
  border: 1px solid #614035;
  background: #161415;
  box-shadow: 0 18px 60px rgb(0 0 0 / .3);
}
.hero-frame img, .product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  background: linear-gradient(transparent, rgb(11 11 15 / .93));
  pointer-events: none;
}
.hero-frame figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 1.25rem 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.hero-frame figcaption strong { display: block; font: 400 clamp(1.2rem, 2.4vw, 2rem)/1.15 var(--title); }
.hero-frame figcaption .hero-price { font-size: 1.42rem; letter-spacing: .02em; white-space: nowrap; }
.checker {
  height: .85rem;
  opacity: .85;
  background: repeating-conic-gradient(#4f2335 0 25%, #191219 0 50%) 50% / .85rem .85rem;
  border-block: 1px solid #512237;
}

.menu { padding-block: clamp(3rem, 5.8vw, 5.75rem); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .9rem 2rem;
  margin-bottom: 1.6rem;
}
.section-heading h2, .about h2 {
  margin-top: .35rem;
  font-size: clamp(2rem, 4.4vw, 4rem);
  letter-spacing: -.035em;
}
#cardapio { scroll-margin-block-start: 1.55rem; }
.section-heading > p { color: var(--quiet); font-size: 1.08rem; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.product-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.47;
  background: #171719;
}
.product-photo img { object-position: 50% 53%; }
.photo-label {
  position: absolute;
  top: .8rem;
  left: .8rem;
  padding: .35rem .55rem;
  border-radius: .25rem;
  color: var(--night);
  background: var(--cheddar);
  letter-spacing: .1em;
}
.product-copy { display: flex; flex: 1; flex-direction: column; padding: 1.15rem; }
.product-bread { font-size: .8rem; color: var(--pink-text); }
.product h3 { margin: .28rem 0 .55rem; font-size: clamp(1.23rem, 2.05vw, 1.9rem); letter-spacing: -.025em; }
.ingredients { margin-bottom: 1.1rem; color: var(--quiet); line-height: 1.46; }
.product-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.price { color: var(--cheddar); font: 600 1.75rem/1 var(--label); white-space: nowrap; }
.product-action button, .quantity button {
  background: #26151e;
  border: 1px solid #6b2f48;
  color: var(--cream);
  border-radius: .35rem;
  min-height: 2.75rem;
}
.product-action button {
  padding: .4rem .65rem;
  font: 600 .9rem/1 var(--label);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.product-action button:hover, .quantity button:hover { background: #4b2034; }
.product-action button span { margin-left: .2em; color: var(--pink-text); font-size: 1.2rem; vertical-align: -.06em; }
.photo-note { margin-top: 1rem; color: var(--quiet); font-size: .89rem; }

.about { padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  border: 1px solid #67314a;
  border-radius: .9rem;
  background: radial-gradient(ellipse at 80% 50%, #321421, #161018 67%);
}
.about h2 { max-width: 18ch; font-size: clamp(1.75rem, 3.6vw, 3.25rem); }
.about p:not(.kicker) { margin-top: .9rem; max-width: 55ch; color: var(--quiet); font-size: 1.1rem; }
.about img { width: clamp(8rem, 17vw, 14rem); }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 6rem; }
.back-link { font: 600 1rem/1 var(--label); text-transform: uppercase; letter-spacing: .07em; color: var(--quiet); }

.cart {
  width: min(100%, 28rem);
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--cream);
  background: var(--panel);
  border: 0;
  border-left: 1px solid var(--line);
}
.cart[open] { display: flex; flex-direction: column; }
.cart::backdrop { background: rgb(5 4 7 / .72); }
.cart-head, .cart-body, .cart-foot { padding: 1.2rem; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.cart h2 { font-size: clamp(1.55rem, 5vw, 2rem); }
.cart-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.cart-foot { border-top: 1px solid var(--line); }
.icon-button {
  width: 2.7rem;
  height: 2.7rem;
  background: var(--night);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: .35rem;
  font-size: 1.5rem;
  line-height: 1;
}
#order-items { padding: 0; margin: 0; list-style: none; }
.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding-block: .85rem;
  border-bottom: 1px solid var(--line);
}
.order-item strong { display: block; }
.order-item small { color: var(--quiet); }
.quantity { display: flex; align-items: center; gap: .5rem; }
.quantity span { min-width: 1.2rem; text-align: center; }
.quantity button { width: 2.75rem; padding: .2rem; font-size: 1.2rem; }
.subtotal { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-size: 1.15rem; }
.subtotal strong { color: var(--cheddar); }
.checkout-note, #order-empty, #copy-status { color: var(--quiet); }
#order-details .button { width: 100%; margin-top: .75rem; }
#copy-status { margin-top: .5rem; }
#manual-copy {
  width: 100%;
  resize: vertical;
  margin-top: .75rem;
  padding: .6rem;
  color: var(--cream);
  background: var(--night);
  border: 1px solid var(--line);
}
.text-button {
  border: 0;
  padding: .35rem 0;
  color: var(--pink-text);
  background: transparent;
  font-weight: 600;
}

@media (max-width: 64rem) {
  .hero { gap: 1.6rem; }
  .hero h1 { font-size: clamp(2.55rem, 5.45vw, 4rem); }
}
@media (max-width: 49rem) {
  :root { --header-height: 4.5rem; }
  .header-inner { gap: .6rem; }
  .hero { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero h1 { font-size: clamp(2.7rem, 9vw, 4.55rem); }
  .hero-frame { aspect-ratio: 1.42; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 33rem) {
  .main-nav { display: none; }
  .hero { padding-block: 2rem; }
  .hero .button { margin-top: 1.25rem; }
  .hero-frame { aspect-ratio: 1.21; }
  .hero-frame figcaption { inset: auto .9rem .8rem; }
  .hero-frame figcaption span { font-size: .72rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .5rem; }
  .menu-grid { grid-template-columns: 1fr; }
  .product h3 { font-size: 1.55rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about img { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
