/* =========================================================
   Jadłodajnia Dania – wspólny arkusz stylów
   Styl: staropolska księga kucharska / renesansowy starodruk
   ZASADA: nic nie jest ukrywane przed przewinięciem – wszystkie
   sekcje są od razu w pełni widoczne.
   ========================================================= */

:root {
  --pergamin: #F3EAD8;
  --pergamin-ciemny: #E8DCC4;
  --pergamin-gleboki: #DCCBA9;
  --burgund: #5C1A1B;
  --burgund-ciemny: #461314;
  --atrament: #1F1712;
  --atrament-miekki: #4A3B2E;
  --zloto: #A67C37;
  --zloto-jasne: #C9A25E;
}

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

body {
  margin: 0;
  color: var(--atrament);
  font-family: 'Lora', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-color: var(--pergamin);
  /* faktura papieru czerpanego + winieta pergaminu (bez zewnętrznych obrazków) */
  background-image:
    radial-gradient(ellipse at center, rgba(243, 234, 216, 0) 52%, rgba(140, 98, 40, .20) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .30 0 0 0 0 .16 .55 0 0 0 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed, scroll;
}

::selection { background: var(--burgund); color: var(--pergamin); }

/* ---------- Typografia ---------- */
.font-szyld { font-family: 'Cinzel Decorative', 'Cinzel', serif; }
.font-cinzel { font-family: 'Cinzel', serif; }
.font-ksiega { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-lora { font-family: 'Lora', Georgia, serif; }

.tytul-sekcji {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  color: var(--burgund);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  text-wrap: balance;
}
.podtytul {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--atrament-miekki);
}
.kapitaliki {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--zloto);
  font-weight: 700;
}

/* ---------- Ozdobny inicjał (drop-cap) ---------- */
.inicjal::first-letter {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  float: left;
  font-size: 4.4em;
  line-height: .82;
  font-weight: 700;
  padding: .14em .16em .08em;
  margin: .08em .16em 0 0;
  color: var(--burgund);
  background: var(--pergamin-ciemny);
  border: 3px double var(--zloto);
  text-shadow: 2px 2px 0 rgba(166, 124, 55, .55);
}

/* ---------- Rama renesansowa z narożnikami ---------- */
.rama {
  position: relative;
  background-color: var(--pergamin-ciemny);
  border: 3px double var(--zloto);
  box-shadow:
    0 0 0 6px var(--pergamin),
    0 0 0 7px rgba(166, 124, 55, .65),
    0 22px 40px -26px rgba(31, 23, 18, .55);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg%3E%3Cg fill='none' stroke='%23A67C37'%3E%3Cpath d='M3 41V10a7 7 0 0 1 7-7h31' stroke-width='2'/%3E%3Cpath d='M9 41V15a6 6 0 0 1 6-6h26' stroke-width='1'/%3E%3C/g%3E%3Cpath d='M10 10l8 3-5 5z' fill='%235C1A1B'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%23A67C37'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='matrix(-1 0 0 1 44 0)'%3E%3Cg fill='none' stroke='%23A67C37'%3E%3Cpath d='M3 41V10a7 7 0 0 1 7-7h31' stroke-width='2'/%3E%3Cpath d='M9 41V15a6 6 0 0 1 6-6h26' stroke-width='1'/%3E%3C/g%3E%3Cpath d='M10 10l8 3-5 5z' fill='%235C1A1B'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%23A67C37'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='matrix(1 0 0 -1 0 44)'%3E%3Cg fill='none' stroke='%23A67C37'%3E%3Cpath d='M3 41V10a7 7 0 0 1 7-7h31' stroke-width='2'/%3E%3Cpath d='M9 41V15a6 6 0 0 1 6-6h26' stroke-width='1'/%3E%3C/g%3E%3Cpath d='M10 10l8 3-5 5z' fill='%235C1A1B'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%23A67C37'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg transform='matrix(-1 0 0 -1 44 44)'%3E%3Cg fill='none' stroke='%23A67C37'%3E%3Cpath d='M3 41V10a7 7 0 0 1 7-7h31' stroke-width='2'/%3E%3Cpath d='M9 41V15a6 6 0 0 1 6-6h26' stroke-width='1'/%3E%3C/g%3E%3Cpath d='M10 10l8 3-5 5z' fill='%235C1A1B'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%23A67C37'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top 6px left 6px, top 6px right 6px, bottom 6px left 6px, bottom 6px right 6px;
}
.rama-jasna { background-color: var(--pergamin); box-shadow: 0 0 0 6px var(--pergamin-ciemny), 0 0 0 7px rgba(166, 124, 55, .65), 0 22px 40px -26px rgba(31, 23, 18, .55); }
.rama-burgund {
  background-color: var(--burgund);
  color: var(--pergamin);
  border-color: var(--zloto-jasne);
  box-shadow: 0 0 0 6px var(--pergamin), 0 0 0 7px var(--burgund), 0 26px 50px -26px rgba(31, 23, 18, .7);
}

/* ---------- Separator z koroną ---------- */
.ornament { display: flex; align-items: center; gap: 1rem; color: var(--zloto); }
.ornament > span { flex: 1; height: 7px; border-top: 1px solid var(--zloto); border-bottom: 1px solid var(--zloto); }
.ornament svg { flex-shrink: 0; }

