:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1f1e1c;
  --text-muted: #6e6a63;
  --accent: #9a7b56;
  --border: rgba(31, 30, 28, 0.1);
  --glow: rgba(154, 123, 86, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1c1b18;
    --text: #f3efe8;
    --text-muted: #a39d93;
    --accent: #c8b08a;
    --border: rgba(243, 239, 232, 0.12);
    --glow: rgba(200, 176, 138, 0.08);
  }
}

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

html,
body {
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle ambient background glow */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, var(--glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--glow) 0%, transparent 50%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeIn 0.9s ease-out both;
}

.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero {
  margin: auto 0;
  padding: clamp(3rem, 8vh, 5rem) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease-out 0.1s both;
}

.monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
  background-color: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.thai-title {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: clamp(1.375rem, 3.2vw, 2rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 1.35rem;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 46ch;
  font-weight: 400;
}

.subtitle-th {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-top: 0.4rem;
  font-weight: 400;
}

.divider {
  width: 48px;
  height: 1px;
  background-color: var(--border);
  margin: 2.25rem auto;
}

.family-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.family-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 210px;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.family-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.family-btn-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.family-btn-domain {
  font-size: 0.8rem;
  color: var(--accent);
}

.note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  animation: fadeIn 1s ease-out 0.25s both;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

@media (max-width: 540px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
