/* Apex Peak Players - site styles
   Colours: green #055B31, gold #ECB54F, deep gold #C98B12, cream #F7F1E4 */

:root {
  --green: #055B31;
  --green-dark: #023D20;
  --gold: #ECB54F;
  --gold-dark: #C98B12;
  --cream: #F7F1E4;
  --ink: #33312c;
  --muted: #6b6555;
  --line: #E3DCCA;
  --pad: clamp(18px, 4vw, 70px);
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
  font-size: 17.5px; line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px;
    overflow-wrap: anywhere; }

/* ---------- announcement bar ---------- */
.bar, .nav { font-size: 16px; line-height: 1.5; }

.bar {
  background: var(--gold); color: #2b2b2b;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  flex-wrap: wrap; padding: 12px var(--pad); font-weight: 700; letter-spacing: .4px;
}
.bar a {
  color: #2b2b2b; text-decoration: none; border: 2px solid #2b2b2b;
  border-radius: 4px; padding: 7px 18px; font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.bar a:hover, .bar a:focus { background: #2b2b2b; color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad); position: relative;
}
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--cream); margin-right: auto; }
.nav .brand img { width: 38px; height: 38px; border-radius: 3px; }
.nav .brand span { font-weight: 900; letter-spacing: 1px; font-size: 15px; text-transform: uppercase; }
.nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; align-items: center; }
.nav a.link {
  color: var(--cream); text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 9px 14px; border-radius: 4px; display: block;
}
.nav a.link:hover, .nav a.link:focus { background: rgba(247,241,228,.14); }
.nav a.link[aria-current="page"] { background: rgba(247,241,228,.20); }

.nav .has-sub { position: relative; }
.nav .has-sub > button {
  font: inherit; font-weight: 700; font-size: 16px; color: var(--cream);
  background: none; border: 0; cursor: pointer; padding: 9px 14px; border-radius: 4px;
  display: flex; align-items: center; gap: 7px;
}
.nav .has-sub > button:hover { background: rgba(247,241,228,.14); }
.nav .has-sub > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid;
  border-bottom: 2px solid; transform: rotate(45deg) translateY(-2px); }
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 40;
  background: var(--green); border-radius: 0 0 6px 6px; padding: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.nav .has-sub.open .sub { display: block; }
.nav .sub a { display: block; padding: 10px 14px; border-radius: 4px;
  color: var(--cream); text-decoration: none; font-size: 15.5px; }
.nav .sub a:hover, .nav .sub a:focus { background: rgba(247,241,228,.16); }

.nav .burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav .burger span { display: block; width: 26px; height: 3px; background: var(--cream);
  border-radius: 2px; margin: 5px 0; }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav .burger { display: block; }
  .nav .menu { display: none; width: 100%; order: 3; }
  .nav .menu.open { display: block; }
  .nav .menu ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav .has-sub > button { width: 100%; justify-content: space-between; }
  .nav .sub { position: static; display: none; box-shadow: none; padding: 0 0 6px 12px; }
  .nav .has-sub.open .sub { display: block; }
}

/* ---------- page heading band ---------- */
.banner img { width: 100%; height: auto; }
.quote {
  background: var(--cream); color: var(--green); text-align: center;
  padding: 16px var(--pad); font-style: italic; font-size: clamp(17px, 2vw, 22px);
}

/* hero photo with the title over it */
.hero { position: relative; width: 100%; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .scrim { position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,50,28,.10), rgba(5,50,28,.30) 45%, rgba(5,50,28,.80)); }
.hero .words { position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vw, 40px); padding: 0 var(--pad); }
.hero .k { font-family: Caveat, cursive; font-size: clamp(24px, 3.4vw, 42px); color: var(--gold);
  line-height: 1; margin-bottom: 2px; transform: rotate(-1.2deg); display: inline-block; }
.hero .n { font-size: clamp(30px, 5.4vw, 76px); font-weight: 900; color: var(--cream);
  line-height: 1; letter-spacing: -.5px; text-shadow: 0 3px 16px rgba(0,0,0,.45); }

/* ---------- content ---------- */
main { padding: clamp(22px, 3vw, 40px) var(--pad) clamp(30px, 4vw, 54px); }
main p, main ul, main ol { max-width: 980px; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; color: var(--green); margin: 0 0 10px; }
h2 { font-family: Caveat, cursive; font-weight: 700; color: var(--gold-dark);
  font-size: clamp(30px, 3.2vw, 44px); margin: 38px 0 4px; }
h3 { font-size: 19px; font-weight: 900; color: var(--green); margin: 22px 0 6px; }
.rule { width: 90px; height: 6px; background: var(--gold); border-radius: 3px; margin-bottom: 18px; }
.lede { font-size: clamp(18px, 1.4vw, 21px); }
b, strong { color: var(--green); }
.note { color: var(--muted); font-size: 16px; }

.card { background: #fff; border-radius: 4px; padding: 16px 20px; border-left: 7px solid var(--gold);
  box-shadow: 0 2px 8px rgba(60,45,20,.12); margin: 14px 0; max-width: 980px; }
.card.green { border-left-color: var(--green); }

