
:root{--green:#073b36;--cream:#f5eedb;--gold:#b68b3a;--burg:#8e1e22;--ink:#251f1a}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fbf6e9;color:var(--ink);font-family:Georgia,"Times New Roman",serif}
a{color:inherit;text-decoration:none}.wrap{max-width:1180px;margin:auto;padding:0 28px}
header{position:sticky;top:0;z-index:20;background:var(--green);color:#fff;border-bottom:2px solid var(--gold)}
.nav{height:68px;display:flex;align-items:center;gap:28px}.brand{font-size:27px;font-weight:700;letter-spacing:.05em;margin-right:auto}
nav{display:flex;gap:25px;align-items:center}nav a{font-size:16px}.drop{position:relative}.drop>span:after{content:" ▾";color:var(--gold)}
.dropmenu{display:none;position:absolute;top:24px;left:-16px;min-width:230px;background:#fff8e9;color:#222;border:1px solid #cdb57c;box-shadow:0 8px 22px #0003;padding:8px}
.drop:hover .dropmenu{display:block}.dropmenu a{display:block;padding:9px 10px}.dropmenu a:hover{background:#eee1c2}
.hero{display:grid;grid-template-columns:44% 56%;min-height:470px;background:#f3ead6}
.hero-copy{padding:70px 35px 50px max(28px,calc((100vw - 1180px)/2 + 28px));background:linear-gradient(90deg,#f7efdc 80%,#f7efdc00)}
.hero h1{font-size:66px;margin:0 0 5px}.kicker{font-size:22px}.quote{font-size:27px;font-style:italic;margin:38px 0}
.hero-img{background:#1e2b27 url("assets/hero_portrait.jpg") center center/contain no-repeat}
.btn{display:inline-block;background:var(--burg);color:white;padding:13px 20px;border-radius:4px;margin-right:10px;font-weight:700}.btn.alt{background:#fff;color:#352a22;border:1px solid #b9a786}
section{padding:30px 0}.title{text-align:center;font-size:38px;margin:0 0 28px;color:#142f2b}
.books{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.card{background:#fffaf0;border:1px solid #d8c7a4;border-radius:8px;overflow:hidden;box-shadow:0 3px 10px #00000010}
.card img{width:100%;height:auto;object-fit:contain;display:block;background:#f5eedb}.card-body{padding:16px}.card h3{font-size:25px;margin:0 0 7px}.card p{line-height:1.4;min-height:58px}
.world{min-height:315px;background:url("assets/szentkoszeg_banner.png") center/cover no-repeat;display:flex;align-items:center;color:white;text-shadow:0 2px 6px #000}
.world .panel{max-width:520px;background:#031f1dbb;padding:25px 30px;border-radius:8px}.world h2{font-size:42px;margin:0 0 12px}
.beyond{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.mini{background:#fff;border:1px solid #d7c6a4}.mini img{width:100%;height:145px;object-fit:cover}.mini div{padding:13px}.mini h3{margin:0 0 5px}
.aboutline{display:grid;grid-template-columns:1fr 2.2fr;gap:28px;align-items:center;padding:36px 0 48px}.aboutline img{width:100%;max-height:220px;object-fit:contain}
footer{background:#052f2c;color:#eee0bd;border-top:2px solid var(--gold);padding:28px 0}.foot{display:flex;justify-content:space-between;gap:20px;align-items:center}
.mobile{display:none}
@media(max-width:850px){
 .wrap{padding:0 18px}.nav{height:auto;min-height:62px;flex-wrap:wrap;padding:12px 0}.brand{font-size:22px}.mobile{display:block;background:none;color:white;border:1px solid #bea25c;padding:6px 9px}
 nav{display:none;width:100%;flex-direction:column;align-items:flex-start;gap:12px;padding:10px 0}nav.open{display:flex}.dropmenu{position:static;display:block;box-shadow:none;border:0;background:transparent;color:white;padding-left:15px}.dropmenu a{padding:5px 0}
 .hero{grid-template-columns:1fr}.hero-copy{padding:48px 24px}.hero h1{font-size:47px}.hero-img{min-height:360px}.books{grid-template-columns:1fr 1fr}.beyond{grid-template-columns:1fr 1fr}.aboutline{grid-template-columns:1fr}.foot{flex-direction:column;align-items:flex-start}
}
@media(max-width:520px){.books,.beyond{grid-template-columns:1fr}.hero h1{font-size:40px}.quote{font-size:22px}}
/* Rólam oldal – minden kép eredeti képaránnyal, vágás és nyújtás nélkül */
.about-hero{background:#f3ead6;padding:0}.about-hero-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:40% 60%;align-items:stretch}.about-hero-copy{padding:58px 36px}.about-hero-copy h1{font-size:56px;margin:0;color:#2a211b}.about-hero-copy .name{font-size:22px;color:#786b5c;border-bottom:1px solid var(--gold);padding-bottom:14px;max-width:250px}.about-hero-copy blockquote{font-size:26px;font-style:italic;line-height:1.35;margin:30px 0}.about-hero-photo{display:flex;align-items:center;justify-content:center;background:#1e2b27}.about-hero-photo img{display:block;width:100%;height:auto;max-width:100%}
.about-intro h2,.about-end h2{text-align:center;font-size:36px;color:#2a2923}.about-intro>p{max-width:980px;margin:0 auto 26px;font-size:19px;line-height:1.65}.about-row{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;background:#fffaf0;border:1px solid #d8c7a4;border-radius:16px;padding:20px;margin:22px 0}.about-row.reverse .about-photo{order:2}.about-photo{display:flex;align-items:center;justify-content:center}.about-photo img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}.about-text h3{font-size:29px;margin:0 0 12px}.about-text p,.about-text li{font-size:18px;line-height:1.55}.about-text ul{padding-left:22px}.about-end{background:url('assets/szentkoszeg_banner.png') center/cover no-repeat;color:#fff;padding:46px 0;text-shadow:0 2px 5px #000}.about-end h2{color:#fff;text-align:left;margin-top:0}.about-end .end-panel{max-width:700px;background:#052f2ccc;padding:24px;border-radius:10px}.about-end p{font-size:18px;line-height:1.6}
@media(max-width:850px){.about-hero-grid{grid-template-columns:1fr}.about-hero-copy{padding:38px 24px}.about-hero-copy h1{font-size:44px}.about-row,.about-row.reverse{grid-template-columns:1fr}.about-row.reverse .about-photo{order:0}.about-intro h2,.about-end h2{font-size:30px}}

/* V9 – főoldali finomhangolás */
#konyvek{padding-bottom:48px;position:relative;z-index:1}
.world{clear:both;margin-top:0;position:relative;z-index:0}
/* A négy könyvborító azonos vizuális méretben, torzítás és vágás nélkül */
.books .card img{width:100%;height:390px;object-fit:contain;object-position:center;background:#f5eedb;padding:10px}
@media(max-width:850px){.books .card img{height:420px}}
@media(max-width:520px){.books .card img{height:auto;max-height:520px;padding:8px}}

/* V10: A Ködlovag és a Tündérfény borítóinak azonos megjelenési mérete. */
.books .card:nth-child(1) img,
.books .card:nth-child(2) img{
  width:100%;
  height:390px;
  object-fit:contain;
  object-position:center;
  box-sizing:border-box;
  padding:10px;
}
@media(max-width:850px){
  .books .card:nth-child(1) img,
  .books .card:nth-child(2) img{height:420px;}
}
@media(max-width:520px){
  .books .card:nth-child(1) img,
  .books .card:nth-child(2) img{height:520px;max-height:520px;}
}

/* V10 végső főoldali igazítások */
/* A Szentkőszeg-banner teljes egészében látszik: nincs levágott felső/alsó rész,
   és az image-be égetett szöveget nem duplázzuk HTML-szöveggel. */
.world.world-banner{
  position:relative;
  display:block;
  width:100%;
  min-height:0;
  aspect-ratio:1024 / 318;
  padding:0;
  background-color:#061f1d;
  background-image:url("assets/szentkoszeg_banner.png");
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  text-shadow:none;
}
.world.world-banner .world-link{
  position:absolute;
  inset:0;
  display:block;
  z-index:2;
}

/* Könyvkártyák: az összes Tovább gomb egy vízszintes vonalra kerül. */
.books .card{display:flex;flex-direction:column;height:100%}
.books .card .card-body{display:flex;flex-direction:column;flex:1}
.books .card .card-body .btn{margin-top:auto;align-self:flex-start}

/* A sorozat első két kötete azonos magasságú könyvként jelenik meg. */
.books .card:nth-child(1) img,
.books .card:nth-child(2) img{
  height:390px;
  width:100%;
  object-fit:contain;
  object-position:center;
  padding:10px;
}

/* Cinóber a mesekönyv-kártyán nagyobban, fekete szegély nélkül. */
.books .card:nth-child(4) img{
  height:390px;
  width:100%;
  object-fit:cover;
  object-position:center 48%;
  padding:0;
  background:#f5eedb;
}

/* A lenti Ági-rajz tiszta, szoros kivágásban jelenik meg, telefonos sávok nélkül. */
.aboutline img{
  width:100%;
  height:240px;
  max-height:none;
  object-fit:cover;
  object-position:center 48%;
  display:block;
}

@media(max-width:850px){
  .books .card:nth-child(1) img,
  .books .card:nth-child(2) img,
  .books .card:nth-child(4) img{height:420px}
  .aboutline img{height:320px}
}
@media(max-width:520px){
  .world.world-banner{aspect-ratio:1024 / 318}
  .books .card:nth-child(1) img,
  .books .card:nth-child(2) img,
  .books .card:nth-child(4) img{height:520px;max-height:520px}
  .aboutline img{height:300px}
}

/* V10 FINAL: A Ködlovag és a Tündérfény azonos 2:3 borítóméretben jelenik meg.
   Kizárólag a főoldali megjelenítési arány változik; a képfájlok érintetlenek. */
.books .card:nth-child(1) img,
.books .card:nth-child(2) img{
  width:100%;
  height:390px;
  aspect-ratio:2 / 3;
  object-fit:fill;
  padding:10px;
  box-sizing:border-box;
}
@media(max-width:850px){
  .books .card:nth-child(1) img,
  .books .card:nth-child(2) img{height:420px;}
}
@media(max-width:520px){
  .books .card:nth-child(1) img,
  .books .card:nth-child(2) img{height:520px;max-height:520px;}
}

/* FOOLDAL: a Harmashalmi Kronikak I-II boritoi pixelre azonos webes meretben. */
.books .card:nth-child(1) img,
.books .card:nth-child(2) img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:17 / 24;
  object-fit:fill;
  padding:0;
  margin:0;
  box-sizing:border-box;
}
