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

:root {
  --bg: #141312;
  --text: #e8e4dc;
  --text-muted: #8a857c;
  --accent: #b8a992;
  --accent-hover: #d4c9b4;
  --border: rgba(184, 169, 146, 0.18);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(184, 169, 146, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184, 169, 146, 0.04), transparent);
  pointer-events: none;
}

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

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.75rem, 5vw, 3rem);
}

.brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 4rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text);
}

.tagline {
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.motto {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(232, 228, 220, 0.75);
}

.contact {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent-hover);
  border-color: rgba(184, 169, 146, 0.35);
  background-color: rgba(184, 169, 146, 0.04);
  outline: none;
}

.lang-switch {
  position: fixed;
  right: clamp(1.25rem, 4vw, 2rem);
  bottom: clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 10;
}

.lang-btn {
  padding: 0.25rem 0.15rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--accent-hover);
  outline: none;
}

.lang-btn.is-active {
  color: var(--accent);
}

.lang-sep {
  font-size: 0.625rem;
  color: var(--border);
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark,
  .tagline,
  .motto,
  .contact {
    animation: fade-in 1.2s ease both;
  }

  .tagline {
    animation-delay: 0.15s;
  }

  .motto {
    animation-delay: 0.25s;
  }

  .contact {
    animation-delay: 0.35s;
  }

  .lang-switch {
    animation: fade-in 1.2s ease 0.45s both;
  }
}

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