/* ==========================================================================
   VIBE Budapest — Base / reset / typography / layout primitives
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: .002em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--bg-deep); }

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

/* --- Layout primitives ---------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); }

/* Light/paper contrast section (used sparingly per MÁK restraint) */
.section--paper {
  background: var(--paper);
  color: var(--ink-on-paper);
}
.section--paper h1, .section--paper h2, .section--paper h3 { color: var(--ink-on-paper); }
.section--paper .label { color: var(--accent-deep); }
.section--paper .hairline { background: var(--line-on-paper); }
.section--alt { background: var(--bg-2); }

/* --- Type helpers --------------------------------------------------------- */

.label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

.display { font-size: var(--fs-display); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.serif-italic { font-style: italic; }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.6;
  max-width: 56ch;
}

.body-copy { color: var(--ink-soft); max-width: 64ch; }
.body-copy p + p { margin-top: 1.1em; }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --- Hairline gold divider ------------------------------------------------ */

.hairline {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
  margin: 0;
}
.hairline--short { width: 64px; height: 1px; background: var(--accent); }
.hairline--center { margin-inline: auto; }

/* --- Buttons (pill primary + ghost secondary) ----------------------------- */

.btn {
  --btn-pad-y: .85em;
  --btn-pad-x: 1.9em;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background var(--t-med) var(--ease),
              color var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }

/* Filled gold pill — the persistent primary CTA (Foglalj most!) */
.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* Ghost on paper */
.section--paper .btn { color: var(--accent-deep); border-color: var(--accent-deep); }
.section--paper .btn:hover { background: var(--accent-deep); color: var(--paper); }

/* Text link with gold underline reveal */
.link-more {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent-faint);
  transition: border-color var(--t-med) var(--ease), gap var(--t-med) var(--ease);
}
.link-more:hover { border-color: var(--accent); gap: .85em; }
.link-more::after { content: "\2192"; font-size: 1.1em; line-height: 1; }

/* --- Framed / scrim photo ------------------------------------------------- */

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--img-frame);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
  pointer-events: none;
}

/* --- Utilities ------------------------------------------------------------ */

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

.skip-link {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-deep);
  padding: .6em 1.2em;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0; }

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