/* AMAICE – static site styles (self-hosted, no external requests) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/assets/instrument-sans-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: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/assets/instrument-sans-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 {
  --bg: #0d0033;
  --header: #1c244b;
  --accent: #7e7fce;
  --accent-strong: #8155fa;
  --text: #ffffff;
  --muted: #c9c6ea;
  --line: rgba(255, 255, 255, .14);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { background: var(--header); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 230px; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px 6px; }
.nav-link, .nav-trigger {
  font: inherit; font-size: 15.5px; font-weight: 600; color: #fff; text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.2;
}
.nav-link:hover, .nav-trigger:hover, .nav-menu.is-open > .nav-trigger { color: var(--accent); }
.nav-link[aria-current="page"], .nav-menu.active > .nav-trigger { color: var(--accent); }
.chev { width: 10px; height: 6px; transition: transform .2s; }
.nav-menu { position: relative; }
.nav-menu.is-open .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 8px;
  background: var(--header); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35); display: none;
}
.nav-menu.is-open .dropdown { display: block; }
@media (hover: hover) and (min-width: 1025px) {
  .nav-menu:hover .dropdown { display: block; }
  .nav-menu:hover .chev { transform: rotate(180deg); }
  .nav-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 500; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: rgba(126,127,206,.18); color: #fff; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mobile-nav { display: none; }

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { min-height: 76px; }
  .brand img { width: 180px; }
  .mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; max-height: calc(100vh - 76px); overflow-y: auto; }
  .mobile-nav.is-open { display: block; }
  .mobile-nav .nav-link, .mobile-nav .nav-trigger { display: flex; width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mobile-nav .nav-menu { position: static; }
  .mobile-nav .dropdown { position: static; box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px 14px; min-width: 0; }
  .mobile-nav .dropdown a { padding: 11px 8px; font-size: 16px; }
}

/* ---------- Generic content ---------- */
.content { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 110px); }
.content > * { max-width: 920px; }
.content.legal > * { max-width: 820px; }
.page-title { color: var(--accent); font-size: clamp(32px, 4.5vw, 46px); line-height: 1.15; font-weight: 600; margin: 0 0 32px; letter-spacing: -.01em; }
.center-title .page-title { text-transform: uppercase; color: #fff; font-weight: 700; text-align: center; max-width: none; margin-bottom: 48px; }
.content h2 { font-size: clamp(23px, 2.6vw, 28px); line-height: 1.25; font-weight: 600; margin: 44px 0 14px; }
.content h3 { font-size: 20px; font-weight: 600; margin: 0 0 10px; color: var(--accent); }
.content p { margin: 0 0 16px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 18px; }
.content li { margin: 6px 0; }
.content a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.lead { font-size: clamp(18px, 2vw, 21px); }

.wp-list { list-style: none; padding: 0 !important; counter-reset: wp; display: grid; gap: 18px; margin-top: 36px !important; }
.wp-list li { padding: 26px 28px 22px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; background: rgba(255,255,255,.03); margin: 0; }
.wp-list h2 { margin: 0 0 10px; font-size: 22px; }
.wp-list p { margin: 0; }
@media (max-width: 600px) { .wp-list li { padding: 20px; } }

.people { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.people li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.people span { color: var(--muted); }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; max-width: none !important; margin-top: 24px; }
.country-grid section { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 10px; background: rgba(255,255,255,.03); }
.country-grid h2, .country-grid h3 { margin: 0 0 10px; font-size: 20px; color: var(--accent); }
.country-grid ul { padding-left: 18px; }

.person { display: flex; align-items: center; gap: 18px; margin: 44px 0 12px; }
.person img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
@media (max-width: 600px) { .person { flex-direction: column; align-items: flex-start; } }
.eu-inline { width: 280px; margin: 4px 0 18px; }
.person h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); font-weight: 700; }
.person .role { margin: 4px 0 0; font-size: 19px; }
address { font-style: normal; line-height: 2; margin-bottom: 40px; }
.small-head { font-size: 19px !important; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; margin-top: 30px !important; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; padding: 14px 28px; border-radius: 999px; text-decoration: none; font-size: 16px;
}
a.button:hover { background: #9495dc; color: #fff; }
.button.is-disabled { cursor: default; }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 75% 50%; }
.hero-inner { position: relative; padding-top: 20px; padding-bottom: 100px; }
.hero-box { background: var(--bg); max-width: 680px; padding: clamp(36px, 6vw, 100px) clamp(28px, 6vw, 100px); }
.hero-box h1 { margin: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; text-transform: uppercase; font-weight: 700; letter-spacing: .005em; }
@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; }
  .hero picture { position: relative; order: 2; height: 240px; }
  .hero-inner { padding: 0; }
  .hero-box { padding: 40px var(--gutter) 36px; }
}

