/* Italian Theatre of Western Australia — playbill system */
:root {
  --paper: #F3EAD8; --paper-2: #EADDC4; --ink: #221C18; --ink-2: #4A3F37; --muted: #6E5F52;
  --red: #8A1C1C; --red-2: #A62A2A; --gilt: #B58B32; --gilt-2: #D8B35A; --stage: #1C1412; --stage-2: #2A1E1A;
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Libre Bodoni", Georgia, serif;
  --body: "Crimson Pro", "Iowan Old Style", Palatino, Georgia, serif;
  --max: 1160px; --gutter: clamp(1.1rem, 4vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.15rem; line-height: 1.55;
  background-image: radial-gradient(ellipse at top, rgba(255,255,255,.35), transparent 60%); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--red-2); }
:focus-visible { outline: 3px solid var(--gilt); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { font-family: var(--body); font-variant: small-caps; letter-spacing: .18em; text-transform: lowercase; font-size: .95rem; color: var(--red); margin: 0 0 .6rem; font-weight: 600; }
.eyebrow a { text-decoration: none; }
.textlink { font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gilt); }
.muted { color: var(--muted); font-style: italic; }
.lede { font-size: 1.35rem; line-height: 1.45; color: var(--ink-2); }

/* Wordmark */
.wordmark { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .6rem; text-decoration: none; color: inherit; align-items: baseline; }
.wm-main { font-family: var(--display); font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; grid-column: 1; }
.wm-sub { grid-column: 1; font-variant: small-caps; text-transform: lowercase; letter-spacing: .22em; font-size: .78rem; color: var(--ink-2); margin-top: -.15rem; }
.wm-since { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--display); font-style: italic; font-size: .95rem; color: var(--red); border-left: 1px solid var(--gilt); padding-left: .6rem; }

/* Masthead */
.masthead { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gutter) 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-bottom: 1px solid var(--gilt); position: relative; }
.masthead::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: -4px; border-bottom: 1px solid var(--gilt); opacity: .5; }
.masthead nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.9rem, 2.5vw, 2rem); }
.masthead nav a { font-variant: small-caps; text-transform: lowercase; letter-spacing: .16em; font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover, .masthead nav a[aria-current] { border-color: var(--red); color: var(--red); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 4rem; }

/* Hero — the stage */
.hero { margin: 2rem calc(-1 * var(--gutter)) 0; padding: clamp(2rem, 5vw, 4rem) var(--gutter); background: var(--stage); color: var(--paper);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; background: repeating-linear-gradient(90deg, var(--red) 0 6px, #5c1212 6px 12px, var(--red-2) 12px 18px); opacity: .9; }
.hero::before { left: 0; } .hero::after { right: 0; }
.hero .eyebrow { color: var(--gilt-2); }
.hero-title { font-size: clamp(3rem, 8vw, 6rem); font-style: italic; font-weight: 400; color: #fff; margin: 0 0 .5rem; }
.hero-meta { font-size: 1.3rem; color: var(--paper-2); margin-bottom: .25rem; }
.hero-when { font-family: var(--display); font-size: 1.4rem; color: var(--gilt-2); margin: .8rem 0 .2rem; }
.hero-venue { color: var(--paper-2); opacity: .85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn { display: inline-block; padding: .75rem 1.4rem; font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 1px solid var(--gilt); border-radius: 2px; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-2); color: #fff; }
.btn-ghost { color: var(--paper); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
.hero-poster { margin: 0; justify-self: end; max-width: 400px; width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(1.2deg); }
.hero-poster img { width: 100%; }

/* Intro */
.intro { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--gilt); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem; margin: 0; justify-content: space-between; }
.facts dt { font-variant: small-caps; text-transform: lowercase; letter-spacing: .16em; font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--red); }

/* Archive strip */
.strip { padding: 2.5rem 0; border-bottom: 1px solid var(--gilt); }
.strip-head .textlink { white-space: nowrap; }
.strip-head, .page-head + .decade { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.strip-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 1.2rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x proximity; }
.strip-card { text-decoration: none; color: inherit; scroll-snap-align: start; display: grid; gap: .4rem; }
.strip-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; filter: sepia(.15) contrast(1.02); border: 1px solid var(--paper-2); }
.strip-card:hover img { filter: none; }
.strip-year { font-family: var(--display); font-size: 1.1rem; color: var(--red); }
.strip-title { font-size: 1.05rem; line-height: 1.25; }

.sponsors-home { padding: 2.5rem 0 0; }
.sponsor-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-family: var(--display); font-size: 1.25rem; }

/* Page heads */
.page-head { padding: 2.5rem 0 1.5rem; max-width: 46rem; }
.page-lede { font-size: 1.25rem; color: var(--ink-2); margin-top: 1rem; }

/* Il cartellone */
.decade { padding: 1.5rem 0 1rem; }
.decade-label { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: .6rem 0; margin: 0 0 .4rem; font-size: 1rem; }
.decade-label span { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.2rem); color: var(--gilt); font-style: italic; }
.bill { list-style: none; margin: 0; padding: 0; }
.bill-item + .bill-item { border-top: 1px dotted var(--gilt); }
.bill-item a { display: grid; grid-template-columns: 6.5rem 1fr 110px; gap: 1.2rem; align-items: center; padding: .9rem 0; text-decoration: none; color: inherit; }
.bill-item a:hover .bill-title { color: var(--red); }
.bill-year { font-family: var(--display); font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--red); line-height: 1; }
.bill-body { display: grid; gap: .1rem; }
.bill-title { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; }
.bill-author { color: var(--ink-2); }
.bill-dir { color: var(--muted); font-size: .95rem; font-style: italic; }
.bill-thumb { width: 110px; aspect-ratio: 4 / 3; object-fit: cover; justify-self: end; border: 1px solid var(--paper-2); filter: sepia(.15); }
.bill-thumb-empty { display: block; height: 82px; border: 1px dashed var(--paper-2); }

