/* Slovak Students For Liberty — shared styles
   Two themes: .t-org (SFL black + gold) and .t-conf (conference navy + cyan + gold). */

:root {
  --ink: #07080b;
  --ink-2: #111318;
  --ink-3: #1a1d24;
  --gold: #f6b81a;
  --navy-950: #0a1a30;
  --navy: #0f2340;
  --navy-700: #163257;
  --navy-600: #1d406c;
  --cyan: #22b5ef;
  --white: #ffffff;
  --text: #eef1f6;
  --muted: rgba(238, 241, 246, 0.7);
  --line: rgba(255, 255, 255, 0.12);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --wrap: 1180px;
}

.t-org  { --bg: var(--ink);  --accent: var(--gold); --accent-ink: #161004; --surface: var(--ink-2);    --surface-2: var(--ink-3); }
.t-conf { --bg: var(--navy); --accent: var(--cyan); --accent-ink: #03131f; --surface: var(--navy-700); --surface-2: var(--navy-600); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(var(--wrap), 100% - 64px); } }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; }
.skip:focus { left: 16px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 30px; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav ul a:hover { color: var(--white); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* Phone menu: ☰ opens a full-screen panel under the header (absolute, because the header's backdrop-filter traps position:fixed) */
.menu-btn { display: none; }
.menu-cta { display: none; }
@media (max-width: 899px) {
  .nav .nav-cta { margin-left: auto; }
  .menu-btn {
    display: inline-grid; place-content: center; gap: 5px; width: 46px; height: 46px; flex: none; margin-left: -6px;
    border: 0; border-radius: 12px; background: transparent; color: var(--white); cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s, opacity 0.2s; }
  .nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 70px); height: calc(100dvh - 70px);
    background: var(--bg); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0s linear 0.25s; }
  .nav.open nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.25s; }
  .nav nav ul { display: flex; flex-direction: column; gap: 0; padding: 20px 16px 32px; }
  .nav nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 34px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); }
  .nav nav ul a:hover { color: var(--accent); }
  .menu-cta { display: block; margin-top: 28px; }
  .nav nav ul .menu-cta a { display: inline-flex; border: 0; padding: 0 26px; font-family: var(--sans); font-size: 16px; text-transform: none; letter-spacing: 0.01em; color: var(--accent-ink); min-height: 54px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .t-org .nav .nav-cta { display: none; } .t-org .menu-btn { margin-left: auto; } }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--white); }
.brand svg { width: 36px; height: 36px; color: var(--gold); flex: none; }
.brand b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.brand b, .btn { white-space: nowrap; }
@media (max-width: 420px) { .brand svg { width: 32px; height: 32px; } .brand b { font-size: 16px; } .brand small { letter-spacing: 0.36em; } }

/* Conference wordmark */
.wm { display: inline-grid; text-decoration: none; color: var(--white); line-height: 1; }
.wm b { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.wm b + b { margin-top: 1px; }
.wm b span { color: var(--cyan); }
.wm small { margin-top: 6px; padding-top: 5px; border-top: 2px solid var(--cyan); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 15px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 34px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Type ---- */
.eyebrow { margin: 0 0 20px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.display { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; color: var(--white); }
h2.display { font-size: clamp(42px, 6.4vw, 84px); }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 600px; }
.accent { color: var(--accent); }
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }

section { padding: clamp(88px, 11vw, 150px) 0; }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.15fr 1fr; align-items: end; } .section-head .lead { justify-self: end; } }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0 clamp(96px, 12vw, 160px); }
.hero h1 { font-size: clamp(48px, 14.5vw, 190px); line-height: 1; padding-top: 0.08em; }
h2.display { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.1; }
.hero .lead { margin: 32px 0 40px; }

.org-hero::before {
  content: ""; position: absolute; inset: -20% -20% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(closest-side, rgba(246, 184, 26, 0.22), transparent 70%);
}
.org-hero .torch {
  position: absolute; z-index: -1; right: max(-120px, -8vw); bottom: -40px;
  width: min(620px, 70vw); color: var(--gold); opacity: 0.1;
}
@media (min-width: 900px) { .org-hero .torch { opacity: 0.9; right: 2vw; top: 50%; bottom: auto; transform: translateY(-50%); width: min(440px, 34vw); filter: drop-shadow(0 0 60px rgba(246, 184, 26, 0.35)); } }
.org-hero .torch .flame { transform-origin: 50% 90%; animation: flicker 3.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.03, 0.97) rotate(-1.5deg); } 60% { transform: scale(0.98, 1.04) rotate(1deg); } }

/* ---- Cards & grids ---- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s, border-color 0.25s, background-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card .num { display: block; margin-bottom: 40px; font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--accent); }
.card h3 { margin: 0 0 10px; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Featured conference banner (on org page) */
.feature {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 28px;
  padding: clamp(32px, 5vw, 56px); border-radius: 28px; text-decoration: none;
  background: radial-gradient(ellipse 60% 90% at 88% 0%, rgba(246, 184, 26, 0.16), transparent 70%), linear-gradient(160deg, var(--ink-3), var(--ink-2) 55%, var(--ink));
  border: 1px solid rgba(246, 184, 26, 0.28);
  transition: transform 0.3s, border-color 0.3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature .mountains { position: absolute; inset: auto 0 0 0; z-index: -1; opacity: 0.9; }
.feature h2 { font-size: clamp(36px, 5.6vw, 72px); }
.feature .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; letter-spacing: 0.04em; }
.feature .meta span:first-child { color: var(--gold); }
.feature .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gold); }
.feature .go svg { width: 20px; height: 20px; transition: transform 0.2s; }
.feature:hover .go svg { transform: translateX(4px); }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr auto; align-items: end; } }

/* Lists with checks */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--text); }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.panel { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h3 { margin: 0 0 24px; font-family: var(--display); font-size: 28px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); }

/* Follow links */
.follow { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s; }
.follow:hover { border-color: var(--accent); transform: translateY(-3px); }
.follow svg { width: 44px; height: 44px; flex: none; color: var(--accent); }
.follow b { display: block; font-size: 19px; color: var(--white); }
.follow span { color: var(--muted); font-size: 15px; }
.follow .arrow { width: 22px; height: 22px; margin-left: auto; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.follow:hover .arrow { transform: translateX(4px); color: var(--accent); }

/* Marquee */
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); }
.marquee-track i { font-style: normal; color: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Questions */
.questions { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); font-size: clamp(21px, 2.5vw, 30px); font-weight: 600; line-height: 1.3; color: var(--white); }
.questions li:last-child { border-bottom: 1px solid var(--line); }
.questions li::before { content: "0" counter(q); font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer a { text-decoration: none; }
.footer nav a { display: inline-block; padding: 12px 0; } /* 44px+ tap targets */
.footer .wrap > span a { display: inline-block; padding: 12px 0; }
/* Jump links land below the sticky header */
[id] { scroll-margin-top: 86px; }
.footer a:hover { color: var(--white); }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
