/* Joe Pickering Percussion: hand-written styles after the Peak theme. */

:root {
  --text: #404040;
  --muted: #5a5a5a;
  --rule: #ddd;
  --wrap: 1140px;
  --gutter: 30px;
  --heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.6px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: #333;
  margin: 0 0 15px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 24px;
}

p {
  margin: 0 0 20px;
  line-height: 2;
  letter-spacing: 0.7px;
  color: var(--muted);
}

a,
a:visited {
  color: var(--text);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 15px);
  margin: 0 auto;
  padding: 0 15px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 15px;
  background: #fff;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero and menu ---------- */

.hero {
  position: relative;
  height: 450px;
  background: #000;
  color: #fff;
}

.hero-plain {
  background: #222;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-bar {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  display: flex;
  justify-content: flex-end;
  padding-top: 38px;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.menu a,
.menu a:visited {
  display: block;
  padding: 0 10px;
  color: #fff;
  font-family: var(--body);
  font-size: 15px;
  line-height: 30px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.menu a:hover,
.menu a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

.menu-toggle {
  display: none;
}

.hero-text {
  position: absolute;
  z-index: 2;
  top: 55%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0 15px;
  text-align: center;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ---------- Content ---------- */

.content {
  padding-top: 30px;
  padding-bottom: 40px;
}

.page-body {
  margin-bottom: 30px;
}

/* Home intro: photo left, centred text right */
.intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px 90px;
  align-items: start;
}

/* No photo: the text takes one centred column. */
.intro--no-photo {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.intro-photo img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.intro-text {
  text-align: center;
}

.intro-text p {
  letter-spacing: 1px;
  line-height: 2;
}

.intro-text a {
  color: #333;
}

/* Music */
.embeds {
  display: grid;
  gap: 25px;
}

.embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}

.embed-soundcloud iframe {
  border-radius: 0;
}

/* Videos */
.video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.video-link,
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #000;
  border: 0;
}

.video-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.2s;
}

.play::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 27px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

.video-link:hover .play,
.video-link:focus-visible .play {
  background: #f00;
}

.video-title {
  margin: 12px 0 0;
  font-size: 18px;
}

/* My Work */
.work-section {
  margin-bottom: 50px;
}

.work-section h2 {
  margin-bottom: 40px;
}

.work-table {
  width: 100%;
  border-collapse: collapse;
}

.work-table td {
  padding: 22px 15px 22px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
  letter-spacing: 1px;
}

.work-table td:last-child {
  padding-right: 0;
}

.work-date {
  width: 90px;
  white-space: nowrap;
}

.work-title {
  width: 44%;
}

.work-place a {
  text-decoration: underline;
  text-decoration-color: rgba(64, 64, 64, 0.35);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.testimonial {
  margin: 0;
}

.testimonial h3 {
  margin-bottom: 15px;
}

.testimonial .quote {
  white-space: pre-line;
  letter-spacing: 1px;
}

.testimonial .author {
  letter-spacing: 1px;
}

/* Buttons */
.button,
.button:visited {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid #dfdfdf;
  border-radius: 3px;
  color: var(--text);
  line-height: 1;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}

.button:hover,
.button:focus-visible {
  background: #333;
  border-color: #333;
  color: #fff;
  text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 80px 0 30px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
}

.footer-col {
  padding: 0 30px;
}

.footer-col + .footer-col {
  border-left: 1px solid var(--rule);
}

.footer-col h2 {
  font-size: 30px;
  margin-bottom: 15px;
}

.footer-col p {
  margin-bottom: 6px;
  line-height: 1.5;
  color: var(--text);
}

.footer-col .buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.copyright {
  margin: 60px 0 0;
  font-size: 14px;
  color: #777;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 767px) {
  .hero {
    height: 320px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-bar {
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-end;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #fff;
    letter-spacing: 0.1em;
  }

  .menu-toggle summary::-webkit-details-marker {
    display: none;
  }

  .burger,
  .burger::before,
  .burger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
  }

  .burger::before,
  .burger::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .burger::before {
    top: -7px;
  }

  .burger::after {
    top: 7px;
  }

  .menu {
    display: none;
    width: 100%;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.85);
  }

  .menu-toggle[open] + .menu {
    display: block;
  }

  .menu ul {
    flex-direction: column;
  }

  .menu a {
    padding: 10px 15px;
    text-align: right;
  }

  .video-grid,
  .testimonials,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding: 30px 0;
  }

  .footer-col + .footer-col {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .site-footer {
    padding-top: 40px;
  }

  .work-table,
  .work-table tbody,
  .work-table tr,
  .work-table td {
    display: block;
    width: auto;
  }

  .work-table tr {
    padding: 15px 0;
    border-bottom: 1px solid var(--rule);
  }

  .work-table td {
    padding: 0;
    border: 0;
  }

  .work-title {
    font-weight: 700;
  }
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 640px;
  margin-top: 30px;
}

.contact-form .field {
  margin: 0 0 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--heading);
  font-size: 15px;
  letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  font: inherit;
  letter-spacing: normal;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid #333;
  outline-offset: 1px;
}

.contact-form .has-error input,
.contact-form .has-error textarea {
  border-color: #b00020;
}

.field-error,
.form-error {
  margin: 6px 0 0;
  color: #b00020;
}

.form-error {
  margin: 0 0 20px;
}

.form-sent {
  margin: 30px 0;
  font-weight: 700;
}

.contact-form .cf-turnstile {
  margin-bottom: 20px;
}

.contact-form button {
  background: #fff;
  cursor: pointer;
  font: inherit;
}
