/* Les Merson */

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #61ce70;
  --grey: #7a7a7a;
  --band: #dcdcdc;
  --mid: #6e6e6e;
  --dark: #151515;
  --red: #d63637;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
strong { font-weight: 700; }
p { margin: 0 0 .9rem; }

.center { text-align: center; }
.t15 { font-size: 15px; }
.t18 { font-size: 18px; }
.t20 { font-size: 20px; }

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

.skip-link {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 8px;
  padding: 10px 16px;
  background: #000;
  color: #fff;
}
.skip-link:focus { top: 8px; }

/* ---- Header ---- */
.site-header {
  position: relative;
  z-index: 95;
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 2% 5%;
  background: #fff;
}
.site-title {
  flex: 0 0 35%;
  color: #000;
  font-size: 28px;
  font-weight: 300;
  line-height: 30px;
}
.site-title a { color: #000; text-decoration: none; }
.site-actions {
  display: flex;
  flex: 0 0 65%;
  align-items: center;
  justify-content: flex-end;
}
.menu-toggle { display: none; }
.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 15px;
  color: var(--grey);
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { color: var(--green); }

/* ---- Page title ---- */
.page-title {
  padding: 10px 0;
  color: #000;
  font-size: 30px;
  font-weight: 400;
}
.page-title p { padding: 15px 0 0 60px; }

/* ---- Bands ---- */
.band { position: relative; }
.band--dark { padding-top: 60px; background: var(--dark); }
.band--angled { padding: 200px 60px; background: var(--band); }

.shape {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.shape svg {
  display: block;
  position: relative;
  left: 50%;
  width: calc(100% + 1.3px);
  transform: translateX(-50%);
}
.shape path { fill: #fff; }
.shape--top { top: -1px; }
.shape--bottom { bottom: -1px; transform: rotate(180deg); }

.prose { position: relative; margin: 0 60px; color: #000; }
.prose h3 { margin: .5rem 0 1rem; font-size: 1.75rem; font-weight: 500; line-height: 1.2; }
.prose a { color: inherit; }
.page-events .prose a { color: #f00; }

/* ---- Slideshows ---- */
.slider { position: relative; overflow: hidden; touch-action: pan-y; }
.slider__track { display: grid; }
.slide {
  display: flex;
  flex-direction: column;
  grid-area: 1 / 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  visibility: hidden;
}
.slide.is-active { visibility: visible; }
.slide img { width: var(--w); height: var(--h); max-width: 100%; }
.slide__caption {
  width: 100%;
  margin: 0;
  padding: 50px 30px 30px;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}
.page-employment .slide:first-child .slide__caption { padding-top: 60px; }
.slide__caption b { font-weight: 400; }
.slide__caption i { font-weight: inherit; }
.slider__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  padding: 2px;
  background: rgba(0, 0, 0, .67);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background .3s;
}
.slider__arrow:hover, .slider__arrow:focus, .slider__arrow:active { background: #ff9139; }
.slider__arrow svg { display: block; width: 26px; height: 26px; }
.slider__arrow--prev { left: 15px; }
.slider__arrow--next { right: 15px; }

/* ---- Home ---- */
.hero { display: flex; }
.hero__quote {
  display: flex;
  flex: 0 0 60%;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--band);
  color: #000;
  font-size: 35px;
  font-weight: 300;
}
.hero__quote > * { width: 100%; }
.hero__text { padding: 60px; }
.hero__photo { flex: 0 0 40%; padding: 10px; background: var(--mid); }
.hero__photo img { width: 100%; padding: 60px; }

/* ---- Education ---- */
.band--education { padding: 60px; background: var(--band); }
.edu-row { display: flex; }
.edu-row + .edu-row { margin-top: 60px; }
.edu-card {
  flex: 0 0 50%;
  min-width: 0;
  padding: 10px;
  color: #000;
  text-align: center;
}
.edu-card img { width: 100%; margin-bottom: 20px; }
.edu-card h2 { margin: 0; font-size: 20px; font-weight: 400; line-height: 26px; }

/* ---- Creative ---- */
.band--works { padding: 200px 60px 0; background: var(--band); }
.band--works-last { padding: 60px 60px 200px; }
.works { position: relative; display: flex; }
.work {
  display: flex;
  flex: 0 0 50%;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  color: #000;
  text-align: center;
}
.work:first-child { border-right: 2px solid #333; }
.work h2 { margin: 0; font-size: 32px; font-weight: 300; line-height: 1; }
.work h2 + a, .work h2 + .socials, .work a + h2 { margin-top: 20px; }
.work h2.site-link { font-size: 16px; }
.site-link a { color: #000; }
.work > a { align-self: center; max-width: 100%; }
.work--film > a { width: 700px; }
.work--writing > a { width: 800px; }
.work--music > a { width: 357px; }
.work--film img { width: 50%; margin: 0 auto; }
.work--writing img { width: 58%; margin: 0 auto; }
.socials { display: flex; justify-content: center; gap: 55px; padding-top: 120px; }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 10%;
  transition: transform .3s;
}
.social:hover, .social:focus { transform: translateY(-8px); }
.social svg { width: 60px; height: 60px; fill: #fff; }
.social--youtube { background: #cd201f; }
.social--soundcloud { background: #f80; }

/* ---- Recognition ---- */
.recognition { padding: 60px 120px; }
.recognition-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid #ccc;
  color: #000;
}
.recognition-item { display: contents; }
.year-cell, .content-cell { padding: 15px; border-bottom: 1px solid #ccc; }
.year-cell { background: #f7f7f7; font-weight: 700; }
.content-cell a { color: #000; text-decoration: underline; word-break: break-word; }
.bold-text { font-weight: 700; }

/* ---- 404 ---- */
.not-found { padding: 60px; color: #000; }
.not-found h1 { margin: 0 0 1rem; font-size: 30px; font-weight: 700; line-height: 1.2; }

/* ---- Footer ---- */
.footer-links { display: flex; padding-top: 60px; }
.footer-link { flex: 1 1 0; min-width: 0; padding: 10px; text-align: center; }
.footer-link figure { width: 30%; margin: 0 auto 14px; }
.footer-link--4 figure { margin-bottom: 27px; }
.footer-link--5 figure { margin-bottom: 47px; }
.footer-link img { width: 100%; }
.footer-link a:hover img, .footer-link a:focus img {
  animation: hang-sink .3s ease-out forwards, hang 1.5s ease-in-out .3s infinite alternate;
}
.footer-link h3 { margin: 0; font-size: 18px; font-weight: 300; line-height: 1.2; }
.footer-link h3 a { color: #000; text-decoration: none; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px;
  background: #fff;
}
.email { display: inline-flex; align-items: center; gap: 6px; color: #000; font-size: 16px; }
.email span { text-decoration: underline; }
.email svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.copyright { margin: 0; color: #54595f; font-size: 13px; font-weight: 300; line-height: 1; }

@keyframes hang { 0% { transform: translateY(8px); } 50% { transform: translateY(4px); } 100% { transform: translateY(8px); } }
@keyframes hang-sink { 100% { transform: translateY(8px); } }

/* ---- Slide layout on smaller screens ---- */
@media (min-width: 1200px) {
  .slider__track { aspect-ratio: 12 / 7; }
}

/* ---- Tablet: the menu folds up at 1024px ---- */
@media (max-width: 1024px) {
  .site-title { flex-basis: 15%; }
  .site-actions { flex-basis: 85%; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40.4px;
    height: 43.4px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: 0;
    color: #000;
    cursor: pointer;
  }
  .menu-toggle svg { display: block; width: 25px; height: 25px; fill: currentColor; }
  .icon-close, .nav-wrap.is-open .icon-open { display: none; }
  .nav-wrap.is-open .icon-close { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; background: #fff; }
  .nav-wrap.is-open .site-nav { display: block; }
  .site-nav ul { display: block; }
  .site-nav li:not(:last-child) { border-bottom: 1px solid #c4c4c4; }
  .site-nav a { font-weight: 500; }
  .footer-bottom { padding: 30px 20px; }
}

/* ---- Images go fluid at 768px, as the old site's custom CSS did ---- */
@media (max-width: 768px) {
  .slide img { width: 100%; height: auto; }
  .slide--fixed img { width: 300px; height: 600px; }
}

/* ---- Phones ---- */
@media (max-width: 767px) {
  .site-header { flex-direction: column; min-height: 0; padding: 30px 0; }
  .site-title { flex: none; padding-bottom: 20px; font-size: 22px; text-align: center; }
  .site-actions { flex: none; justify-content: center; width: 100%; }

  .page-title { font-size: 24px; text-align: center; }
  .page-title p { padding: 15px 0 0; }

  .band--dark { padding-top: 0; }
  .band--angled { padding: 60px 30px; }
  .prose { margin: 0; }
  .slide__caption { font-size: 19.2px; }

  .hero { display: block; }
  .hero__quote { font-size: 24px; }
  .hero__text { padding: 30px; }

  .band--education { padding: 60px 0; }
  .edu-row { display: block; }
  .edu-row + .edu-row { margin-top: 30px; }
  .edu-card + .edu-card { padding-top: 40px; }
  .edu-card h2 { font-size: 18px; line-height: 18px; }

  .band--works { padding: 60px 0 0; }
  .band--works-last { padding: 60px 0 80px; }
  .works { display: block; }
  .work { padding: 0; }
  .work + .work { padding-top: 60px; }
  .work h2 { padding: 20px; }
  .work h2.site-link { padding: 0; }
  .work--music { padding: 10px; }
  .work--film img, .work--writing img, .work--music img { width: 80%; margin: 0 auto; }
  .socials { gap: 26px; padding-top: 30px; }
  .social { width: 80px; height: 80px; }
  .social svg { width: 40px; height: 40px; }

  .recognition { padding: 60px 30px; }


  .footer-links { display: block; padding-top: 60px; }
  .footer-bottom { flex-direction: column; gap: 20px; padding: 25px 20px; }
  .copyright { line-height: 19px; text-align: center; }
}

@media (max-width: 600px) {
  .recognition-grid { grid-template-columns: 1fr; }
  .year-cell { background: transparent; border-bottom: 0; }
  .content-cell { border-top: 1px solid #ccc; }
}

/* ---- The slideshows' phone layout follows the old slider's own breakpoints ---- */
@media (orientation: portrait) and (max-width: 700px), (orientation: landscape) and (max-width: 900px) {
  .slider__arrow { display: none; }
  .slide { padding: 60px 0; }
  .slide__caption { padding: 50px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-link a:hover img, .footer-link a:focus img { animation: none; }
  .social { transition: none; }
}