/* Play page — the programme */
.play-head { padding: 2.5rem 0 1.5rem; max-width: 50rem; }
.play-author { font-family: var(--display); font-style: italic; font-size: 1.5rem; margin: .6rem 0 .2rem; color: var(--ink-2); }
.play-dir { color: var(--muted); }
.play-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: end; }
.play-poster { margin: 2.5rem 0 1.5rem; width: clamp(180px, 22vw, 300px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.play-poster a { display: block; }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; padding-top: 1rem; }
.play-grid h2, .gallery h2 { font-size: 1rem; font-family: var(--body); font-variant: small-caps; text-transform: lowercase; letter-spacing: .2em; color: var(--red); border-bottom: 1px solid var(--gilt); padding-bottom: .4rem; margin-bottom: 1rem; }
.cast-list { margin: 0; }
.cast-list div { display: flex; align-items: baseline; gap: .4rem; padding: .28rem 0; }
.cast-list dt { flex: 0 1 auto; min-width: 0; }
.cast-list div::after { content: ""; order: 2; flex: 1 0 1.5rem; border-bottom: 2px dotted var(--gilt); margin: 0 .2rem .3rem; }
.cast-list dd { order: 3; margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.cast-note { font-style: italic; color: var(--ink-2); margin-top: 1rem; }
.synopsis p { text-wrap: pretty; }
.synopsis p:first-of-type:not(.muted)::first-letter { font-family: var(--display); font-size: 3.4em; float: left; line-height: .8; padding: .08em .1em 0 0; color: var(--red); }
.play-notes { font-style: italic; color: var(--ink-2); max-width: 50rem; margin-bottom: 1.5rem; }
.gallery { margin-top: 3rem; }
.gallery .count { color: var(--muted); letter-spacing: 0; font-variant: normal; text-transform: none; font-size: .95rem; margin-left: .5rem; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.play-nav { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--gilt); }
.play-nav a { text-decoration: none; color: inherit; font-family: var(--display); font-size: 1.2rem; max-width: 45%; }
.play-nav a span { display: block; font-family: var(--body); font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-size: .85rem; color: var(--red); }
.pn-next { text-align: right; margin-left: auto; }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { margin: 2.2rem 0 .8rem; font-size: 1.7rem; }
.prose ul { padding-left: 1.2rem; } .prose li { margin-bottom: .4rem; }
.prose .address { font-family: var(--display); font-size: 1.15rem; line-height: 1.4; }
.prose strong { color: var(--red); font-weight: 600; }
.sponsor-grid { columns: 3 14rem; column-gap: 2.5rem; list-style: none; padding: 0; margin: 1rem 0; }
.sponsor-grid li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px dotted var(--gilt); }
.prose-page .sponsor-grid { max-width: none; }
.prose-page .prose:has(.sponsor-grid) { max-width: none; }
.prose-page .prose:has(.sponsor-grid) > p { max-width: 46rem; }

/* Footer */
.foot { background: var(--stage); color: var(--paper-2); padding: 3rem var(--gutter) 2rem; }
.foot-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.foot .wordmark { color: var(--paper); } .foot .wm-sub { color: var(--paper-2); } .foot .wm-since { color: var(--gilt-2); }
.foot-note { margin-top: 1rem; max-width: 30rem; opacity: .85; }
.foot h2 { font-size: .9rem; font-family: var(--body); font-variant: small-caps; text-transform: lowercase; letter-spacing: .2em; color: var(--gilt-2); margin-bottom: .6rem; }
.foot a { color: var(--paper); } .foot ul { list-style: none; margin: 0; padding: 0; } .foot li { margin-bottom: .3rem; }
.foot-legal { max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(216,179,90,.35); font-size: .9rem; opacity: .7; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(20,12,10,.94); z-index: 50; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(96vw, 1400px); max-height: 92vh; display: grid; grid-template-rows: 1fr auto; }
.lb img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; margin: 0 auto; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.lb figcaption { color: var(--paper-2); text-align: center; padding: .8rem; font-size: 1rem; }
.lb button { position: absolute; background: none; border: 0; color: var(--paper); font-size: 3rem; line-height: 1; cursor: pointer; padding: .5rem 1rem; font-family: var(--display); }
.lb-close { top: .5rem; right: .8rem; } .lb-prev { left: .4rem; top: 50%; transform: translateY(-50%); } .lb-next { right: .4rem; top: 50%; transform: translateY(-50%); }
.lb button:hover { color: var(--gilt-2); }
body.lb-open { overflow: hidden; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-poster { justify-self: start; max-width: 300px; transform: none; }
  .intro, .play-grid { grid-template-columns: 1fr; gap: 2rem; }
  .facts { justify-content: start; gap: 2.5rem; }
  .play-top { grid-template-columns: 1fr; align-items: start; }
  .play-poster { width: 220px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .masthead { padding-top: 1rem; }
  .masthead nav ul { gap: .9rem; flex-wrap: wrap; }
  .bill-item a { grid-template-columns: 4.2rem 1fr; }
  .bill-thumb, .bill-thumb-empty { display: none; }
  .hero::before, .hero::after { width: 10px; }
  .cast-list div { display: block; padding: .45rem 0; border-bottom: 1px dotted var(--paper-2); }
  .cast-list div::after { display: none; }
  .cast-list dd { white-space: normal; text-align: left; font-weight: 600; }
  .cast-list dt { color: var(--ink-2); font-style: italic; }
}

/* Videos */
.watch { margin-top: 3rem; }
.watch h2 { font-size: 1rem; font-family: var(--body); font-variant: small-caps; text-transform: lowercase; letter-spacing: .2em; color: var(--red); border-bottom: 1px solid var(--gilt); padding-bottom: .4rem; margin-bottom: 1rem; }
.vid-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.vid { text-decoration: none; color: inherit; display: grid; gap: .4rem; }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stage); border: 1px solid var(--paper-2); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; }
.vid-play::before { content: ""; position: absolute; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--red); box-shadow: 0 6px 20px rgba(0,0,0,.4); z-index: -1; }
.vid-play { z-index: 1; }
.vid:hover img { transform: scale(1.04); opacity: .85; }
.vid-label { font-family: var(--display); font-size: 1.1rem; }
.vid-sub { font-size: .95rem; color: var(--muted); font-style: italic; }
.vid-group { padding: 1.6rem 0; border-bottom: 1px dotted var(--gilt); }
.vid-group h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.vid-group h2 a { color: inherit; text-decoration: none; }
.vid-group h2 a:hover { color: var(--red); }
.vid-year { font-family: var(--display); color: var(--red); font-size: 1.1rem; margin-left: .4rem; }
.bill-vid { font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; font-size: .8rem; color: var(--red); font-weight: 600; margin-top: .15rem; }
.intro-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }

/* Social */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .9rem; align-items: center; }
.social a { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-2); text-decoration: none; }
.social a:hover { color: var(--red); }
.social-head span { position: absolute; left: -9999px; }
.social-foot { flex-direction: column; align-items: flex-start; gap: .4rem; margin-top: .2rem; }
.social-foot a { color: var(--paper); font-size: 1rem; }
.social-foot a:hover { color: var(--gilt-2); }
.foot-col h2 + .social-foot { margin-bottom: 1rem; }
.foot-col h2:nth-of-type(2) { margin-top: 1.2rem; }
.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { color: var(--gilt-2); }
.play-tickets { margin-top: 1.2rem; }
@media (max-width: 860px) { .masthead .social-head { order: 3; } }
