/* Art Time — content pages, classic theatre layout: a title band, then the text column beside a sidebar.
   Tokens, body, header, footer, buttons and the group offer live in shared.css. */
.ct-main {
  display: block;
  /* A calmer scale for reading pages: title 52 / section 34 / sub 23 / text 18 at desktop. */
  --ct-title: clamp(34px, 2vw + 22px, 52px);
  --at-fs-heading: clamp(26px, 1vw + 19px, 34px);
  --ct-text: 18px;
  --ct-gap: clamp(48px, 4.5vw, 72px);
}
.ct-main *, .ct-main *::before, .ct-main *::after { box-sizing: border-box; }
.ct-main img { display: block; max-width: 100%; height: auto; }
.ct-main figure { margin: 0; }
:where(.ct-main) :is(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; }
.ct-wrap { width: var(--at-wrap); margin-inline: auto; }
.ct-section { padding-block: var(--at-section); }
.ct-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:where(.ct-main) h2 { margin-bottom: .6em; font: 700 var(--at-fs-heading)/1.12 var(--at-serif); letter-spacing: -.015em; text-wrap: balance; }
:where(.ct-main) h3 { font: 700 var(--at-fs-lead)/1.25 var(--at-serif); }

/* Links: secondary actions are words with a gold underline. */
.ct-link {
  display: inline-flex; align-items: center; gap: 8px; color: inherit;
  font: 700 var(--at-fs-small)/1.3 var(--at-sans); text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: var(--at-gold); text-underline-offset: 6px;
  transition: text-decoration-color .2s var(--at-ease), color .2s var(--at-ease);
}
.ct-link:hover { text-decoration-color: currentColor; }
.ct-link .ct-icon { transition: transform .2s var(--at-ease); }
.ct-link:hover .ct-icon { transform: translateX(3px); }
.ct-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 28px; }
.ct-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.ct-heading-row h2 { margin: 0; }

/* Title band: the page's name on the flyer brown, with the path to it. */
.ct-band-title { padding: 40px 0 52px; background: var(--at-brown); color: var(--at-on-night); }
.ct-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--at-fs-small); color: var(--at-on-night-2); }
.ct-crumbs a { color: inherit; text-decoration: none; }
.ct-crumbs a:hover { color: var(--at-on-night); text-decoration: underline; text-underline-offset: 4px; }
.ct-crumbs [aria-current] { color: var(--at-on-night); }
.ct-band-title h1 { max-width: 22ch; margin-top: 20px; font: 700 var(--ct-title)/1.08 var(--at-serif); letter-spacing: -.02em; text-wrap: balance; }
.ct-band-lead { max-width: 60ch; margin-top: 16px !important; font: 400 var(--at-fs-lead)/1.5 var(--at-sans); color: var(--at-on-night); }
.ct-band-title .ct-link { color: var(--at-on-night); }

/* Body: the text column (8/12) and the sidebar (4/12). */
.ct-body { padding: 64px 0 var(--at-section); }
.ct-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); gap: 64px; align-items: start; }
.ct-col > * + * { margin-top: var(--ct-gap); }
.ct-block-intro { max-width: 36em; margin-bottom: 28px !important; font-size: var(--ct-text); line-height: 1.65; }
.ct-block-note { margin-top: 28px !important; font-size: var(--ct-text); line-height: 1.65; }
.ct-block-note .ct-link { margin-left: 6px; }

