/* Identyfikacja Pana Churro: tokeny i komponenty wspólne dla stron, PDF i grafik.
   Źródło zasad: IDENTYFIKACJA.md. Jeden jasny motyw marki (świadomie bez trybu ciemnego).
   Fonty ładuje strona w sekcji head:
   https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,800&family=Caveat:wght@600;700&display=swap */

:root {
  color-scheme: light;
  /* kolory marki */
  --choc: #4A2414;        /* czekolada: tekst, ciemne tła */
  --gold: #F2B24C;        /* złoto churrosa: przycisk główny, akcenty na ciemnym */
  --cream: #FFF4DF;       /* krem: tło podstawowe */
  --cream-2: #F6E3BE;     /* krem ciemniejszy: tło sekcji naprzemiennych */
  --paper: #FFFBF3;       /* papier: karty, kartki ściągi */
  --teal: #1F8F87;        /* turkus azulejo: wzór, duże elementy */
  --teal-2: #2BA39A;      /* turkus jasny: rysunek kafla */
  --teal-dk: #16716A;     /* turkus ciemny: mały tekst na kremie */
  --red: #D7263D;         /* czerwień chusty: ¡ ¿, pieczęcie, akcent sylaby */
  --red-dk: #B81E33;      /* czerwień ciemna: linki i mały tekst */
  --ink: #1E1B2E;         /* granat beretu: kontur postaci, cienie naklejek */
  --sugar: #FFFFFF;       /* cukier: kryształki, obwódki naklejek */
  --muted: #7A5A47;       /* czekolada rozbielona: podpisy, przypisy */
  --line: rgba(74, 36, 20, .16);

  /* typografia */
  --f-display: "Bricolage Grotesque", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --t-hero: clamp(2.35rem, 1.5rem + 3.6vw, 4.1rem);
  --t-h2: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
  --t-h3: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;

  /* kształt */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --shadow-hard: 0 6px 0 var(--choc);
  --shadow-soft: 0 18px 40px -18px rgba(74, 36, 20, .45);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;

  /* wzory (SVG w CSS) */
  --tile-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Crect width='180' height='180' fill='%231F8F87'/%3E%3Cg fill='%232BA39A'%3E%3Ccircle cx='90' cy='52' r='26'/%3E%3Ccircle cx='90' cy='128' r='26'/%3E%3Ccircle cx='52' cy='90' r='26'/%3E%3Ccircle cx='128' cy='90' r='26'/%3E%3C/g%3E%3Ccircle cx='90' cy='90' r='14' fill='%231F8F87'/%3E%3Ccircle cx='90' cy='90' r='7' fill='%232BA39A'/%3E%3Cg fill='%232BA39A' fill-opacity='.7'%3E%3Cpath d='M0 0h22L0 22z'/%3E%3Cpath d='M180 0v22L158 0z'/%3E%3Cpath d='M0 180v-22l22 22z'/%3E%3Cpath d='M180 180h-22l22-22z'/%3E%3C/g%3E%3Crect x='1' y='1' width='178' height='178' fill='none' stroke='%232BA39A' stroke-opacity='.5' stroke-width='2'/%3E%3C/svg%3E");
  --tile-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%234A2414' fill-opacity='.045'%3E%3Ccircle cx='90' cy='52' r='26'/%3E%3Ccircle cx='90' cy='128' r='26'/%3E%3Ccircle cx='52' cy='90' r='26'/%3E%3Ccircle cx='128' cy='90' r='26'/%3E%3Cpath d='M0 0h22L0 22z'/%3E%3Cpath d='M180 0v22L158 0z'/%3E%3Cpath d='M0 180v-22l22 22z'/%3E%3Cpath d='M180 180h-22l22-22z'/%3E%3C/g%3E%3C/svg%3E");
  --sugar-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23FFFFFF'%3E%3Crect x='12' y='18' width='7' height='7' transform='rotate(18 15 21)'/%3E%3Crect x='74' y='9' width='6' height='6' transform='rotate(-24 77 12)'/%3E%3Crect x='112' y='40' width='8' height='8' transform='rotate(35 116 44)'/%3E%3Crect x='40' y='60' width='6' height='6' transform='rotate(-12 43 63)'/%3E%3Crect x='96' y='88' width='7' height='7' transform='rotate(22 99 91)'/%3E%3Crect x='20' y='104' width='8' height='8' transform='rotate(-30 24 108)'/%3E%3Crect x='62' y='118' width='5' height='5' transform='rotate(40 64 120)'/%3E%3C/g%3E%3C/svg%3E");
  /* przekrój churrosa (gwiazdka ze szprycy): pieczęcie i punktory */
  --nozzle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='37'/%3E%3Cg%3E%3Ccircle cx='50' cy='13' r='11'/%3E%3Ccircle cx='76.2' cy='23.8' r='11'/%3E%3Ccircle cx='87' cy='50' r='11'/%3E%3Ccircle cx='76.2' cy='76.2' r='11'/%3E%3Ccircle cx='50' cy='87' r='11'/%3E%3Ccircle cx='23.8' cy='76.2' r='11'/%3E%3Ccircle cx='13' cy='50' r='11'/%3E%3Ccircle cx='23.8' cy='23.8' r='11'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font-family: var(--f-text);
  font-size: var(--t-body);
  font-variation-settings: "opsz" 14;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--red-dk); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-variation-settings: "opsz" 72; }
