/* Hallmark · shape: Feature Stack · genre: editorial · theme: Werkstatt (deal 1/3, seed polish-education-school-warsaw-272f·0fde2731·2026-10-29·r0) · job: book · draw: 5169fc
 * hero: Index · nav: slab (swap from floating pill: Werkstatt is square, zero radius) · footer: index columns · imagery: photographs · signature: three shops as the hero index · werkstatt: putty
 * axes: mid/geometric-sans/cool · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, Index of Tekst/Obraz/Kod instead of a generic AI hero */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 4.5rem;
}

html { font-synthesis: none; }
body { font-weight: 400; }
.skip {
  position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-tooltip);
  padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper);
  transform: translateY(-120%);
}
.skip:focus { transform: none; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
small, figcaption, th, nav, label, .btn, .tag, .meta, .foot a, .cookie, .credits, .fill, .hero-index span:not(.cell) {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-transform: none;
}

.slab {
  background: var(--color-paper);
  border-bottom: var(--rule-bar) solid var(--color-ink);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
}
.slab__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: var(--nav-h);
  gap: var(--space-md);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-title);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  text-decoration: none;
  justify-self: start;
}
.slab__links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
}
.slab__links a { text-decoration: none; }
.slab__links a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.slab__action { justify-self: end; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: 0 var(--space-lg);
  border: var(--rule-bar) solid var(--color-ink);
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  font: 600 var(--text-sm)/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); color: var(--color-paper); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
a { text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }

.hero--index {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  align-items: center;
  padding-block: var(--space-2xl);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-3xl);
  align-items: center;
}
.hero h1 { max-width: 12ch; }
.hero-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule-box) solid var(--color-ink);
}
.hero-index a {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
  min-height: 5.5rem;
  padding-block: var(--space-md);
  border-bottom: var(--rule-box) solid var(--color-ink);
  text-decoration: none;
}
.hero-index a:hover { background: var(--color-paper-3); }
.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}
.cell--blue { background: var(--color-accent); }
.cell--red { background: var(--color-accent-2-deep); }
.cell--yellow { background: var(--color-accent-3); color: var(--color-ink); }

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: var(--section-gap-s); }
.section--paper { background: var(--color-paper-2); }
.section--ink { background: var(--color-ink); color: var(--color-paper); }
.section--ink .btn--primary { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); }
.section--ink .btn { border-color: var(--color-paper); color: var(--color-paper); }
.section--ink .btn:hover { background: var(--color-ink-2); }
.section--ink .btn--primary:hover { background: var(--color-paper-3); color: var(--color-ink); }
.opens { margin-bottom: var(--space-2xl); }
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap-columns);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--rule-box) solid var(--color-ink);
}
.times a {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-xl);
  text-decoration: none;
  border-inline-end: var(--rule-hair) solid var(--color-ink);
  min-height: 8rem;
}
.times a:last-child { border-inline-end: 0; }
.times a:hover { background: var(--color-paper-3); }
.times strong {
  font-family: var(--font-display);
  font-size: var(--text-title);
  text-transform: uppercase;
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap-columns);
}
.stack__pin {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-lg));
  align-self: start;
}
.shop {
  padding-block: var(--space-2xl);
  border-top: var(--rule-bar) solid var(--color-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}
.shop--blue { border-top-color: var(--color-accent); }
.shop--red { border-top-color: var(--color-accent-2-deep); }
.shop--yellow { border-top-color: var(--color-accent-3); }
.shop h3 { font-size: var(--text-section); }
.shop p { max-width: 45ch; }

.photo {
  margin: 0;
  border: var(--rule-bar) solid var(--color-ink);
  border-radius: 0;
}
.photo--hero-none { min-height: 0; }
.photo--bleed {
  aspect-ratio: 21 / 9;
  min-height: 28rem;
  border-inline: 0;
  border-block: var(--rule-bar) solid var(--color-ink);
}
.photo--shop {
  aspect-ratio: 16 / 9;
  min-height: 16rem;
}
.caption {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: var(--rule-bar) solid var(--color-ink);
}
.facts dt, .facts dd {
  margin: 0;
  padding: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.facts dt { font-weight: 600; font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { font-weight: 600; }

.fill {
  padding: 0 0.25em;
  border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent);
  color: var(--color-muted);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.form {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap-columns);
  align-items: start;
}
.sheet {
  display: grid;
  gap: var(--space-md);
  border: var(--rule-box) solid var(--color-ink);
  padding: var(--space-xl);
  background: var(--color-paper-3);
}
.sheet label { display: grid; gap: var(--space-2xs); }
.sheet input, .sheet textarea, .sheet select {
  min-height: 48px;
  padding: 0 var(--space-md);
  border: var(--rule-bar) solid var(--color-ink);
  border-radius: 0;
  background: var(--color-paper);
  color: var(--color-ink);
}
.sheet textarea { min-height: 8rem; padding: var(--space-md); resize: vertical; }
.sheet input:focus-visible, .sheet textarea:focus-visible, .sheet select:focus-visible {
  outline: 2px solid var(--color-focus); outline-offset: 2px;
}
.sheet input[aria-invalid], .sheet textarea[aria-invalid] { border-color: var(--color-error); }
.help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }

.doc { padding-block: var(--section-gap-s) var(--section-gap); }
.doc h1 { margin-bottom: var(--space-lg); }
.doc h2 { margin-top: var(--space-3xl); margin-bottom: var(--space-md); }
.doc p { margin-bottom: var(--space-md); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-xl);
}
.legal-table th, .legal-table td {
  text-align: start;
  padding: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: top;
}
.legal-table th {
  border-top: var(--rule-bar) solid var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  text-transform: none;
  letter-spacing: 0;
}

