/* Agnes Mylona - personal site */

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --tint: #f1f4fb;
  --ink: #13151b;
  --ink-2: #3f4452;
  --muted: #5a6070;
  --line: #e3e5ea;
  --blue: #1d4ed8;
  --blue-deep: #1a3fb0;
  --blue-soft: #e8eeff;
  --on-blue: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(19, 21, 27, .04), 0 8px 24px -12px rgba(19, 21, 27, .12);
  --shadow-hover: 0 2px 4px rgba(19, 21, 27, .05), 0 22px 40px -18px rgba(29, 78, 216, .35);
  --font: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'ss01';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
:lang(el) h1 { font-size: clamp(2.05rem, 1.25rem + 4vw, 4rem); letter-spacing: -.03em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: var(--on-blue); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; color: var(--on-blue); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex: none;
  box-shadow: 0 0 0 5px var(--blue-soft);
  transition: transform .35s var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-role { font-size: .8rem; color: var(--muted); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; }
.site-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.site-nav ul a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.site-nav ul a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }

.lang-switch {
  margin-left: 8px; display: inline-grid; place-items: center; min-width: 44px; height: 38px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; color: var(--ink); text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue); background: var(--surface); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer;
}
.menu-bars { position: relative; width: 18px; height: 10px; display: inline-block; }
.menu-bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -24px rgba(19, 21, 27, .25);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .js .site-nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .js .lang-switch { margin: 0; align-self: flex-start; }
  /* no-JS fallback: nav wraps under the brand */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .brand-role { font-size: .74rem; }
  .menu-label { display: none; }
  .menu-toggle { padding: 12px; }
}

/* ---------- buttons & links ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 10px 24px -12px rgba(29, 78, 216, .7); }
.btn-primary:hover { background: var(--blue-deep); color: var(--on-blue); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(29, 78, 216, .8); }
.btn-primary:hover .icon:first-child { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfd3dc; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: var(--on-blue); color: var(--blue-deep); overflow-wrap: anywhere; }
.btn-light:hover { color: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .45); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-weight: 700; text-decoration: none; color: var(--blue);
}
.text-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); }
.text-link:hover span { background-size: 100% 1.5px; }
.text-link .icon { transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- common sections ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
:lang(el) .eyebrow { letter-spacing: .04em; }

.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

.accent { color: var(--blue); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 48px); }
.section-tint { background: var(--tint); }
.section-title { margin-bottom: 28px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

/* ---------- home ---------- */

.hero { position: relative; padding: clamp(48px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; z-index: -1; right: -12vw; top: -18vw;
  width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29, 78, 216, .11), rgba(29, 78, 216, 0));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 28px; max-width: 13ch; }
.hero .lead { margin-bottom: 36px; }

.portrait { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.portrait::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border-radius: 28px; background: var(--blue);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(19, 21, 27, .45); }

.facts {
  margin-top: clamp(56px, 7vw, 88px);
  background: var(--blue); color: var(--on-blue); border-radius: 24px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(29, 78, 216, .6);
}
.facts-title { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 18px; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.facts dl > div { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .22); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .82rem; font-weight: 600; opacity: .8; margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; font-size: 1.02rem; line-height: 1.45; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head h2 { margin-bottom: 16px; }
.split-head p { color: var(--ink-2); }
@media (min-width: 861px) { .split-head { position: sticky; top: 112px; } }

.mini-list { list-style: none; display: grid; gap: 12px; }
.mini a {
  display: flex; align-items: center; gap: 20px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.mini a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #c9d5f7; color: var(--ink); }
.mini-num { font-weight: 800; font-size: 1.05rem; color: var(--blue); font-variant-numeric: tabular-nums; flex: none; }
.mini-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mini-title { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; overflow-wrap: break-word; }
.mini-meta { color: var(--muted); font-size: .92rem; }
.mini a > .icon { color: var(--blue); transition: transform .3s var(--ease); }
.mini a:hover > .icon { transform: translateX(4px); }

.section-tint .narrow h2 { margin-bottom: 18px; }

.cta-band { background: var(--blue); color: var(--on-blue); padding: clamp(56px, 7vw, 88px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin: 0; opacity: .92; max-width: 52ch; }

/* ---------- inner pages ---------- */

.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { margin-bottom: 24px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }

.prose { display: grid; gap: 40px; }
.prose-block { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose-block h2 { font-size: 1.2rem; letter-spacing: -.01em; color: var(--blue); }
.prose-block p { margin: 0; color: var(--ink-2); }

.card-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value { padding: 28px; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #c9d5f7; }
.value-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: .9rem;
}
.value h3 { margin-bottom: 10px; }
.value p { margin: 0; color: var(--ink-2); font-size: 1rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); margin-bottom: 48px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: .96rem; color: var(--ink-2);
  transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.chips li:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.lang-list { margin: 0; }
.lang-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lang-list > div:first-child { border-top: 1px solid var(--line); }
.lang-list dt { font-weight: 700; }
.lang-list dd { margin: 0; color: var(--blue); font-weight: 600; }

/* erasmus */
.programme-logo { margin: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.programme-logo img { width: 100%; max-width: 300px; }
.programme-logo figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }

.timeline { list-style: none; position: relative; display: grid; gap: 28px; padding-left: 44px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--blue), rgba(29, 78, 216, .15)); border-radius: 2px; }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -44px; top: 34px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); }
.tl-dot::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--blue); transition: transform .3s var(--ease); }
.tl-item:hover .tl-dot::after { transform: scale(1.3); }