p { margin: 0; text-wrap: pretty; }

/* Hiszpańska interpunkcja odwrócona zawsze w czerwieni chusty */
.es-mark { color: var(--red); }

/* Logo: sygnet (głowa w kole azulejo) i znak słowny z wąsem */
.sygnet {
  --s: 56px;
  width: var(--s); height: var(--s); flex: none;
  border-radius: 50%;
  background: var(--tile-teal) center / calc(var(--s) * .9);
  border: calc(var(--s) * .06) solid var(--sugar);
  box-shadow: 0 0 0 calc(var(--s) * .03) var(--ink);
  overflow: hidden; position: relative;
}
.sygnet img { position: absolute; width: 104%; left: -2%; top: 6%; }
.logo { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; color: var(--choc); }
.wordmark { display: inline-grid; justify-items: center; line-height: .9; font-family: var(--f-display); }
.wordmark .pan { font-weight: 800; font-size: .36em; letter-spacing: .32em; margin-right: -.32em; color: var(--red); }
.wordmark .churro { font-weight: 800; font-size: 1em; letter-spacing: -.03em; font-variation-settings: "opsz" 96; }
.wordmark svg { width: 2.2em; height: auto; margin-top: .08em; }
.logo--on-dark { color: var(--cream); }
.logo--on-dark .wordmark .pan { color: var(--gold); }

/* Przyciski */
.btn {
  --bg: var(--gold); --fg: var(--choc); --edge: var(--choc);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 56px; padding: .8em 1.6em;
  font: 800 1.125rem/1.1 var(--f-display); letter-spacing: -.005em;
  color: var(--fg); background: var(--bg);
  border: 3px solid var(--edge); border-radius: var(--r-m);
  box-shadow: 0 6px 0 var(--edge);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--edge); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--edge); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.btn--dark { --bg: var(--gold); --fg: var(--choc); --edge: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--choc); box-shadow: none; }
.btn--ghost:hover { transform: none; box-shadow: none; background: rgba(74, 36, 20, .06); }
.btn--small { min-height: 44px; padding: .55em 1.1em; font-size: 1rem; box-shadow: 0 4px 0 var(--edge); }
.btn--small:hover { box-shadow: 0 2px 0 var(--edge); }

/* Etykieta nad nagłówkiem */
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .38em .85em; border-radius: 999px;
  background: var(--red); color: var(--sugar);
  font: 800 .8125rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
}
.chip--teal { background: var(--teal-dk); }

