/* Lửa Rang (quan-cafe 5.0): a late-night coffee bar. Near-black, bone text, copper-gold accents, full-bleed photos,
   sideways rails, a bento of moods, the app in a phone frame. Fonts: Fraunces (display) + Montserrat (text). */
:root {
  --night: #121010;
  --night-2: #1c1815;
  --night-3: #27211d;
  --bone: #ede4d3;
  --muted: #a69c8d;
  --gold: #d6a65c;
  --ember: #e46a3b;
  --hair: rgba(237, 228, 211, 0.14);
  --k-font: 'Montserrat', system-ui, sans-serif;
  --k-font-display: 'Fraunces', Georgia, serif;
  --k-accent: #d6a65c;
  --k-accent-ink: #121010;
  --k-paper: #1c1815;
  --k-ink: #ede4d3;
  --k-muted: #a69c8d;
  --k-line: rgba(237, 228, 211, 0.18);
  --k-radius: 14px;
}

body {
  background: var(--night);
  color: var(--bone);
  font:
    400 16px/1.6 'Montserrat',
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
.eyebrow {
  margin: 0 0 8px;
  font:
    600 12px/1.4 'Montserrat',
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.h1 {
  font-size: 40px;
  line-height: 1.05;
}
.h2 {
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.1;
}
.h3 {
  margin-bottom: 12px;
  font-size: 21px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font:
    700 14px/1 'Montserrat',
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn-line {
  background: transparent;
  color: var(--bone);
  border-color: rgba(237, 228, 211, 0.5);
}
.btn-block {
  width: 100%;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.round {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}
.round:hover {
  background: var(--gold);
  color: var(--night);
}
.more {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}
.more-block {
  display: block;
  margin-top: 14px;
  text-align: center;
}

/* Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(18, 16, 16, 0.96);
  border-bottom: 1px solid var(--hair);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font:
    600 22px/1 'Fraunces',
    serif;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd27d, var(--ember));
  box-shadow: 0 0 14px rgba(228, 106, 59, 0.8);
}
.hdr-cart,
.hdr-menu {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--bone);
  cursor: pointer;
}
.hdr-cart b {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ember);
  color: #fff;
  font:
    700 11px/18px 'Montserrat',
    sans-serif;
  text-align: center;
}
.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 10px 16px 18px;
  background: var(--night);
  border-bottom: 1px solid var(--hair);
}
.menu[data-open] {
  display: flex;
}
.menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font:
    500 22px/1.2 'Fraunces',
    serif;
  text-decoration: none;
}
.menu .menu-cta {
  color: var(--gold);
}

/* Hero */
.hero,
.dhero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  background-color: var(--night-2);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before,
.dhero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(18, 16, 16, 0.96) 8%,
    rgba(18, 16, 16, 0.35) 60%,
    rgba(18, 16, 16, 0.55)
  );
}
.hero-in,
.dhero-in {
  width: 100%;
  padding: 40px 16px 34px;
}
.hero-title {
  font-size: 46px;
  line-height: 1.02;
  font-weight: 500;
}
.hero-lead {
  max-width: 32em;
  margin: 16px 0 22px;
  color: #d5cbb9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sections */
.sec {
  padding: 48px 16px 0;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.page {
  padding-top: 28px;
}

/* Rails */
.rail {
  display: flex;
  gap: 14px;
  margin: 0 -16px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px; /* snap to the padded edge, not the screen edge */
  scrollbar-width: none;
}
.sig {
  flex: none;
  width: 236px;
  scroll-snap-align: start;
}
.sig-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
}
.sig-body {
  padding: 12px 2px 0;
}
.sig-name {
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.sig-name a,
.wide-name a {
  text-decoration: none;
}
.sig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--gold);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 130px;
  gap: 10px;
}
.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--night-3);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  isolation: isolate;
}
.bento-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(18, 16, 16, 0.85), rgba(18, 16, 16, 0.1) 70%);
}
.bento-tile:first-of-type {
  grid-column: 1 / -1;
  grid-row: span 2;
}
.bento-name {
  font:
    600 20px/1.15 'Fraunces',
    serif;
}
.bento-count {
  font-size: 12px;
  color: var(--muted);
}