.faq {
  border-top: var(--rule-bar) solid var(--color-ink);
}
.faq details {
  border-bottom: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-lg);
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-title);
  text-transform: uppercase;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq details p { margin-top: var(--space-md); }

.track-page .cell { width: fit-content; margin-bottom: var(--space-md); }

.foot {
  border-top: var(--rule-box) solid var(--color-ink);
  padding-block: var(--space-3xl);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: var(--gap-columns);
}
.foot__mark {
  font-family: var(--font-display);
  font-size: var(--text-section);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--space-md);
}
.foot h2 { font-size: var(--text-sm); font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--color-muted); margin-bottom: var(--space-sm); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.credits { margin-top: var(--space-2xl); font-size: var(--text-xs); color: var(--color-muted); max-width: none; }
.credits a { color: inherit; }

.cookie {
  position: fixed;
  inset-inline-end: var(--space-lg);
  bottom: var(--space-lg);
  z-index: var(--z-toast);
  width: min(24rem, calc(100% - var(--space-2xl)));
  background: var(--color-paper);
  color: var(--color-ink);
  border: var(--rule-box) solid var(--color-ink);
  padding: var(--space-lg);
}
.cookie h2 {
  font-size: var(--text-title);
  margin-bottom: var(--space-sm);
  max-width: none;
}
.cookie p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  text-transform: none;
  margin-bottom: var(--space-md);
  max-width: none;
}
.cookie__row { display: flex; justify-content: flex-end; gap: var(--space-sm); flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

@media (max-width: 60rem) {
  .slab__inner, .hero__grid, .stack, .form, .foot__grid, .facts, .split-head, .times {
    grid-template-columns: minmax(0, 1fr);
  }
  .slab__links { justify-content: start; grid-column: 1 / -1; }
  .stack__pin { position: static; }
  .times a { border-inline-end: 0; border-bottom: var(--rule-hair) solid var(--color-ink); }
  .hero--index { min-height: 0; }
  .photo--bleed { min-height: 0; aspect-ratio: 4 / 3; }
}
