/* Uffington Players – website styles
   Colours and fonts are set once here. Change them in :root to restyle the whole site. */

:root {
  --ground: #FBF6EE;      /* page background (cream) */
  --panel: #FFFFFF;       /* cards and boxes */
  --sand: #EAE2D3;        /* soft fills, footer, dividers */
  --photo: #E3DAC8;       /* empty photo spaces */
  --ink: #2B2A26;         /* main text */
  --ink-strong: #1F2A22;  /* headings */
  --ink-soft: #5E584C;    /* small print and captions */
  --green: #2F5A3E;       /* main colour: buttons, links, feature boxes */
  --green-dark: #1E3D29;  /* top bar, hover */
  --clay: #A3472A;        /* small accent text */
  --peach: #F2C9A8;       /* accent text on green */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: Lora, Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink-strong); line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 9vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 6vw, 36px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.small { font-size: 15px; color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Top bar ---------- */
.site-header { background: var(--green-dark); color: var(--ground); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ground); text-decoration: none; }
.brand:hover { color: var(--ground); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--ground); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 23px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; font-weight: 700; font-size: 16px; }
.nav a { color: var(--ground); text-decoration: none; padding: 10px 16px; border-radius: 999px; }
.nav a:hover { background: rgba(251, 246, 238, 0.12); color: var(--ground); }
.nav a[aria-current="page"] { background: rgba(251, 246, 238, 0.18); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(251, 246, 238, 0.18); color: var(--ground); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 960px) {
  .menu-button { display: flex; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 40px; height: 40px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green-dark); flex-direction: column; gap: 2px; padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(20, 30, 22, 0.25); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 18px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-align: center; text-decoration: none; font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.3; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--green); }
