/* A mozgás szabadsága – Cloudflare Direct Upload v2
   Statikus, külső függőség nélküli stíluslap. */

:root {
  --paper: #f4efe5;
  --paper-light: #fbf8f2;
  --paper-muted: #ece4d7;
  --ink: #1d1b18;
  --ink-soft: #5f594f;
  --line: #d7cdbd;
  --accent: #9a542b;
  --accent-dark: #743a1c;
  --charcoal: #24211d;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(54, 42, 29, 0.12);
  --radius: 2px;
  --container: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: rgba(154, 84, 43, 0.22);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(215, 205, 189, 0.9);
  background: rgba(244, 239, 229, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 27px;
}

.primary-navigation a {
  position: relative;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
  transform: scaleX(1);
}

.primary-navigation .nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 15px;
  transition: background 180ms ease, color 180ms ease;
}

.primary-navigation .nav-cta:hover {
  background: var(--ink);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-of-type(3) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-of-type(4) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Common typography */

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #d9a078;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--serif);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -0.058em;
  line-height: 0.84;
}

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
}

.section {
  padding-block: clamp(76px, 10vw, 126px);
  border-bottom: 1px solid var(--line);
}

.section-muted {
  background: var(--paper-light);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading-wide {
  max-width: 840px;
}

.section-heading > p:last-child {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.65;
}

/* Hero */

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

.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  padding-block: 74px;
}

.brush-line {
  display: block;
  width: min(290px, 72%);
  height: 9px;
  margin: 26px 0 28px;
  border-radius: 50%;
  background: var(--accent);
  transform: rotate(-1.2deg);
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 33px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.hero-art {
  position: relative;
  align-self: end;
  height: 640px;
  margin: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 2%;
  bottom: 7%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 84, 43, 0.11), transparent 69%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
}

/* Principles */

