/* =========
   Stabil, elegáns alap (háttérkép nélkül)
   ========= */

:root {
  --bg: #f2f3f5; /* oldal háttér */
  --paper: #ffffff; /* lap */
  --ink: #1f2328; /* fő szöveg (nem fekete) */
  --muted: #6b7280; /* halvány szöveg */

  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.1);

  --radius: 18px;
  --radius-sm: 12px;

  /* pasztell kék akcentus */
  --accent: #b79a6b;
  --accent-soft: rgba(74, 120, 194, 0.12);

  --left-w: 280px;
  --right-w: 320px;

  --reading: 860px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      1200px 700px at 15% 10%,
      rgba(74, 120, 194, 0.12),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 85% 15%,
      rgba(210, 148, 255, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 40% 90%,
      rgba(255, 180, 120, 0.1),
      transparent 55%
    ),
    var(--bg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.75;
}

/* =========
   Külső "lap" keret
   ========= */
.page-wrapper {
  max-width: 1500px;
  margin: 44px auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* =========
   3 hasábos layout
   ========= */
.layout {
  display: grid;
  grid-template-columns: var(--left-w) minmax(860px, 1fr) var(--right-w);
  min-height: 100vh;
}

.left,
.right {
  padding: 18px 16px;
  background: linear-gradient(#fbfbfb, #f8f8f8);
}

.left {
  border-right: 1px solid var(--line);
}
.right {
  border-left: 1px solid var(--line);
}

.center {
  padding: 34px 34px 44px;
}
.center h1 {
  position: relative;
  margin-bottom: 28px;
  letter-spacing: 0.3em;
  font-weight: 700;
}
.center h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.9;
}

/* középső tartalom olvasható szélességben */
.center > * {
  max-width: var(--reading);
  margin-left: auto;
  margin-right: auto;
}
/* POST oldalakon ne fogd vissza 860px-re az egész article-t */
.center > :not(article.post) {
  max-width: var(--reading);
  margin-left: auto;
  margin-right: auto;
}

/* =========
   Bal oldali navigáció
   ========= */
.nav-title {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  margin: 4px 8px 12px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin: 6px 0;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.82);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition:
    transform 0.08s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.nav-link.post-active {
  background: var(--accent-soft);
  border-color: rgba(74, 120, 194, 0.22);
  color: rgba(0, 0, 0, 0.92);
}

.nav-more {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.nav-more a {
  text-decoration: none;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.75);
}

.nav-more a:hover {
  color: var(--accent);
}

/* =========
   Bejegyzés tipográfia
   ========= */
.post-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.post-title {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.post-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  text-transform: uppercase;
}

.post-body {
  font-size: 19px;
  line-height: 1.9;
}

.post-body p {
  margin: 0 0 16px;
}

.post-body h2 {
  margin: 30px 0 12px;
  line-height: 1.25;
}

.post-body blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* =========
   Jobb oldali kártyák
   ========= */
.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.card + .card {
  margin-top: 14px;
}

.card-title {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
  margin: 0 0 10px;
}

.card h3 {
  margin-top: 0;
}

.card:hover h3 {
  color: var(--accent);
}

.card strong {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.card a:hover {
  text-decoration: underline;
}

/* =========
   Mobil
   ========= */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .left,
  .right {
    border: none;
  }
  .center {
    padding: 22px 18px 28px;
  }
  .page-wrapper {
    margin: 14px;
  }
  .post-title {
    font-size: 32px;
  }
  .post-body {
    font-size: 17px;
    line-height: 1.8;
  }
}

/* Háttérkép külön rétegen – mindig látszik */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  filter: saturate(0.8) contrast(0.7);

  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Legyen biztosan "keret", hogy kilátszódjon a háttér */
.page-wrapper {
  margin: 44px auto;
}

/* Egységes tipó minden oldalon (kezdőlap és post) */
.center {
  font-size: 19px;
  line-height: 1.9;
}

/* Főoldal / brand link */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 6px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.82);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.7);
}

.brand:hover {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 120, 194, 0.12);
}

/* Főoldali hero kép */
.home-hero {
  margin: 28px auto 48px;
  max-width: var(--reading);
  text-align: center;
}

.home-hero img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  height: auto;

  border-radius: 5%;
  object-fit: contain;

  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.home-intro h1 {
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.home-intro p {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.65);
}