/* Reading text: 18px, about seventy characters a line. */
.ct-prose { font-size: var(--ct-text); line-height: 1.7; }
.ct-prose > * + * { margin-top: 1em; }
.ct-prose p, .ct-prose li { max-width: 36em; text-wrap: pretty; }
.ct-prose h3 { margin-top: 1.6em; }
.ct-prose strong, .ct-prose b { font-weight: 600; }
.ct-prose a { color: var(--at-ink); text-decoration-color: var(--at-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ct-prose :is(ul, ol) { padding-left: 1.3em; }

/* Pictures in the column: whole, square corners, captioned. */
.ct-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ct-main figcaption { margin-top: 10px; font-size: var(--at-fs-small); color: var(--at-ink-2); }
.ct-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Sidebar widgets: champagne panels separated by space. */
.ct-side { display: grid; gap: 20px; }
.ct-widget, .ct-tickets { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--at-radius); background: var(--at-surface); font-size: var(--at-fs-body); }
.ct-widget h2, .ct-tickets h2 { margin: 0; font: 700 var(--at-fs-lead)/1.25 var(--at-serif); }
.ct-widget h3 { font-size: var(--at-fs-body); line-height: 1.35; }
.ct-widget h3 a { color: var(--at-ink); text-decoration: none; }
.ct-widget h3 a:hover { text-decoration: underline; text-decoration-color: var(--at-gold); text-underline-offset: 4px; }
.ct-widget p { line-height: 1.55; }
.ct-widget .at-button { width: 100%; margin-top: 4px; }
.ct-widget-poster img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--at-surface-2); }
.ct-widget-date strong { font-weight: 700; }
.ct-widget-meta { font-size: var(--at-fs-small); color: var(--at-ink-2); }
.ct-widget-list, .ct-widget-shows { display: grid; gap: 10px; padding: 0; list-style: none; line-height: 1.5; }
.ct-widget-list a { color: var(--at-ink); text-decoration-color: var(--at-gold); text-underline-offset: 4px; }
.ct-widget-list [aria-current] { font-weight: 700; }
.ct-widget-strong { font-weight: 700; font-variant-numeric: lining-nums; }
.ct-widget-shows li { display: grid; gap: 2px; }
.ct-widget-shows a { color: var(--at-ink); font-weight: 700; text-decoration: none; }
.ct-widget-shows a:hover { text-decoration: underline; text-decoration-color: var(--at-gold); text-underline-offset: 4px; }
.ct-widget-shows span { font-size: var(--at-fs-small); color: var(--at-ink-2); }

/* Show page: poster and story in the column, tickets first in the sidebar. */
.ct-band-show .ct-actions .at-button { min-width: 200px; }
.ct-show-poster img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--at-surface); }
.ct-tickets { gap: 18px; scroll-margin-top: calc(var(--at-header-h) + 24px); }
.ct-tickets > p { color: var(--at-ink-2); line-height: 1.55; }
.ct-days { display: grid; gap: 24px; }
.ct-day { display: grid; gap: 14px; }
.ct-day-date { display: flex; align-items: center; gap: 14px; }
.ct-day-date strong { font: 700 40px/1 var(--at-serif); color: var(--at-crimson); font-variant-numeric: lining-nums; }
.ct-day-date span { font: 700 var(--at-fs-body)/1.35 var(--at-sans); color: var(--at-ink); }
.ct-curtains { display: grid; gap: 16px; padding: 0; list-style: none; }
.ct-curtains li { display: grid; gap: 8px; }
.ct-curtains time { font: 700 var(--at-fs-body)/1.2 var(--at-sans); font-variant-numeric: tabular-nums; }
.ct-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ct-provider {
  display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--at-radius);
  background: var(--at-white); color: var(--at-ink); text-decoration: none;
  transition: background-color .2s var(--at-ease), transform .2s var(--at-ease);
}
.ct-provider strong { font: 700 var(--at-fs-body)/1.25 var(--at-sans); }
.ct-provider span { font-size: var(--at-fs-small); color: var(--at-ink-2); }
.ct-provider:hover { background: var(--at-gold); }
.ct-provider:hover span { color: var(--at-ink); }
.ct-provider:active { transform: scale(.98); }
.ct-no-events { display: grid; gap: 12px; }
.ct-no-events p { line-height: 1.55; }
.ct-no-events a { color: var(--at-ink); font-weight: 700; text-decoration-color: var(--at-gold); text-underline-offset: 5px; }
.ct-facts { display: grid; gap: 14px; }
.ct-facts dt, .ct-credits dt, .ct-cast dt, .ct-contact-dl dt { font-size: var(--at-fs-small); color: var(--at-ink-2); }
.ct-facts dd { margin-top: 2px; font-weight: 700; line-height: 1.4; }
.ct-banner img { width: 100%; aspect-ratio: 2847 / 538; }

/* Credits and cast set like a printed programme: role or job above the name. */
.ct-credits, .ct-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 40px; }
.ct-credits dd { margin-top: 2px; font-weight: 600; line-height: 1.4; }
.ct-cast dd { margin-top: 2px; font: 700 var(--at-fs-lead)/1.3 var(--at-serif); }
.ct-cast dd span { display: block; }
.ct-cast a, .ct-cast-names a, .ct-actor-list a, .ct-credit h3 a {
  color: var(--at-ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-color .2s var(--at-ease);
}
.ct-cast a:hover, .ct-cast-names a:hover, .ct-actor-list a:hover, .ct-credit h3 a:hover { text-decoration-color: var(--at-gold); }
.ct-cast-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 40px; padding: 0; list-style: none; font: 700 var(--at-fs-lead)/1.3 var(--at-serif); }
.ct-cast-note { margin-top: 24px !important; font-size: var(--at-fs-small); color: var(--at-ink-2); }

