:root {
  --ink: #2d2119;
  --bark: #6f432b;
  --bark-deep: #342117;
  --rust: #b05437;
  --rust-dark: #92452f;
  --honey: #d3a24d;
  --paper: #f8f2e7;
  --white: #fffdf8;
  --line: rgba(69, 44, 29, .16);
  --content-max: 1440px;
  --page-pad: clamp(20px, 5vw, 84px);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(126, 85, 50, .028) 79px 80px),
    var(--paper);
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

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

.screen-reader-text:focus {
  z-index: 99999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 0 var(--page-pad);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 94px;
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.brand span { display: grid; line-height: 1; }
.brand strong { font-size: 21px; }
.brand small { margin-top: 7px; color: #617069; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }
nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 38px); font-size: 14px; font-weight: 700; }
nav a { padding: 12px 0; }
.menu-button { display: none; border: 0; background: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
}
.button span { font-size: 20px; }
.button-donate, .button-primary { color: var(--white); background: var(--rust); }
.button-dark { color: var(--white); background: var(--bark-deep); }
.text-link { display: inline-flex; gap: 10px; color: var(--white); font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.55); padding: 8px 0; }
.dark-link { color: var(--bark-deep); border-color: var(--bark); }

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image {
  object-position: center 40%;
  transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.025);
  transition: transform .12s linear;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(48,28,17,.91) 0%, rgba(48,28,17,.66) 44%, rgba(48,28,17,.14) 78%),
    linear-gradient(0deg, rgba(112,68,39,.28), transparent 42%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - (2 * var(--page-pad))));
  margin: 0 auto;
  padding: 90px 0 120px;
}
.hero-content > * { max-width: 760px; }
.eyebrow { margin: 0 0 22px; color: #f3cd85; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 2.5px; }
.eyebrow.dark { color: #9c6928; }
.eyebrow.light { color: #f3cd85; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(72px, 8vw, 126px); line-height: .92; font-weight: 600; }
.hero-lead { max-width: 660px; margin: 34px 0; font-size: 22px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.hero-fact {
  position: absolute;
  right: max(var(--page-pad), calc((100vw - var(--content-max)) / 2));
  bottom: 42px;
  display: grid;
  padding: 20px 24px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border-left: 5px solid var(--honey);
}
.hero-fact strong { font-size: 20px; }
.hero-fact span { margin-top: 6px; color: #617069; font-size: 13px; }

.impact-shell {
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.018) 22px 23px),
    var(--bark-deep);
}

.impact-band {
  width: min(var(--content-max), calc(100% - (2 * var(--page-pad))));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--white);
  padding: 34px 0;
}
.impact-band div { display: grid; gap: 7px; padding: 0 32px; border-right: 1px solid rgba(255,255,255,.2); }
.impact-band div:first-child { padding-left: 0; }
.impact-band div:last-child { border-right: 0; }
.impact-band strong { color: #f1cb89; font-family: Georgia, serif; font-size: 29px; }
.impact-band span { font-size: 14px; color: rgba(255,255,255,.78); }

.section {
  width: min(var(--content-max), calc(100% - (2 * var(--page-pad))));
  margin-right: auto;
  margin-left: auto;
  padding: 110px 0;
}
.mission {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  overflow: hidden;
  background: rgba(248,242,231,.95);
}
.section-copy h2, .recipes-heading h2, .workshop h2, .donation h2 { margin: 0 0 28px; font-family: Georgia, serif; font-size: clamp(46px, 5vw, 76px); line-height: 1.05; font-weight: 600; }
.section-copy > p:not(.eyebrow), .recipes-heading > p, .workshop-heading > p, .donation-content > p:not(.eyebrow) { font-size: 19px; line-height: 1.75; color: #51615a; }
.mission-photo { position: relative; margin: 0; }
.mission-photo img { height: 610px; object-fit: cover; object-position: center; }
.mission-photo figcaption { position: absolute; right: -30px; bottom: -30px; width: min(390px, 72%); display: grid; gap: 6px; padding: 26px 30px; background: var(--white); border-top: 4px solid var(--rust); box-shadow: 0 18px 60px rgba(75,45,27,.16); }
.mission-photo figcaption strong { font-family: Georgia, serif; font-size: 21px; }
.mission-photo figcaption span { color: #68766f; font-size: 14px; line-height: 1.5; }

.workshop {
  position: relative;
  isolation: isolate;
  padding-top: 20px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(78,43,24,.96), rgba(122,72,42,.96)),
    var(--bark);
  color: var(--white);
}
.workshop-heading { display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 70px; padding-bottom: 55px; }
.workshop-heading p { color: rgba(255,255,255,.76); }
.photo-strip { display: grid; grid-template-columns: 1.55fr .8fr .8fr; height: 520px; }
.photo-strip figure { margin: 0; overflow: hidden; border-right: 5px solid var(--bark); }
.photo-strip img { height: 100%; object-fit: cover; }

.recipes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(126,85,50,.035) 59px 60px),
    var(--white);
}
.recipes-heading { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 70px; margin-bottom: 55px; }
.featured-recipe { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--paper); border: 1px solid var(--line); }
.featured-recipe figure { min-height: 530px; margin: 0; }
.featured-recipe figure img { height: 100%; object-fit: cover; }
.recipe-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 74px); }
.recipe-meta { display: flex; gap: 22px; margin-bottom: 42px; color: #66736d; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.recipe-label { margin: 0 0 14px; color: var(--rust-dark); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1.8px; }
.recipe-content h3 { margin: 0 0 22px; font-family: Georgia, serif; font-size: clamp(40px, 4vw, 60px); line-height: 1.05; }
.recipe-content > p:not(.recipe-label) { margin: 0 0 32px; color: #56645e; font-size: 17px; line-height: 1.7; }
.recipe-content .button { align-self: flex-start; }

.social-feed {
  padding-top: 86px;
  padding-bottom: 96px;
}

.social-feed-heading {
  display: grid;
  grid-template-columns: 1fr .78fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 48px;
}

.social-feed-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 600;
}

.social-feed-heading > p {
  margin: 0;
  color: #51615a;
  font-size: 18px;
  line-height: 1.7;
}

.social-feed-embed {
  position: relative;
  min-height: 420px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.social-feed-embed::before {
  content: "Facebook-bejegyzések betöltése...";
  position: absolute;
  inset: 28px 0 auto;
  z-index: -1;
  padding: 28px 0;
  color: #66736d;
  font-size: 14px;
}

.social-feed-embed:has(iframe)::before {
  display: none;
}

.social-feed-channel {
  margin-top: 78px;
}

.social-feed-channel-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.social-feed-channel-heading h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 600;
}

.social-feed-embed-youtube {
  min-height: 360px;
}

.donation {
  position: relative;
  min-height: 660px;
  color: var(--white);
  overflow: hidden;
  background: var(--bark-deep);
}
.donation > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.donation-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(45,26,16,.96) 0%, rgba(54,31,19,.82) 42%, rgba(54,31,19,.18) 74%),
    linear-gradient(0deg, rgba(45,26,16,.32), transparent 48%);
}
.donation-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - (2 * var(--page-pad))));
  min-height: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.donation-content {
  width: min(720px, 58%);
  padding: 90px 0;
}
.donation-content p:not(.eyebrow) { color: rgba(255,255,255,.82); }
.donation-content .button { align-self: flex-start; }

