/*
 * syn.cy: what the landing pages (index.html, el/index.html) and the legal pages share. Tokens are
 * the admin app's (frontend/src/styles/tokens.css), light and dark by the device setting; fonts
 * are self-hosted (fonts/, SIL OFL), Latin and Greek only. Quicksand (headings) has no Greek, so
 * Greek headings fall back to Manrope.
 */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400-normal.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: Manrope; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-600-normal.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: Manrope; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700-normal.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: Manrope; font-weight: 800; font-display: swap; src: url(/fonts/manrope-latin-800-normal.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: Manrope; font-weight: 400; font-display: swap; src: url(/fonts/manrope-greek-400-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/fonts/manrope-greek-600-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/fonts/manrope-greek-700-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/fonts/manrope-greek-800-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: Quicksand; font-weight: 700; font-display: swap; src: url(/fonts/quicksand-latin-700-normal.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: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --sunken: #f4f6f9;
  --text: #0e1a2b;
  --muted: #5a6576;
  --line: #e2e6ec;
  --primary: #14213d;
  --on-primary: #ffffff;
  /* Sky marks (v2 12e3, 4.0:1 on white); --accent-fill is the lighter sky behind ink text (5.8:1). */
  --accent: #2384cc;
  --accent-fill: #2e9be6;
  --on-accent: #0e1a2b;
  --success: #0a70a8;
  --warning: #a35700;
  --danger: #c8243c;
  --success-tint: #e8f0f7;
  --warning-tint: #f7eee7;
  --danger-tint: #fdebea;
  --accent-tint: #eaf5fd;
  --accent-ring: rgb(46 155 230 / 25%);
  --focus: #5146c8;
  --band: #0e1a2b;
  --on-band: #ffffff;
  --band-muted: #b8c1cf;
  --band-line: rgb(255 255 255 / 12%);
  --band-glass: rgb(14 26 43 / 82%);
  --text-faint: rgb(14 26 43 / 8%);
  --font: Manrope, system-ui, sans-serif;
  --font-head: Quicksand, Manrope, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.125rem, 4vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1320;
    --surface: #161c2b;
    --sunken: #0b0f19;
    --text: #f1f3f7;
    --muted: #a3acbb;
    --line: #273041;
    --primary: #f1f3f7;
    --on-primary: #0e1a2b;
    --accent: #5cc8ff;
    --accent-fill: #5cc8ff;
    --success: #5cb8f0;
    --warning: #f2a93b;
    --danger: #ff6b7d;
    --success-tint: #202f43;
    --warning-tint: #302e33;
    --danger-tint: #342836;
    --accent-tint: #1d2d40;
    --accent-ring: rgb(92 200 255 / 25%);
    --focus: #a99bff;
    --band: #070a12;
    --band-muted: #a3acbb;
    --band-glass: rgb(7 10 18 / 82%);
    --text-faint: rgb(241 243 247 / 8%);
  }
}

* { box-sizing: border-box; }

html { scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }

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

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

/* The wordmark: ink is currentColor, the top arrow is the accent. Size it with height. */
.wordmark {
  display: block;
  width: auto;
  height: 1.6875rem;
}

/*
 * The top bar, on the dark band: solid at the top of the page; once scrolled (site.js adds
 * .scrolled) it gets compact and see-through, blurring the page under it.
 */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.875rem var(--pad);
  border-bottom: 1px solid transparent;
  background: var(--band);
  color: var(--on-band);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.site-nav.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom-color: var(--band-line);
  background: var(--band-glass);
  box-shadow: 0 1px 0 var(--text-faint), 0 10px 30px -18px rgb(0 0 0 / 45%);
}

.site-nav a { color: inherit; }
.site-nav .home { flex: none; display: flex; padding: 0.375rem 0; }
.site-nav .links { flex: 1; display: flex; justify-content: center; gap: 1.75rem; font-size: 0.9375rem; font-weight: 600; }
.site-nav .links a { line-height: 2.75rem; text-decoration: none; }
.site-nav .links a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.site-nav .lang { font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.site-nav .lang:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.button:hover { filter: brightness(1.15); }
.button.big { min-height: 3.5rem; padding: 0 1.75rem; border-radius: 12px; font-size: 1.0625rem; font-weight: 800; }
/* On the dark band the button flips to white (dark ink in dark mode stays readable too). */
.on-band .button, .site-nav .button { background: var(--on-band); color: var(--band); }
.site-nav .button { flex: none; min-height: 2.625rem; font-size: 0.9375rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .wordmark { height: 1.1875rem; color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* "GDPR READY": a blue padlock tile and an ink text block (white in dark mode). No EU stars: GDPR
   has no official badge, and the EU emblem must not suggest an endorsement. */
.gdpr-badge {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}

.gdpr-tile { display: block; flex: none; }

.gdpr-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12px;
  background: #0b0f17;
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
}

.gdpr-text :first-child { font-size: 15px; }
.gdpr-text :last-child { font-size: 9px; letter-spacing: 0.08em; }

@media (prefers-color-scheme: dark) {
  .gdpr-text { background: #ffffff; color: #0e1a2b; }
}

@media (max-width: 45rem) {
  .site-nav { gap: 1rem; }
  .site-nav .links { display: none; }
  .site-nav .lang { margin-left: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .site-nav { transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease; }
}
