/* =========================================================================
   Pasáž Events – redesign
   Tokens, base, content (CKEditor HTML from the admin), components.
   No framework: the only dependency is the self-hosted Outfit font.
   ========================================================================= */

:root {
  /* Palette (see README): logo ink, white, porcelain, wine, champagne */
  --ink: #1a1a18;
  --ink-soft: #55554f;
  --paper: #ffffff;
  --porcelain: #efefec;
  --wine: #55121f;
  --wine-deep: #3f0d17;
  --champagne: #f2cb82;
  --champagne-soft: #f8e4bd;
  --line: rgba(26, 26, 24, 0.14);
  --line-on-dark: rgba(255, 255, 255, 0.22);

  /* Type: Outfit for headings and interface (geometry of the logo), Newsreader for running text (real italics) */
  --font: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;
  --fs-small: 0.875rem;   /* 14 */
  --fs-meta: 0.9375rem;   /* 15 */
  --fs-body: 1.125rem;    /* 18 */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h4: 1.1875rem;
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --fs-hero: clamp(3rem, 1.4rem + 6.4vw, 7.25rem);

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --header-h: 84px;
  --measure: 66ch;

  /* Shape: rounded like the logo's terminals; radius grows with the size of the object */
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.on-dark:focus-visible { outline-color: var(--champagne); }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Emphasis that admins put into titles (<b>, <i>, <em>, <strong>) is set in the light weight,
   the same contrast as the logo: heavy "pasáž", light "EVENTS". */
.t-accent b, .t-accent i, .t-accent em, .t-accent strong {
  font-weight: 300;
  font-style: normal;
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--champagne);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

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

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font: 600 1rem/1.2 var(--font);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--champagne); color: var(--ink); }
.btn--primary:hover { background: #ecbd63; }

.btn--wine { background: var(--wine); color: var(--paper); }
.btn--wine:hover { background: var(--wine-deep); }

.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--champagne);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------- sections & surfaces */

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* Surfaces. The background options an admin picks per section (BackgroundHelper) keep their meaning:
   Biele -> paper, Jemne šedé / Béžovo-šedé -> porcelain, Šedé -> stone, Béžové -> champagne tint. */
.surface-paper { background: var(--paper); }
.surface-porcelain, .bg-light-grey, .bg-light-2 { background: var(--porcelain); }
.surface-stone, .bg-grey { background: #e3e3df; }
.surface-champagne, .bg-light-1 { background: #f8eedb; }
.surface-wine { background: var(--wine); color: var(--paper); }

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  max-width: 46rem;
}
.section-head h2 { font-size: var(--fs-h2); line-height: 1.08; }
.section-head p { margin: 0; font-size: var(--fs-lead); color: var(--ink-soft); }
.on-dark .section-head p { color: rgba(255, 255, 255, 0.78); }

/* --------------------------------------------------------------- prose
   Rich text from CKEditor. Supports the editor's "btgrid" columns
   (row / col-lg-*), tables, images, embeds, and neutralises pasted inline
   fonts and colours so the typography stays consistent.               */

.prose {
  font-family: var(--font-text);
  font-size: 1.1875rem;
  line-height: 1.72;
  font-optical-sizing: auto;
}
.prose--lead { font-size: var(--fs-lead); line-height: 1.6; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--font); }
.prose > * { max-width: var(--measure); }
.prose > :is(.btgrid, .row, table, figure, .youtube-embed-wrapper, iframe) { max-width: none; }
.nowrap { white-space: nowrap; }
.prose--center { margin-inline: auto; }
.prose--center > * { margin-inline: auto; }

.prose h1, .prose h2 { font-size: var(--fs-h2); line-height: 1.1; margin: 1.6em 0 0.6em; }
.prose h3 { font-size: var(--fs-h3); line-height: 1.2; margin: 1.6em 0 0.5em; }
.prose h4, .prose h5, .prose h6 { font-size: var(--fs-h4); line-height: 1.3; margin: 1.4em 0 0.4em; }
.prose > :first-child, .prose .content > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--wine); }
.on-dark .prose li::marker { color: var(--champagne); }
.prose a { color: var(--wine); font-weight: 500; }
.on-dark .prose a { color: var(--champagne); }
.prose strong, .prose b { font-weight: 600; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1.25em;
  border-left: 3px solid var(--champagne);
  font-size: var(--fs-lead);
}
.prose img { border-radius: var(--r-m); margin-block: 0.5em; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-m); }
.prose .youtube-embed-wrapper { position: static !important; padding: 0 !important; height: auto !important; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--fs-meta);
}
.prose th, .prose td {
  padding: 0.75em 1em 0.75em 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 600; }

/* "btgrid" columns inserted with the editor */
.prose .row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  margin: 1.5em 0;
}
.prose .row > [class*="col-"] { grid-column: span 12; }
/* Quarter columns (hall specifications) stay two per row even on phones */
.prose .row > .col-lg-3 { grid-column: span 6; }
@media (min-width: 640px) {
  .prose .row > .col-lg-4 { grid-column: span 6; }
}
@media (min-width: 992px) {
  .prose .row > .col-lg-3 { grid-column: span 3; }
  .prose .row > .col-lg-4 { grid-column: span 4; }
  .prose .row > .col-lg-6 { grid-column: span 6; }
}
.prose .row .content > * { max-width: none; }

/* Editor buttons */
.prose .btn-primary {
  display: inline-flex;
  padding: 0.8rem 1.5rem;
  border-radius: var(--r-pill);
  background: var(--champagne);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

/* Safety net for text pasted from Word/Pages: keep the site's typography */
.prose [style*="font-family"] { font-family: inherit !important; }
.prose [style*="color"]:not(.btn-primary) { color: inherit !important; }
.prose [style*="letter-spacing"] { letter-spacing: inherit !important; }
.prose [style*="font-size"] { font-size: inherit !important; }
.prose [style*="justify"] { text-align: left !important; }
.prose font { font: inherit; color: inherit; }
