@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,600;1,400&family=Share+Tech+Mono&display=swap");

:root {
  --black: #000000;
  --white: #ffffff;
  --page-width: 1180px;
  --body-font: "IBM Plex Mono", "Courier New", monospace;
  --heading-font: "Share Tech Mono", "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
}

body {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  font-weight: 400;
}

a {
  color: var(--white);
  font-family: var(--body-font);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  outline: 0;
}

img {
  max-width: 100%;
}

.site-shell {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 18px auto 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-top: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  font-size: 0.9rem;
}

.masthead {
  padding: 44px 0 30px;
  text-align: center;
}

.masthead h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(4.2rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.name {
  margin: 34px 0 8px;
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  letter-spacing: 0.14em;
}

.tagline {
  margin: 0;
  font-style: italic;
}

.menu {
  width: min(100%, 810px);
  margin: 0 auto;
  padding: 35px 0;
  border-top: 1px dashed var(--white);
  border-bottom: 1px dashed var(--white);
  text-align: center;
}

.menu a {
  display: table;
  margin: 10px auto;
  line-height: 1.3;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 34px;
  align-items: stretch;
  width: min(100%, 980px);
  margin: 0 auto;
  border-top: 1px dashed var(--white);
  border-bottom: 1px dashed var(--white);
}

.home-grid .menu {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 34px 12px;
  border: 0;
}

.home-grid .menu a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(1rem, 1.85vw, 1.28rem);
  line-height: 1.35;
  text-align: center;
}

.home-art {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px 0;
}

.home-art img {
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: 460px;
  object-fit: contain;
  border: 2px solid var(--white);
}

.statement {
  margin: 38px auto 12px;
  max-width: 760px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.footerbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 18px;
  border-top: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  font-size: 0.86rem;
}

.subpage {
  display: grid;
  min-height: calc(100vh - 36px);
  grid-template-rows: auto 1fr auto;
}

.subpage-main {
  display: grid;
  place-items: center;
  padding: 70px 0;
  text-align: center;
}

.subpage-main h1 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.return-link {
  margin-top: 34px;
  font-size: 1rem;
}

.about-main,
.project-page,
.content-page {
  display: grid;
  place-items: center;
  padding: 70px 0;
}

.about-copy {
  width: min(100%, 780px);
}

.about-copy h1,
.project-list > h1,
.content-column > h1 {
  margin: 0 0 44px;
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
}

.about-photo {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto 42px;
  border: 2px solid var(--white);
}

.about-copy p {
  margin: 0 0 22px;
  max-width: none;
}

.about-copy .return-link,
.project-list .return-link,
.content-column .return-link {
  margin-top: 42px;
  text-align: center;
}

.project-list,
.content-column {
  width: min(100%, 860px);
}

.coming-soon {
  margin: 0 0 26px;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.coming-soon-item,
.archive-section {
  padding: 26px 0;
  border-top: 1px dashed var(--white);
}

.coming-soon-item:last-of-type,
.archive-section:last-of-type {
  border-bottom: 1px dashed var(--white);
}

.coming-soon-item h2,
.archive-section h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coming-soon-item p,
.archive-section p {
  margin: 0 0 18px;
}

.archive-section p:last-child {
  margin-bottom: 0;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  position: relative;
  margin: 0;
  padding: 0 0 18px 28px;
}

.archive-list li:last-child {
  padding-bottom: 0;
}

.archive-list li::before {
  position: absolute;
  left: 0;
  content: ">";
  font-family: var(--heading-font);
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.contact-column {
  width: min(100%, 700px);
}

.contact-list {
  margin: 0;
  border-top: 1px dashed var(--white);
  border-bottom: 1px dashed var(--white);
}

.contact-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--white);
}

.contact-list div:last-child {
  border-bottom: 0;
}

.contact-list dt {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.soundcloud-player {
  overflow: hidden;
  margin-top: 20px;
  border: 2px solid var(--white);
  line-height: 0;
}

.soundcloud-player iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.soundcloud-credit {
  margin-top: 10px !important;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 34px;
  align-items: start;
}

.feature-copy .coming-soon-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.feature-image {
  margin: 0;
}

.feature-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--white);
}

.feature-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .home-grid,
  .feature-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-grid .menu {
    gap: 14px;
    padding: 30px 10px;
  }

  .home-art {
    padding: 0 0 28px;
  }

  .home-art img {
    max-width: 430px;
    max-height: none;
  }

  .feature-image {
    order: -1;
    width: min(100%, 340px);
    margin: 0 auto 24px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(calc(100% - 24px), var(--page-width));
    margin-top: 10px;
  }

  .topbar,
  .footerbar {
    flex-direction: column;
    gap: 2px;
  }

  .masthead {
    padding-top: 36px;
  }

  .masthead h1 {
    font-size: clamp(3.3rem, 18vw, 6.2rem);
    letter-spacing: 0.04em;
  }

  .menu {
    padding: 28px 0;
  }

  .menu a {
    margin: 12px auto;
  }

  .about-main,
  .project-page,
  .content-page {
    padding: 48px 0;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.performance-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 48px;
  padding: 28px 0;
  border-top: 1px dashed var(--white);
  border-bottom: 1px dashed var(--white);
}

.performance-gallery figure {
  margin: 0;
}

.performance-gallery img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: var(--black);
  border: 2px solid var(--white);
}

.performance-gallery figcaption {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .performance-gallery {
    grid-template-columns: 1fr;
  }

  .performance-gallery img {
    height: auto;
    max-height: 520px;
  }
}

.performance-gallery .gallery-wide {
  grid-column: 1 / -1;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  align-items: stretch;
}

.performance-gallery .image-pair img {
  height: 300px;
}

@media (max-width: 760px) {
  .image-pair {
    grid-template-columns: 1fr;
  }

  .performance-gallery .image-pair img {
    height: auto;
    max-height: 520px;
  }
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 20px;
  border: 2px solid var(--white);
  background: var(--black);
}

.video-player iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* About portrait: switch between original and inverted every 1.5 seconds */
.about-photo {
  animation: photo-flash 3s steps(1, end) infinite;
}

@keyframes photo-flash {
  0%,
  49.9% {
    filter: none;
  }

  50%,
  100% {
    filter: invert(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-photo {
    animation: none;
    filter: none;
  }
}

/* Contact details and newsletter */
.contact-page {
  padding-top: 54px;
  padding-bottom: 54px;
}

.newsletter-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px dashed var(--white);
  text-align: center;
}

.newsletter-section h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.newsletter-section p {
  margin: 0 auto 22px;
  max-width: 620px;
}

.newsletter-action {
  margin-bottom: 0 !important;
}

.newsletter-button {
  display: inline-block;
  padding: 14px 18px;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  font-family: var(--body-font);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.newsletter-button:hover,
.newsletter-button:focus-visible {
  background: var(--white);
  color: var(--black);
  outline: 0;
}
