:root {
  --red: #a3151b;
  --red-dark: #741014;
  --navy: #10265a;
  --cream: #f8eed9;
  --paper: #fff9eb;
  --wood: #633411;
  --ink: #2d2117;
  --green: #2f672f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  --page-overlay: rgba(67,32,8,.68);
  margin: 0;
  color: var(--ink);
  background: #4d270d url("assets/folk-hero.webp") center top / 900px auto fixed;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  text-align: center;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--page-overlay); }
body[data-page-background="light-folk"] { --page-overlay: rgba(111,68,28,.15); background: #ead5aa url("assets/background-variants/page-light-folk.webp") center / cover no-repeat fixed; }
body[data-page-background="walnut"] { --page-overlay: rgba(42,20,7,.48); background: #3a1d0d url("assets/background-variants/page-walnut-folk.webp") center / cover no-repeat fixed; }
body[data-page-background="linen"] { --page-overlay: rgba(91,52,24,.36); background: #d8c6a7 url("assets/background-variants/page-linen-embroidery.webp") center / cover no-repeat fixed; }
body[data-page-background="lights"] { --page-overlay: rgba(22,8,3,.3); background: #1b0d07 url("assets/background-variants/page-festival-lights.webp") center / cover no-repeat fixed; }
.wrap { width: min(680px, calc(100% - 28px)); margin-inline: auto; }

.hero { position: relative; min-height: min(76vh, 720px); display: grid; place-items: center; overflow: hidden; background: var(--cream); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.language-switcher { width: max-content; max-width: 100%; margin: 25px auto 0; display: flex; justify-content: center; gap: 4px; padding: 5px; border: 1px solid #ffffff80; border-radius: 999px; background: #fff9ebee; box-shadow: 0 5px 18px #32180833; backdrop-filter: blur(8px); }
.language-switcher button { min-width: 36px; min-height: 36px; padding: 0 9px; border: 0; border-radius: 999px; color: var(--red-dark); background: transparent; font: 800 10px/1 Arial, "Microsoft YaHei", sans-serif; letter-spacing: .04em; cursor: pointer; }
.language-switcher button:hover, .language-switcher button:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.language-switcher button.is-active { color: white; background: var(--red); }
.hero-copy { position: relative; z-index: 1; width: min(690px, 62%); padding: 80px 20px; }
.welcome, .festival { color: var(--green); font-family: Arial, sans-serif; font-size: clamp(10px, 2vw, 15px); font-weight: 900; letter-spacing: .2em; }
.hero h1 { margin: 18px 0; color: var(--navy); font-size: clamp(54px, 10vw, 112px); line-height: .77; letter-spacing: -.055em; text-shadow: 0 2px white; }
.hero h1 span { color: var(--red); }

.status { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: -27px; position: relative; z-index: 2; padding: 18px 24px; border: 5px solid var(--paper); border-radius: 14px; color: white; background: var(--red); box-shadow: 0 8px 25px #2c120850; }
.status div { text-align: left; }.status strong, .status small { display: block; }.status strong { font-size: 16px; letter-spacing: .04em; }.status small { margin-top: 3px; opacity: .75; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 5px #ffffff20; }

.quick-links { display: flex; justify-content: center; gap: 8px; padding: 24px 0; }
.quick-links a, .social a { padding: 10px 15px; border: 1px solid #ffffff55; border-radius: 99px; color: white; font-family: Arial, sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.social-link.is-placeholder { cursor: default; opacity: .58; }
.social-link.is-placeholder::after { content: " · SOON"; font-size: .8em; }

.menu, .map, .visit, .social { margin-top: 12px; padding: 58px clamp(18px, 6vw, 58px); border: 8px solid #e8d2ad; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--red), 0 15px 30px #26100550; }
.ornament { margin: 0; color: var(--red); font-size: 30px; }
.menu h2, .map h2, .visit h2 { margin: 5px 0; color: var(--red); font-size: clamp(38px, 9vw, 64px); line-height: .9; }
.subtitle { margin: 10px 0 35px; color: var(--green); font-family: Arial, sans-serif; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.menu-list { border-top: 2px solid var(--red); }
.menu-category { padding-top: 30px; text-align: left; }
.menu-category + .menu-category { margin-top: 8px; border-top: 2px solid #a3151b38; }
.menu-category-title { margin: 0 0 8px; color: var(--red); font-size: clamp(23px, 5vw, 32px); line-height: 1; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 2px; border-bottom: 1px solid #a3151b2e; text-align: left; }
.menu-item-copy { min-width: 0; }
.menu-item-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.menu-item h4 { margin: 0; color: var(--navy); font-size: clamp(17px, 4vw, 23px); line-height: 1.05; }
.menu-item p, .menu-category-note { margin: 5px 0 0; color: #765e48; font-family: Arial, sans-serif; font-size: 10px; line-height: 1.45; }
.menu-item strong { color: var(--red); }
.menu-badge { padding: 4px 6px 3px; border-radius: 99px; color: white; background: var(--green); font-family: Arial, sans-serif; font-size: 7px; font-weight: 900; letter-spacing: .08em; line-height: 1; }
.menu-badge-fish { background: var(--navy); }
.menu-category-note { padding: 11px 12px; border-radius: 5px; background: #f5e7ca; }
.special { margin-top: 32px; padding: 24px 18px; border: 2px dashed var(--red); background: #f5e7ca; }
.special p, .special small { margin: 0; font-family: Arial, sans-serif; font-size: 9px; letter-spacing: .14em; }.special h3 { margin: 8px 0; color: var(--red); font-size: 24px; }

.juice { margin-top: 12px; padding: 55px 0; color: var(--cream); background: var(--red); border-block: 7px solid var(--cream); box-shadow: 0 12px 30px #2c100960; }
.juice-inner { display: grid; grid-template-columns: 84px max-content 84px; align-items: center; justify-content: center; gap: 12px; }
.juice-copy { min-width: 0; text-align: center; }
.juice-icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: var(--cream); font-size: 41px; }
.juice-spacer { width: 84px; height: 1px; }
.juice p, .juice small { margin: 0; font-family: Arial, sans-serif; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.juice h2 { margin: 8px 0; font-size: clamp(38px, 9vw, 62px); line-height: .8; text-align: center; }
.juice h2 span { color: #ffd454; }

.map p { max-width: 440px; margin: 18px auto 25px; color: #735a43; line-height: 1.5; }
.primary-button { display: inline-block; padding: 15px 22px; border-radius: 6px; color: white; background: var(--red); font-family: Arial, sans-serif; font-size: 11px; font-weight: 900; letter-spacing: .09em; text-decoration: none; box-shadow: 0 4px 0 var(--red-dark); }
.visit { background: #efe0c2; }.heart { color: var(--red); font-size: 48px; }.visit p { margin: 10px 0 7px; color: var(--navy); font-weight: bold; }.visit small { font-family: Arial, sans-serif; color: #765e48; font-size: 9px; letter-spacing: .08em; }
.social { margin-bottom: 12px; color: white; background: var(--navy); border-color: #d9c49e; box-shadow: inset 0 0 0 2px white, 0 15px 30px #26100550; }.social p { margin: 0 0 22px; font-family: Arial, sans-serif; font-size: 9px; letter-spacing: .15em; }.social div { display: flex; justify-content: center; gap: 8px; }
.real-food-gallery { margin-top: 12px; padding: 50px clamp(18px, 6vw, 48px); border: 8px solid #d9c49e; border-radius: 16px; color: white; background: var(--navy); box-shadow: inset 0 0 0 2px white, 0 15px 30px #26100550; }
.menu .real-food-gallery { margin: 34px -22px -28px; border-width: 5px; border-radius: 12px; }
.real-food-gallery h2 { margin: 6px 0; color: var(--cream); font-size: clamp(30px, 7vw, 48px); line-height: .95; }
.real-food-gallery > p:not(.ornament) { margin: 10px 0 24px; color: #ffffffb8; font-family: Arial, sans-serif; font-size: 10px; letter-spacing: .07em; }
.food-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.food-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 4px solid white; border-radius: 8px; }
.food-photos img:last-child { grid-column: 1 / -1; width: calc(50% - 4px); height: auto; aspect-ratio: auto; justify-self: center; }
.photo-search-link { display: inline-block; margin-top: 25px; padding-bottom: 4px; border-bottom: 2px solid currentColor; color: white; font-family: Arial, sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.photo-placement-v4 .real-food-gallery { color: var(--ink); border-color: #e8d2ad; box-shadow: inset 0 0 0 2px var(--red), 0 15px 30px #26100550; }
.photo-placement-v4 .real-food-gallery { background: #efe0c2; }
.photo-placement-v4 .real-food-gallery .ornament, .photo-placement-v4 .real-food-gallery h2 { color: var(--red); }
.photo-placement-v4 .real-food-gallery > p:not(.ornament) { color: #735a43; }
.photo-placement-v4 .real-food-gallery .food-photos img { border-color: #e8d2ad; outline: 2px solid var(--red); outline-offset: -5px; }
.photo-placement-v5 .real-food-gallery { color: var(--cream); background: var(--red); border-color: var(--cream); box-shadow: inset 0 0 0 2px #ffd454, 0 15px 30px #26100566; }
.photo-placement-v5 .real-food-gallery .ornament, .photo-placement-v5 .real-food-gallery h2 { color: #ffd454; }
.photo-placement-v5 .real-food-gallery > p:not(.ornament) { color: #fff4d7; }
.photo-placement-v5 .real-food-gallery .food-photos { gap: 14px; padding: 6px; }
.photo-placement-v5 .real-food-gallery .food-photos img { border: 6px solid var(--paper); border-radius: 3px; box-shadow: 0 7px 16px #4b090d66; }
.photo-placement-v5 .real-food-gallery .food-photos img:first-child { transform: rotate(-1deg); }
.photo-placement-v5 .real-food-gallery .food-photos img:last-child { transform: rotate(1deg); }
.photo-placement-v5 .photo-search-link { color: #ffd454; }
.festival-more { margin-top: 12px; margin-bottom: 12px; padding: 12px 12px 38px; border: 8px solid #e8d2ad; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--red), 0 15px 30px #26100550; }
.festival-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.festival-photo-grid img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.festival-photo-grid .festival-featured { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.festival-more .photo-search-link { color: var(--red); }
footer { padding: 45px 18px; color: var(--cream); background: #3e1f0b; border-top: 1px solid #f8eed955; }footer strong, footer span { display: block; }footer strong { font-size: 22px; }footer span { margin-top: 6px; font-family: Arial, sans-serif; font-size: 9px; letter-spacing: .15em; }
.background-picker { position: fixed; right: 14px; bottom: 14px; z-index: 10; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; font-family: Arial, sans-serif; text-align: left; }
.background-picker button { border: 1px solid #ffffff66; color: var(--cream); background: #321808ee; font: 800 9px/1 Arial, sans-serif; letter-spacing: .07em; cursor: pointer; }
.background-picker-toggle { padding: 10px 13px; border-radius: 99px; box-shadow: 0 5px 16px #0007; }
.background-options { width: 205px; padding: 12px; border: 1px solid #ffffff38; border-radius: 14px; background: #321808f5; box-shadow: 0 10px 30px #0008; }
.background-options[hidden] { display: none; }
.background-options p { margin: 0 0 8px; color: #e8d2ad; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.background-options button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border: 0; border-radius: 8px; text-align: left; }
.background-options button:hover, .background-options button[aria-pressed="true"] { color: #321808; background: var(--cream); }
.background-swatch { width: 27px; height: 27px; flex: 0 0 auto; border: 2px solid #fff8; border-radius: 50%; background-position: center; background-size: cover; }
.background-swatch-original { background-image: url("assets/folk-hero.webp"); }
.background-swatch-light-folk { background-image: url("assets/background-variants/page-light-folk.webp"); }
.background-swatch-walnut { background-image: url("assets/background-variants/page-walnut-folk.webp"); }
.background-swatch-linen { background-image: url("assets/background-variants/page-linen-embroidery.webp"); }
.background-swatch-lights { background-image: url("assets/background-variants/page-festival-lights.webp"); }
.version-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font-family: Arial, sans-serif; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.version-nav span { margin: 0 5px 0 0; opacity: .65; }
.version-nav a { min-width: 34px; padding: 8px; border: 1px solid #f8eed966; border-radius: 99px; color: inherit; text-decoration: none; }
.version-nav a.active { color: var(--wood); background: var(--cream); }

@media (max-width: 600px) {
  body { background-size: 600px auto; }
  body[data-page-background="light-folk"], body[data-page-background="walnut"], body[data-page-background="linen"], body[data-page-background="lights"] { background-size: cover; }
  .hero { min-height: 560px; }
  .hero > img { width: auto; min-width: 100%; left: 50%; transform: translateX(-50%); object-position: center; }
  .hero-copy { width: 70%; padding: 72px 0; }
  .hero h1 { font-size: clamp(49px, 17vw, 76px); }
  .language-switcher { margin-top: 22px; }
  .language-switcher button { min-width: 36px; min-height: 36px; padding-inline: 7px; }
  .welcome, .festival { font-size: 8px; }
  .status { width: calc(100% - 28px); }
  .quick-links { overflow-x: auto; justify-content: flex-start; }
  .menu, .map, .visit, .social, .real-food-gallery { border-width: 5px; padding: 46px 20px; }
  .festival-more { border-width: 5px; padding: 8px 8px 32px; }
  .festival-photo-grid { grid-template-columns: 1fr 1fr; gap: 5px; }
  .menu .real-food-gallery { margin-inline: -10px; }
  .juice-inner { grid-template-columns: 64px max-content 64px; gap: 8px; }
  .juice-icon { width: 64px; height: 64px; font-size: 30px; }
  .juice-spacer { width: 64px; }
  .background-picker { right: 8px; bottom: 8px; }
}

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