/* ==========================================================================
   EMBOA — static project archive
   Hand-written, no build step, no external dependencies.
   Palette derived from the project's Erasmus+ / EU blue banner.
   Light only - the page does not follow the visitor's dark-mode setting.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg:            #ffffff;
  --bg-alt:        #f5f7fa;
  --surface:       #ffffff;
  --border:        #dfe4ec;
  --border-strong: #c3ccdb;
  --ink:           #16191f;
  --ink-soft:      #4d5666;
  --ink-faint:     #737d8d;
  --accent:        #1b3f94;
  --accent-hover:  #14306f;
  --accent-soft:   #eaf0fb;
  --warm:          #9a5522;
  --warm-soft:     #fdf3e8;
  --shadow:        0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18);
  --radius:        14px;
  --radius-sm:     9px;
  --maxw:          1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* --- base ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.02rem; font-weight: 650; }
p  { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(56px, 7vw, 96px) 0; scroll-margin-top: 76px; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .6em;
}
.lede { font-size: clamp(1.03rem, .98rem + .3vw, 1.17rem); color: var(--ink-soft); max-width: 68ch; }
.section > .wrap > h2 { max-width: 22ch; }

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em;
         color: var(--ink); text-decoration: none; flex: none; }
.brand span { font-size: 1.06rem; letter-spacing: .06em; }
.brand::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.site-nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 7px 13px; border-radius: 999px; font-size: .93rem; font-weight: 550;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.site-nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative; isolation: isolate; color: #fff;
  background: #10233f;
  padding: clamp(64px, 9vw, 128px) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../wp-content/uploads/2020/04/KasparAW-1.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(10, 24, 48, .93) 0%, rgba(12, 32, 66, .84) 52%, rgba(16, 44, 92, .66) 100%);
}
.hero__inner { max-width: 44rem; }
.hero__logo { height: 84px; width: auto; margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(1.65rem, 1.05rem + 2.4vw, 2.85rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: .45em; text-wrap: balance;
}
.hero__meta {
  font-size: .95rem; color: rgba(255, 255, 255, .82); margin-bottom: 1.6em;
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
}
.hero__meta .dot { opacity: .5; }
.hero__note {
  display: inline-block; font-size: .88rem; color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 2em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .hero__meta .dot { display: none; }
  .hero__meta { gap: 2px 12px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-size: .95rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn--primary { background: #fff; color: #10233f; }
.btn--primary:hover { background: #dde6f5; color: #10233f; }
.btn--ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* --- generic cards ------------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .97rem; }

.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 12%; }
.card--media .card__body { padding: 22px 24px 24px; }

/* --- prose blocks (original project texts) -------------------------------- */

.prose { max-width: 74ch; }
.prose p { color: var(--ink-soft); }
.prose .lede { color: var(--ink-soft); max-width: none; }
.prose h3 { color: var(--ink); margin-top: 0; margin-bottom: .5em; }

.topic {
  display: grid; gap: 32px; align-items: start; margin-top: 44px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .topic { grid-template-columns: minmax(0, 1fr) 260px; } }
.topic__fig { margin: 0; }
.topic__fig img { width: 100%; border-radius: var(--radius); }
.topic__fig figcaption {
  margin-top: 10px; font-size: .85rem; color: var(--ink-faint); text-align: center;
}

.tasks--two { margin-top: 24px; }
@media (min-width: 760px) { .tasks--two { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* --- stat row ------------------------------------------------------------ */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 40px;
}
.stats div { background: var(--surface); padding: 22px 20px; }
.stats b { display: block; font-size: 1.85rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--ink-soft); }

/* --- task list ----------------------------------------------------------- */

.tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tasks li {
  position: relative; padding-left: 34px; color: var(--ink-soft); font-size: .98rem;
}
.tasks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.tasks li::after {
  content: ""; position: absolute; left: 6px; top: .78em;
  width: 6px; height: 3px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- partners ------------------------------------------------------------ */

.partners { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 40px; }
.partner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
}
.partner__logo {
  height: 62px; display: flex; align-items: center;
  background: #fff; border-radius: var(--radius-sm); padding: 8px 12px;
}
.partner__logo img { max-height: 46px; width: auto; object-fit: contain; }
.partner__name { font-weight: 640; font-size: 1rem; line-height: 1.35; }
.partner__name a { color: inherit; text-decoration: none; }
.partner__name a:hover { color: var(--accent); text-decoration: underline; }
.partner__meta { font-size: .88rem; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; margin-top: auto; }
.tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.tag--plain { background: var(--bg-alt); color: var(--ink-faint); }

/* --- outcomes ------------------------------------------------------------ */

