/* FlowFam — közös alap: tokenek, tipográfia, gombok, eseménykártya.
   A nyilvános oldal (design.css) és az eseményszerkesztő (editor.css) is erre épül.
   Rendszer: 0 sugár a szerkezetnek, 4px a vezérlőknek; hajszálvonalak kártyák helyett. */
:root {
  --ink: #07100c;
  --floor: #0c1c15;
  --floor-2: #10251b;
  --mint: #3ff1c3;
  --mint-soft: #9ff7de;
  --chalk: #f2f5f1;
  --smoke: #a3b3aa;
  --rule: #22372d;
  --rule-strong: #4f7663;
  --danger: #ffb0a9;

  --display: 'Barlow Condensed', 'FlowFam Display Fallback', 'Arial Narrow', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.15rem + .9vw, 1.75rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.75rem, 1.9rem + 3.6vw, 5rem);
  --step-5: clamp(3.25rem, 2rem + 6vw, 7.5rem);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3rem, 2rem + 4vw, 5.5rem);
  --space-6: clamp(4.5rem, 3rem + 6vw, 9rem);

  --gutter: clamp(1rem, .4rem + 3vw, 3.5rem);
  --max: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 3px solid var(--mint);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--space-3); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--chalk); }
::selection { background: var(--mint); color: var(--ink); }
[hidden] { display: none !important; } /* a hidden attribútum minden komponens display-szabályát felülírja */

:focus-visible { outline: var(--focus); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--smoke); }

.skip-link {
  position: fixed; top: -10rem; left: var(--space-2); z-index: 100;
  padding: .75rem 1.25rem; border-radius: var(--radius);
  background: var(--mint); color: var(--ink); font-weight: 700;
}
.skip-link:focus { top: var(--space-2); }

/* Tipográfia */
.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--mint);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--mint);
}

/* Gombok és szöveges linkek */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  min-height: 3.5rem;
  padding: .875rem 1.5rem;
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.button > span[aria-hidden] { font-size: 1.25rem; font-weight: 400; line-height: 1; transition: transform .25s var(--ease); }
.button:hover { background: var(--mint-soft); border-color: var(--mint-soft); }
.button:hover > span[aria-hidden] { transform: translate(3px, -3px); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 2.75rem; padding: .5rem 1rem; gap: 1rem; font-size: .8125rem; }
.button-outline { background: transparent; border-color: var(--rule-strong); color: var(--chalk); }
.button-outline:hover { background: transparent; border-color: var(--mint); color: var(--chalk); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: .45em;
  transition: color .2s, text-decoration-color .2s;
}
.text-link:hover { color: var(--mint); text-decoration-color: var(--mint); }

/* Eseménybejegyzés — a FlowFamEvents.render() kimenete; a nyilvános oldal és a szerkesztő előnézete is használja. */
.event-card {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--rule);
  min-width: 0;
  scroll-margin-top: var(--space-4);
}
.event-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--floor);
}
.event-copy { min-width: 0; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  margin-bottom: var(--space-2);
  font-size: var(--step--1);
  color: var(--smoke);
}
.event-meta > span { color: var(--mint); font-weight: 600; }
.event-card h3 {
  margin-bottom: var(--space-2);
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: .98;
  max-width: 24ch;
  overflow-wrap: anywhere;
}
.event-location { margin-bottom: var(--space-2); font-size: .9375rem; font-weight: 500; color: var(--chalk); }
.event-location::before { content: ''; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; background: var(--mint); vertical-align: .1em; }
.event-excerpt { max-width: 62ch; color: var(--smoke); white-space: pre-line; overflow-wrap: anywhere; }
.event-story summary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  color: var(--mint);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.event-story summary::-webkit-details-marker { display: none; }
.event-story summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; line-height: 1; transition: transform .25s var(--ease); }
.event-story[open] summary::after { transform: rotate(45deg); }
.event-body { max-width: 68ch; padding-top: var(--space-1); color: var(--smoke); white-space: pre-line; overflow-wrap: anywhere; }
.event-body p:last-of-type { margin-bottom: var(--space-2); }
.event-body .text-link { color: var(--chalk); }

@media (min-width: 768px) {
  .event-card:has(> .event-image) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); align-items: start; }
}

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