.principles {
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principles article {
  min-height: 182px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
}

.principles article:first-child {
  padding-left: 0;
}

.principles article:last-child {
  border-right: 0;
  padding-right: 0;
}

.principle-number {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.principles h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.principles p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Concept section */

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.concept-card {
  min-height: 300px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.concept-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1.6rem;
}

.concept-card p {
  max-width: 48ch;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.wide-art {
  height: min(39vw, 450px);
  min-height: 270px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8f8f6;
}

.wide-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

/* Book */

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
}

.book-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.13rem;
  line-height: 1.65;
}

.check-list {
  display: grid;
  gap: 15px;
  margin: 31px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 33px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--accent);
  font-size: 1.35rem;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.book-art {
  position: relative;
  height: 680px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.book-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.art-caption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 17px;
  left: 18px;
  padding: 12px 14px;
  background: rgba(244, 239, 229, 0.91);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Quote */

.quote-section {
  padding-block: clamp(74px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
}

.quote-section blockquote {
  position: relative;
  max-width: 970px;
  margin: 0 auto;
  padding-left: clamp(62px, 9vw, 130px);
}

.quote-section p {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.quote-mark {
  position: absolute;
  top: -10px;
  left: 0;
  color: var(--accent);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
}

/* Content cards */

.content-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.content-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.content-card:nth-child(2) {
  transform: translateY(28px);
}

.content-card:nth-child(3) {
  transform: translateY(56px);
}

.card-status {
  width: fit-content;
  margin-bottom: auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-card h3 {
  margin-top: 50px;
}

.content-card p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.content-card.is-live {
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(82, 51, 29, 0.08);
}

.card-status.is-available {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.content-card .card-link {
  margin-top: auto;
  padding-top: 28px;
}

/* Author */

.author-section {
  margin-top: 56px;
  border-bottom: 0;
  background: var(--charcoal);
  color: var(--white);
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
}

.author-art {
  height: 650px;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.author-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.author-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 23px 0 0;
  color: #d9d0c3;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
}

.author-copy strong {
  color: var(--white);
}

/* Roadmap */

.roadmap-section {
  background: var(--paper-light);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}

.roadmap li {
  min-height: 330px;
  padding: 31px;
  border-right: 1px solid var(--line);
}

.roadmap li:last-child {
  border-right: 0;
}

.roadmap li.is-current {
  background: var(--paper);
}

.roadmap-number {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 58px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.is-current .roadmap-number {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.roadmap-state {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roadmap h3 {
  font-size: 1.5rem;
}

.roadmap p {
  margin: 15px 0 0;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  padding-block: 38px;
  background: #171512;
  color: #bdb4a7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto minmax(260px, 0.8fr);
  align-items: start;
  gap: 50px;
}

.footer-brand {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  margin: 10px 0 0;
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  color: var(--white);
  font-size: 0.85rem;
  text-underline-offset: 4px;
}

.privacy-note {
  margin-top: 0 !important;
  line-height: 1.6;
}

/* Subpages */

.subpage-hero {
  padding-block: clamp(70px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}

.subpage-hero h1 {
  max-width: 900px;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
}

.subpage-lead {
  max-width: 800px;
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 70px 0 25px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.prose h3 {
  margin: 38px 0 14px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
}

.prose strong {
  color: var(--ink);
}

.prose ul {
  padding-left: 22px;
}

.facts-table {
  width: 100%;
  margin: 50px 0 0;
  border-collapse: collapse;
}

.facts-table th,
.facts-table td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.facts-table th {
  width: 32%;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 32px 0;
  border: 1px solid var(--line);
}

.stat {
  padding: 26px 20px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.publisher-visual {
  height: 520px;
  margin: 58px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.publisher-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.notice {
  margin: 40px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--accent);
  background: var(--paper-light);
}

.notice p {
  margin: 0;
}

/* 404 */

.not-found {
  min-height: 75vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(5rem, 14vw, 10rem);
}

.not-found p {
  max-width: 560px;
  margin: 20px auto 30px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* Responsive */

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    z-index: 999;
    top: 82px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 16px 20px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 50px rgba(34, 28, 22, 0.15);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  .primary-navigation.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .primary-navigation a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .primary-navigation a::after {
    display: none;
  }

  .primary-navigation .nav-cta {
    margin-top: 14px;
    border: 1px solid var(--ink);
    text-align: center;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding: 62px 0 20px;
  }

  .hero-art {
    width: min(100%, 620px);
    height: 500px;
    justify-self: center;
  }

  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles article:nth-child(2) {
    border-right: 0;
  }

  .principles article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .principles article:first-child {
    padding-left: 28px;
  }

  .principles article:last-child {
    padding-right: 28px;
  }

  .book-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .book-art {
    width: min(100%, 590px);
    justify-self: center;
  }

  .author-art {
    width: min(100%, 590px);
    height: 560px;
    justify-self: center;
  }

  .content-card:nth-child(2),
  .content-card:nth-child(3) {
    transform: none;
  }

  .author-section {
    margin-top: 0;
  }

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

  .privacy-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(100% - 30px, var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand {
    font-size: 1.03rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .primary-navigation {
    top: 72px;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 5.2rem);
  }

  .hero-copy {
    padding-top: 48px;
  }

  .hero-lead {
    font-size: 1.16rem;
  }

  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    height: 390px;
  }

  .principles-grid,
  .concept-grid,
  .content-cards,
  .roadmap,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .principles article,
  .principles article:first-child,
  .principles article:last-child {
    min-height: auto;
    padding: 26px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles article:last-child {
    border-bottom: 0;
  }

  .concept-icon {
    margin-bottom: 34px;
  }

  .wide-art {
    height: 270px;
  }

  .book-art {
    height: 540px;
  }

  .quote-section blockquote {
    padding-left: 45px;
  }

  .content-cards {
    gap: 14px;
  }

  .content-card {
    min-height: 290px;
  }

  .author-art {
    height: 500px;
  }

  .roadmap {
    border: 0;
  }

  .roadmap li {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .roadmap li:last-child {
    border-bottom: 0;
  }

  .roadmap-number {
    margin-bottom: 32px;
  }

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

  .site-footer nav {
    flex-wrap: wrap;
  }

  .facts-table,
  .facts-table tbody,
  .facts-table tr,
  .facts-table th,
  .facts-table td {
    display: block;
    width: 100%;
  }

  .facts-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .facts-table td {
    padding-top: 4px;
  }

  .stats-grid {
    border-bottom: 0;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 390px) {
  .brand span:last-child {
    max-width: 190px;
    white-space: normal;
    line-height: 1.1;
  }

  .hero-art {
    height: 345px;
  }

  .book-art {
    height: 470px;
  }

  .author-art {
    height: 440px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .subpage-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .subpage-hero {
    padding-block: 28px;
  }

  .container {
    width: 100%;
  }

  a {
    text-decoration: none;
  }
}
