:root {
  --bg: #202020;
  --fg: #f4efe9;
  --muted: rgba(244, 239, 233, 0.65);
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

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

html {
  background: var(--bg); /* màu nền chỉ đặt ở html, nếu đặt cả ở body sẽ che mất canvas */
}

html, body {
  height: 100%;
  margin: 0;
  color: var(--fg);
  overflow-x: hidden;
}

body { background: transparent; }

/* ---------- Nền ---------- */
#gradient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Lớp tối nhẹ ở giữa để chữ dễ đọc trên nền wireframe */
.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(14, 7, 7, 0.65), rgba(14, 7, 7, 0) 100%);
}

/* ---------- Bố cục: tên nhóm ở trên, câu giới thiệu ở chính giữa ---------- */
.top {
  position: absolute;
  top: clamp(1.25rem, 5vh, 3rem);
  left: 0;
  right: 0;
  padding: 0 1rem;
  text-align: center;
}

.center {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* căn giữa dọc */
  gap: 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* ---------- Tiêu đề ---------- */
.title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4.5vw, 3rem);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.title__line {
  display: block;
  height: 1.3em;          /* cố định chiều cao để đổi font không làm tiêu đề nhảy */
  line-height: 1.3;
  white-space: nowrap;
}

#insider, #city { display: inline-block; }

/* ---------- Câu giới thiệu ---------- */
.intro {
  margin: 0;
  max-width: 28ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.4;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.intro a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
}

/* ---------- Nút sản phẩm ---------- */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.btn, .footer a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--fg);
  text-decoration: none;
}

.btn {
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid transparent;
  text-transform: uppercase;
  transition: border-color 0.2s;
}

.btn:hover { border-bottom-color: var(--fg); }

/* ---------- Footer ---------- */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
}

.footer a { color: var(--muted); transition: color 0.2s; }
.footer a:hover { color: var(--fg); }

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .footer { gap: 1.25rem; }
  .footer a, .btn { font-size: 0.72rem; }
}
