/* Twin Hill bemutató oldal · a katalógus vizuális rendszere (30_KESZ_katalogus/forras/build.py)
   Derékszögű sarkok, 1 px hajszálvonalak, árnyék, gradiens és lekerekítés nélkül.
   Egyetlen átmenet: a nyelvváltás utáni 300 ms-os áttűnés (.page.is-fading). */

@font-face { font-family: "Fraunces"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/fraunces-300.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 300; font-style: italic; font-display: swap;
  src: url("../fonts/fraunces-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/manrope-600.woff2") format("woff2"); }

:root {
  --paper: #F3EFE7;
  --ink: #1C1C1B;
  --dark: #2A2826;
  --darkline: #46423D;
  --hair: #D3CDC0;
  --hair-d: #4A4642;
  --stone: #8C8B86;
  --stone-l: #A9A79F;
  --sage: #8F9A78;      /* „A” ház */
  --sand: #C9A97C;      /* „B” ház */
  --gutter: 20px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, p { margin: 0; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- fejléc ---------- */
.top { border-bottom: 1px solid var(--hair); }
.top-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 18px;
}
.brand { font: 300 22px/1 var(--serif); white-space: nowrap; }
/* Négy menüpont mobilon is egy sorban: ha nem fér ki, az app.js lépésenként csökkenti a betűméretet (hamburger nincs). */
.menu { display: flex; align-items: baseline; white-space: nowrap; min-width: 0; overflow: hidden;
  font: 500 11px/1.6 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }   /* 1,6: a nagybetűk ékezete ne vágódjon le */
.menu .sep { color: var(--stone); padding: 0 0.4em; }
.menu a:hover { color: var(--stone); }

/* ---------- nyitó blokk ---------- */
.hero { padding-top: 64px; padding-bottom: 56px; }
.hero .kicker { margin-bottom: 22px; }
.wordmark { font: 300 clamp(56px, 15vw, 128px)/0.95 var(--serif); letter-spacing: -0.01em; }
.subtitle { margin-top: 18px; font: 300 italic clamp(21px, 5.4vw, 30px)/1.3 var(--serif); color: var(--ink); max-width: 22em; }

/* ---------- nyelvválasztó ---------- */
.chooser { padding-bottom: 64px; }
.chooser .kicker { margin-bottom: 18px; }
.chooser .kicker span { white-space: nowrap; }
.choices { display: grid; grid-template-columns: 1fr; gap: 12px; }
.choice {
  position: relative;
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 34px 20px 26px;
  border: 1px solid var(--ink);
  text-align: left;
  font: 300 32px/1 var(--serif);
}
.choice .code { position: absolute; top: 12px; left: 20px;
  font: 500 11px/1 var(--sans); letter-spacing: 0.18em; color: var(--stone); }
.choice:hover { background: var(--ink); color: var(--paper); }
.choice:hover .code { color: var(--stone-l); }

/* ---------- választás előtt: halvány, inaktív ---------- */
.gated[inert] { opacity: 0.32; user-select: none; }
.is-chosen .chooser { display: none; }

/* ---------- lejátszó ---------- */
.film { padding-bottom: 72px; }
.is-chosen .film { padding-top: 8px; }
.film-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; }
.pills { display: flex; }
.pill {
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  margin-left: -1px;
  font: 500 11px/30px var(--sans);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--stone);
}
.pill:first-child { margin-left: 0; }
.pill:hover { color: var(--ink); }
.pill[aria-pressed="true"] { position: relative; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.frame { border: 1px solid var(--hair); aspect-ratio: 16 / 9; background: var(--dark); }
.frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--dark); }

/* ---------- látványtervek ---------- */
.gallery { padding-bottom: 80px; }
.gal-title { font: 300 clamp(34px, 8.4vw, 56px)/1.08 var(--serif); }
.gal-note { margin-top: 10px; font: 400 12px/1.5 var(--sans); color: var(--stone); }
.gal-group { margin-top: 48px; }
.gal-group .kicker { margin-bottom: 14px; }
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
.tile { min-width: 0; }
.tile-open { display: block; width: 100%; border: 1px solid var(--hair); background: var(--hair); cursor: zoom-in; }
.tile-open picture { display: block; }
/* egységes, rögzített képarány: betöltéskor nem ugrik az oldal; a teljes kép a teljes képernyős nézetben látszik */
.tile-open img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; }
.tile-meta .cap { font: 400 13px/1.4 var(--sans); min-width: 0; }
.dl { flex: none; font: 500 10px/1.4 var(--sans); letter-spacing: 0.12em; color: var(--stone); white-space: nowrap; }
.dl:hover { color: var(--ink); }
.gal-all { margin-top: 56px; }
.gallery .cat-button { border-color: var(--ink); color: var(--ink); }
.gallery .cat-button:hover { background: var(--ink); color: var(--paper); }

/* ---------- teljes képernyős nézet ---------- */
.lb-open, .lb-open body { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 10;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; grid-template-rows: 64px minmax(0, 1fr);
  background: var(--dark); color: var(--paper);
}
.lb[hidden] { display: none; }
.lb-close { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; margin-right: var(--gutter);
  padding: 9px 12px; border: 1px solid var(--hair-d);
  font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); white-space: nowrap; }
