/*
Theme Name: First The Music
Author: Envelope Group
Version: 1.0

*/

/*_______________________________________*/

/*Colours*/

/*_______________________________________*/

:root {
  --f-pale: #f5e9de;
  --f-orange: #ff462a;
  --f-blue: #1414ff;
  --f-blue-light: #b8b8ff;
  --f-blue-secondary: #08086e;
  --f-teal: #9bcfb1;
  --f-teal-secondary: #43594e;
  --f-teal-tertiary: #89b9a0;
  --f-purple: #4c0a23;
  --f-purple-secondary: #741f3f;
  --paragraph-width: 800px;

  /* Typographic Scale */
  --size-h6: 1.2rem;
  --size-h5: 1.375rem;
  --size-h4: 1.6rem;
  --size-h3: 1.85rem;
  --size-h2: 2.15rem;
  --size-h1: 3.25rem;

  /* Line Heights */
  --lh-body: 1.55;
  --lh-heading: 1.2;
}

.bg--colour {
  background-color: var(--w-colour);
}

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 500;
}

.roman {
  font-family: "hoefler-text", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.italic {
  font-family: "hoefler-text", sans-serif;
  font-weight: 400;
  font-style: italic;
}

/*_______________________________________*/

/*Global Defaults*/

/*_______________________________________*/

html {
  height: 100%;
  font-size: 100%;
}

img {
  pointer-events: none;
}

body {
  margin: 0;
  font-family: "hoefler-text", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--f-purple);
  font-size: 1.125rem;
  line-height: var(--lh-body);
  background-color: var(--f-pale);
}

.contain {
  max-width: 2800px;
  margin: 0 auto;
  position: relative;
}

.full-bl {
  margin: 0;
  padding: 1rem;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  text-decoration: none;
}

/*_______________________________________*/

/*Accessibility*/

/*_______________________________________*/

/* Skip link — hidden off-screen until it receives keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background-color: var(--f-purple);
  color: var(--f-pale);
  font-size: 1rem;
}

.skip-link:focus {
  left: 0;
}

/* #main is a programmatic focus target for the skip link; no focus ring needed */
#main:focus {
  outline: none;
}

/* Section titles keep their large display size after demotion from <h1> to <h2> */
.section-title {
  font-size: var(--size-h1);
  line-height: var(--lh-heading);
}

/* The hero statement is the page's single <h1> but keeps its smaller display size */
.hero-title {
  font-size: var(--size-h2);
}

/*_______________________________________*/

/*Typography Global*/

/*_______________________________________*/

p {
  margin: 0.75rem 0;
  line-height: var(--lh-body);
  max-width: var(--paragraph-width);
}

h1 {
  font-size: var(--size-h1);
  line-height: var(--lh-heading);
  margin: 1.5rem 0 0.75rem 0;
  max-width: var(--paragraph-width);
}

h2 {
  font-size: var(--size-h2);
  line-height: var(--lh-heading);
  margin: 1.25rem 0 0.75rem 0;
  max-width: var(--paragraph-width);
}

h3 {
  font-size: var(--size-h3);
  line-height: var(--lh-heading);
  margin: 1rem 0 0.75rem 0;
  max-width: var(--paragraph-width);
}

h4 {
  font-size: var(--size-h4);
  line-height: var(--lh-heading);
  margin: 0.75rem 0 0.5rem 0;
  max-width: var(--paragraph-width);
}

h5 {
  font-size: var(--size-h5);
  line-height: var(--lh-heading);
  margin: 0.75rem 0 0.5rem 0;
}

h6 {
  font-size: var(--size-h6);
  line-height: var(--lh-heading);
  margin: 0.75rem 0 0.5rem 0;
}

.caps {
  text-transform: uppercase;
}

b {
  font-weight: 600;
}

i,
em {
  font-style: italic;
}

/*_______________________________________*/

/*Navigation*/

/*_______________________________________*/

/* Burger toggle — fixed top-right on every page */
.site-nav__toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--f-purple);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav__toggle:focus-visible {
  outline: 2px solid var(--f-pale);
  outline-offset: 2px;
}

.site-nav__bars {
  display: block;
  position: relative;
  width: 20px;
  height: 14px;
}

.site-nav__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--f-pale);
}

.site-nav__bars span:nth-child(1) {
  top: 0;
}

.site-nav__bars span:nth-child(2) {
  top: 6px;
}

.site-nav__bars span:nth-child(3) {
  top: 12px;
}

/* Slide-in panel */
.site-nav__panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 80vw);
  z-index: 10000;
  box-sizing: border-box;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  background-color: var(--f-purple);
  color: var(--f-pale);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.4s;
}

.site-nav__panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: none;
  color: var(--f-pale);
  cursor: pointer;
}

.site-nav__close:focus-visible {
  outline: 2px solid var(--f-pale);
  outline-offset: 2px;
}

.site-nav__close svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-nav__link {
  color: var(--f-pale);
  font-size: var(--size-h3);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--f-orange);
}

/* Backdrop behind the panel */
.site-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(76, 10, 35, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0s linear 0.4s;
}

.site-nav__backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__panel,
  .site-nav__backdrop {
    transition: none;
  }
}

/*_______________________________________*/

/*Grid*/

/*_______________________________________*/

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.grid--margin {
  margin: 1rem;
}

.grid--gap {
  gap: 1rem;
}