.btn-outline:hover { background: var(--sand); border-color: var(--green); color: var(--green-dark); }
.btn-light { background: var(--ground); border-color: var(--ground); color: var(--ink-strong); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink-strong); }
.btn-ghost-light { background: transparent; border-color: var(--ground); color: var(--ground); }
.btn-ghost-light:hover { background: rgba(251, 246, 238, 0.12); border-color: var(--ground); color: var(--ground); }
.btn-block { display: block; width: 100%; }
.btn-big { font-size: 20px; padding: 18px 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* "Tickets on sale from…" notice, shown before tickets go on sale */
.not-yet { display: inline-block; text-align: center; font-weight: 700; font-size: 16px; line-height: 1.3; padding: 12px 24px; border-radius: 999px; border: 2px dashed #B5AA94; background: var(--sand); color: #4A4538; cursor: default; }
.not-yet.on-dark { background: transparent; border-color: var(--peach); color: var(--ground); }

/* ---------- Photo spaces ---------- */
/* Shows a label until the real photo file is added */
.photo { position: relative; overflow: hidden; background: var(--photo); border-radius: 20px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); font-size: 14px; padding: 16px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.contain img { object-fit: contain; background: var(--photo); }

/* ---------- General blocks ---------- */
.section { padding-bottom: 64px; }
.card { background: var(--panel); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: start; }
.feature { background: var(--green); color: var(--ground); border-radius: 28px; padding: clamp(22px, 5vw, 36px); }
.feature h2, .feature h3 { color: var(--ground); }
.feature .kicker { color: var(--peach); }
.soft-box { background: var(--sand); border-radius: 28px; padding: clamp(24px, 6vw, 40px); }
.kicker { font-weight: 700; color: var(--clay); }
.lead { font-size: 19px; }
.page-head { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.page-head .lead { max-width: 720px; }
.rows > div { border-top: 1px solid var(--sand); padding: 12px 0; }
.rows > div:last-child { border-bottom: 1px solid var(--sand); }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 56px; }
.hero .photo { min-height: clamp(260px, 60vw, 420px); border-radius: 28px; }
.coming-next { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.coming-next .actions { flex: 0 1 auto; }
.date-badge { background: var(--ground); color: var(--ink-strong); border-radius: 20px; width: 120px; padding: 14px 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; flex-shrink: 0; }
.date-badge .month { font-weight: 700; font-size: 15px; color: var(--clay); }
.date-badge .days { font-family: var(--display); font-weight: 800; font-size: 34px; }
.coming-next .details { flex: 1 1 340px; display: flex; flex-direction: column; gap: 6px; }
.coming-next h2 { font-size: clamp(30px, 7vw, 40px); }
.recent { background: var(--panel); border-radius: 28px; padding: clamp(22px, 5vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 40px; align-items: start; }
.year-row { display: flex; gap: 24px; align-items: baseline; }
.year-row .year { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--green); width: 80px; flex-shrink: 0; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.strip a, .strip .photo { display: block; height: 200px; border-radius: 16px; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; background: var(--photo); }
.heading-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.find-us { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; align-items: center; }
.find-us .photo { min-height: 220px; }

/* ---------- Next production ---------- */
.show-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: start; padding-top: 32px; padding-bottom: 56px; }
.show-top .poster { min-height: clamp(320px, 90vw, 520px); border-radius: 28px; }
.dates-box { background: var(--green); color: var(--ground); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.dates-box strong { font-family: var(--display); font-size: 28px; line-height: 1.15; }
.dates-box .days { font-weight: 700; color: var(--peach); }
.button-stack { display: flex; flex-direction: column; gap: 12px; }
.button-stack .btn, .button-stack .not-yet { display: block; width: 100%; font-size: 20px; padding: 18px 26px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: start; }
.perf-row { display: flex; justify-content: space-between; gap: 16px; }
.perf-row small { display: block; color: var(--ink-soft); font-size: 15px; }
.prices { width: 100%; border-collapse: collapse; font-size: 16px; }
.prices th, .prices td { padding: 12px 8px; text-align: right; vertical-align: bottom; }
.prices th:first-child { padding-left: 0; text-align: left; }
.prices tr > :last-child { padding-right: 0; }
.prices tbody tr { border-top: 1px solid var(--sand); }
.prices tbody tr:last-child { border-bottom: 1px solid var(--sand); }
.prices tbody th { font-weight: 700; }
.prices .sub { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.creatives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.creatives div { padding: 8px 0; border-top: 1px solid var(--sand); }
.creatives strong { display: block; }

/* ---------- Previous productions ---------- */
.latest-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; align-items: center; }
.latest-top .photo { min-height: 260px; }
.latest-top h2 { font-size: clamp(30px, 7vw, 40px); }
.feature a { color: var(--ground); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.review { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 16px; background: rgba(251, 246, 238, 0.12); border: 1px solid rgba(251, 246, 238, 0.35); text-decoration: none; }
.review:hover { background: rgba(251, 246, 238, 0.2); }
.review q { font-family: var(--display); font-size: 19px; line-height: 1.3; color: var(--ground); quotes: "\201C" "\201D"; }
.review .source { font-size: 14px; color: var(--peach); }
.review .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--ground); text-decoration: underline; }
.decades { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; align-items: start; }
.decade h2 { font-size: 28px; }
.show-row { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--sand); }
.show-row .year { font-family: var(--display); font-weight: 800; color: var(--green); width: 52px; flex-shrink: 0; }
.show-row .note { display: block; font-size: 14px; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-photo { min-height: clamp(260px, 60vw, 460px); border-radius: 28px; }
.committee { width: 100%; max-width: 900px; margin: 24px auto 0; background: var(--panel); border-radius: 20px; padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px 48px; }
.committee h3 { font-size: 22px; margin-bottom: 6px; }
.officer { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--sand); }
.officer span:last-child { color: var(--ink-soft); }
.members { columns: 150px 2; column-gap: 24px; }
.members div { padding: 10px 0; border-top: 1px solid var(--sand); break-inside: avoid; }
.centred { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.touch-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

/* ---------- Join us ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.roles .card { padding: 24px; }
.roles h3 { font-size: 22px; }
.icon-line { display: flex; align-items: center; gap: 14px; }
.icon-tile { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--green); display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; }
.icon-tile img { width: 100%; height: 100%; object-fit: contain; }
.icon-tile .fallback { color: var(--ground); font-weight: 700; font-size: 22px; font-family: Arial, sans-serif; }
.form { background: var(--panel); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--sand); border-radius: 12px; background: var(--ground); color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--green); outline: none; }
.checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px 24px; }
.checks legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.checks label { font-weight: 400; display: flex; gap: 10px; align-items: center; margin: 0; cursor: pointer; }
.checks input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
.hidden { display: none !important; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: inherit; font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px; cursor: pointer; border: 2px solid var(--green); background: #fff; color: var(--green); }
.filters button[aria-pressed="true"] { background: var(--green); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 16px; margin-top: 24px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.gallery button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.gallery button:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--photo); }
.gallery .caption { font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.more-row { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; }
.empty { background: var(--panel); border-radius: 20px; padding: 28px; margin-top: 24px; }
dialog.viewer { border: 0; padding: 0; background: rgba(16, 24, 18, 0.94); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
dialog.viewer::backdrop { background: rgba(16, 24, 18, 0.92); }
.viewer-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; gap: 12px; }
.viewer img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; }
.viewer p { color: #fff; text-align: center; }
.viewer .count { color: #C9CFC9; font-size: 14px; }
.viewer-btn { position: absolute; background: var(--ground); color: var(--ink-strong); border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.viewer-close { top: 12px; right: 12px; }
.viewer-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .viewer-inner { padding: 64px 12px 80px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 16px; transform: none; }
  .viewer-prev { left: calc(50% - 60px); }
  .viewer-next { right: calc(50% - 60px); }
}

/* ---------- Privacy ---------- */
.prose-box { max-width: 760px; background: var(--panel); border-radius: 20px; padding: clamp(22px, 5vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.prose-box h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { font-weight: 700; }
