/* Kierocie - landing page. Palette and type follow the printed menu: paper, ink, wheat, and the barn-door red
   from the farmhouse, used only for the call to action. Drawings come from the menu and blend into the paper. */

:root {
  --paper: #f3ede9;       /* exact background of the menu drawings */
  --paper-deep: #e9e1d6;
  --ink: #231f1c;
  --muted: #5c5045;
  --wheat: #c9b38f;
  --brush: #e6dccb;
  --accent: #8e2b20;      /* red doors of the farmhouse */
  --accent-hover: #74221a;
  --serif: 'Palatino Linotype', 'Book Antiqua', Palatino, 'Times New Roman', Times, serif; /* lining figures */
  --sans: Arial, Helvetica, sans-serif;
  --gutter: 16px;
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Section heading with the brush highlight, like "PIECZYWO" in the menu */
.heading {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 24px;
  font-size: 22px; font-weight: normal; letter-spacing: 4px; text-transform: uppercase; text-align: center;
}
.heading::before, .heading::after { content: ""; flex: 1; border-top: 1px solid var(--ink); }
.heading span {
  background: var(--brush);
  padding: 4px 18px;
  border-radius: 2px 6px 3px 7px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff8f0;
  text-decoration: none;
  font: bold 16px/1 var(--sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 4px;
  box-shadow: 0 2px 0 var(--accent-hover);
  transition: background .15s ease, transform .15s ease;
}
.button:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end center;
  padding: 0 var(--gutter) 48px;
  overflow: hidden;
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.hero::after { /* soft vignette so the card reads on the photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(35, 31, 28, 0) 40%, rgba(35, 31, 28, .45));
}
.hero__card {
  position: relative; z-index: 1;
  width: min(100%, 440px);
  background: var(--paper);
  border: 1px solid var(--wheat);
  outline: 6px solid rgba(243, 237, 233, .55);
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.hero__logo { width: 240px; margin: 0 auto 10px; }
.hero__lead { margin: 0 0 18px; font-size: 19px; line-height: 1.45; }
.hero__note { margin: 14px 0 0; font: 13px/1.4 var(--sans); color: var(--muted); }

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 24px;
}

.about { text-align: center; }
.about__bread { width: min(100%, 460px); margin: 0 auto 18px; }
.about__text { margin: 0 auto 18px; max-width: 600px; }
.about__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-style: italic; color: var(--muted);
}
.about__list li::before { content: "✦ "; color: var(--wheat); font-style: normal; }

/* ---------- Menu (mirrors the printed card) ---------- */

.menu .heading { margin-top: 12px; }
.menu__list { list-style: none; margin: 0 0 40px; padding: 0; }
.menu__item {
  display: grid;
  grid-template-columns: 44px auto 1fr auto 76px;
  align-items: center;
  column-gap: 12px;
  padding: 8px 0;
}
.menu__list--pastry .menu__item { grid-template-columns: 84px auto 1fr auto 76px; }
.menu__icon { width: 100%; max-height: 54px; object-fit: contain; }
.menu__name { text-transform: uppercase; letter-spacing: 1px; font-size: 19px; }
.menu__dots { border-bottom: 2px dotted var(--ink); opacity: .55; transform: translateY(6px); min-width: 16px; }
.menu__weight { color: var(--muted); font-size: 17px; white-space: nowrap; }
.menu__price {
  border-left: 1px solid var(--ink);
  text-align: right;
  font-size: 26px; font-weight: bold; white-space: nowrap;
}
.menu__note {
  text-align: center; margin: 0 auto 22px; max-width: 520px;
  font-style: italic; color: var(--muted);
}

/* ---------- Steps ---------- */

.steps__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.steps__list li {
  background: #faf6f1;
  border: 1px solid var(--wheat);
  border-radius: 4px;
  padding: 20px 18px 16px;
  text-align: center;
}
.steps__number {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--ink);
  font-size: 22px;
}
.steps__list h3 { margin: 10px 0 6px; font-size: 19px; letter-spacing: 1px; text-transform: uppercase; font-weight: normal; }
.steps__list p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- Yard photo ---------- */

.yard { max-width: 1000px; margin: 64px auto 0; padding: 0 var(--gutter); }
.yard img { width: 100%; border: 8px solid #faf6f1; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.yard figcaption { text-align: center; margin-top: 10px; font-style: italic; color: var(--muted); font-size: 16px; }

/* ---------- Text pages (zasady.html) ---------- */

.page-header { text-align: center; padding: 28px var(--gutter) 0; }
.page-header__logo { width: 200px; margin: 0 auto; }
.prose section { margin-bottom: 48px; scroll-margin-top: 16px; }
.prose p, .prose li { font-size: 17px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.toc { text-align: center; font: 14px/2 var(--sans); margin-bottom: 40px; }
.placeholder { background: #fff3cd; border: 1px dashed #b58900; padding: 12px 14px; font-family: var(--sans); }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.composition { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.composition th, .composition td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--wheat); }
.composition th { font: bold 12px var(--sans); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.composition td:first-child { white-space: nowrap; font-weight: bold; }

/* ---------- Footer ---------- */

.footer { text-align: center; padding: 48px var(--gutter) 96px; }
.footer__ornament { width: min(100%, 360px); margin: 0 auto 24px; }
.footer__contact { font-style: normal; margin: 28px 0 10px; line-height: 1.7; }
.footer__social a { font: bold 14px var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.footer__small { font: 13px var(--sans); color: var(--muted); }

/* Mobile-only sticky order button: appears once the hero button has scrolled away (see script in index.html) */
.sticky-cta {
  display: none;
  transform: translateY(150%);
  transition: transform .2s ease;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
  background: var(--accent); color: #fff8f0; text-align: center; text-decoration: none;
  font: bold 16px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase;
  padding: 16px; border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { min-height: 88vh; padding-bottom: 28px; }
  .hero__logo { width: 200px; }
  .hero__lead { font-size: 17px; }
  .heading { font-size: 18px; letter-spacing: 3px; gap: 10px; }
  .menu__item, .menu__list--pastry .menu__item {
    grid-template-columns: 34px 1fr auto;
    grid-template-areas: "icon name price" "icon weight price";
    row-gap: 0;
  }
  .menu__list--pastry .menu__item { grid-template-columns: 58px 1fr auto; }
  .menu__icon { grid-area: icon; }
  .menu__name { grid-area: name; font-size: 16px; }
  .menu__weight { grid-area: weight; font-size: 14px; }
  .menu__dots { display: none; }
  .menu__price { grid-area: price; font-size: 22px; padding-left: 10px; }
  .steps__list { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .sticky-cta.is-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
