:root {
  --yellow: #fff600;
  --text: #000;
  --reference-width: 1905;
  --band-ratio: 856 / 1905;

  /* INDEXRŐL TOVÁBBÖRÖKÍTETT TIPOGRÁFIA */
  --hero-h1-size: 46px;

  --post-h1-size: calc(var(--hero-h1-size) * 1.4);
  --post-h1-line-height: 1.2;
  --post-h1-letter-spacing: -0.05em;

  --post-h2-size: clamp(18px, 2.4vw, 30px);
  --post-h2-line-height: 1.65;

  --post-body-size: clamp(15px, 1.4vw, 19px);
  --post-body-line-height: 1.82;

  --post-date-size: calc(var(--post-body-size) - 1px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: #fff;
  color: var(--text);
  overflow-x: hidden;
  font-family: "JetBrains Mono", monospace;
}

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

.site-header {
  position: fixed;
  top: 40px;
  right: 50px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.main-nav { display: flex; align-items: center; gap: 10px; }
.home-link, .nav-link {
  color: #000;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}
.home-link { min-width: 30px; min-height: 27px; text-align: center; font-weight: 500; }

.about-main { width: 100%; overflow: clip; }
.about-band {
  position: relative;
  width: 100%;
  min-height: max(560px, calc(100vw * var(--band-ratio)));
  overflow: hidden;
  isolation: isolate;
  --band-parallax-y: 0px;
}
.about-band--yellow { background: var(--yellow); }
.about-band--white { background: #fff; }

/*
  A szekció a dokumentumfolyamban mindig a helyén marad.
  Ez a túlnyúló belső plan hordozza a teljes blokk parallax-mozgását,
  ezért a szomszédos blokkok között nem tud rés nyílni.
*/
.about-band-surface {
  position: absolute;
  inset: -32px 0;
  z-index: 0;
  pointer-events: none;
  background: inherit;
  will-change: transform;
  transform: translate3d(0, var(--band-parallax-y, 0px), 0);
}

.about-photo-wrap {
  position: absolute;
  top: -5%;
  bottom: -5%;
  width: 23.15%;
  overflow: hidden;
  z-index: 2;
  will-change: transform;
  transform: translate3d(
    0,
    calc(var(--band-parallax-y, 0px) + var(--parallax-y, 0px)),
    0
  ) scale(var(--parallax-scale, 1));
}
.about-photo-wrap--left { left: 0; }
.about-photo-wrap--right { right: 0; }
.about-photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

.about-copy {
  position: absolute;
  z-index: 3;
  will-change: transform;
  transform: translate3d(
    0,
    calc(var(--band-parallax-y, 0px) + var(--parallax-y, 0px)),
    0
  );
}
.about-copy--intro { left: 30%; right: 8%; top: 27%; }
.about-copy--vocation { left: 7.2%; right: 30%; top: 18%; text-align: right; }
.about-title {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: var(--post-h1-size);
  line-height: var(--post-h1-line-height);
  letter-spacing: var(--post-h1-letter-spacing);
  margin-bottom: clamp(27px, 2.52vw, 34.2px);
}

.about-copy--intro .about-title {
  margin-left: -0.18em;
  margin-bottom: calc(clamp(27px, 2.52vw, 34.2px) - 5px);
  transform: translateY(-15px);
}

.about-title span,
.document-title span,
.document-lead span {
  background: rgba(255, 246, 0, 0.90);
  color: #000;
  padding: 0.06em 0.12em 0.10em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.about-body {
  font-size: var(--post-body-size);
  line-height: var(--post-body-line-height);
  text-align: left;
}
.about-body p + p { margin-top: 1.8em; }

.about-band--document { min-height: max(540px, calc(100vw * var(--band-ratio))); }
.document-panel {
  position: absolute;
  top: -7%;
  bottom: -7%;
  width: 23.15%;
  z-index: 1;
  background: var(--yellow);
  will-change: transform;
  transform: translate3d(
    0,
    calc(var(--band-parallax-y, 0px) + var(--parallax-y, 0px)),
    0
  );
}
.document-panel--left { left: 0; }
.document-panel--right { right: 0; }
.document-copy {
  position: absolute;
  z-index: 3;
  top: 25%;
  left: 36.8%;
  right: 8%;
  will-change: transform;
  transform: translate3d(
    0,
    calc(var(--band-parallax-y, 0px) + var(--parallax-y, 0px)),
    0
  );
}
.document-right .document-copy { left: 7.2%; right: 36.8%; text-align: right; }
.document-title {
  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-size: var(--post-h1-size);
  font-weight: 400;
  line-height: var(--post-h1-line-height);
  letter-spacing: var(--post-h1-letter-spacing);
}
.document-lead {
  margin-top: calc(clamp(12px, 1.3vw, 25px) + 8px);
  font-size: var(--post-h2-size);
  line-height: var(--post-h2-line-height);
  font-weight: 400;
}
}
.document-lead span {
  padding: 4px 10px;
}
.document-body {
  margin-top: clamp(18px, 1.7vw, 32px);
  font-size: var(--post-body-size);
  line-height: var(--post-body-line-height);
  text-align: left;
}
.pdf-link {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: clamp(92px, 8.8vw, 168px);
  aspect-ratio: 1 / 1;
  color: #000;
  transform: translate3d(
    0,
    calc(-50% + var(--band-parallax-y, 0px) + var(--parallax-y, 0px)),
    0
  );
  will-change: transform;
  transition: opacity .2s ease;
}
.pdf-link--left {
  left: calc(23.15% - clamp(46px, 4.4vw, 84px));
}

.pdf-link--right {
  right: calc(23.15% - clamp(46px, 4.4vw, 84px));
}
.pdf-link.is-disabled { cursor: default; }
.pdf-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdf-icon path { fill: #fff; fill-opacity: .35; stroke: currentColor; stroke-width: 6; stroke-linejoin: miter; }
.pdf-icon text { fill: currentColor; font-family: "Boldonse", sans-serif; font-size: 42px; }

.site-footer {
  min-height: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

@media (min-width: 901px) and (max-width: 1400px) {
  .about-copy--intro { left: 29%; right: 6%; top: 23%; }
  .about-copy--vocation { left: 6%; right: 29%; top: 15%; }
  .document-copy { left: 34%; right: 6%; top: 21%; }
  .document-right .document-copy { left: 6%; right: 34%; }
}

/* HIVATÁS BLOKK – DESKTOP ÉS LAPTOP FINOMHANGOLÁS */

.about-copy--vocation {
  top: 27%;
}

.about-copy--vocation .about-title {
  margin-bottom: calc(clamp(27px, 2.52vw, 34.2px) + 10px);
}

@media (max-width: 900px) {
  :root { --hero-h1-size: 30px; }

  .site-header { top: 20px; right: 18px; left: 18px; flex-wrap: wrap; }
  .about-band { min-height: auto; overflow: hidden; }
  .about-band--intro { display: grid; grid-template-columns: 1fr; }
  .about-photo-wrap, .about-copy, .document-copy, .document-panel, .pdf-link {
    position: relative;
    inset: auto;
  }

.about-photo-wrap {
  width: 100%;
  height: min(92vw, 620px);
  top: auto;
  bottom: auto;
  transform: none;
  will-change: auto;
}

.about-photo {
  height: calc(100% + 64px);
  margin-top: -32px;
  object-position: center 65%;
  will-change: transform;
  transform: translate3d(
    0,
    calc(var(--band-parallax-y, 0px) + var(--parallax-y, 0px)),
    0
  ) scale(var(--parallax-scale, 1));
}

  .about-copy {
    padding: 64px 24px 76px;
    text-align: left;
  }
  .about-copy--vocation { order: 2; }
  .about-photo-wrap--right { order: 1; }
  .about-title { font-size: var(--post-h1-size); }
  .about-body, .document-body { font-size: var(--post-body-size); }

  .about-band--document {
    display: grid;
    grid-template-columns: minmax(94px, 28vw) 1fr;
    min-height: 680px;
    align-items: stretch;
  }
  .document-right { grid-template-columns: 1fr minmax(94px, 28vw); }
  .document-panel {
  width: 100%;
  height: 100%;
  grid-row: 1;
  overflow: hidden;
  transform: none;
  will-change: auto;
}

.document-panel::before {
  content: "";
  position: absolute;
  inset: -32px 0;
  background: var(--yellow);
  will-change: transform;
  transform: translate3d(
    0,
    calc(var(--band-parallax-y, 0px) + var(--parallax-y, 0px)),
    0
  );
}
  .document-panel--left { grid-column: 1; }
  .document-panel--right { grid-column: 2; }
  .document-copy {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    padding: 74px 22px 74px 28px;
  }
  .document-right .document-copy {
  left: auto;
  right: auto;
  grid-column: 1;
  text-align: right;
  padding: 74px 28px 74px 22px;
}
  .document-title {
  font-size: clamp(34px, 10.2vw, var(--post-h1-size));
  overflow-wrap: normal;
  word-break: normal;
}
  .document-lead { font-size: var(--post-h2-size); }
  .pdf-link {
    grid-row: 1;
    width: min(18vw, 116px);
    align-self: center;
    justify-self: center;
    transform: translate3d(
      0,
      calc(var(--band-parallax-y, 0px) + var(--parallax-y, 0px)),
      0
    );
  }
  .pdf-link--left { grid-column: 1; }
  .pdf-link--right { grid-column: 2; }
}

@media (max-width: 520px) {
  .nav-link, .home-link { font-size: 12px; }
  .about-copy { padding-left: 18px; padding-right: 18px; }
  .about-band--document { grid-template-columns: 92px 1fr; }
  .document-right { grid-template-columns: 1fr 92px; }
  .document-copy {
  padding-left: 20px;
  padding-right: 20px;
}

.document-right .document-copy {
  padding-left: 20px;
  padding-right: 20px;
}
}

@media (prefers-reduced-motion: reduce) {
  .about-band {
    --band-parallax-y: 0px !important;
  }

  [data-parallax] {
    --parallax-y: 0px !important;
    will-change: auto !important;
  }

  .about-band-surface {
    will-change: auto !important;
  }
}