@media screen and (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Mobile Typography */
  h1 {
    font-size: 1.75rem;
    margin: 1rem 0 0.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
    margin: 0.875rem 0 0.5rem 0;
  }

  h3 {
    font-size: 1.3rem;
    margin: 0.75rem 0 0.5rem 0;
  }

  h4 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.25rem 0;
  }
}

.grid--span2 {
  grid-column: span 2;
}

.grid--span3 {
  grid-column: span 3;
}

.grid--span4 {
  grid-column: span 4;
}

/*_______________________________________*/

/*Footer*/

/*_______________________________________*/

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media screen and (max-width: 1000px) {
  .footer {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 800px) {
  .footer {
    grid-template-columns: 1fr 1fr;
  }
}

.footer__block {
  height: 25vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

/*_______________________________________*/

/*CONTACT FORM */

/*_______________________________________*/

.contact-container h2 {
  max-width: 700px;
  padding-bottom: 2rem;
}

@media screen and (min-width: 500px) {
  .contact--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1rem;
  }
}

.contact--column p {
  margin-bottom: 2rem;
}

label {
  font-size: 120%;
  text-transform: uppercase;
}

input {
  margin: 0;
  margin-top: 0.5rem;
  border: 0;
  padding: 1rem;
  width: 100%;
  font-family: inherit;
  -webkit-box-sizing: border-box;
  /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;
  /* Firefox, other Gecko */
  box-sizing: border-box;
  /* Opera/IE 8+ */
  border-bottom: 1px solid grey;
  background-color: #f7f7f7;
  font-size: 1.5rem;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--f-purple);
  outline-offset: 2px;
}

input[type="radio"] {
  width: 22px;
}

input[type="checkbox"] {
  font-size: 1em;
  margin: 0;
  position: relative;
  text-align: center;
  line-height: normal;
  min-height: 0 !important;
  width: 20px;
  height: 20px;
  padding: 0;
  padding-left: 8px;
  padding-right: 8px;
}

textarea {
  padding: 1rem;
  width: 100%;
  font-size: 80%;
  font-family: inherit;
  margin: 0;
  border: 0;
  -webkit-box-sizing: border-box;
  /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;
  /* Firefox, other Gecko */
  box-sizing: border-box;
  /* Opera/IE 8+ */
  border-bottom: 1px solid grey;
  background-color: #f7f7f7;
  font-size: 1.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.wpcf7-list-item {
  margin: 0 !important;
  padding: 0;
  display: block;
}

.wpcf7-list-item {
  padding: 0.5rem 0;
  padding-right: 1.5rem;
}

.wpcf7-list-item * {
  display: inline-block;
}

.wpcf7-list-item-label {
  color: darkgrey;
  font-size: 1.3rem;
  white-space: pre;
}

.wpcf7-submit {
  color: black;
  background-color: var(--w-light-yellow);
  border-bottom: 0;
  text-transform: uppercase;
  font-family: "Gill Sans Nova W01 Book";
  text-align: left;
  cursor: pointer;
  font-size: 1.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.wpcf7 form .wpcf7-response-output {
  width: 80%;
  margin: 0;
  padding: 0;
  font-size: 2rem;
  color: inherit;
  border: 0;
}

@media screen and (max-width: 600px) {
  .wpcf7 form .wpcf7-response-output {
    font-size: 1.2rem;
  }
}

.wpcf7-form label {
  color: black;
  padding-left: 0;
  font-size: 1.3rem;
}

/*_______________________________________*/

/*Simple Content Templates*/

/*_______________________________________*/

.site-header {
  padding: 1rem;
}

.site-header__logo {
  display: inline-block;
  max-width: 220px;
}

.site-header__logo img {
  display: block;
}

.content-layout {
  padding: 1rem;
  color: var(--f-purple);
}

.content-layout__header {
  margin-bottom: 1.5rem;
}

.content-layout__meta {
  margin: 0.25rem 0;
  color: var(--f-teal-secondary);
}

.content-layout__body {
  max-width: var(--paragraph-width);
}

/* Two-column layout: content on the left, stories carousel aside on the right.
   Mirrors the single-project layout; collapses to one column on small screens. */
.content-layout--has-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.content-layout--has-aside .content-layout__main {
  min-width: 0;
}

.content-layout__aside {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media screen and (max-width: 900px) {
  .content-layout--has-aside {
    grid-template-columns: 1fr;
  }

  .content-layout__aside {
    position: static;
  }
}

.content-layout__body a {
  color: var(--f-blue);
  text-decoration: underline;
}

.content-layout__button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--f-purple);
  color: var(--f-purple);
}

.content-layout__button:hover,
.content-layout__button:focus-visible {
  background-color: var(--f-purple);
  color: var(--f-pale);
}

.content-layout--listing {
  min-height: 55vh;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.content-list__item {
  background-color: var(--f-pale);
  border: 1px solid var(--f-teal);
  border-radius: 20px;
  padding: 1rem;
}

.content-list__title {
  margin-top: 0;
}

.content-list__title a {
  color: var(--f-purple);
}

.content-list__title a:hover,
.content-list__title a:focus-visible {
  color: var(--f-blue);
}

.content-list__meta {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  color: var(--f-teal-secondary);
}

.content-list__excerpt {
  margin-bottom: 0;
}

.cpt-layout__intro {
  margin: 0.75rem 0 0;
  font-style: italic;
}