footer { padding: 65px var(--page-pad); background: #2a1b13; color: var(--white); }
.footer-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}
.footer-inner > div { display: grid; align-content: start; gap: 12px; }
footer strong { font-family: Georgia, serif; font-size: 20px; }
footer span, footer a { color: rgba(255,255,255,.68); font-size: 14px; }

.rolling-divider {
  position: relative;
  z-index: 3;
  height: 54px;
  overflow: hidden;
}

.rolling-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: max(var(--page-pad), calc((100vw - var(--content-max)) / 2));
  right: max(var(--page-pad), calc((100vw - var(--content-max)) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 16%, currentColor 84%, transparent);
  opacity: .3;
}

.rolling-divider-light { color: #9c6928; background: var(--paper); }
.rolling-divider-dark { color: #f3cd85; background: var(--bark); }

.pastry-motion {
  position: absolute;
  top: 4px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  animation: pastry-drift 10s ease-in-out infinite;
}

.pastry-motion i {
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(211,162,77,.82);
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 5px 15px rgba(45,26,16,.2);
}

.pastry-motion i:nth-child(1) { background-image: url("../images/home-v2/divider-pretzel.webp"); }
.pastry-motion i:nth-child(2) { background-image: url("../images/home-v2/divider-cakes.webp"); }
.pastry-motion i:nth-child(3) { background-image: url("../images/home-v2/divider-pastry.webp"); }

.pastry-watermark {
  position: absolute;
  z-index: -1;
  width: 540px;
  height: 280px;
  object-fit: cover;
  filter: sepia(.22) saturate(.8);
  opacity: .055;
}

.pastry-watermark-left { left: -260px; bottom: -70px; transform: rotate(-7deg); }
.pastry-watermark-right { right: -250px; top: 60px; transform: rotate(6deg); }

.baking-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .13;
  background:
    repeating-linear-gradient(0deg, transparent 0 71px, rgba(255,244,220,.45) 71px 72px),
    repeating-linear-gradient(90deg, transparent 0 71px, rgba(255,244,220,.35) 71px 72px);
  animation: baking-grid-drift 18s linear infinite;
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .photo-strip figure:nth-child(2) { transition-delay: .09s; }
.motion-ready .photo-strip figure:nth-child(3) { transition-delay: .18s; }

@keyframes pastry-drift {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50% { transform: translateX(-50%) translateY(3px) rotate(2deg); }
}

@keyframes baking-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 72px, 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image,
  .pastry-motion,
  .baking-grid,
  .reveal-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .motion-ready .reveal-item { opacity: 1; }
  .pastry-motion { transform: translateX(-50%) !important; }
}

@media (max-width: 760px) {
  .site-header { padding: 0 20px; }
  .header-inner { grid-template-columns: 1fr auto; min-height: 74px; padding: 8px 0; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 18px; }
  .brand small { margin-top: 4px; font-size: 10px; }
  nav, .header-inner > .button { display: none; }
  .menu-button { display: grid; gap: 5px; padding: 10px 2px 10px 14px; }
  .menu-button span { display: block; width: 27px; height: 2px; background: var(--bark-deep); }
  .menu-open { overflow: hidden; }
  .menu-open .site-header nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 24px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(45,33,25,.14);
  }
  .menu-open .site-header nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
  }
  .hero { min-height: 670px; align-items: end; }
  .hero-image { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(47,28,17,.96), rgba(57,31,17,.34) 82%); }
  .hero-content { width: calc(100% - 40px); padding: 190px 0 76px; }
  .eyebrow { margin-bottom: 16px; font-size: 11px; letter-spacing: 1.8px; }
  h1 { font-size: 58px; line-height: .95; }
  .hero-lead { margin: 22px 0 26px; font-size: 17px; line-height: 1.5; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: center; font-size: 13px; }
  .hero-fact { display: none; }
  .impact-band { width: calc(100% - 40px); grid-template-columns: 1fr; padding: 0; }
  .impact-band div { padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .impact-band div:last-child { border-bottom: 0; }
  .impact-band strong { font-size: 24px; }
  .section { width: calc(100% - 40px); padding: 72px 0; }
  .mission, .recipes-heading, .workshop-heading, .social-feed-heading { grid-template-columns: 1fr; gap: 28px; }
  .section-copy h2, .recipes-heading h2, .workshop h2, .social-feed-heading h2, .donation h2 { margin-bottom: 20px; font-size: 42px; line-height: 1.06; }
  .section-copy > p:not(.eyebrow), .recipes-heading > p, .workshop-heading > p, .social-feed-heading > p, .donation-content > p:not(.eyebrow) { font-size: 17px; line-height: 1.65; }
  .mission-photo img { height: 400px; }
  .mission-photo figcaption { position: relative; right: auto; bottom: auto; width: 100%; padding: 22px 20px; }
  .workshop { padding-top: 0; }
  .workshop-heading { padding-bottom: 42px; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: 580px; }
  .photo-strip .photo-large { grid-column: 1 / -1; }
  .photo-strip figure { border-right: 3px solid var(--bark); border-bottom: 3px solid var(--bark); }
  .recipes-heading { margin-bottom: 34px; }
  .featured-recipe { grid-template-columns: 1fr; }
  .featured-recipe figure { min-height: 330px; }
  .recipe-content { padding: 32px 20px 38px; }
  .recipe-meta { gap: 14px; margin-bottom: 28px; font-size: 11px; }
  .recipe-content h3 { font-size: 38px; }
  .recipe-content .button { width: 100%; }
  .social-feed { padding-top: 64px; padding-bottom: 72px; }
  .social-feed-heading { margin-bottom: 30px; }
  .social-feed-embed { min-height: 520px; padding-top: 20px; }
  .social-feed-embed::before { inset: 20px 0 auto; }
  .social-feed-channel { margin-top: 58px; }
  .social-feed-channel-heading { margin-bottom: 24px; }
  .social-feed-channel-heading h3 { font-size: 34px; line-height: 1.1; }
  .social-feed-embed-youtube { min-height: 340px; }
  .donation { min-height: 680px; }
  .donation > img { object-position: 60% top; }
  .donation-shade { background: linear-gradient(0deg, rgba(45,26,16,.98) 0%, rgba(54,31,19,.72) 52%, rgba(54,31,19,.12) 100%); }
  .donation-inner { width: calc(100% - 40px); min-height: 680px; align-items: flex-end; }
  .donation-content { width: 100%; padding: 260px 0 60px; }
  .donation-content .button { width: 100%; }
  footer { padding: 50px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 38px; }
  .rolling-divider { height: 44px; }
  .pastry-motion { top: 5px; gap: 4px; }
  .pastry-motion i { width: 34px; height: 34px; }
  .pastry-watermark { width: 320px; height: 170px; }
}
