/* ─────────────────────────────────────────────────────────────────────────────
   tokens.css — magic places
   Shared design tokens: @font-face, :root variables, reset/base styles
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── @FONT-FACE: Cormorant Garamond (self-hosted) ─── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-300-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-300-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── @FONT-FACE: Space Grotesk (self-hosted) ─── */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── :ROOT — Design Tokens ─── */
:root {
  /* -- Colors: Base Palette -- */
  --c-dark: #060D08;
  --c-dark-elevated: #0B1A0F;
  --c-gold: #B8944F;
  --c-gold-light: #D4C48A;
  --c-green: #6B8F72;
  --c-green-muted: #4A6B50;
  --c-green-pale: #A8C4AD;
  --c-canopy: #36463A;
  --c-marigold: #FD9623;
  --c-white: #FFFFFF;
  --c-cream: #F1EDE3;
  --c-text-dark: #111A14;

  /* -- Colors: Functional Tokens -- */
  --c-accent: var(--c-gold);
  --c-accent-light: var(--c-gold-light);
  --c-accent-on-light: #6B5630;
  --c-text-primary: var(--c-white);
  --c-text-muted: rgba(168, 196, 173, 0.78);
  --c-text-muted-low: rgba(168, 196, 173, 0.70);
  --c-text-sub-light: rgba(17, 26, 20, 0.75);
  --c-border: rgba(156, 126, 81, 0.12);
  --c-border-subtle: rgba(156, 126, 81, 0.06);
  --c-surface: rgba(156, 126, 81, 0.06);
  --c-surface-hover: rgba(156, 126, 81, 0.12);

  /* -- Typography: Font Families -- */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* -- Typography: Fluid Scale (t-shirt) — xs ×1.14, rest ×1.08 for readability -- */
  --text-xs: clamp(0.58rem, 0.52rem + 0.24vw, 0.73rem);
  --text-sm: clamp(0.74rem, 0.67rem + 0.31vw, 0.93rem);
  --text-md: clamp(1.02rem, 0.94rem + 0.31vw, 1.18rem);
  --text-lg: clamp(1.31rem, 1.12rem + 0.75vw, 1.67rem);
  --text-xl: clamp(1.80rem, 1.37rem + 1.74vw, 2.73rem);

  /* -- Spacing: Fluid Scale (t-shirt) -- */
  --space-xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.4rem + 0.4vw, 0.875rem);
  --space-md: clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  --space-xl: clamp(2rem, 1.6rem + 1.6vw, 3rem);

  /* -- Easing -- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);

  /* -- Legacy Aliases -- */
  --d: var(--c-dark);
  --d2: var(--c-dark-elevated);
  --gold: var(--c-gold);
  --gold-l: var(--c-gold-light);
  --moss: var(--c-green-muted);
  --sage: var(--c-green);
  --mist: var(--c-green-pale);
  --canopy: var(--c-canopy);
  --marigold: var(--c-marigold);
  --w: var(--c-white);
  --l: var(--c-cream);
  --l-text: var(--c-text-dark);
  --l-sub: var(--c-text-sub-light);
  --e: var(--ease);
  --e-cine: var(--ease-cine);
}

/* ─── Reset / Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--gold); color: var(--w); }

/* ─── Fokus-Indikator (WCAG 2.4.7) ─── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: #020504;
  color: var(--w);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

/* ─── LANGUAGE SWITCH ─── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(6, 13, 8, 0.6);
  z-index: 100;
}
.lang-switch__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  line-height: 1;
}
.lang-switch__item.is-active {
  color: var(--c-gold);
  background: var(--c-surface);
  cursor: default;
}
.lang-switch__item:not(.is-active):hover {
  color: var(--c-white);
}
/* Position inside phone frame (subpages) */
.phone .lang-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 150;
}
/* Position for non-phone pages (book, confirm) */
body > .lang-switch,
main > .lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 300;
}
