@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap");

:root {
  --red: #e8192c;
  --black: #000;
  --white: #fff;
  --gray: #b3b3b3;
  --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --header-h: 5.5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  text-transform: lowercase;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.logo-bar {
  width: 3px;
  background: var(--red);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--black);
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
}

.site-nav {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  padding-top: 0.15rem;
}

.nav-link::before {
  content: "";
  width: 2.75rem;
  height: 2px;
  background: var(--gray);
  transition: background 0.2s;
}

.nav-link:hover::before,
.nav-link.is-active::before,
.nav-item:hover > .nav-link::before {
  background: var(--red);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 11rem;
  background: var(--white);
  border: 1px solid #eee;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown a {
  display: block;
  padding: 0.4rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--red);
}

/* home */

.page-home main {
  position: relative;
}

.page-home {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.home-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
}

.home-overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) clamp(1.5rem, 6vw, 5rem) 3rem;
  gap: 2rem;
}

.home-taglines {
  justify-self: center;
  position: relative;
  z-index: 2;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.55;
}

.home-taglines a {
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  transition: color 0.2s;
}

.home-taglines a:hover {
  color: var(--red);
}

.home-taglines .dash {
  color: var(--red);
}

.home-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: center;
  position: relative;
  z-index: 2;
}

.home-social a {
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.85;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.home-social a:hover {
  opacity: 1;
}

.home-social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* content pages */

.page-content {
  padding: calc(var(--header-h) + 2rem) clamp(1.5rem, 8vw, 7rem) 6rem;
  min-height: 100vh;
}

.page-content--narrow {
  max-width: 42rem;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  margin: 0 0 1.5rem;
}

.page-title .dot {
  color: var(--red);
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.section-heading:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  max-width: 36rem;
}

.prose ul {
  margin-bottom: 1rem;
}

.prose li {
  padding-left: 0.25rem;
}

.prose .dash {
  color: var(--red);
}

.prose a.email-link {
  color: var(--red);
  border-bottom: 1px solid var(--red);
  transition: opacity 0.2s;
}

.prose a.email-link:hover {
  opacity: 0.75;
}

/* about */

.page-about {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 38%);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: 5rem;
}

.about-portrait {
  align-self: end;
  margin-bottom: -4rem;
}

.about-portrait img {
  width: 100%;
  filter: grayscale(100%);
}

/* footer */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 1.25rem clamp(1.5rem, 6vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.footer-docs {
  display: flex;
  gap: 0.75rem;
}

.footer-docs a {
  border: 1px solid var(--white);
  padding: 0.45rem 1.5rem;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.footer-docs a:hover {
  background: var(--white);
  color: var(--black);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* video grid */

.season-heading {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.season-heading:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card h3 {
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0.65rem 0 0;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #111;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* contact */

.contact-intro {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.15rem;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.75;
}

/* mobile */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(18rem, 85vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-link {
    align-items: flex-start;
    padding: 0.85rem 0;
  }

  .nav-link::before {
    width: 2rem;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    padding: 0 0 0.5rem 1rem;
    background: transparent;
  }

  .nav-dropdown a {
    padding: 0.35rem 0;
    color: #555;
  }

  .home-overlay {
    grid-template-columns: 1fr;
    align-content: end;
    padding-bottom: 5rem;
  }

  .home-taglines {
    justify-self: start;
  }

  .home-social {
    flex-direction: row;
    justify-self: start;
  }

  .page-about {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    order: -1;
    margin-bottom: 0;
    max-width: 20rem;
  }
}