/* Pieczęć w kształcie przekroju churrosa */
.seal {
  --s: 112px; --bg: var(--red); --fg: var(--sugar);
  width: var(--s); height: var(--s); flex: none;
  display: grid; place-items: center; text-align: center;
  color: var(--fg); position: relative; isolation: isolate;
  font: 800 calc(var(--s) * .2)/1 var(--f-display); letter-spacing: -.01em;
}
.seal::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg);
  -webkit-mask: var(--nozzle) center / contain no-repeat; mask: var(--nozzle) center / contain no-repeat;
}
.seal small { display: block; font-size: .5em; letter-spacing: .1em; text-transform: uppercase; margin-top: .25em; }

/* Lista z punktorem w kształcie churrosa */
.list-nozzle { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.list-nozzle li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; }
.list-nozzle li::before {
  content: ""; width: 22px; height: 22px; margin-top: .15em; background: var(--gold);
  -webkit-mask: var(--nozzle) center / contain no-repeat; mask: var(--nozzle) center / contain no-repeat;
}
.list-nozzle--red li::before { background: var(--red); }

/* Naklejka: biała obwódka jak w okładkach rolek */
.sticker { border: 6px solid var(--sugar); box-shadow: 0 0 0 2px var(--ink), var(--shadow-soft); }

/* Dymek Pana Churro */
.bubble {
  position: relative; display: inline-block; max-width: 17rem;
  padding: .7rem 1rem .8rem; border-radius: 18px;
  background: var(--sugar); color: var(--choc);
  border: 2px solid var(--ink);
  font: 700 1.5rem/1.05 var(--f-hand);
  box-shadow: 0 5px 0 var(--ink);
}
.bubble::after {
  content: ""; position: absolute; width: 18px; height: 18px; background: var(--sugar);
  border: 2px solid var(--ink); border-top: 0; border-left: 0;
  bottom: -11px; right: 28px; transform: rotate(45deg);
}

/* Karta zwrotu: podstawowy komponent ściągi */
.phrase {
  background: var(--paper); border-radius: var(--r-m);
  border: 2px solid var(--choc); box-shadow: var(--shadow-hard);
  padding: 1.1rem 1.25rem 1.2rem; display: grid; gap: .45rem;
}
.phrase__pl { font-size: .9375rem; color: var(--muted); font-weight: 500; }
.phrase__es { font: 800 1.6rem/1.08 var(--f-display); letter-spacing: -.015em; color: var(--choc); font-variation-settings: "opsz" 48; }
.phrase__say {
  justify-self: start; display: inline-flex; align-items: center; gap: .5em;
  padding: .3em .7em .32em; border-radius: var(--r-s);
  background: var(--cream-2); color: var(--choc);
  font: 600 1rem/1.2 var(--f-text); letter-spacing: .01em;
}
.phrase__say::before {
  content: ""; width: 1.05em; height: 1.05em; flex: none; background: var(--teal-dk);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.8 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.8 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* sylaba akcentowana: wielkie litery i czerwone podkreślenie */
.phrase__say b, .stress { font-weight: 800; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.phrase__note { font: 700 1.35rem/1.1 var(--f-hand); color: var(--teal-dk); }

/* Formularz zapisu (zasada 14a: stałe etykiety, Imię i E-mail wymagane, telefon opcjonalny) */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 700 .9375rem/1.2 var(--f-display); color: var(--choc); }
.field input {
  width: 100%; min-height: 52px; padding: .7rem .9rem;
  font: 500 1.0625rem/1.2 var(--f-text); color: var(--choc);
  background: var(--sugar); border: 2px solid var(--choc); border-radius: var(--r-s);
}
.field input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.field input:user-invalid { border-color: var(--red); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: .65rem; align-items: start; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: .1em 0 0; accent-color: var(--red); }
.required-note { font-size: .8125rem; color: var(--muted); }

/* Wzory jako tła */
.bg-tiles { background: var(--teal) var(--tile-teal) center / 160px; }
.bg-cream-tiles { background: var(--cream) var(--tile-cream) center / 160px; }
.bg-sugar { background: var(--gold) var(--sugar-dots) 0 0 / 140px; }

/* Układ */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