/* Story */
.story {
  display: grid;
  gap: 24px;
}
.story-img {
  margin: 0;
}
.story-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
}
.story-text p {
  margin: 0 0 14px;
  color: #d5cbb9;
}
.nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  margin: 18px 0 0;
}
.nums dd {
  margin: 0;
  font:
    500 36px/1 'Fraunces',
    serif;
  color: var(--gold);
}
.nums dt {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* App */
.app-sec {
  margin-top: 48px;
  padding-bottom: 48px;
  background: radial-gradient(ellipse at 30% 20%, rgba(214, 166, 92, 0.18), transparent 60%), var(--night-2);
}
.app-grid {
  display: grid;
  gap: 30px;
}
.app-phone .k-phone {
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(237, 228, 211, 0.12);
}
.app-phone .k-phone-screen {
  --k-paper: #f6efe3;
  --k-ink: #1c1815;
  --k-accent: #9a5b22;
  --k-accent-ink: #fff;
  --k-line: rgba(28, 24, 21, 0.14);
}
.perks {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.perks .k-icon {
  margin-top: 3px;
  color: var(--gold);
}
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(237, 228, 211, 0.4);
  border-radius: 12px;
  background: #000;
  color: var(--bone);
  font:
    600 14px/1 'Montserrat',
    sans-serif;
  cursor: pointer;
}

/* Gallery, quotes, journal */
.masonry {
  columns: 2;
  column-gap: 10px;
}
.masonry img {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 16px;
  break-inside: avoid;
}
.masonry img:nth-child(3n + 1) {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.q {
  flex: none;
  width: 290px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--night-2);
  scroll-snap-align: start;
}
.q blockquote {
  margin: 0 0 14px;
  font:
    400 18px/1.45 'Fraunces',
    serif;
}
.q-stars {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.q figcaption {
  font-size: 13px;
  color: var(--muted);
}
.q figcaption b {
  color: var(--bone);
}
.journal {
  display: grid;
  gap: 24px;
}
.entry {
  display: grid;
  gap: 6px;
  text-decoration: none;
}
.entry img {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 6px;
  border-radius: 16px;
  object-fit: cover;
  filter: saturate(0.85);
}
.entry .eyebrow {
  margin: 0;
}
.entry-title {
  font:
    600 21px/1.25 'Fraunces',
    serif;
}
.entry-excerpt {
  font-size: 14px;
  color: var(--muted);
}

/* FAQ */
.faq {
  border-bottom: 1px solid var(--hair);
}
.faq summary {
  position: relative;
  padding: 18px 32px 18px 0;
  font:
    500 18px/1.35 'Fraunces',
    serif;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 24px;
  color: var(--gold);
}
.faq[open] summary::after {
  content: '–';
}
.faq p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Visit */
.visit {
  display: grid;
  gap: 20px;
}
.visit-addr {
  margin: 0 0 12px;
  font:
    500 20px/1.35 'Fraunces',
    serif;
}
.hours {
  margin-bottom: 18px;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
}
.map {
  min-height: 280px;
  overflow: hidden;
  border-radius: 20px;
  filter: grayscale(0.8) invert(0.9) hue-rotate(180deg) contrast(0.9);
}

/* Menu page */
.finder {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--night-2);
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  border: 0;
  background: none;
  color: var(--bone);
  font:
    400 16px/1 'Montserrat',
    sans-serif;
  outline: none;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips-list {
  display: contents;
}
.chip {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(214, 166, 92, 0.5);
  border-radius: 999px;
  background: none;
  color: var(--bone);
  font:
    500 13px/1 'Montserrat',
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.chip[aria-pressed='true'] {
  background: var(--gold);
  color: var(--night);
}
.selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.select {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--night-2);
  color: var(--bone);
  font:
    500 14px/1 'Montserrat',
    sans-serif;
}
.wides {
  display: grid;
  gap: 14px;
}
.wide {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border-radius: 20px;
  background: var(--night-2);
}
.wide-img img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  border-radius: 14px;
  object-fit: cover;
}
.wide-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wide-body .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}
.wide-name {
  font-size: 19px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.wide-short {
  margin: 4px 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.wide-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  color: var(--gold);
}
.wide-row s {
  color: var(--muted);
  font-size: 13px;
}
.wide-row .round {
  margin-left: auto;
}
.empty {
  padding: 20px;
  border-radius: 18px;
  background: var(--night-2);
  color: var(--muted);
}

/* Detail */
.dhero {
  min-height: 70vh;
}
.dhero-article {
  min-height: 56vh;
}
.back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.dhero-short {
  max-width: 30em;
  margin: 12px 0 0;
  color: #d5cbb9;
}
.dbody {
  display: grid;
  gap: 24px;
  padding-top: 28px;
}
.dprice {
  margin: 0 0 12px;
  font:
    500 32px/1 'Fraunces',
    serif;
  color: var(--gold);
}
.dprice small {
  font:
    400 15px/1 'Montserrat',
    sans-serif;
  color: var(--muted);
}
.ddesc {
  margin: 0 0 16px;
  color: #d5cbb9;
}
.dattrs {
  margin: 0;
}
.dattrs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}
.dattrs dt {
  color: var(--muted);
}
.dattrs dd {
  margin: 0;
  text-align: right;
}
.dbuy {
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--night-2);
}

