@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/barlow-condensed-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #190e12;
  --plum: #351320;
  --cream: #fff0da;
  --paper: #f6e8d4;
  --orange: #ff7046;
  --wine: #942c33;
  --ink: #301b20;
  --line: #cab49f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1.125rem, 5.7vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--body); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
[id] { scroll-margin-block: 1rem; }
::selection { background: var(--orange); color: var(--night); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: min(100% - var(--gutter) * 2, 76rem); margin-inline: auto; }
.icon { width: 1.15rem; height: 1.15rem; flex: none; }
.spark { width: 1.5rem; height: 1.5rem; flex: none; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 0.75rem;
  left: var(--gutter);
  padding: 0.75rem 1rem;
  background: var(--cream);
  color: var(--night);
}

.masthead {
  color: var(--cream);
  background: var(--night);
  border-bottom: 1px solid #59303a;
}
.preview-notice {
  padding-block: 0.55rem;
  background: #432530;
  color: var(--cream);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.35;
}
.masthead-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  flex: none;
  text-decoration: none;
  text-transform: uppercase;
  font: 800 1.12rem/0.83 var(--display);
}
.wordmark .spark { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: clamp(0.8rem, 3vw, 2.5rem); }
.main-nav a, .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.main-nav .nav-social { min-width: 44px; justify-content: center; }
.nav-social .icon { color: var(--orange); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background-color: var(--night);
  background-image: linear-gradient(90deg, #1c0e14d9 2%, #24101997 57%, #1a0d13cb), url("./assets/noche-de-barrio.webp");
  background-position: center, center 58%;
  background-size: cover;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.2rem, 6.5vw, 6.5rem);
  padding-block: 3.7rem 3.25rem;
}
.hero-copy { padding-block: 1rem 2rem; }
.hero-copy h1, .menu-intro h2 {
  font: 800 clamp(4.5rem, 8.4vw, 6rem)/0.82 var(--display);
  letter-spacing: -0.027em;
  text-transform: uppercase;
}
.hero-copy h1 > span { display: block; }
.hero-copy h1 > span + span { margin-top: 0.11em; }
.hero-dot { color: var(--orange); }
.hero-copy p { margin-block: 1.5rem; font-size: clamp(0.98rem, 1.6vw, 1.2rem); color: #ffdbc7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem 0.8rem; }
.branch-picker {
  display: flex;
  gap: 0.15rem;
  padding: 0.12rem;
  border: 1px solid #efb8a77d;
  border-radius: 0.28rem;
}
.branch-picker a {
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.48rem;
  border-radius: 0.18rem;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}
.branch-picker a[aria-current="true"] { background: var(--cream); color: var(--night); }
.branch-picker :focus-visible { outline-offset: -3px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 3.15rem;
  padding: 0.6rem 1rem;
  border-radius: 0.28rem;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 700;
}
.button-primary { color: var(--night); background: var(--orange); }
.button, .arrow-button, .back-to-top { transition: transform 140ms var(--ease-out), background-color 140ms ease; }
.button:active, .arrow-button:not([aria-disabled="true"]):active, .back-to-top:active { transform: scale(0.97); }

.stories { min-width: 0; align-self: start; }
.stories-head, .story-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.stories-head { margin-bottom: 0.75rem; border-bottom: 1px solid #f8c3ae60; }
.stories-head h2 {
  font: 800 clamp(1.55rem, 2.7vw, 2.12rem)/1 var(--display);
  letter-spacing: 0.008em;
  text-transform: uppercase;
}
.stories-head a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
}
.stories-head .icon { color: var(--orange); }
.stories-actions { display: flex; align-items: center; gap: 0.25rem; }
.stories-actions .story-auto { border-color: transparent; }
.stories-actions .story-auto .icon { color: var(--cream); }
.story-auto:not([data-playing]) .story-pause-icon,
.story-auto[data-playing] .story-play-icon { display: none; }
.story-track {
  --story-width: min(74%, 16.35rem);
  --story-gap: 0.72rem;
  display: flex;
  gap: var(--story-gap);
  margin: 0;
  padding: 0;
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) #47202c;
  list-style: none;
}
.stories:has(.story-controls:not([hidden])) .story-track { scrollbar-width: none; }
.stories:has(.story-controls:not([hidden])) .story-track::-webkit-scrollbar { display: none; }
.story-track::after { content: ""; flex: 0 0 calc(100% - var(--story-width) - var(--story-gap)); }
.story {
  flex: 0 0 var(--story-width);
  min-width: 0;
  scroll-snap-align: start;
}
.story-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.72;
  border: 1px solid #ffd5c05e;
  border-radius: 0.7rem;
  background-color: var(--plum);
}
.story-art :is(img, video) { display: block; width: 100%; height: 100%; object-fit: contain; }
.story-art video { background: var(--night); }
.story-art video:focus-visible { outline: 2px solid var(--cream); outline-offset: -4px; }
.story-poster-crop { width: 100%; height: 100%; }