/* Aktorzy: a search field, the alphabet, then names grouped by the first letter of the surname. */
.ct-finder { display: grid; gap: 16px; }
.ct-letters { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-letters a {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: var(--at-radius);
  background: var(--at-surface); color: var(--at-ink); font: 700 var(--at-fs-small)/1 var(--at-sans); text-decoration: none;
  transition: background-color .2s var(--at-ease);
}
.ct-letters a:hover { background: var(--at-gold); }
.ct-finder-empty { font-weight: 700; }
.ct-letter { scroll-margin-top: calc(var(--at-header-h) + 24px); }
.ct-letter h2 { margin-bottom: .4em; }
.ct-actor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; padding: 0; list-style: none; }
.ct-actor-list li { display: grid; gap: 2px; }
.ct-actor-list a { font: 700 var(--at-fs-lead)/1.3 var(--at-serif); }
.ct-actor-list span { font-size: var(--at-fs-small); line-height: 1.45; color: var(--at-ink-2); }
.ct-layout-actors .ct-col > .ct-letter { margin-top: 48px; }

/* An actor's page: one row per show — poster, title, role, the next date. */
.ct-credits-list { display: grid; gap: 32px; }
.ct-credit { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.ct-credit-poster img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--at-surface); }
.ct-credit-copy { display: grid; gap: 6px; justify-items: start; }
.ct-credit-role { font-weight: 700; }
.ct-credit-when { color: var(--at-ink-2); }
.ct-credit-when strong { color: var(--at-ink); }
.ct-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Posters: the artwork whole, its title, a word to act on. */
.ct-poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.ct-poster-card { display: grid; gap: 10px; align-content: start; color: var(--at-ink); text-decoration: none; }
.ct-poster-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--at-surface); transition: transform .35s var(--at-ease); }
.ct-poster-card strong { margin-top: 4px; font: 700 var(--at-fs-lead)/1.2 var(--at-serif); }
.ct-poster-card span { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--at-fs-small)/1.3 var(--at-sans); }
.ct-poster-card:hover img { transform: translateY(-4px); }
.ct-poster-card:hover strong { text-decoration: underline; text-decoration-color: var(--at-gold); text-underline-offset: 5px; }
.ct-related-section { padding-top: var(--at-section); background: var(--at-ground); }
.ct-col .ct-poster-grid .ct-poster-card strong { font-size: var(--at-fs-body); font-family: var(--at-sans); }

/* O nas */
.ct-photo-wide img { aspect-ratio: 16 / 9; }
.ct-offers { display: grid; gap: 28px; }
.ct-offer { display: grid; gap: 8px; justify-items: start; }
.ct-offer p { max-width: 36em; font-size: var(--ct-text); line-height: 1.65; }

/* Gościliśmy */
.ct-name-list { columns: 2; column-gap: 40px; padding: 0; list-style: none; }
.ct-name-list li { break-inside: avoid; padding: 7px 0; font: 600 var(--at-fs-body)/1.4 var(--at-sans); }

/* Dla grup i firm: three steps in a real, visibly numbered list. */
.ct-steps { display: grid; gap: 24px; padding: 0; list-style: none; counter-reset: ct-step; }
.ct-steps li { display: grid; gap: 6px; padding-left: 52px; position: relative; counter-increment: ct-step; }
.ct-steps li::before {
  content: counter(ct-step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%; background: var(--at-brown); color: var(--at-on-night);
  font: 700 var(--at-fs-body)/1 var(--at-sans);
}
.ct-steps p { font-size: var(--ct-text); line-height: 1.6; }

/* Kontakt */
.ct-contact-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.ct-contact-dl dd { margin-top: 4px; font-size: var(--ct-text); line-height: 1.55; font-variant-numeric: lining-nums; }
.ct-contact-dl a { color: var(--at-ink); font: 700 var(--at-fs-lead)/1.3 var(--at-serif); font-variant-numeric: lining-nums; text-decoration-color: var(--at-gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ct-faq { display: grid; gap: 8px; }
.ct-faq details { padding: 0 24px; border-radius: var(--at-radius); background: var(--at-surface); }
.ct-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 700 var(--at-fs-body)/1.4 var(--at-sans); }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: ""; width: 9px; height: 9px; flex: 0 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--at-ease); }
.ct-faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.ct-faq details p { padding-bottom: 20px; max-width: 36em; font-size: var(--ct-text); line-height: 1.65; }
.ct-faq a { color: var(--at-ink); }