/* Főoldali blokk: minden középre */
.home {
  display: flex;
  flex-direction: column;
  align-items: center; /* EZ KÖZÉPRE TESZI A BLOKKOKAT */
  text-align: center; /* EZ KÖZÉPRE TÖRDELI A SZÖVEGET */
  gap: 14px;
}

/* ne nyúljon túl szélesre a szöveg */
.home p {
  max-width: 60ch;
  margin: 0;
  color: rgba(0, 0, 0, 0.65);
}

/* a hero kép is középen marad */
.home-hero {
  margin-top: 10px;
}
.home-hero img {
  display: block;
  margin: 0 auto;
}

/* Főoldali kártyák */
.home-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--reading);
  margin-left: auto;
  margin-right: auto;
}

.home-card {
  display: block;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.home-card-title {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.75);
}

.home-card p {
  margin: 0;
  color: rgba(0, 0, 0, 0.65);
  font-size: 16px;
  line-height: 1.5;
}

/* Mobil */
@media (max-width: 900px) {
  .home-cards {
    grid-template-columns: 1fr;
  }
}

.page-older h1 {
  text-align: center;
}

.page-older ul {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  max-width: 520px;
}

.page-older li {
  text-align: center;
  margin-bottom: 16px;
}

.page-older li a {
  font-weight: 600;
  text-decoration: none;
}

.page-older li span,
.page-older li time {
  display: block;
  font-size: 0.9em;
  color: #777;
  margin-top: 4px;
}
/* Csak a /older/ oldal: minden középre */
body[data-path^="/older"] .center {
  text-align: center;
}

body[data-path^="/older"] .center ul {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 560px;
}

body[data-path^="/older"] .center li {
  margin: 14px 0;
}

body[data-path^="/older"] .center li::marker {
  content: "";
}

/* Főoldali hero tipó finomhangolás */
.center h1 {
  text-transform: uppercase;
}

.center p {
  max-width: 52ch; /* ne fusson túl hosszú sorba */
  margin: 0 auto 10px; /* középre, szép térközzel */
  color: rgba(0, 0, 0, 0.65);
  font-size: 1.05rem;
}

/* Bejegyzés oldalak címei középre */
.post h1,
.post header h1 {
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Dátum középre */
.post time,
.post .post-date {
  display: block;
  text-align: center;
  margin-bottom: 24px;
  color: rgba(0, 0, 0, 0.55);
}

/* Novellák szövegtörzse – szélesebb olvasósáv */
.post article,
main article {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Novellák törzsszövege – sorkizárt, könyvszerű */
.post article p,
main article p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Bekezdések közti levegő */
.post article p {
  line-height: 1.75;
  margin-bottom: 1.8em;
}

/* POST oldal: legyen szélesebb az olvasósáv */
.post main.center,
.post .center {
  max-width: 1200px;
}

/* és az article ne fogja vissza külön */
.post article {
  max-width: 100%;
}

/* POST: szélesebb szöveg + sorkizárás */
.post-body.center--wide {
  width: min(100%, 980px);
  margin: 0 auto;
}

.post-body.center--wide p {
  text-align: justify;
  hyphens: auto;
}
.post-date {
  display: block;
  margin-top: 8px;
  color: #666;
  font-size: 0.9em;
}

.post-title2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: -15px;
  color: #141313;
  text-align: center;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 1.5rem 0 3.5rem;
}

.archive-card {
  padding: 1.2rem;
  border: 1px solid #e5ded4;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
  min-height: 92px;
  min-height: 92px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: #d6c2a3;
}

.archive-card a {
  display: block;
  text-decoration: none;
  color: #7b5a35;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}

.archive-card:hover a {
  color: #b07a3f;
}

.archive-card time {
  display: block;
  color: #777;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .archive-list {
    grid-template-columns: 1fr;
  }
}

.image-caption {
   margin-top: 0.5rem;
    font-size: 13px !important;
    color: #999;
    text-align: center;
    margin-top: 0.3rem;
    font-style: italic;
}

.post-content img {
    display: block;
    margin: 2rem auto 0.5rem auto;
}

/* Bejegyzések bekezdései közti nagyobb térköz */
.post-body p,
.post-content p,
.post article p,
main article p {
  margin-bottom: 1.4rem !important;
}

.poem {
    width: fit-content;
    margin: 5rem auto;
    max-width: 700px;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    line-height: 2;
    text-align: left;
}

.poem p {
    margin: 0 0 1.8rem 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.poem-image {
    text-align: center;
    margin: 3rem 0;
}

.poem-image img {
    max-width: 100%;
    height: auto;
}