.exchange { padding: clamp(24px, 3.4vw, 40px); }
.exchange:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #c9d5f7; }
.exchange-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.exchange-num { font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1; color: var(--blue); letter-spacing: -.04em; font-variant-numeric: tabular-nums; flex: none; }
.exchange h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 8px; }
.exchange-meta { margin: 0; color: var(--muted); font-weight: 600; font-size: .96rem; display: flex; flex-wrap: wrap; column-gap: 10px; }
.exchange-theme { color: var(--ink); font-size: 1.05rem; }
.exchange-theme strong { color: var(--blue); }
.exchange > p { color: var(--ink-2); max-width: 70ch; }
.exchange-part { margin-top: 22px; padding: 20px 22px; background: var(--blue-soft); border-radius: var(--radius-sm); border-left: 3px solid var(--blue); }
.exchange-part h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 6px; }
:lang(el) .exchange-part h3 { letter-spacing: .04em; }
.exchange-part p { margin: 0; color: var(--ink); }
.exchange-part p + h3 { margin-top: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0;
  padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--blue); color: var(--blue);
  font-weight: 700; font-size: .85rem;
}
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* contact */
.contact-hero { padding-bottom: clamp(72px, 10vw, 128px); }
.contact-card { margin-top: 44px; padding: clamp(24px, 4vw, 44px); }
.contact-label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-email {
  display: inline-block; margin-bottom: 28px;
  font-size: clamp(1.25rem, .8rem + 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em;
  overflow-wrap: anywhere; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--ease);
}
.contact-email:hover { background-size: 100% 3px; }
.copy-status { margin: 14px 0 0; min-height: 1.5em; font-size: .95rem; color: var(--blue-deep); font-weight: 600; }

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

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .92rem; color: var(--muted); }
.footer-logos { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 28px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.logo-eu { width: 240px; }
.logo-yllf { width: 84px; border-radius: 4px; }
.footer-note { margin: 0; max-width: 60ch; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- language chooser / 404 ---------- */

.chooser { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.chooser-inner { text-align: center; display: grid; justify-items: center; gap: 12px; }
.chooser .brand-name { font-size: 2rem; margin: 0; }
.chooser-role { color: var(--muted); margin: 0 0 12px; }
.nf-title { font-size: 1.3rem; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid, .page-hero-grid, .split, .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .portrait { justify-self: start; max-width: 420px; margin-right: 22px; }
  .facts dl { grid-template-columns: minmax(0, 1fr); }
  .facts dl > div { padding: 16px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
  .facts dl > div:first-child { border-top: 0; padding-top: 0; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .prose-block { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .programme-logo { max-width: 360px; }
  .footer-logos { grid-template-columns: auto auto; }
  .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .actions .btn { width: 100%; }
  .timeline { padding-left: 30px; }
  .timeline::before { left: 7px; }
  .tl-dot { left: -30px; width: 16px; height: 16px; top: 30px; }
  .tl-dot::after { inset: 3px; }
  .exchange-head { flex-direction: column; gap: 8px; }
  .exchange-part { padding: 16px 18px; }
  .mini a { gap: 14px; padding: 18px; }
  .logo-eu { width: 190px; }
  .logo-yllf { width: 68px; }
  .cta-band .btn-light { width: 100%; }
}

/* ---------- motion ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .mini a:hover, .value:hover, .exchange:hover, .chips li:hover { transform: none; }
}

@media print {
  .site-header, .cta-band, .menu-toggle, .copy-btn { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
}