.intro { text-align: center; padding-top: clamp(56px, 8vw, 100px); padding-bottom: 40px; max-width: 1100px; }
.intro h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; text-transform: uppercase; margin: 0 0 18px; font-weight: 700; }
.intro .lead { max-width: 820px; margin: 0 auto 26px; font-size: clamp(18px, 2vw, 24px); }
.small-note { color: var(--accent); font-size: 14px; margin: 18px 0 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: clamp(48px, 7vw, 110px); padding-bottom: clamp(48px, 7vw, 110px); }
.feature, .benefit { display: flex; gap: 16px; align-items: flex-start; }
.feature img { width: 36px; height: 40px; object-fit: contain; flex-shrink: 0; margin-top: 2px; }
.feature h3 { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; text-transform: uppercase; font-weight: 700; }
.feature p { margin: 0; max-width: 300px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: clamp(56px, 8vw, 100px); }
.benefit img { width: 40px; flex-shrink: 0; margin-top: 4px; }
.benefit h3 { margin: 0 0 14px; color: var(--accent); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; text-transform: uppercase; font-weight: 700; }
.benefit p { margin: 0; color: var(--accent); font-size: clamp(19px, 2vw, 24px); line-height: 1.45; max-width: 380px; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; gap: 36px; }
  .benefits { grid-template-columns: 1fr; }
}

/* ---------- Partners & footer ---------- */
.partners { background: #fff; padding: 26px 0; }
.partner-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center; justify-items: center; }
.partner-list img { max-height: 84px; max-width: 130px; width: auto; object-fit: contain; }
@media (max-width: 860px) {
  .partner-list { grid-template-columns: repeat(3, 1fr); gap: 22px 16px; }
  .partner-list img { max-height: 64px; max-width: 110px; }
}