/* ---------- Przyciski ---------- */
.btn-krolewski, .btn-pergamin {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: 'Cinzel', serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--zloto);
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-krolewski { background: var(--burgund); color: var(--pergamin); box-shadow: inset 0 0 0 3px var(--burgund), inset 0 0 0 4px rgba(201, 162, 94, .85); }
.btn-krolewski:hover { background: var(--burgund-ciemny); transform: translateY(-2px); box-shadow: inset 0 0 0 3px var(--burgund-ciemny), inset 0 0 0 4px var(--zloto-jasne), 0 12px 24px -14px rgba(31, 23, 18, .8); }
.btn-pergamin { background: var(--pergamin); color: var(--burgund); box-shadow: inset 0 0 0 3px var(--pergamin), inset 0 0 0 4px rgba(166, 124, 55, .7); }
.btn-pergamin:hover { background: var(--pergamin-ciemny); transform: translateY(-2px); }
.btn-krolewski:focus-visible, .btn-pergamin:focus-visible, a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--burgund); outline-offset: 3px; }

/* ---------- Nawigacja ---------- */
.naglowek { background: rgba(243, 234, 216, .96); border-bottom: 3px double var(--zloto); backdrop-filter: blur(6px); }
.nav-link {
  font-family: 'Cinzel', serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .74rem; color: var(--atrament);
  padding: .35rem 0; border-bottom: 3px double transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover { color: var(--burgund); border-bottom-color: rgba(166, 124, 55, .6); }
.nav-link[aria-current="page"] { color: var(--burgund); border-bottom-color: var(--zloto); }
.nav-sep { color: var(--zloto); font-size: .6rem; }
.mobile-link[aria-current="page"] { background: var(--burgund); color: var(--pergamin); }

/* ---------- Karta dań ---------- */
.karta-dan {
  position: relative;
  background:
    linear-gradient(90deg, rgba(31, 23, 18, 0) 48.5%, rgba(31, 23, 18, .10) 50%, rgba(31, 23, 18, 0) 51.5%),
    var(--pergamin-ciemny);
}
@media (max-width: 1023px) { .karta-dan { background: var(--pergamin-ciemny); } }
.potrawa { display: flex; align-items: baseline; gap: .5rem; }
.potrawa .nazwa { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 1.28rem; color: var(--atrament); line-height: 1.25; }
.potrawa .gramatura { font-family: 'Lora', serif; font-style: italic; font-size: .82rem; color: var(--atrament-miekki); white-space: nowrap; }
.potrawa .kropki { flex: 1 1 1.5rem; min-width: 1.25rem; border-bottom: 2px dotted rgba(31, 23, 18, .5); transform: translateY(-.28em); }
.potrawa .cena { font-family: 'Lora', serif; font-weight: 700; color: var(--burgund); white-space: nowrap; }
.opis-potrawy { font-size: .9rem; color: var(--atrament-miekki); font-style: italic; margin-top: .15rem; }
.kategoria-dan.is-hidden { display: none; }
.filtr {
  font-family: 'Cinzel', serif; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  padding: .7rem 1.1rem; border: 1px solid var(--zloto); background: var(--pergamin); color: var(--atrament);
  transition: background-color .2s ease, color .2s ease;
}
.filtr:hover { background: var(--pergamin-ciemny); }
.filtr[aria-pressed="true"] { background: var(--burgund); color: var(--pergamin); box-shadow: inset 0 0 0 3px var(--burgund), inset 0 0 0 4px var(--zloto-jasne); }

/* ---------- Oprawione zdjęcia ---------- */
.oprawa { background: var(--pergamin-ciemny); border: 3px double var(--zloto); padding: 10px; box-shadow: 0 18px 34px -22px rgba(31, 23, 18, .7); }
.oprawa img { display: block; width: 100%; filter: sepia(.14) saturate(.95) contrast(1.02); }
.podpis { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; color: var(--atrament-miekki); }
.galeria-item.is-hidden { display: none; }

/* ---------- Kronika ---------- */
.wpis-kroniki { border-left: 3px double var(--zloto); }
.pieczec {
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, #7A2526, var(--burgund) 60%, var(--burgund-ciemny));
  color: var(--pergamin); font-family: 'Cinzel', serif; font-weight: 700; text-align: center; line-height: 1;
  box-shadow: 0 0 0 3px var(--pergamin), 0 0 0 4px var(--zloto), 0 8px 16px -8px rgba(31, 23, 18, .8);
}

/* ---------- Formularz ---------- */
.pole {
  width: 100%; background: var(--pergamin); color: var(--atrament);
  border: 1px solid rgba(166, 124, 55, .75); border-bottom-width: 2px;
  padding: .85rem 1rem; font-family: 'Lora', serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pole::placeholder { color: rgba(74, 59, 46, .55); font-style: italic; }
.pole:focus { outline: none; border-color: var(--burgund); box-shadow: 0 0 0 3px rgba(92, 26, 27, .15); }
.pole.blad { border-color: #9B1C1C; box-shadow: 0 0 0 3px rgba(155, 28, 28, .15); }
.etykieta { font-family: 'Cinzel', serif; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--atrament); }

/* ---------- Stopka ---------- */
.stopka { background: var(--burgund); color: var(--pergamin-ciemny); border-top: 3px double var(--zloto-jasne); }
.stopka a:hover { color: #fff; }

body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-krolewski, .btn-pergamin { transition: none; }
}