.lb-close:hover { border-color: var(--stone-l); }
/* a figure a kép szélességére húzódik, így az aláírás és a letöltés link a kép széleihez igazodik */
.lb-fig { grid-column: 2; grid-row: 2; justify-self: center; align-self: center; margin: 0;
  width: fit-content; max-width: 100%; min-height: 0; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 64px - 72px); max-height: calc(100dvh - 64px - 72px);
  width: auto; height: auto; }
.lb-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; margin-top: 14px; }
.lb-cap { font: 400 13px/1.4 var(--sans); color: var(--paper); min-width: 0; }
.lb .dl { color: var(--stone-l); }
.lb .dl:hover { color: var(--paper); }
.lb-nav { grid-row: 2; align-self: center; justify-self: center; width: 44px; height: 44px;
  border: 1px solid var(--hair-d); font: 300 20px/1 var(--serif); color: var(--paper); }
.lb-nav:hover { border-color: var(--stone-l); }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
@media (max-width: 719px) {
  .lb { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); grid-template-rows: 64px minmax(0, 1fr) 72px; }
  .lb-close { grid-column: 2 / 4; }
  .lb-nav { grid-row: 3; align-self: start; }
  .lb-prev { grid-column: 2; justify-self: start; }
  .lb-next { grid-column: 2; justify-self: end; }
  .lb-meta { flex-direction: column; gap: 6px; }
  .lb-img { max-height: calc(100vh - 64px - 72px - 90px); max-height: calc(100dvh - 64px - 72px - 90px); }
}

/* ---------- katalógus: sötét sáv tervrajz-vízjellel ---------- */
.catalogue {
  background-color: var(--dark);
  background-image: url("../img/watermark.webp");
  background-size: 2325px 1194px;        /* 1× sűrűség (1 képpont = 1 CSS px); ≈ 1:75 lépték */
  background-position: 14% 30%;          /* telefonon a „B” ház földszinti alaprajza látszik */
  background-repeat: no-repeat;
  color: var(--paper);
  border-top: 1px solid var(--darkline);
  border-bottom: 1px solid var(--darkline);
}
.catalogue-inner { padding-top: 88px; padding-bottom: 96px; }
.cat-title { font: 300 clamp(34px, 8.4vw, 56px)/1.08 var(--serif); max-width: 12em; }
.cat-action { margin-top: 40px; }
.cat-button {
  display: inline-block;
  padding: 17px 26px 18px;
  border: 1px solid var(--paper);
  font: 500 15px/1.2 var(--sans);
  color: var(--paper);
}
.cat-button[href]:hover { background: var(--paper); color: var(--ink); }
.cat-button[aria-disabled="true"] { border-color: var(--hair-d); color: var(--stone-l); cursor: default; }
.cat-size { margin-top: 12px; min-height: 1.4em;
  font: 500 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-l); }

/* ---------- kapcsolat ---------- */
.contact { padding-top: 80px; padding-bottom: 72px; }
.contact .kicker { margin-bottom: 18px; }
.contact-title { font: 300 clamp(34px, 8.4vw, 56px)/1.08 var(--serif); }
.contact-lines { margin-top: 32px; font: 300 clamp(22px, 5.6vw, 30px)/1.45 var(--serif); font-style: normal; }
.contact-lines > * { display: block; overflow-wrap: anywhere; }
.contact-lines .first { font-style: italic; }
.contact-lines a:hover { color: var(--stone); }
.fine { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--stone); }
.disclaimer { font: 400 12px/1.6 var(--sans); max-width: 46em; }
.designer { margin-top: 18px; font: 400 12px/1.4 var(--sans); }
.logo {
  display: block;
  margin-top: 10px;
  width: 34px;
  height: 34px;
  background-color: currentColor;
  -webkit-mask: url("../img/logo-mask.png") center / contain no-repeat;
  mask: url("../img/logo-mask.png") center / contain no-repeat;
}

/* ---------- nyelvváltás utáni áttűnés ---------- */
.page { transition: opacity 300ms ease; }
.page.is-fading { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .page { transition: none; } }

/* ---------- szélesebb kijelzők ---------- */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .top-inner { padding-top: 28px; padding-bottom: 22px; }
  .brand { font-size: 26px; }
  .menu { font-size: 12px; letter-spacing: 0.14em; }
  .menu .sep { padding: 0 0.9em; }
  .hero { padding-top: 104px; padding-bottom: 80px; }
  .choices { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .choice { margin-left: -1px; min-height: 148px; padding: 64px 28px 34px; font-size: 40px; }
  .choice:first-child { margin-left: 0; }
  .choice .code { top: 20px; left: 28px; }
  .chooser { padding-bottom: 96px; }
  .film { padding-bottom: 104px; }
  .gallery { padding-bottom: 112px; }
  .gal-group { margin-top: 64px; }
  .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalogue { background-position: 38% 46%; }
  .catalogue-inner { padding-top: 128px; padding-bottom: 128px; }
  .cat-action { margin-top: 24px; }
  .contact { padding-top: 120px; padding-bottom: 96px; }
  .fine { display: grid; grid-template-columns: 1fr auto; column-gap: 48px; align-items: end; }
  .fine .disclaimer { grid-row: 1 / span 2; }
  .fine .designer { margin-top: 0; text-align: right; }
  .fine .logo { justify-self: end; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand { font-size: 19px; }
  .menu { letter-spacing: 0.08em; }
  .menu .sep { padding: 0 0.35em; }
}
