/* kaypow.co.uk. One stylesheet for every page. */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
}

@font-face {
  font-family: "Average Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/average-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Actor";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/actor.woff2") format("woff2");
}

:root {
  --pink: #e193c0;
  --plum: #94627f;
  --text: #7a7a7a;
  --grey: #737373;
  --black: #000000;
  --line: #ececec;
  --error: #c0262d;
  --heading: "Average Sans", "Trebuchet MS", sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

main {
  flex: 1 0 auto;
  padding-bottom: 50px;
}

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

a {
  color: var(--black);
}

a:hover {
  color: var(--plum);
}

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}

h1,
h2 {
  margin: 0 0 16px;
  color: var(--black);
  font-family: var(--heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 30px;
  font-weight: 700;
}

h2 {
  font-size: 33px;
  font-weight: 600;
}

p {
  margin: 0 0 18px;
}

strong,
b {
  font-weight: 700;
}

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

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

/* For headings that screen readers and search engines need but the design
   doesn't show. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.site-header__logo {
  flex: 0 0 20%;
  max-width: 260px;
  min-width: 130px;
  line-height: 0;
}

.site-header__logo img {
  display: block;
  width: 100%;
}

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

.site-nav a {
  display: block;
  padding: 13px 20px;
  margin: 0 2.5px;
  color: var(--black);
  font-family: "Montserrat", var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(6px);
}

.site-nav a[aria-current="page"],
[data-page="home"] .site-nav [data-nav="home"],
[data-page="voice"] .site-nav [data-nav="voice"],
[data-page="photography"] .site-nav [data-nav="photography"],
[data-page="contact"] .site-nav [data-nav="contact"] {
  color: #9e9e9e;
}

.nav-toggle {
  display: none;
  padding: 6px;
  border: 0;
  background: #ffffff;
  color: var(--black);
  cursor: pointer;
  line-height: 0;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Page furniture */

.column {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 10px;
}

.section {
  padding: 10px 0;
}

.breadcrumb {
  margin: 0;
  padding: 26px 0 30px;
  color: var(--black);
  font-size: 16px;
  text-align: right;
}

.center {
  text-align: center;
}

.page-title {
  margin-top: 40px;
}

/* Buttons */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  padding: 16px 32px;
  border: 0;
  border-radius: 2px;
  background: var(--pink);
  color: #ffffff;
  font-family: "Actor", var(--body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.button:hover,
.button:focus-visible {
  background: var(--plum);
  color: #c5c4c4;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* The "Contact Kayleigh" button swaps its label for "Let's go!" on hover. */
.button--swap .button__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s, opacity 0.3s;
}

.button--swap::after {
  content: attr(data-hover);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(25%);
  transition: transform 0.3s, opacity 0.3s;
}

.button--swap:hover .button__label,
.button--swap:focus-visible .button__label {
  opacity: 0;
  transform: translateY(-25%);
}

.button--swap:hover::after,
.button--swap:focus-visible::after {
  opacity: 1;
  transform: none;
}

/* "Like what you hear?" */

.cta {
  padding: 24px 0 10px;
  text-align: center;
}

.cta__question {
  margin: 0 0 20px;
  color: var(--black);
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.typed.is-typing::after {
  content: "|";
  font-weight: 400;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Home */

.hero {
  display: block;
  width: 100%;
}

.about {
  padding: 10px 0 40px;
}

.about a {
  text-decoration: none;
  color: var(--text);
}

.about a:hover {
  color: var(--pink);
}

/* Voice */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
  text-align: center;
}

.trio__item {
  padding: 10px;
}

.trio__photo {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
}

.trio audio {
  display: block;
  width: 100%;
  height: 40px;
}

.trio__logo {
  display: inline-block;
  line-height: 0;
}

/* Galleries and the lightbox */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery--tight {
  gap: 0;
}

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
  line-height: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.8s;
}

.gallery a:hover::after,
.gallery a:focus-visible::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-width: calc(100vw - 120px);
  text-align: center;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  margin: 0 auto;
  width: auto;
  height: auto;
}

.lightbox__caption {
  margin: 0;
  padding-top: 10px;
  color: #dddddd;
  font-size: 14px;
  line-height: 1.4;
}

.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  line-height: 0;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox button:focus-visible {
  outline-color: #ffffff;
}

.lightbox svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.lightbox__close {
  top: 10px;
  right: 10px;
}

.lightbox__prev {
  left: 6px;
  top: calc(50% - 24px);
}

.lightbox__next {
  right: 6px;
  top: calc(50% - 24px);
}

/* Contact form */

.form {
  margin: 0;
}

.field {
  display: block;
  margin: 0 0 10px;
}

.field > label {
  display: block;
  line-height: 1.8;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 5px 14px;
  border: 1px solid #69727d;
  border-radius: 3px;
  background: #ffffff;
  color: #1f2124;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.field input {
  min-height: 40px;
}

.field textarea {
  min-height: 150px;
  padding-top: 10px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--plum);
  outline-offset: 0;
}

