@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=IM+Fell+English+SC&family=Noto+Serif+KR:wght@300&family=Noto+Serif+JP:wght@300&display=swap');

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

/* ── Global kerning & rendering ── */
h1, p, div {
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

:root {
  --bg:        #faf7f2;
  --bg2:       #f2ece0;
  --gold:      #b8892a;
  --gold-light:#d4a843;
  --text:      #2c1f0e;
  --text-soft: #5c4a2a;
  --teal:      #1a5c5c;
  --teal-light:#1e7a7a;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Amiri', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ── Arabesque SVG background pattern ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cdefs%3E%3Cpattern id='a' patternUnits='userSpaceOnUse' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' fill='none' stroke='%23b8892a' stroke-width='0.4' opacity='0.15'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='%23b8892a' stroke-width='0.4' opacity='0.10'/%3E%3Ccircle cx='0' cy='0' r='5' fill='none' stroke='%23b8892a' stroke-width='0.4' opacity='0.10'/%3E%3Ccircle cx='60' cy='0' r='5' fill='none' stroke='%23b8892a' stroke-width='0.4' opacity='0.10'/%3E%3Ccircle cx='0' cy='60' r='5' fill='none' stroke='%23b8892a' stroke-width='0.4' opacity='0.10'/%3E%3Ccircle cx='60' cy='60' r='5' fill='none' stroke='%23b8892a' stroke-width='0.4' opacity='0.10'/%3E%3Cpath d='M30 10 L50 30 L30 50 L10 30Z' fill='none' stroke='%23b8892a' stroke-width='0.3' opacity='0.08'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='120' height='120' fill='url(%23a)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

/* ── Radial glow center ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(26,92,92,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Ornamental top/bottom bands ── */
.band {
  position: fixed;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--teal-light), var(--gold), transparent);
  z-index: 10;
}
.band--top    { top: 0; }
.band--bottom { bottom: 0; }

/* ── Side border lines ── */
.side-ornament {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(184,137,42,0.35) 30%, rgba(184,137,42,0.35) 70%, transparent);
  z-index: 10;
}
.side-ornament--left  { left: 32px; }
.side-ornament--right { right: 32px; }

/* ── Main container ── */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

/* ── Top ornament ── */
.ornament {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.8em;
  margin-right: -0.8em;
  opacity: 0.55;
  margin-bottom: 1.6rem;
  user-select: none;
}

/* ── Site name ── */
.site-name {
  font-family: 'IM Fell English SC', serif;
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(184,137,42,0.2);
  margin-bottom: 0.5rem;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
}

.site-name span {
  color: var(--teal-light);
}

/* ── Kerning fix: h→e pairs in site name ── */
.site-name .k {
  letter-spacing: 0;
}
.divider {
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.4rem auto;
  opacity: 0.5;
}

/* ── Tagline rotator ── */
.tagline-wrap {
  height: 2.8em;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 2.4rem;
}

.tagline {
  position: absolute;
  width: 100%;
  left: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--text-soft);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

.tagline.active {
  opacity: 1;
  transform: translateY(0);
}

.tagline[lang="ko"] {
  font-family: 'Noto Serif KR', serif;
  font-style: normal;
  font-weight: 300;
}

.tagline[lang="ja"] {
  font-family: 'Noto Serif JP', serif;
  font-style: normal;
  font-weight: 300;
}
  font-family: 'Amiri', serif;
  font-style: normal;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
}

.tagline .lang-label {
  font-size: 0.58em;
  color: var(--gold);
  opacity: 0.5;
  margin-left: 0.7em;
  font-family: 'IM Fell English SC', serif;
  letter-spacing: 0.15em;
  vertical-align: middle;
}

.tagline[lang="ar"] .lang-label {
  margin-left: 0;
  margin-right: 0.7em;
}

/* ── Coming Soon ── */
.coming-soon {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-right: -0.06em;
  color: var(--teal);
  text-shadow: 0 1px 8px rgba(26,92,92,0.15);
  margin-bottom: 0.2rem;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ── Bottom ornament ── */
.ornament--bottom {
  margin-top: 1.8rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .side-ornament { display: none; }
  .ornament { letter-spacing: 0.6rem; font-size: 1.2rem; }
  .divider { width: 160px; }
  .tagline-wrap { height: 3.8em; }
}
