/* =========================================================
   GLOBAL TOKENS
========================================================= */

:root {

  /* COLORS */

  --yellow: #FFF600;
  --text: #000;

  /* LAYOUT */

  --page-max: 960px;
  --side-space: 96px;

  /* HERO */

  --hero-h1-size: 46px;
  --hero-title-box-width: 760px;
  --hero-title-line-height: 1.65;

  /* TYPOGRAPHY */

  --h1-size: clamp(42px, 8vw, 112px);
  --h1-line-height: 1.2;
  --h1-letter-spacing: -0.05em;

  --h2-size: clamp(20px, 3vw, 38px);
  --h2-line-height: 1.65;

  --h3-size: 18px;
  --h3-line-height: 1.65;

  --date-size: 16px;

  --button-size: 24px;
}

/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: auto;
}

body {
  background: #fff;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
  font-family: "JetBrains Mono", monospace;
}

body.search-modal-open {
  overflow: hidden;
}

/* =========================================================
   HIGHLIGHT
========================================================= */

.highlight-yellow {
  background: var(--yellow);
  color: #000;
  padding: 5px 8px;
  display: inline-block;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.home-link.highlight-yellow,
.nav-link.highlight-yellow,
.nav-icon-link.highlight-yellow {
  background: var(--yellow);
}

/* =========================================================
   HEADER / MENÜ
========================================================= */

.site-header {
  position: fixed !important;
  top: 40px !important;
  right: 50px !important;
  left: auto !important;
  width: auto !important;
  z-index: 1000;

  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;

  gap: 10px !important;
  padding: 0 !important;
  background: transparent !important;
}

.site-header--subpage {
  position: fixed;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.home-link,
.nav-link,
.nav-icon-link {
  font-family: "JetBrains Mono", monospace;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.home-link {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  
  min-width: 30px;
  min-height: 27px;
  text-align: center;
}

.nav-link {
  border: none;
  font-size: 14px;
  line-height: 1.2;
}

.nav-icon-link {
  min-width: 32px;
  text-align: center;
}

.header--compact {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  gap: 10px;
  padding: 12px 16px;
}

.header--compact .home-link,
.header--compact .nav-link {
  font-size: 14px;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.entries-container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 16px 64px;
}

.entry {
  border-top: 1px solid #e5e5e5;
  padding: 32px 0;
}

/* =========================================================
   HERO SECTION
========================================================= */

.entry--hero {
  border-top: none;
  padding: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-media {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform-origin: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding-right: var(--side-space);
  pointer-events: none;
}

.hero-layout {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-text-column {
  width: var(--hero-title-box-width);
  height: auto;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;

  text-align: right;

  border: none;
  background: transparent;
  will-change: transform;
}

.hero-title {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: var(--hero-h1-size);
  line-height: var(--hero-title-line-height);
  max-width: var(--hero-title-box-width);
  color: #000;
}

.hero-title span {
  background: rgba(255, 246, 0, 0.90);
  padding: 8px 12px;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-mainline {
  font-size: 1.35em;
}

/* =========================================================
   RAJZKALAND FEATURE POST
========================================================= */

.entry--feature-post {
  border-top: none;
  padding: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.feature-post-media {
  position: relative;
  width: 100vw;
  min-height: 720px;
  overflow: hidden;
}

.feature-post-image {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  display: block;
  will-change: transform;
  transform-origin: center center;
}

.feature-post-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding-left: var(--side-space);
  pointer-events: none;
}

.feature-post-text {
  max-width: 760px;
  color: #000;
  will-change: transform;
}

.feature-post-text h2,
.feature-post-text p,
.feature-post-text span {
  background: rgba(255, 246, 0, 0.90);
  padding: 4px 10px;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.feature-post-text h2 {
  display: inline-block;

  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-size: 120px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.feature-post-text p {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  line-height: 1.65;
  margin-top: 18px;
}

.feature-post-text span {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 12px;
}

/* =========================================================
   NORMAL POSTS
========================================================= */

.entry-title {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 28px;
  margin-bottom: 8px;
}

.entry-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.entry-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.entry-paragraph {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  line-height: 1.7;
  color: #000;
}

.entry-media {
  margin-top: 12px;
}

.entry-image {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* =========================================================
   SEARCH MODAL
========================================================= */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.92);
}

.search-modal.search-modal--visible {
  display: flex;
}

.search-modal-panel {
  width: min(720px, 90vw);
  min-height: 420px;

  background: var(--yellow);
  color: #000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;

  padding: 48px;
  position: relative;
}

.search-modal-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 42px;
  line-height: 1.25;
  text-align: center;
}

.search-modal-input {
  width: 100%;

  border: none;
  border-bottom: 2px solid #000;
  background: transparent;
  outline: none;

  font-family: "JetBrains Mono", monospace;
  font-size: 42px;
  text-align: center;
  color: #000;
}

.search-modal-close {
  border: none;
  background: transparent;

  font-family: "JetBrains Mono", monospace;
  font-size: 48px;
  line-height: 1;

  cursor: pointer;
  color: #000;
}

/* =========================================================
   SUBPAGE – RÓLAM / HIVATÁS
========================================================= */

.subpage-main {
  width: 100%;
  min-height: 100vh;
  padding: 120px 16px 80px;
  background: #f4f4f4;
}

.a4-page {
  width: min(100%, 794px);
  min-height: 1123px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px);
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

.text-section + .text-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.text-section h1,
.text-section h2 {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 28px;
}

.text-section h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.text-section h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.text-section p {
  font-size: 17px;
  line-height: 1.8;
  max-width: 66ch;
}

.text-section p + p {
  margin-top: 18px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  max-width: var(--page-max);
  margin: 25px auto 80px auto;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1,4;
  color: #000;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  :root {
    --hero-h1-size: 32px;
    --hero-title-box-width: 90vw;
    --side-space: 24px;
  }

/* Kompakt állapotban se ugorjon el */
.site-header.header--compact {
  top: 40px !important;
  right: 50px !important;
  left: auto !important;
  width: auto !important;
  justify-content: flex-end !important;
  padding: 0 !important;
}

  .home-link,
  .nav-link {
    font-size: 12px;
  }

  .hero-overlay {
    align-items: center;
    justify-content: flex-start;
    padding-left: var(--side-space);
    padding-right: var(--side-space);
  }

  .hero-text-column {
    width: 90vw;
    height: auto;
    min-height: 260px;
  }

  .feature-post-media,
  .feature-post-image {
    min-height: 620px;
  }

  .feature-post-text {
    max-width: 90vw;
  }

  .feature-post-text h2 {
    font-size: 56px;
  }

  .feature-post-text p {
    font-size: 18px;
    margin-top: 14px;
  }

  .search-modal-panel {
    min-height: 360px;
    padding: 32px;
  }

  .search-modal-text,
  .search-modal-input {
    font-size: 30px;
  }

  .a4-page {
    min-height: auto;
  }
}

/* =========================================================
   RAJZKALAND LANDING PAGE
========================================================= */

.rajzkaland-page {
  background: #fff;
  color: #000;
}

.rk-page {
  width: 100%;
  overflow: hidden;
}

.rk-section,
.rk-hero,
.rk-day,
.rk-cta-section,
.rk-organizers,
.rk-info-section,
.rk-contact-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.rk-hero,
.rk-section,
.rk-day {
  min-height: 100vh;
}

.rk-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

.rk-bg--hero {
  object-position: center center;
}

.rk-bg--left {
  object-position: left center;
}

.rk-bg--right {
  object-position: right center;
}

.rk-bg--top {
  object-position: center top;
}

.rk-bg--bottom {
  object-position: center bottom;
}

.rk-shade {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.rk-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: inherit;

  display: flex;
  align-items: center;
  padding: clamp(88px, 10vw, 150px) var(--side-space);
}

.rk-overlay--center {
  justify-content: center;
  text-align: center;
}

.rk-overlay--left {
  justify-content: flex-start;
  text-align: left;
}

.rk-overlay--right {
  justify-content: flex-end;
  text-align: right;
}

.rk-card {
  max-width: 760px;
  will-change: transform;
}

.rk-card--right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rk-card--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.rk-kicker,
.rk-title span,
.rk-lead span,
.rk-text-line,
.rk-meta span,
.rk-list span,
.rk-day-name span,
.rk-day-title span,
.rk-day-text span,
.rk-info-item span,
.rk-organizer-text span,
.rk-contact-line span {
  background: rgba(255, 246, 0, 0.90);
  color: #000;
  padding: 5px 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* HERO dátum/hely finomhangolás */
.rk-hero .rk-kicker {
  position: relative;
  top: -70px;
  margin-bottom: 0;
  z-index: 2;
}

.rk-kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.65;
  margin-bottom: 8px;
}

.rk-title {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: clamp(46px, 10vw, 138px);
  line-height: 1.15;
  letter-spacing: -0.055em;
  color: #000;
}

.rk-title span {
  display: inline;
}

.rk-subtitle {
  margin-top: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(20px, 3vw, 42px);
  line-height: 1.65;
}

.rk-lead {
  margin-top: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.65;
}

.rk-text {
  margin-top: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.75;
}

.rk-text-line {
  display: inline;
}

.rk-list {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(15px, 1.55vw, 20px);
  line-height: 1.65;
}

.rk-list li {
  display: block;
}

/* LANDING szekciók általános blokkritmusa */
/* Hero kivétel, azt külön kezeljük */

.rk-section .rk-kicker {
  position: relative;
  z-index: 3;
  margin-bottom: clamp(14px, 1.6vw, 26px);
}

.rk-section .rk-title {
  position: relative;
  z-index: 2;
  margin-top: 0px;
  margin-bottom: clamp(24px, 2vw, 42px);
}

.rk-section .rk-lead {
  position: relative;
  z-index: 3;
  margin-top: 0;
  margin-bottom: clamp(24px, 2.5vw, 42px);
}

.rk-section .rk-list {
  position: relative;
  z-index: 1;
  margin-top: clamp(12px, 1.5vw, 24px);
}

.rk-countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin: 34px auto 28px;
}

.rk-card--right .rk-countdown {
  margin-left: auto;
  margin-right: 0;
}

.rk-countdown-unit {
  background: rgba(255, 246, 0, 0.92);
  padding: 14px 10px 12px;
  text-align: center;
}

.rk-countdown-number {
  display: block;
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.rk-countdown-label {
  display: block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.2;
}

.rk-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.rk-card--center .rk-buttons {
  justify-content: center;
}

.rk-card--right .rk-buttons {
  justify-content: flex-end;
}

/* ========================================
   RAJZKALAND CTA
======================================== */

.rk-button {
  width: 245px;
  height: 90px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  border: none;

  background: #42ff00;
  color: #ff00f0;

  margin-top: 30px;
  padding: 0;

  font-family: "JetBrains Mono", monospace;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;

  text-decoration: none;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.rk-button:hover,
.rk-button:focus-visible {
  background: var(--yellow);
  color: #000;

  outline: none;
}

.rk-button:active {
  background: var(--yellow);
  color: #000;

  transform: translateY(1px);
}

.rk-day {
  min-height: 88vh;
}

.rk-day-card {
  max-width: 720px;
  will-change: transform;
}

.rk-day-name {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.rk-day-title {
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(20px, 3vw, 38px);
  line-height: 1.65;
}

.rk-day-text {
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.75;
}

.rk-cta-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(84px, 10vw, 140px) 16px;
  text-align: center;
  background: #fff;
}

.rk-cta-box {
  max-width: 980px;
  will-change: transform;
}

.rk-cta-title {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: clamp(38px, 8vw, 116px);
  line-height: 1.25;
  letter-spacing: -0.055em;
}

.rk-cta-title span,
.rk-cta-text span {
  background: rgba(255, 246, 0, 0.92);
  color: #000;
  padding: 6px 12px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.rk-cta-text {
  margin-top: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.7;
}

.rk-organizers,
.rk-info-section,
.rk-contact-section {
  min-height: 100vh;
  padding: clamp(92px, 10vw, 150px) var(--side-space);
  display: flex;
  align-items: center;
  background: #fff;
}

.rk-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.rk-section-heading {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-size: clamp(38px, 7vw, 96px);
  line-height: 1.25;
  letter-spacing: -0.055em;
  font-weight: 400;
  margin-bottom: 42px;
}

.rk-section-heading span {
  background: rgba(255, 246, 0, 0.92);
  padding: 6px 12px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.rk-organizer-grid,
.rk-info-grid,
.rk-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 160px;
}

.rk-organizer-card {
  display: grid;
   grid-template-columns: 360px minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
}

.rk-organizer-photo {
  width: 520px !important;
  height: 600px !important;
  /*background: var(--yellow);*/
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  padding: 12px;
}

.rk-organizer-photo img {
  width: 520px !important;
  height: 600px !important;
  object-fit: cover !important;
  display: block;
}

.rk-organizer-name {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.70;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.rk-organizer-name span {
  background: rgba(255, 246, 0, 0.92);
  padding: 5px 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.rk-organizer-text {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.7;
  max-width: 260px;
}

.rk-info-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rk-info-item {
  min-height: 170px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.65;
}

.rk-contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rk-contact-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #000;
}

.rk-contact-line {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.6;
}

.rk-contact-card .rk-button {
  align-self: flex-start;
  margin-top: 16px;
}

.rk-final {
  min-height: 100vh;
}

.rk-final .rk-card {
  max-width: 900px;
}

/* Landing oldalon a kereső használható, de nem domináns. */
.rajzkaland-page .search-modal-text,
.rajzkaland-page .search-modal-input {
  font-size: clamp(28px, 5vw, 42px);
}

@media (max-width: 1100px) {
  .rk-info-grid,
  .rk-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rk-overlay,
  .rk-organizers,
  .rk-info-section,
  .rk-contact-section {
    padding-left: var(--side-space);
    padding-right: var(--side-space);
  }

  .rk-overlay--right,
  .rk-overlay--left,
  .rk-overlay--center {
    justify-content: flex-start;
    text-align: left;
  }

  .rk-card--right,
  .rk-card--center {
    align-items: flex-start;
  }

  .rk-card--center .rk-buttons,
  .rk-card--right .rk-buttons {
    justify-content: flex-start;
  }

  .rk-card--right .rk-countdown {
    margin-left: 0;
    margin-right: auto;
  }

  .rk-countdown {
    width: min(100%, 420px);
  }

  .rk-organizer-grid {
    grid-template-columns: 1fr;
  }

  .rk-organizer-card {
    grid-template-columns: 120px 1fr;
  }

  .rk-organizer-photo {
    min-height: 170px;
  }
}

@media (max-width: 620px) {
  .rk-countdown {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .rk-countdown-unit {
    padding: 10px 6px;
  }

  .rk-organizer-card {
    grid-template-columns: 1fr;
  }

  .rk-organizer-photo {
    width: 100%;
    min-height: 150px;
  }

  .rk-info-grid,
  .rk-contact-grid {
    grid-template-columns: 1fr;
  }

  .rk-contact-card,
  .rk-info-item {
    min-height: auto;
  }
}

/* RAJZKALAND – MENÜ JELENTKEZEM CTA */

a.nav-link.nav-cta {
  display: inline-block !important;

  background: #42ff00 !important;
  color: #ff00f0 !important;

  padding: 5px 8px !important;

  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

a.nav-link.nav-cta:hover,
a.nav-link.nav-cta:focus-visible,
a.nav-link.nav-cta:active {
  background: var(--yellow) !important;
  color: #000 !important;
  outline: none;
}