/*
 * Kino Vela.
 *
 * A printed programme card, not a streaming service. Cool sea-glass paper,
 * deep petrol ink, one hot coral used only where something is happening now.
 * The signature is the perforation strip down the ticket — drawn in CSS, no
 * images — which also sets the rhythm for the screening list beneath it.
 *
 * Chosen to be nothing like the multiplex this project first crawled: that site
 * is dark navy with a signal yellow and a condensed grotesque. If the brand
 * extractor reports anything resembling it here, the extractor is wrong.
 */

:root {
  --paper: #edf1ee;
  --paper-deep: #e2e8e3;
  --ink: #14343f;
  --ink-soft: #4a6a72;
  --tide: #2e7d8a;
  --flare: #ff5b49;
  --sand: #e8d9b5;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 68ch;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --rule: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  /* A faint horizon: the paper is lighter at the top, like a screen before the film. */
  background-image: linear-gradient(180deg, #f3f6f3 0%, var(--paper) 38%);
  background-attachment: fixed;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

a { color: inherit; }
a:focus-visible,
.btn:focus-visible,
.skip:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- masthead -- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gap) 0;
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}
.wordmark__kino { font-variation-settings: 'SOFT' 40, 'WONK' 1; }
/* The one place the accent appears in chrome: the name of the house. */
.wordmark__vela { color: var(--flare); font-style: italic; }

.nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.75rem);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--flare); }

/* ----------------------------------------------------------------- main -- */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gap) clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tide);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--rule);
}

.page-title,
.film__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
}

/* --------------------------------------------------------------- ticket -- */

.ticket {
  display: grid;
  grid-template-columns: 28px 1fr;
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--ink) 8%, transparent);
}

/*
 * The perforation. Two stacked gradients: a tinted strip, then punched holes in
 * the paper colour. No image, scales with the card, and it is the only
 * ornamental thing on the page.
 */
.ticket__perf {
  background-color: var(--sand);
  background-image: radial-gradient(circle at 50% 12px, var(--paper) 4.5px, transparent 5px);
  background-size: 100% 24px;
  background-repeat: repeat-y;
  border-right: 1px dashed color-mix(in oklab, var(--ink) 35%, transparent);
}

.ticket__body { padding: clamp(1.5rem, 4vw, 2.75rem); }

.ticket__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 1.5rem + 3.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
}

.ticket__original {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

.ticket__note {
  max-width: var(--measure);
  margin: 1.25rem 0 1.75rem;
  color: var(--ink-soft);
}

.ticket__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 0 1.75rem;
  padding-top: 1.25rem;
  border-top: var(--rule);
}
.ticket__facts dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 0.2rem;
}
.ticket__facts dd { margin: 0; font-weight: 500; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: background 140ms ease;
}
.btn:hover { background: var(--flare); }

/* ----------------------------------------------------------- screenings -- */

.screenings { list-style: none; margin: 0; padding: 0; }

.screening {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 4.5rem minmax(10rem, 1fr) auto;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: var(--rule);
}

.screening__day {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.screening__time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 1.05rem;
}

.screening__film {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.screening__film:hover { color: var(--flare); }

.screening__meta { font-size: 0.85rem; color: var(--ink-soft); }

.screening__strand {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tide);
  border: 1px solid color-mix(in oklab, var(--tide) 40%, transparent);
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}

.week__more { margin: 1.25rem 0 0; font-size: 0.95rem; }
.week__more a { color: var(--tide); }

/* -------------------------------------------------------------- strands -- */

.strandlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.strandlist__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: var(--rule);
}
.strandlist__name { font-family: var(--display); font-weight: 600; }
.strandlist__count { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------- film -- */

.film__original { font-family: var(--display); font-style: italic; color: var(--ink-soft); margin: 0 0 1.25rem; }
.film__note { max-width: var(--measure); color: var(--ink-soft); margin: 0 0 2rem; }

.film__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.1rem 1.5rem;
  margin: 0 0 2.5rem;
  padding: 1.25rem 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.film__facts dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 0.2rem;
}
.film__facts dd { margin: 0; font-weight: 500; }

/* ------------------------------------------------------------- schedule -- */

.day { margin-top: 2rem; }
.day__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.day__closed { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------- prices -- */

.pricelist { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.price {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  grid-template-areas: 'label amount' 'note amount';
  gap: 0.15rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: var(--rule);
}
.price__label { grid-area: label; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.price__note { grid-area: note; font-size: 0.85rem; color: var(--ink-soft); }
.price__amount { grid-area: amount; align-self: center; font-size: 1.25rem; font-weight: 500; }
.prices__how { max-width: var(--measure); color: var(--ink-soft); }

/* -------------------------------------------------------------- contact -- */

.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--gap); }
.contact__grid p { margin: 0; }

/* --------------------------------------------------------------- footer -- */

.footer {
  border-top: var(--rule);
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--gap);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--gap);
  font-size: 0.9rem;
}
.footer p { margin: 0 0 0.35rem; }
.footer__name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.footer__col--note { color: var(--ink-soft); }
.footer__demo { font-family: var(--mono); font-size: 0.75rem; color: var(--tide); margin-top: 0.75rem; }

/* --------------------------------------------------------------- narrow -- */

@media (max-width: 640px) {
  .screening {
    grid-template-columns: 4.5rem 1fr;
    grid-template-areas: 'time film' 'time meta' 'day strand';
    row-gap: 0.2rem;
  }
  .screening__time { grid-area: time; }
  .screening__film { grid-area: film; }
  .screening__meta { grid-area: meta; }
  .screening__day { grid-area: day; }
  .screening__strand { grid-area: strand; justify-self: end; }
  .ticket { grid-template-columns: 18px 1fr; }
}

/* A single entrance, and only for people who want it. */
@media (prefers-reduced-motion: no-preference) {
  .ticket,
  .screening { animation: rise 420ms cubic-bezier(0.22, 0.8, 0.3, 1) both; }
  .screening:nth-child(1) { animation-delay: 40ms; }
  .screening:nth-child(2) { animation-delay: 70ms; }
  .screening:nth-child(3) { animation-delay: 100ms; }
  .screening:nth-child(4) { animation-delay: 130ms; }
  .screening:nth-child(n + 5) { animation-delay: 160ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}