.callout {
  background: var(--warm-soft); border: 1px solid color-mix(in srgb, var(--warm) 28%, transparent);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); margin-top: 40px;
}
.callout .eyebrow { color: var(--warm); }
.callout h3 { max-width: 34ch; }
.callout p { color: var(--ink-soft); max-width: 72ch; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.callout__paper {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--warm) 24%, transparent);
}
.callout__paper .kind {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--warm);
}
.callout__paper p { font-size: .91rem; color: var(--ink-soft); margin: 4px 0 0; max-width: 78ch; }
.dl {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink);
  text-decoration: none; transition: border-color .15s, color .15s;
}
.dl:hover { border-color: var(--accent); color: var(--accent); }
.dl svg { flex: none; width: 14px; height: 14px; }

.io { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.io > summary {
  list-style: none; cursor: pointer; padding: 22px clamp(20px, 3vw, 28px);
  display: flex; gap: 16px; align-items: flex-start;
}
.io > summary::-webkit-details-marker { display: none; }
.io > summary:hover { background: var(--bg-alt); }
.io__num {
  flex: none; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  background: var(--accent-soft); color: var(--accent);
  padding: 5px 10px; border-radius: 7px; margin-top: 3px;
}
.io__head { flex: 1; min-width: 0; }
.io__head h3 { margin: 0 0 .25em; font-size: 1.1rem; }
.io__head p { margin: 0; font-size: .93rem; color: var(--ink-faint); }
.io__chev { flex: none; width: 20px; height: 20px; margin-top: 6px; color: var(--ink-faint); transition: transform .2s; }
.io[open] > summary .io__chev { transform: rotate(180deg); }
.io__body { padding: 0 clamp(20px, 3vw, 28px) 26px; border-top: 1px solid var(--border); padding-top: 22px; }
.io__body > p { color: var(--ink-soft); font-size: .97rem; max-width: 78ch; }

.results { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.results > li {
  font-size: .93rem; color: var(--ink-soft); line-height: 1.6;
  padding-left: 18px; border-left: 2px solid var(--border);
}
.results .kind {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px;
}
.results a { font-weight: 550; }

.events { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 2px;
          border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.events li { background: var(--surface); padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.events .when { flex: none; width: 9.5rem; font-size: .84rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.events .what { flex: 1; min-width: 240px; font-size: .95rem; }

/* --- gallery ------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 26px; }
.filters button {
  font: inherit; font-size: .88rem; font-weight: 550; cursor: pointer;
  padding: 7px 15px; border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--border); transition: all .15s;
}
.filters button:hover { border-color: var(--border-strong); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.album { margin-bottom: 44px; }
.album:last-child { margin-bottom: 0; }
.album__head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 16px; }
.album__head h3 { margin: 0; font-size: 1.12rem; }
.album__head .when { font-size: .87rem; color: var(--ink-faint); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tiles button {
  padding: 0; border: 0; cursor: pointer; background: var(--bg-alt);
  border-radius: var(--radius-sm); overflow: hidden; display: block; aspect-ratio: 4 / 3;
}
.tiles img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease, opacity .2s;
}
.tiles button:hover img { transform: scale(1.045); opacity: .92; }

/* --- lightbox ------------------------------------------------------------ */

.lb {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8, 11, 16, .94); padding: 20px;
  align-items: center; justify-content: center;
}
.lb[open], .lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.lb__count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: .85rem; font-variant-numeric: tabular-nums;
}
.lb__btn {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12); border-radius: 50%;
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; line-height: 1;
  transition: background .15s;
}
.lb__btn:hover { background: rgba(255, 255, 255, .26); }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__close { right: 16px; top: 16px; }

/* --- footer -------------------------------------------------------------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: .92rem; }
.footer__top { display: grid; gap: 32px; grid-template-columns: minmax(260px, 1.4fr) 1fr; align-items: start; }
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr; } }
.funding { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; max-width: 380px; }
.funding img { width: 100%; height: auto; }
.disclaimer { color: var(--ink-faint); font-size: .84rem; max-width: 62ch; margin-top: 16px; line-height: 1.6; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.social a {
  font-size: .87rem; padding: 6px 13px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--border); color: var(--ink-soft); background: var(--surface);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  color: var(--ink-faint); font-size: .85rem;
}

/* --- motion & print ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero__actions, .filters, .lb, .social, #gallery { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .io[open] .io__body, .io__body { display: block !important; }
  .section { padding: 12pt 0; }
  a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
  .hero { background: #fff; color: #000; padding: 0 0 12pt; }
  .hero::before, .hero::after { display: none; }
}
