/* Karaoke Vũ Hải — "hoàng gia đen vàng": warm black, metallic gold from the venue's logo, cream text.
   base.css: fonts, tokens, element defaults, helpers, buttons, frames, motion prefs. */

/* ---------- Fonts (self-hosted, latin + Vietnamese subsets, SIL OFL) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-italic-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --ink: #0b0907;
  --ink-2: #14100b;
  --ink-3: #1d1810;
  --line: rgba(212, 175, 95, 0.36);
  --line-soft: rgba(212, 175, 95, 0.16);
  --gold: #d4af5f;
  --gold-bright: #f1d998;
  --gold-deep: #a9822f;
  /* Metallic sweep taken from the logo: highlight, body, shadow, highlight. */
  --gold-metal: linear-gradient(135deg, #f8e9b4 0%, #dcb769 32%, #a9822f 58%, #ecd28b 82%, #c79d4c 100%);
  --cream: #f5ecd9;
  --cream-soft: rgba(245, 236, 217, 0.84);
  --muted: #b9ab90;

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --call-bar-h: 60px;
  --section-y: clamp(72px, 10vw, 120px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* Keep focused elements clear of the fixed header and the phone call bar. */
/* Cormorant defaults to old-style figures; phone numbers read better lining. */
html {
  color-scheme: dark;
  font-variant-numeric: lining-nums;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scroll-padding-bottom: calc(var(--call-bar-h) + env(safe-area-inset-bottom) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 960px) {
  html {
    scroll-padding-bottom: 0;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--call-bar-h) + env(safe-area-inset-bottom));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cream);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(212, 175, 95, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 70%, rgba(150, 40, 30, 0.07), transparent 60%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Type helpers ---------- */

/* Small caps label between two gold diamonds. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.section-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  color: var(--cream);
}

/* Gold metallic text, same sweep as the buttons. */
.gold-text {
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lede {
  color: var(--muted);
}

/* Flourish divider drawn from the logo's style (assets/img/ornament.svg). */
.ornament {
  display: block;
  width: 240px;
  max-width: 70%;
  height: 24px;
  margin: 0 0 1.5rem;
  background: url("/assets/img/ornament.svg") center / contain no-repeat;
}

.section-head-center {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.section-head-center .ornament {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.5s var(--ease-out), border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn-lg {
  min-height: 54px;
  padding: 0.95rem 1.8rem;
  font-size: 0.86rem;
}

/* Metallic gold with near-black text (contrast above 9:1 on every stop). */
.btn-gold {
  background: var(--gold-metal);
  background-size: 200% 100%;
  background-position: 0% 0%;
  border-color: rgba(248, 233, 180, 0.6);
  color: #1a1206;
  box-shadow: 0 10px 30px rgba(212, 175, 95, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-gold:hover {
  background-position: 100% 0%;
  box-shadow: 0 12px 36px rgba(212, 175, 95, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: rgba(11, 9, 7, 0.45);
  border-color: var(--line);
  color: var(--gold-bright);
}

.btn-ghost:hover {
  background: rgba(212, 175, 95, 0.1);
  border-color: var(--gold);
}

/* ---------- Frames ---------- */

/* Dark panel with a thin gold border and L-shaped gold corners. */
.frame {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: solid var(--gold);
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
