/* ==========================================================================
   A Kaszinó.hu arculati stíluslapja
   „Papír és tinta”: szerkesztőségi, folyóirat-jellegű megjelenés.
   Nincs külső függőség; a betűk helyben hostolt woff2 fájlok.
   ========================================================================== */

/* ---- Betűkészletek ------------------------------------------------------ */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-400italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-400italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---- Alapok ------------------------------------------------------------- */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe9db;
  --card: #faf6ec;
  --card-tone: #ece4d4;
  --ink: #211d18;
  --ink-soft: #4a443b;
  --muted: #6e675c;
  --green: #1e4a38;
  --green-dark: #143427;
  --copper: #8c5b2f;
  --line: #d8cdb8;
  --line-strong: #b9ac92;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-text: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.85rem);
}

h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.65rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--green-dark);
}

::selection {
  background: var(--green);
  color: var(--paper);
}

:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 2px;
  border-radius: 1px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.wrap-text {
  max-width: 46rem;
}

.wrap-media {
  max-width: 54rem;
}

.skip-link {
  position: absolute;
  left: -200vw;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--paper);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus-visible {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---- Fejléc ------------------------------------------------------------- */

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--green);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.005em;
}

.brand-tld {
  color: var(--copper);
}

.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.section-nav {
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
}

.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(1.1rem, 3vw, 2.4rem);
  overflow: visible;
}

.section-nav a {
  display: block;
  padding: 0.68rem 0.15rem;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.section-nav a:hover {
  color: var(--green);
}

.section-nav a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---- Gombok ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.55em 1.2em;
  border-radius: 2px;
  border: 1.5px solid var(--green);
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn-solid,
.btn-contact {
  background: var(--green);
  color: var(--paper);
}

.btn-solid:hover,
.btn-contact:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--paper);
}

.btn-line {
  background: transparent;
  color: var(--green);
}

.btn-line:hover {
  background: var(--green);
  color: var(--paper);
}

.btn-contact {
  flex: none;
}

/* ---- Kenyérmorzsa ------------------------------------------------------- */

.crumbs {
  border-bottom: 1px solid var(--line);
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›";
  margin-inline: 0.55em;
  color: var(--line-strong);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--green);
  text-decoration: underline;
}

.crumbs [aria-current="page"] {
  color: var(--ink-soft);
}

/* ---- Tipográfiai elemek ------------------------------------------------- */

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin: 0 0 0.55rem;
}

.kicker a {
  color: inherit;
  text-decoration: none;
}

.kicker a:hover {
  color: var(--green);
  text-decoration: underline;
}

.lead {
  font-size: 1.16em;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0.9em;
}

.article-meta {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}

/* ---- Cikk- és aloldal-szerkezet ----------------------------------------- */

.article-head {
  padding-top: clamp(2rem, 5vw, 3.2rem);
}

.article-hero {
  margin: clamp(1.4rem, 3.5vw, 2.2rem) auto;
}

.article-hero img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.prose {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.prose h2 {
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.08rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.25rem;
  border-left: 3px solid var(--copper);
  font-style: italic;
  color: var(--ink-soft);
}

.prose strong {
  font-weight: 600;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.2em 0;
}

/* Források szakasz a cikkek végén */

.sources {
  margin-top: 2.8em;
  padding: 1.3rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.sources h2 {
  font-family: var(--font-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--copper);
  margin: 0 0 0.7em;
}

.sources ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.sources li {
  margin-bottom: 0.4em;
  overflow-wrap: anywhere;
}

/* ---- Szalagok, rácsok, kártyák ------------------------------------------ */

.band {
  padding-block: clamp(2rem, 5vw, 3.4rem);
}

.band-intro {
  border-bottom: 1px solid var(--line);
}

.band-concept {
  border-top: 1px solid var(--line);
}

.band-cards {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.band-title {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  margin-bottom: 1.2rem;
}

.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.more-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.more-link:hover {
  text-decoration: underline;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card-media {
  display: block;
  background: var(--card-tone);
  border-bottom: 1px solid var(--line);
}

.card-media img {
  width: 100%;
}

.card-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .kicker {
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.13rem;
  margin: 0 0 0.45em;
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.card-lead {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0.7em;
}

.card-meta {
  font-size: 0.79rem;
  color: var(--muted);
  margin: auto 0 0;
}

.topic-card {
  border-top: 2px solid var(--green);
  padding-top: 0.9rem;
}

.topic-card .card-title {
  font-size: 1.16rem;
}

.topic-card .card-lead {
  margin-bottom: 0;
}

/* ---- Főoldal ------------------------------------------------------------ */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.2rem, 5vw, 4rem);
}

.hero-copy .lead {
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}

.hero-art {
  margin: 0;
}

.hero-art img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.disclaimer-card {
  margin-top: 1.8rem;
  padding: 0.95rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 3px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---- Kapcsolat ---------------------------------------------------------- */

.contact-mail {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

/* ---- 404 ---------------------------------------------------------------- */

.err {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  text-align: center;
}

.err-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 7rem);
  line-height: 1;
  color: var(--copper);
  margin: 0 0 0.2em;
}

.err .prose {
  padding-bottom: 0;
}

.err-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
}

/* ---- Lábléc ------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.footer-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.footer-title {
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--copper);
  margin: 0.2em 0 0.9em;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.45em;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Reszponzív igazítások ---------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 460px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.28rem;
  }

  .brand-tag {
    display: none;
  }

  .section-nav ul {
    justify-content: flex-start;
  }

  .btn-contact {
    font-size: 0.86rem;
    padding: 0.5em 1em;
  }
}

/* ---- Mozgásérzékenység -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