/* Checkout and account */
.checkout,
.account-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.panel {
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--night-2);
}
.cl {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.cl img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}
.cl-info {
  display: grid;
  min-width: 0;
}
.cl-info a {
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cl-info small {
  color: var(--muted);
}
.cl-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.cl-qty button:not(.link) {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: none;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cl b {
  color: var(--gold);
}
.sum {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 10px;
  font:
    500 24px/1 'Fraunces',
    serif;
}
.perks-panel .perks {
  margin-bottom: 18px;
}

/* Article */
.read {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 28px;
}
.read-lead {
  margin: 0 0 18px;
  font:
    400 21px/1.45 'Fraunces',
    serif;
  color: var(--gold);
}
.read-body p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.8;
  color: #d5cbb9;
}

/* App page */
.app-page {
  margin-top: 0;
}
.features {
  display: grid;
  gap: 14px;
}
.feature {
  padding: 20px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--night-2);
}
.feature .k-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--gold);
}
.feature p {
  margin: 0;
}

/* Footer */
.ftr {
  margin-top: 64px;
  padding: 36px 16px 12px;
  border-top: 1px solid var(--hair);
}
.ftr-grid {
  display: grid;
  gap: 22px;
}
.ftr-grid p {
  margin: 0 0 6px;
}
.ftr-brand {
  font:
    600 30px/1 'Fraunces',
    serif;
}

@media (min-width: 860px) {
  .hdr {
    padding: 16px 48px;
  }
  .hdr-menu {
    display: none;
  }
  .menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    order: 1;
    margin-left: 32px;
    padding: 0;
    border: 0;
    background: none;
  }
  .menu a {
    padding: 0;
    border: 0;
    font:
      500 14px/1 'Montserrat',
      sans-serif;
    letter-spacing: 0.04em;
  }
  .menu .menu-cta {
    padding: 12px 20px;
    border: 1px solid var(--gold);
    border-radius: 999px;
  }
  .hdr-cart {
    order: 2;
  }
  .brand {
    margin-right: 0;
  }
  .menu {
    margin-right: auto;
  }
  .hero {
    min-height: 88vh;
  }
  .hero-in,
  .dhero-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 48px 64px;
  }
  .hero-title {
    font-size: 96px;
  }
  .h1 {
    font-size: 64px;
  }
  .h2 {
    font-size: 44px;
  }
  .sec {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px 0;
  }
  .rail {
    margin: 0;
    padding: 0 0 10px;
  }
  .sig {
    width: 268px;
  }
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }
  .bento-tile:first-of-type {
    grid-column: span 2;
  }
  .story {
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: center;
  }
  .nums {
    grid-template-columns: repeat(4, 1fr);
  }
  .app-sec {
    max-width: none;
    padding: 80px max(48px, calc((100% - 1104px) / 2)) 80px;
  }
  .app-grid {
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: center;
  }
  .masonry {
    columns: 3;
  }
  .journal {
    grid-template-columns: repeat(3, 1fr);
  }
  .faqs {
    max-width: 820px;
  }
  .visit {
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
  }
  .map {
    min-height: 360px;
  }
  .finder {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
  }
  .chips {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
  }
  .wides {
    grid-template-columns: 1fr 1fr;
  }
  .wide {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .dbody {
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .checkout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .account-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
  .ftr {
    padding: 48px;
  }
  .ftr-grid {
    max-width: 1104px;
    margin: 0 auto;
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