@supports (width: 1cqh) {
  .story-poster { container-type: size; display: grid; place-items: center; }
  .story-poster-crop {
    position: relative;
    overflow: hidden;
    width: min(100%, calc(100cqh * 495 / 749));
    height: auto;
    aspect-ratio: 495 / 749;
  }
  .story-poster-crop img {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: calc(-68 / 749 * 100%);
    height: auto;
  }
}
.story-caption { padding: 0.6rem 0.2rem 0.25rem; }
.story-caption > span { display: block; color: #ffd1bd; font-size: 0.75rem; }
.story-caption strong { display: block; font-size: 1.05rem; padding-top: 0.12rem; line-height: 1.25; }
.story-caption a { display: inline-flex; align-items: center; gap: 0.25rem; text-decoration-thickness: 1px; }
.story-caption .icon { width: 0.85rem; height: 0.85rem; }
.story-colors {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 9% 8%;
  color: #ffe6ac;
  background: #a52e40;
}
.colors-name {
  position: relative;
  z-index: 1;
  display: block;
  font: 800 clamp(2.7rem, 5.2vw, 4.4rem)/0.81 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.colors-flares { position: relative; height: 76%; }
.colors-flares .spark { position: absolute; width: 55%; height: auto; }
.colors-flares .spark:nth-child(1) { color: #e8dd78; top: 0; left: 0; transform: rotate(12deg); }
.colors-flares .spark:nth-child(2) { color: #f9a4c8; top: 5%; right: -4%; transform: rotate(22deg); }
.colors-flares .spark:nth-child(3) { color: #ff784a; top: 39%; left: 23%; transform: rotate(8deg); }
.colors-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid currentColor;
  font-weight: 700;
}
.colors-price b { font: 800 2.25rem/1 var(--display); }
.story-controls { margin-top: 0.45rem; }
.story-count { display: flex; gap: 0.4rem; font-size: 0.8rem; color: #ffdac8; font-variant-numeric: tabular-nums; }
.story-buttons { display: flex; gap: 0.4rem; }
.arrow-button, .back-to-top {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #efb8a77d;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
}
.arrow-button[aria-disabled="true"], .arrow-button:disabled { opacity: 0.45; cursor: default; }

.menu-ribbon { background: var(--orange); color: var(--night); }
.menu-ribbon .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.menu-ribbon a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 2.5vw, 2rem);
  min-height: 3.7rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font: 800 clamp(0.95rem, 2vw, 1.65rem)/1 var(--display);
  letter-spacing: 0.055em;
}
.menu-ribbon .spark { width: clamp(0.65rem, 1.45vw, 1.18rem); height: auto; }
.menu-ribbon a:focus-visible, .button-primary:focus-visible { outline-offset: -4px; }

.menu { padding-block: clamp(3.25rem, 7.4vw, 7rem); }
.menu-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.menu-intro h2 { font-size: clamp(3.65rem, 6.35vw, 5.75rem); }
.menu-intro h2 span { color: var(--wine); }
.menu-intro p { max-width: 28ch; margin-top: 1rem; color: #663843; font-size: 0.94rem; }
.menu-list { border-top: 1px solid var(--line); }
.menu-section { border-bottom: 1px solid var(--line); }
.menu-section[data-menu-motion] { overflow: clip; }
.menu-section summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.1rem;
  padding-block: 0.8rem;
  list-style: none;
  cursor: pointer;
  font: 800 clamp(1.55rem, 2.8vw, 2.15rem)/0.95 var(--display);
  text-transform: uppercase;
}
.menu-section summary::-webkit-details-marker { display: none; }
.menu-section[open] summary, .menu-section:target summary { color: var(--wine); }
.plus {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 1.9rem;
  height: 1.9rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.plus::before, .plus::after { content: ""; position: absolute; width: 0.7rem; height: 1px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
[open]:not([data-menu-motion="closing"]) .plus::after { transform: rotate(0); opacity: 0; }
.menu-section[data-menu-motion] .plus::after { transition: transform 140ms var(--ease-out), opacity 140ms var(--ease-out); }
.menu-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-block: 0.4rem 1.8rem; }
.menu-group:only-child { grid-column: 1 / -1; }
.menu-group h3 { margin-block: 0 0.28rem; color: var(--wine); font: 800 1.32rem/1.15 var(--display); text-transform: uppercase; }
.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.65rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid #d5c0aa;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row dt, .bottle-table tbody th { font-size: 0.93rem; font-weight: 700; overflow-wrap: anywhere; }
.menu-group small { display: block; color: #663843; font-size: 0.81rem; font-weight: 400; }
.menu-row dd, .bottle-table td { font-size: 0.87rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bottle-table { width: 100%; border-collapse: collapse; }
.bottle-table th { text-align: left; }
.bottle-table thead { color: #663843; font-size: 0.78rem; }
.bottle-table th, .bottle-table td { padding-block: 0.4rem; vertical-align: top; border-bottom: 1px solid #d5c0aa; }
.bottle-table th:not(:first-child), .bottle-table td { padding-left: 0.35rem; text-align: right; }
.bottle-table tr:last-child th, .bottle-table tr:last-child td { border-bottom: 0; }
.bottle-table thead th { border-bottom: 1px solid #d5c0aa !important; }

.footer { background: var(--night); color: var(--cream); }
.footer-inner { min-height: 6.2rem; }
.footer-social .icon { color: var(--orange); }
.footer-social .icon:last-child { width: 0.85rem; height: 0.85rem; }
.back-to-top { text-decoration: none; flex: none; }

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover, .footer-social:hover, .menu-ribbon a:hover { text-decoration: underline; }
  .branch-picker a:hover { text-decoration: underline; }
  .button-primary:hover { background-color: #ff8f6c; }
  .arrow-button:not([aria-disabled="true"]):hover, .back-to-top:hover { background-color: #ffffff15; }
  .menu-section summary:hover { color: var(--wine); }
}

@media (max-width: 64rem) {
  .hero-inner { gap: clamp(1.35rem, 4vw, 3rem); }
  .menu-groups { grid-template-columns: 1fr; }
}

@media (max-width: 46rem) {
  .masthead-inner { min-height: 3.65rem; }
  .nav-social span { display: none; }
  .main-nav { gap: clamp(0.55rem, 3vw, 1.1rem); }
  .hero {
    background-image: linear-gradient(180deg, #1c0e149c 0%, #1c0e14df 56%, #1c0e14fd 100%), url("./assets/noche-de-barrio.webp");
    background-position: center, 57% top;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.4rem 1.3rem; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(3.3rem, 13.4vw, 5.45rem); }
  .hero-copy p { margin-block: 1rem; }
  .button { min-height: 2.8rem; }
  .stories-head { margin-bottom: 0.65rem; }
  .story-track { --story-width: 100%; }
  .story-track::after { content: none; }
  .story { scroll-snap-stop: always; }
  .story-art { aspect-ratio: auto; height: min(calc((100vw - 2 * var(--gutter)) * 1.5), 58svh, 32rem); }
  .story-controls { margin-top: 0.4rem; }
  .menu-ribbon .wrap { width: calc(100% - 1.25rem); }
  .menu-ribbon a { min-height: 3.15rem; gap: 0.25rem; letter-spacing: 0.02em; white-space: nowrap; }
  .menu-ribbon .spark { width: 0.53rem; }
  .menu-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .menu-intro h2 br { display: none; }
  .menu-intro p { max-width: 38ch; }
  .menu-section summary { min-height: 3.55rem; }
  .footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding-block: 1rem; }
  .footer-social { grid-area: 2 / 1 / auto / -1; justify-self: start; font-size: 0.86rem; }
  .back-to-top { grid-area: 1 / 2; }
}

@media (max-width: 22rem) {
  .menu-ribbon .spark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .arrow-button, .back-to-top { transition: background-color 140ms ease; }
  .button:active, .arrow-button:not([aria-disabled="true"]):active, .back-to-top:active { transform: none; }
}
