/* Theatre 3triple2 — colours and fonts taken from the Squarespace site.
   Headings: Futura PT on the old site (Adobe licence); Jost is the closest free match. */
:root {
  --header-bg: #bde7ea;
  --menu-bg: #95dde2;
  --page-bg: #e7f5fb;
  --surface: #ffffff;
  --text: #111111;
  --muted: #3d4a52;
  --blue: #085c9c;        /* buttons */
  --blue-dark: #064677;
  --navy: #0c1b83;        /* accent headings / links */
  --red: #bb0000;         /* logo red */
  --line: #a8a6a1;        /* warm grey accent */
  --heading: "Jost", "Futura PT", Futura, "Century Gothic", sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --narrow: 46rem;
  --gap: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 300 1.0625rem/1.7 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }
strong, b { font-weight: 500; }
a { color: var(--navy); text-underline-offset: .15em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; color: #fff; }

/* Buttons */
.button {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font: 500 .95rem/1.2 var(--body); letter-spacing: .05em;
  padding: .85em 1.6em; border: 2px solid var(--blue); border-radius: 0;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button--large { font-size: 1.05rem; padding: 1em 2em; }
.button--outline { background: transparent; color: var(--blue); }
.button--outline:hover { color: #fff; }

/* Header: stacked on mobile, logo centred between nav and actions on desktop */
.site-header {
  background: var(--header-bg);
  display: grid; justify-items: center; gap: .4rem;
  padding: 1rem var(--gap);
}
.logo img { width: clamp(7.5rem, 32vw, 14rem); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 1rem; padding: .3rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.social { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; }
.social a { color: var(--text); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; }
.social a:hover { color: var(--blue); }

@media (min-width: 64rem) {
  .site-header { grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 1.25rem; }
  .site-nav { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-nav ul { justify-content: flex-start; max-width: 24rem; }
  .logo { grid-column: 2; grid-row: 1; }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* Layout */
main { display: block; }
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) var(--gap); }
.narrow { max-width: var(--narrow); }
.section-title { text-align: center; color: var(--navy); }
.section-title a { color: inherit; }
.meta { color: var(--muted); font-size: .95rem; }
.back { margin-top: 0; }
.prose > :first-child { margin-top: 0; }
.prose img { margin: 1rem 0; }
.rule { border: 0; border-top: 1px solid var(--line); max-width: var(--narrow); margin: 0 auto; }
.banner { width: 100%; max-height: 22rem; object-fit: cover; }

/* Hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gap); display: grid; gap: 2rem; align-items: center; }
.hero h1 { font-weight: 700; font-size: clamp(2rem, 6vw, 3.2rem); }
.hero__sub { font: italic 500 clamp(1.2rem, 3vw, 1.5rem)/1.4 var(--heading); margin: 0 0 1.5rem; }
.hero__image { width: 100%; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
@media (min-width: 48rem) { .hero { grid-template-columns: 1fr 1fr; } }

/* Homepage events */
.home-events { display: grid; gap: 2.5rem; }
.announcement { align-self: center; text-align: center; font: 500 clamp(1.8rem, 4vw, 2.5rem)/1.25 var(--heading); }
.announcement p { margin: 0; }
@media (min-width: 64rem) { .home-events { grid-template-columns: 2fr 1fr; } }
.contact-band { text-align: center; }

/* Show cards */
.show-card > *, .detail__grid > *, .home-events > * { min-width: 0; }
.prose { overflow-wrap: anywhere; }
.show-card { display: grid; gap: 1.5rem; background: var(--surface); padding: clamp(1rem, 3vw, 2rem); margin-bottom: 2rem; }
.show-card h3 a { color: var(--text); text-decoration: none; }
.show-card h3 a:hover { text-decoration: underline; }
.show-card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
@media (min-width: 48rem) { .show-card { grid-template-columns: minmax(14rem, 2fr) 3fr; align-items: start; } }

.page-banner {
  background: #222 center / cover no-repeat; color: #fff;
  min-height: clamp(10rem, 30vw, 18rem); display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 0 0 100vmax rgb(0 0 0 / .45); /* darkens the photo for readable text */
}
.page-banner h1 { margin: 0; padding: 1rem; text-transform: uppercase; letter-spacing: .05em; }


/* Show detail */
.detail__grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .detail__grid { grid-template-columns: 2fr 3fr; align-items: start; } }

/* News */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.post-list h2 { font-size: 1.7rem; margin: .2rem 0 .4rem; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 0; }
.post-image { margin-bottom: 1.5rem; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { font-size: .85rem; padding-top: .35rem; }

/* About / contact */
.membership, .join, .contact { text-align: center; }
.note { font-size: .95rem; color: var(--muted); }
.contact__image { width: min(22rem, 100%); margin: 0 auto 1.5rem; }
.contact__email { font-size: 1.15rem; }

/* Footer */
.site-footer {
  background: var(--header-bg); padding: 2rem var(--gap);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-footer p { margin: 0; }
.footer-name { font: 500 1.3rem var(--heading); }

/* Contact form (posts to the n8n webhook set on the Contact page in Pages CMS) */
.contact-form { display: grid; gap: 1rem; text-align: left; max-width: 34rem; margin: 2rem auto 0; }
.contact-form label { display: grid; gap: .3rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
  font: 300 1rem/1.5 var(--body); color: var(--text); background: var(--surface);
  border: 1px solid var(--muted); border-radius: 0; padding: .7rem .8rem; width: 100%;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form .required { color: var(--red); }
.contact-form .hp { position: absolute; left: -9999px; }  /* spam trap: hidden from people */
.contact-form button { justify-self: start; cursor: pointer; }