.btn {
  display: inline-block; text-decoration: none; font-family: Caveat, cursive; font-weight: 700;
  font-size: 32px; line-height: 1; background: var(--gold); color: var(--green);
  padding: 13px 34px 17px; border-radius: 8px; box-shadow: 0 5px 0 var(--gold-dark);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus { transform: translateY(-3px); box-shadow: 0 8px 0 var(--gold-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-dark); }
.btn.dark { background: var(--green); color: var(--cream); box-shadow: 0 5px 0 var(--green-dark); }
.btn.dark:hover { box-shadow: 0 8px 0 var(--green-dark); }

.links { list-style: none; padding: 0; margin: 18px 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; max-width: 1100px; }
.links a { display: block; background: #fff; border-radius: 4px; padding: 15px 18px;
  text-decoration: none; font-weight: 700; color: var(--green);
  border-left: 7px solid var(--gold); box-shadow: 0 2px 8px rgba(60,45,20,.12); }
.links a:hover { box-shadow: 0 4px 14px rgba(60,45,20,.2); }

/* season list */
.season { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.season li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.season .title { font-size: 22px; font-weight: 900; color: var(--green); }
.season .when { color: var(--muted); }

/* past productions */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px; margin: 18px 0 8px; }
.gallery img { width: 100%; height: 170px; object-fit: cover; border-radius: 3px; }
.archive { list-style: none; padding: 0; margin: 0; max-width: 1000px; }
.archive li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.archive .yr { font-weight: 900; color: var(--green); }
.archive .who { color: var(--muted); font-size: 15.5px; }


/* centred page: blocks centre too, not just the text inside them */
main.centre { text-align: center; }
main.centre p, main.centre ul, main.centre ol, main.centre .rule,
main.centre .card, main.centre .links, main.centre .season {
  margin-left: auto; margin-right: auto;
}
main.centre .links { text-align: left; }


/* faint graph paper, same values as the home page block */
main.paper {
  background-image:
    linear-gradient(to right, rgba(15,25,60,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,25,60,.055) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
}
@media (max-width: 640px) {
  main.paper { background-size: 20px 20px, 20px 20px; }
}


/* ---------- slideshow ---------- */
.show { position: relative; max-width: 820px; margin: 18px auto 8px; }
.show .frame { position: relative; width: 100%; aspect-ratio: 3 / 2;
  background: #0e1a12; border-radius: 6px; overflow: hidden; }
.show .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.show .slide.on { opacity: 1; }
.show .slide img { width: 100%; height: 100%; object-fit: cover; }
.show .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px;
  color: var(--cream); font-weight: 700; font-size: 16px;
  background: linear-gradient(to top, rgba(5,40,22,.85), rgba(5,40,22,0)); }
.show .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(5,91,49,.82); color: var(--cream); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.show .arrow:hover { background: var(--gold); color: var(--green); }
.show .arrow.prev { left: 10px; }
.show .arrow.next { right: 10px; }
.show .dots { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.show .dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0;
  cursor: pointer; background: #CFC7B4; }
.show .dots button.on { background: var(--green); }
.show .count { text-align: center; color: var(--muted); font-size: 14px; margin-top: 6px; }
.show + .note { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 640px) {
  .show .frame { aspect-ratio: 4 / 3; }
  .show .arrow { width: 38px; height: 38px; font-size: 18px; }
}

/* ---------- footer ---------- */
.ppfoot { background: var(--green); color: var(--cream); padding: 30px var(--pad) 22px; }
.ppfoot a { color: var(--cream); text-decoration: none; }
.ppfoot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ppfoot .grid { display: flex; flex-wrap: wrap; gap: 34px; align-items: flex-start; }
.ppfoot .brand { display: flex; gap: 16px; align-items: center; flex: 1 1 280px; }
.ppfoot .brand img { width: 62px; height: 62px; border-radius: 4px; }
.ppfoot .brand .n { font-size: 20px; font-weight: 900; line-height: 1.15; }
.ppfoot .brand .s { font-size: 14px; color: #CFE0D5; }
.ppfoot .col { min-width: 150px; }
.ppfoot .col h4 { margin: 0 0 9px; font-size: 11.5px; font-weight: 900; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--gold); }
.ppfoot .col ul { list-style: none; margin: 0; padding: 0; }
.ppfoot .col li { margin: 5px 0; font-size: 15.5px; }
.ppfoot .social { display: flex; gap: 12px; }
.ppfoot .social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(247,241,228,.12);
  display: flex; align-items: center; justify-content: center; }
.ppfoot .social a:hover { background: var(--gold); }
.ppfoot .social svg { width: 20px; height: 20px; fill: var(--cream); }
.ppfoot .social a:hover svg { fill: var(--green); }
.ppfoot .rule2 { height: 3px; background: var(--gold); border-radius: 2px; width: 70px; margin: 26px 0 14px; }
.ppfoot .base { display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap; }
.ppfoot .quote2 { font-family: Caveat, cursive; font-size: 24px; color: #ECC97E; }
.ppfoot .addr { font-size: 13.5px; color: #B9CFC1; }

@media (max-width: 640px) {
  .ppfoot { padding: 18px 16px 16px; }
  .ppfoot .grid { display: block; }
  .ppfoot .brand { gap: 10px; margin-bottom: 10px; }
  .ppfoot .brand img { width: 44px; height: 44px; }
  .ppfoot .brand .n { font-size: 17px; }
  .ppfoot .col { margin: 0; }
  .ppfoot .col h4 { display: none; }
  .ppfoot .col:nth-of-type(2) ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .ppfoot .col:nth-of-type(2) li { margin: 0; font-size: 14.5px; }
  .ppfoot .col:nth-of-type(3) ul { margin-top: 6px; }
  .ppfoot .col:nth-of-type(3) li { margin: 0; font-size: 13.5px; line-height: 1.45; }
  .ppfoot .col:nth-of-type(4) { margin-top: 8px; }
  .ppfoot .social a { width: 34px; height: 34px; }
  .ppfoot .rule2 { margin: 12px 0 8px; }
  .ppfoot .base { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ppfoot .quote2 { font-size: 19px; }
  .ppfoot .addr { font-size: 12px; }
}