.field__error {
  display: block;
  color: var(--error);
  font-size: 14px;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

/* The honeypot: people never see or reach it, bots fill it in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .button {
  width: 100%;
  min-height: 40px;
  padding: 8px 24px;
  border-radius: 3px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
}

.form .button:hover,
.form .button:focus-visible {
  color: #ffffff;
}

.human-check:not(:empty) {
  margin: 0 0 20px;
}

.form-note {
  margin: 0 0 20px;
  font-weight: 500;
}

.form-status {
  margin: 20px 0 0;
  font-weight: 500;
}

.form-status--error {
  color: var(--error);
}

.form-status--success {
  color: var(--black);
  font-size: 18px;
}

/* Demo page */

.demo {
  color: var(--black);
}

.demo video {
  display: block;
  width: 100%;
  background: #000000;
}

.demo audio {
  display: block;
  width: 100%;
  margin-bottom: 18px;
}

.demo a {
  color: var(--text);
}

.demo .button {
  padding: 12px 24px;
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
}

.demo__label {
  color: var(--text);
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 24px;
  color: #090909;
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px dotted #626262;
}

.testimonials {
  position: relative;
  margin: 0 0 40px;
  padding: 0 48px;
}

.testimonials__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonials__track::-webkit-scrollbar {
  display: none;
}

.testimonials__track > li {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 10px 20px;
  text-align: center;
}

.testimonials blockquote {
  margin: 0 0 25px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

.testimonials blockquote p {
  margin: 0 0 14px;
}

.testimonials blockquote a {
  color: inherit;
}

.testimonials mark {
  background: none;
  color: #542583;
  font-weight: 700;
}

.testimonials .q {
  color: var(--black);
}

.testimonials cite {
  display: block;
  color: #44b3ac;
  font-size: 14px;
  font-style: normal;
  line-height: 1.4;
}

.testimonials cite span {
  display: block;
  font-weight: 700;
}

.testimonials button {
  position: absolute;
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #e95a78;
  cursor: pointer;
  line-height: 0;
}

.testimonials button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.testimonials [data-carousel-prev] {
  left: 0;
}

.testimonials [data-carousel-next] {
  right: 0;
}

/* Footer */

.site-footer {
  flex: none;
  background: var(--grey);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  min-height: 90px;
  margin: 0 auto;
  padding: 10px;
}

.site-footer__name {
  margin: 0;
  color: #adadad;
  font-family: "Actor", var(--body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.socials {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: block;
  color: var(--black);
  line-height: 0;
  transition: color 0.3s;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--pink);
}

.socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: var(--black);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.to-top.is-visible {
  opacity: 0.7;
  visibility: visible;
}

.to-top:hover {
  color: #ffffff;
  opacity: 1;
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Tablet */

@media (max-width: 1024px) {
  .site-nav a {
    margin: 0;
    font-size: 14px;
  }

  .site-footer__inner {
    padding: 10px 30px;
  }

  .gallery--photos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Keep text off the screen edge until the column has room to centre. */

@media (max-width: 1199px) {
  .column {
    padding: 0 26px;
  }
}

/* Phone */

@media (max-width: 767px) {
  .site-header__logo {
    flex-basis: 55%;
    max-width: 200px;
  }

  /* With scripts on, the menu collapses behind the burger button. Without
     them it stays open under the logo so every page is still reachable. */
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    flex: 0 0 100%;
    margin: 0 -5.6%;
    flex-basis: 111.2%;
    background: #ffffff;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav li {
    border-top: 1px solid #e0e0e0;
  }

  .site-nav a {
    padding: 22px 20px;
    margin: 0;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    transform: none;
    color: #9e9e9e;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .column {
    padding: 0 26px;
  }

  .hero-wrap.column {
    padding: 0 26px;
  }

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

  .trio__item {
    padding: 10px 0 40px;
  }

  .gallery--photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery--tight {
    grid-template-columns: repeat(3, 1fr);
  }

  .lightbox__figure {
    max-width: 100vw;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 6px;
  }

  .testimonials {
    padding: 0 30px;
  }

  .testimonials__track > li {
    padding: 10px 6px;
  }

  .site-footer__inner {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 20px 20px;
  }

  .socials svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
