@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500&display=swap');

:root {
  --background: #1c1f24;
  --text: #eeeae2;
  --muted: #a7a39b;
  --gold: #c8ad78;
  --border: rgba(238, 234, 226, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  z-index: 10;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 6vw 32px;
  display: flex;
  flex-direction: column;
}

.brand {
  animation: fade-in 1.2s ease both;
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  line-height: 1;
}

.brand-name {
  color: var(--text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
}

.hero {
  width: min(900px, 100%);
  margin: auto 0;
  padding: 12vh 0 14vh;
}

.eyebrow {
  margin: 0 0 30px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: rise-in 1.1s 0.15s ease both;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(58px, 8.5vw, 128px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

h1 span {
  display: block;
  animation: rise-in 1.2s ease both;
}

h1 span:nth-child(2) {
  animation-delay: 0.12s;
  color: #d8d3c9;
}

.intro {
  max-width: 440px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.025em;
  animation: fade-in 1.2s 0.35s ease both;
}

.coming-soon {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin-top: 58px;
  color: var(--text);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  animation: fade-in 1.2s 0.5s ease both;
}

.line {
  display: block;
  width: 46px;
  height: 1px;
  background: var(--border);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #777872;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fade-in 1.2s 0.65s ease both;
}

.footer p {
  margin: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 28px 24px 24px;
  }

  .hero {
    padding: 10vh 0 12vh;
  }

  .eyebrow {
    margin-bottom: 25px;
    line-height: 1.6;
  }

  h1 {
    font-size: clamp(54px, 16vw, 82px);
    line-height: 0.9;
  }

  .intro {
    max-width: 330px;
    margin-top: 32px;
    font-size: 11px;
  }

  .coming-soon {
    margin-top: 46px;
    letter-spacing: 0.25em;
  }

  .line {
    width: 30px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Hiệu ứng chuyển màu mượt mà (fade) khi bấm nút */
body {
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* Tinh chỉnh lại hệ màu cho Light Mode sâu hơn */
body.light-theme {
  --background: #f4f2ed; 
  --text: #2c2c2c;       /* Đen chì, không dùng đen tuyền để giữ độ êm */
  --muted: #8a857b;      /* Xám nâu đậm hơn, đủ sâu để đọc được */
  --gold: #9c834a;       /* Vàng gold sậm màu, ra chất cổ điển */
  --border: rgba(44, 44, 44, 0.15);
}

/* Đảo màu hạt noise để giữ vân giấy */
body.light-theme::before {
  opacity: 0.05;
  filter: invert(1);
}

/* Ghi đè màu của cụm "quiet is coming." để nó mờ vừa phải nhưng vẫn đồng nhất */
body.light-theme h1 span:nth-child(2) {
  color: #938e83; 
}

/* STYLE CHO NÚT BẤM */
.theme-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  animation: fade-in 1.2s ease both;
}

.theme-toggle:hover {
  color: var(--gold);
}

/* ẨN/HIỆN ICON THEO CHẾ ĐỘ */
.moon-icon { display: none; }
body.light-theme .sun-icon { display: none; }
body.light-theme .moon-icon { display: block; }

.lang-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 8px;
  transition: color 0.3s ease;
  animation: fade-in 1.2s ease both;
}

.lang-toggle:hover {
  color: var(--gold);
}