/* Forms: fields are the only lines on the page. */
.ct-form { display: grid; gap: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--at-radius); background: var(--at-surface); }
.ct-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.ct-field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 6px; font: 700 var(--at-fs-small)/1.3 var(--at-sans); }
.ct-field em { font-style: normal; color: var(--at-crimson); }
.ct-field small { font-size: var(--at-fs-small); font-weight: 400; color: var(--at-ink-2); }
.ct-field-wide { grid-column: 1 / -1; }
.ct-field input, .ct-field select, .ct-field textarea {
  flex: 1 0 100%; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #8a7f73; border-radius: var(--at-radius);
  background: var(--at-white); color: var(--at-ink); font: 400 var(--at-fs-body)/1.4 var(--at-sans);
}
.ct-field ::placeholder { color: #6f665d; opacity: 1; }
.ct-field select:invalid { color: #6f665d; }
.ct-field option { color: var(--at-ink); }
.ct-field textarea { resize: vertical; }
.ct-field :is(input, select, textarea):hover { border-color: var(--at-ink-2); }
.ct-field :is(input, select, textarea):focus { border-color: var(--at-ink); outline: 3px solid var(--at-gold); outline-offset: 0; }
.ct-form .at-button { justify-self: start; }
.ct-form-note { color: var(--at-ink-2); font-size: var(--at-fs-small); }
.ct-form-status:empty { display: none; }
.ct-form-status { font-weight: 700; }
.ct-check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--at-fs-small); line-height: 1.5; cursor: pointer; }
.ct-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--at-crimson); }
.ct-check a { color: var(--at-ink); text-decoration-color: var(--at-gold); text-underline-offset: 3px; }
.ct-newsletter-form { max-width: 640px; }

/* Legal texts: hanging paragraph numbers so a section can be found by eye. */
.ct-legal > p:first-child { font-weight: 700; }
.ct-legal .ct-para { position: relative; padding-left: 3.4em; }
.ct-para-no { position: absolute; left: 0; font-weight: 700; font-variant-numeric: lining-nums; }

/* Arrival of the band: short, finished well before a second. */
@keyframes ct-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  [data-no-reveal] h1 { animation: ct-rise .6s var(--at-ease) both; }
  [data-no-reveal] :is(.ct-band-lead, .ct-actions) { animation: ct-rise .6s var(--at-ease) .1s both; }
}

@media (max-width: 1000px) {
  .ct-layout { grid-template-columns: 1fr; gap: var(--ct-gap); }
  .ct-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  /* On a show page: poster, tickets, the story, then the facts. */
  .ct-layout-show { display: flex; flex-direction: column; }
  .ct-layout-show :is(.ct-col, .ct-side) { display: contents; }
  .ct-layout-show .ct-show-poster { order: 1; }
  .ct-layout-show .ct-tickets { order: 2; }
  .ct-layout-show .ct-col > :not(.ct-show-poster) { order: 3; margin-top: 0; }
  .ct-layout-show .ct-side > .ct-widget { order: 4; }
  .ct-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ct-band-title { padding: 28px 0 40px; }
  .ct-body { padding-top: 40px; }
  .ct-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .ct-actions .at-button { width: 100%; }
  .ct-actions .ct-link { align-self: flex-start; }
  .ct-side { grid-template-columns: 1fr; }
  .ct-widget, .ct-tickets { padding: 24px 20px; }
  .ct-photo-grid, .ct-form-grid, .ct-contact-dl, .ct-gallery { grid-template-columns: 1fr; }
  .ct-poster-grid { gap: 28px 16px; }
  .ct-col .ct-poster-grid .ct-poster-card strong { font-size: var(--at-fs-small); }
  .ct-name-list { columns: 1; }
  .ct-actor-list { grid-template-columns: 1fr; }
  .ct-credit { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .ct-form .at-button { justify-self: stretch; }
  .ct-faq details { padding: 0 18px; }
  .ct-legal .ct-para { padding-left: 0; }
  .ct-para-no { position: static; margin-right: .4em; }
}