.site-footer { padding: clamp(56px, 9vw, 150px) 0 clamp(40px, 6vw, 80px); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.site-footer .brand img { width: 230px; }
.copy { text-align: center; }
.copy p { margin: 0; }
.legal-links { margin-top: 10px !important; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.legal-links a { color: var(--muted); text-underline-offset: 3px; }
.legal-links a:hover { color: #fff; }
.eu { width: 280px; justify-self: end; background: transparent; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .eu { justify-self: center; width: 240px; }
}

/* ---------- News ---------- */
.news-hero { padding-top: clamp(48px, 8vw, 96px); }
.news-hero .lead { max-width: 760px; color: var(--muted); margin: 0 0 8px; }
.news-list { padding-top: 32px; padding-bottom: clamp(56px, 9vw, 110px); display: grid; gap: 28px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.news-card:hover { transform: translateY(-3px); border-color: rgba(126,127,206,.6); background: rgba(126,127,206,.08); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: #1a1050; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .card-media img { transform: scale(1.03); }
.card-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(129,85,250,.55), transparent 55%), radial-gradient(circle at 80% 90%, rgba(126,127,206,.5), transparent 50%), #160b4a; }
.card-ph span { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.85); font-size: 15px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h2 { font-size: 21px; line-height: 1.25; margin: 10px 0 10px; font-weight: 650; }
.teaser { color: var(--muted); margin: 0 0 16px; font-size: 16px; line-height: 1.55; }
.more { margin-top: auto; color: var(--accent); font-weight: 650; font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); }
.tag { background: rgba(126,127,206,.2); color: #d6d5ff; border: 1px solid rgba(126,127,206,.45); padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.news-card.featured .card-link { display: grid; grid-template-columns: 1.35fr 1fr; }
.news-card.featured .card-media { aspect-ratio: auto; min-height: 340px; }
.news-card.featured .card-body { padding: clamp(24px, 3.5vw, 44px); justify-content: center; }
.news-card.featured h2 { font-size: clamp(24px, 2.6vw, 32px); }
.news-card.featured .teaser { font-size: 17px; }
@media (max-width: 860px) {
  .news-card.featured .card-link { grid-template-columns: 1fr; }
  .news-card.featured .card-media { aspect-ratio: 3 / 2; min-height: 0; }
}

.latest { padding-bottom: clamp(56px, 8vw, 100px); }
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.latest-head h2 { font-size: clamp(28px, 3.2vw, 40px); text-transform: uppercase; margin: 0; font-weight: 700; }
.latest-head a { color: var(--accent); font-weight: 650; text-decoration: none; }

.post { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(56px, 9vw, 110px); max-width: calc(880px + 2 * var(--gutter)); }
.back { margin: 0 0 22px; }
.back a { color: var(--accent); text-decoration: none; font-weight: 600; }
.post-title { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; margin: 14px 0 14px; font-weight: 700; letter-spacing: -.01em; }
.post .lead { color: var(--muted); margin: 0 0 28px; }
.post-hero { margin: 0 0 28px; }
.post-hero img, .post-gallery img { width: 100%; border-radius: 16px; }
.post figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.post-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 30px; }
.post-facts div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: rgba(255,255,255,.03); }
.post-facts dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.post-facts dd { margin: 4px 0 0; }
.post-body p { margin: 0 0 18px; font-size: 18px; line-height: 1.7; }
.post-body a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 30px 0 10px; }
.post-gallery figure { margin: 0; }
.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.post-pager a { text-decoration: none; display: block; font-weight: 600; line-height: 1.35; }
.post-pager span { display: block; color: var(--accent); font-size: 14px; margin-bottom: 4px; }
.post-pager .newer { text-align: right; }
@media (max-width: 600px) { .post-pager { grid-template-columns: 1fr; } .post-pager .newer { text-align: left; } }

.wp-list li { display: grid; grid-template-columns: 64px 1fr; column-gap: 22px; align-items: start; }
.wp-list li > :not(.wp-icon) { grid-column: 2; }
.wp-icon { grid-row: 1 / span 2; width: 64px; height: 64px; padding: 12px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent)); box-shadow: 0 8px 22px rgba(129,85,250,.35); }
@media (max-width: 600px) { .wp-list li { grid-template-columns: 1fr; } .wp-list li > * { grid-column: 1 !important; } .wp-icon { grid-row: auto; width: 54px; height: 54px; margin-bottom: 12px; } }

/* Hero v2: text on image with soft gradient instead of a solid box */
.hero { min-height: clamp(460px, 46vw, 640px); display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,0,51,.92) 0%, rgba(13,0,51,.78) 30%, rgba(13,0,51,.25) 58%, rgba(13,0,51,0) 75%); pointer-events: none; }
.hero-inner { z-index: 1; padding-top: 48px; padding-bottom: 48px; }
.hero-box { background: none; max-width: 560px; padding: 0; }
.hero-box h1 { text-transform: none; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.12; font-weight: 650; letter-spacing: -.015em; text-shadow: 0 2px 18px rgba(13,0,51,.45); }
.hero-box h1 .hl { color: #b9b4ff; }
.hero-eyebrow { display: inline-block; margin: 0 0 18px; font-size: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #d6d5ff; border: 1px solid rgba(214,213,255,.45); padding: 6px 12px; border-radius: 999px; background: rgba(13,0,51,.35); }
@media (max-width: 700px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero::after { display: none; }
  .hero-inner { padding: 40px var(--gutter) 32px; }
  .hero-box h1 { font-size: 32px; text-shadow: none; }
}

.hero-box h1 { font-size: clamp(32px, 3.4vw, 50px); }
.hero-sub { margin: 20px 0 0; max-width: 480px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: #e4e2ff; text-shadow: 0 1px 12px rgba(13,0,51,.5); }
.hero-actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.button.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.75); }
a.button.ghost:hover { background: rgba(255,255,255,.12); }
@media (max-width: 700px) { .hero-sub { text-shadow: none; } }
