:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #f7f7f5;
  background: #090a0b;
  font-optical-sizing: auto;
  font-weight: 400;
  --header: #0f0f0f;
  --muted: #a4a8aa;
  --page-gutter: clamp(1.25rem, 6vw, 6rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.25rem;
  color: #101417;
  background: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  min-height: 5rem;
  padding: 0.75rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-logo {
  width: auto;
  height: 2.75rem;
  display: block;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.52rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.52rem) rotate(-45deg);
}

.primary-navigation {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 0.5rem var(--page-gutter) 1rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--header);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.primary-navigation.is-open {
  display: flex;
}

.primary-navigation a {
  padding: 0.8rem 0;
  color: #e4e6e7;
  font-size: 1rem;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

main {
  width: 100%;
  flex: 1;
}

.hero {
  width: min(100% - 2 * var(--page-gutter), 76rem);
  min-height: min(47rem, calc(100vh - 9rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.hero-image {
  overflow: hidden;
  background: #17191a;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 42rem;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  max-width: 37rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: #bdc3c6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2.625rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.accent-rule {
  width: 5rem;
  height: 2px;
  margin: 1.5rem 0 2rem;
  display: block;
  background: #d3d8da;
}

.hero-description {
  max-width: 26rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  min-height: 3.4rem;
  padding: 0.8rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #172027;
  background: #f2f4f4;
}

.button-primary:hover {
  background: #dce1e2;
}

.button-secondary {
  border-color: rgb(255 255 255 / 55%);
  background: transparent;
}

.button-secondary:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 8%);
}

.button-arrow {
  font-size: 1.15rem;
}

.site-footer {
  min-height: 4.5rem;
  padding: 1rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #aeb3b5;
  background: #101315;
  font-size: 0.85rem;
}

.site-footer a {
  text-decoration: none;
}

/* Interior pages (About, etc.) */
.page-intro {
  width: min(100% - 2 * var(--page-gutter), 76rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.prose {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1.25rem;
}

/* About page */
.about-bio {
  display: flow-root; /* contains the floated photo */
  color: #bdc3c6;
  font-size: clamp(1rem, 1.2vw, 1.075rem);
  line-height: 1.75;
}

.about-bio p {
  margin: 0 0 1.1rem;
}

.about-bio strong {
  color: #fff;
  font-weight: 700;
}

.about-photo {
  float: left;
  width: clamp(14rem, 24%, 18rem);
  height: auto;
  margin: 0.35rem 1.5rem 1rem 0;
  display: block;
}

/* Contact page */
.contact-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-card {
  padding: 1.75rem;
  border: 1px solid rgb(255 255 255 / 12%);
  background: #101315;
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-card a {
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (min-width: 760px) {
  .menu-toggle {
    display: none;
  }

  .primary-navigation,
  .primary-navigation.is-open {
    position: static;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    border: 0;
    background: transparent;
  }

  .primary-navigation a {
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }
}

@media (max-width: 759px) {
  .site-header {
    min-height: 4.5rem;
  }

  .site-logo {
    height: 2.25rem;
  }

  .hero {
    width: 100%;
    min-height: 0;
    padding: 2.5rem var(--page-gutter) 4rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-image {
    width: min(100%, 30rem);
    margin: 0 auto;
  }

  .hero-image img {
    max-height: none;
    aspect-ratio: 3 / 4;
  }

  .hero-copy {
    width: min(100%, 34rem);
    margin: 0 auto;
  }

  h1 {
    max-width: 24ch;
    font-size: clamp(1.35rem, 5vw, 2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo {
    float: none;
    width: min(100%, 22rem);
    margin: 0 auto 1.75rem;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-actions {
    align-items: center;
  }

  .button {
    width: min(100%, 16rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
