/* Reset, typography, layout and shared components (buttons, section heading). */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--space-9); }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Page ---------- */
body {
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
  -webkit-font-smoothing: antialiased;
}
.theme-cinema { background: var(--surface-100); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, dd { overflow-wrap: break-word; hyphens: manual; }
.display-xl, .h1, .h2, .h3, .price, .quote { font-family: var(--font-display); }
.display-xl { font-size: var(--fs-display-xl); line-height: var(--lh-display-xl); font-weight: var(--fw-display-xl); letter-spacing: var(--ls-display-xl); }
.h1 { font-size: var(--fs-heading-1); line-height: var(--lh-heading-1); font-weight: var(--fw-heading-1); }
.h2 { font-size: var(--fs-heading-2); line-height: var(--lh-heading-2); font-weight: var(--fw-heading-2); }
.h3 { font-size: var(--fs-heading-3); line-height: var(--lh-heading-3); font-weight: var(--fw-heading-3); }
.price { font-size: var(--fs-price); line-height: var(--lh-price); font-weight: var(--fw-price); }
/* Quotes are set upright: long italic passages are harder to read */
.quote { font-size: var(--fs-quote); line-height: var(--lh-quote); font-weight: var(--fw-quote); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: var(--fw-lead); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.muted { color: var(--ink-muted); }
strong, .strong { font-weight: var(--fw-body-strong); }
.eyebrow {
  font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: var(--fw-eyebrow);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-text);
}
.prose > * + * { margin-top: var(--space-4); }
.measure { max-width: var(--measure); }

a.link {
  color: var(--accent-text);
  font-weight: var(--fw-body-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a.link:hover { text-decoration-thickness: 2px; }

/* ---------- Focus & accessibility ---------- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg); font-weight: var(--fw-button);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
.section--band { background: var(--surface-300); }
/* accent-text on surface-300 only at 24px+; small accent text switches to ink */
.section--band .eyebrow, .section--band a.link { color: var(--ink); }

/* Section heading: eyebrow, title, lead; centred intro */
.section-heading {
  max-width: var(--measure);
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-heading .eyebrow { display: block; margin-bottom: var(--space-2); }
.section-heading .lead { margin-top: var(--space-4); color: var(--ink-muted); }

/* ---------- Buttons ----------
   Hover and press animate transform and opacity only:
   a fill layer (::before) fades in, the arrow slides, the button presses in. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: var(--border-card) solid transparent;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: var(--fs-button); line-height: var(--lh-button);
  font-weight: var(--fw-button); letter-spacing: var(--ls-button);
  text-transform: uppercase; text-decoration: none; text-align: center;
  background: none;
  transition: transform var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary::before { background: var(--accent-hover); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline::before { background: var(--line); }

.btn__icon { width: 20px; height: 20px; flex: none; }
.btn__arrow { width: 18px; height: 18px; flex: none; transition: transform var(--duration-fast) var(--ease-out); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(var(--space-1)); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Headline italics: one emotional word per headline */
.display-xl em, .h1 em, .h2 em { font-style: italic; font-weight: inherit; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
}

/* ---------- Media ---------- */
.media { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-300); }
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
