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

:root {

  /* COLORS */

  --yellow: #FFF600;
  --text: #343107;

  /* LAYOUT */

  --page-max: 960px;
  --side-space: 96px;
  
  /* MENU */

  --menu-font-size: 14px;
  --menu-padding-y: 5px;
  --menu-padding-x: 8px;
  --menu-gap: 10px;

  /* BUTTONS */

  --button-radius: 0;
  --button-padding-x: 14px;
  --button-padding-y: 6px;

  /* HERO */

  --hero-h1-size: 46px;
  --hero-title-box-width: 950px;
  --hero-title-line-height: 1.95;

/* POST */

  --post-h1-size: clamp(34px, 6vw, 88px);
  --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);

  --post-button-size: 24px;
  --post-button-line-height: 1.65;

}

/* =========================================================
   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;
}

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

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

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

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

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

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

.hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero-picture,
.post-picture {
  display: block;
}

.hero-image {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
  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;
  pointer-events: auto;
  user-select: text;
  will-change: transform;
}

.hero-title {
  font-family: "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-family: "Boldonse", "JetBrains Mono", monospace;
  font-size: 1.4em;
}

/* =========================================================
   POSTOK vezérlői
========================================================= */

.entry--post {
  position: relative;
  z-index: 2;
  border-top: none;
  padding: 0;
  margin-top: -2px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.post-media {
  position: relative;
  width: 100vw;
  height: auto;
  overflow: hidden;
}

.post-image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: initial;
  will-change: transform;
  transform-origin: center center;
}

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

  display: flex;
  align-items: center;

  pointer-events: none;
}

.post--left .post-overlay {
  justify-content: flex-start;
  padding-left: var(--side-space);
}

.post--right .post-overlay {
  justify-content: flex-end;
  padding-right: var(--side-space);
}

.post-text {
  max-width: 760px;
  color: #000;
  pointer-events: auto;
  user-select: text;
  will-change: transform;
}

.post--left .post-text {
  text-align: left;
  align-items: flex-start;
}

.post--right .post-text {
  text-align: right;
  align-items: flex-end;
}

.post-title,
.post-lead span,
.post-body span,
.post-date span {
  background: rgba(255, 246, 0, 0.90);
  padding: 4px 10px;

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

.post-title {
  display: inline;

  font-family: "Boldonse", "JetBrains Mono", monospace;
  font-size: var(--post-h1-size);
  line-height: var(--post-h1-line-height);
  letter-spacing: var(--post-h1-letter-spacing);
  font-weight: 400;

  padding: 0.06em 0.12em 0.10em;

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

.post-lead {
  display: block;
  background: none;
  padding: 0;

  font-family: "JetBrains Mono", monospace;
  font-size: var(--post-h2-size);
  line-height: var(--post-h2-line-height);

  margin-top: 56px;
}

.post-body {
  margin-top: 18px;
  max-width: 760px;

  font-family: "JetBrains Mono", monospace;
  font-size: var(--post-body-size);
  line-height: var(--post-body-line-height);
}

.post-body p + p {
  margin-top: 10px;
}

.post-date {
  display: block;
  margin-top: 18px;
  font-size: var(--post-date-size);
}

.post-button-wrap {
  display: block;
  margin-top: 14px;
  position: relative;
  z-index: 20;
}

.post-button {
  display: inline-flex;
  align-items: center;
  background: #3af78b;
  color: #000;

  font-family: "JetBrains Mono", monospace;
  font-size: var(--post-button-size);
  line-height: var(--post-button-line-height);

  padding: 7px 14px 5px;
  text-decoration: none;

  position: relative;
  z-index: 30;
  pointer-events: auto;
}

.post-button:hover {
  background: var(--yellow);
}

/* =========================================================
   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);
  height: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1;
  color: #000;
}

.site-footer span {
  display: block;
  transform: translateY(0);
  margin-top: 60px;
  margin-bottom: 60px;
}
