/* ============================================================
   EMA — European Mesopotamia Alliance
   Design system : navy + gold, modern editorial
   ============================================================ */

:root {
  /* Brand inks */
  --navy-900: #0E1F3A;
  --navy-800: #13294B;
  --navy-700: #1B355C;
  --navy-600: #1F3864;
  --navy-500: #2C4A7C;

  /* Gold */
  --gold-600: #9C7826;
  --gold-500: #B8902F;
  --gold-400: #C9A24A;
  --gold-300: #DCC07E;
  --gold-100: #F3EAD2;

  /* Neutrals (cool) */
  --slate-700: #3A4655;
  --slate-600: #53606E;
  --slate-400: #8A97A6;
  --line: #E2E8F0;
  --line-soft: #EEF2F6;
  --paper: #F7F8FB;
  --paper-2: #EEF2F9;
  --blue-wash: #D9E2F3;
  --white: #FFFFFF;

  /* Semantic (overridable by color tweak) */
  --bg: var(--white);
  --bg-alt: var(--paper);
  --ink: var(--navy-800);
  --ink-soft: var(--slate-600);
  --accent: var(--gold-500);
  --accent-ink: var(--gold-600);
  --surface: var(--white);
  --hairline: var(--line);

  /* Type */
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;

  --ease: cubic-bezier(.4, 0, .15, 1);
}

/* color treatments ------------------------------------------------ */
[data-color="cream"] {
  --bg: #FAF7F0;
  --bg-alt: #F3EEE2;
  --paper: #FAF7F0;
  --paper-2: #F3EEE2;
  --surface: #FFFDF8;
  --hairline: #E7DEC9;
}
[data-color="ink"] {
  --bg: var(--navy-900);
  --bg-alt: var(--navy-800);
  --ink: #F4F7FC;
  --ink-soft: #A9B6CC;
  --surface: var(--navy-800);
  --hairline: rgba(255,255,255,.12);
  --paper: var(--navy-800);
  --paper-2: var(--navy-700);
  --blue-wash: var(--navy-700);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* justified body copy */
p, li { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
.lede { text-align: inherit; -webkit-hyphens: none; hyphens: none; }
/* keep short card descriptions left-aligned (justify only suits long-form copy) */
.ema-3col p, .ema-4col p, .ema-tier-cards p, .ema-clubs-grid p, .ema-bureau p {
  text-align: left; -webkit-hyphens: none; hyphens: none;
}

/* ---- type helpers ---- */
.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
}
.lede {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.serif-it { font-family: var(--display); font-style: italic; font-weight: 500; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.hairline { height: 1px; background: var(--hairline); border: 0; }
.kicker-rule { width: 44px; height: 2px; background: var(--accent); display: inline-block; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: .01em;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-900); transform: translateY(-1px); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-line { padding: 0; border: 0; background: none; color: var(--accent-ink);
  font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn-line .arr { transition: transform .25s var(--ease); }
.btn-line:hover .arr { transform: translateX(5px); }

/* ---- reveal animation ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-anim="off"] [data-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* river motif stroke */
.river-flow { fill: none; stroke-linecap: round; }

/* ---- publication poster cards ---- */
.ema-poster-img { will-change: transform; }
.ema-news-card:hover .ema-poster-img { transform: scale(1.045); }
.ema-news-card:hover h3 { color: var(--navy-700); }

/* ---- FAQ accordion ---- */
.ema-faq summary::-webkit-details-marker { display: none; }
.ema-faq summary::marker { content: ""; }
.ema-faq .ema-faq-icon { transition: transform .3s var(--ease); }
.ema-faq[open] .ema-faq-icon { transform: rotate(180deg); }
.ema-faq summary:hover .display { color: var(--navy-700); }

/* scrollbar-free club rail */
.no-bar::-webkit-scrollbar { display: none; }
.no-bar { scrollbar-width: none; }

/* ---- responsive header / mobile menu ---- */
.ema-burger { align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
@media (max-width: 1080px) {
  .ema-header-inner { gap: 14px !important; }
}
@media (max-width: 680px) {
  /* declutter so the burger always fits and stays tappable */
  .ema-header-join { display: none !important; }
  .ema-header-inner { height: 64px !important; padding-inline: 16px !important; gap: 10px !important; }
}
@media (max-width: 420px) {
  .ema-header-lang { display: none !important; }
}

/* ---- page / language transition ---- */
#ema-veil {
  position: fixed; inset: 0; z-index: 2200;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
#ema-veil img { width: 84px; height: 84px; }
#ema-veil.show { opacity: 1; pointer-events: all; }
#ema-veil.show img { animation: emaSealPulse .9s var(--ease) infinite; }
@keyframes emaSealPulse {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.12); opacity: .5; }
}
.ema-page-anim { animation: emaPageIn .5s var(--ease) both; }
@keyframes emaPageIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: none; }
}
[data-anim="off"] .ema-page-anim { animation: none !important; }
[data-anim="off"] #ema-veil { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ema-page-anim { animation: none !important; }
  #ema-veil { transition: none; }
}
