/* ─── Palette AlverniA ─────────────────────────────────────── */
/* dark navy: #0B2C3C · teal: #0A96BA · white: #ffffff          */
:root {
  --bg:           #071c26;
  --bg-card:      #0B2C3C;
  --text:         #ffffff;
  --text-muted:   #6aacbf;
  --accent:       #0A96BA;
  --accent-muted: rgba(10, 150, 186, 0.12);
  --border:       rgba(10, 150, 186, 0.18);
  --link-hover-bg: rgba(10, 150, 186, 0.08);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:           #f0f6f8;
    --bg-card:      #ffffff;
    --text:         #0B2C3C;
    --text-muted:   #2d5a6e;
    --accent:       #0A96BA;
    --accent-muted: rgba(10, 150, 186, 0.08);
    --border:       rgba(11, 44, 60, 0.12);
    --link-hover-bg: rgba(10, 150, 186, 0.07);
  }
}

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

/* ─── Base ─────────────────────────────────────────────────── */
html {
  font-family: 'Syne', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
}

/* ─── Card ─────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Logo portrait ────────────────────────────────────────── */
.logo-portrait {
  width: 140px;
  height: auto;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* ─── Name ─────────────────────────────────────────────────── */
.name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.75rem;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* ─── Tagline ───────────────────────────────────────────────── */
.tagline {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* ─── Brand tagline ──────────────────────────────────────────── */
.brand-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  width: 28px;
  height: 1px;
  background: var(--border);
  margin-bottom: 2rem;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* ─── Links ─────────────────────────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 220px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.18s, background-color 0.18s, border-color 0.18s;
}

.link:hover,
.link:focus-visible {
  color: var(--text);
  background-color: var(--link-hover-bg);
  border-color: var(--border);
  outline: none;
}

.link svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.18s;
}

.link:hover svg,
.link:focus-visible svg {
  opacity: 1;
}

/* ─── Lang switch ───────────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

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

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.18s;
}

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

.lang-btn:hover {
  color: var(--text);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Animation ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
