:root {
  --ink: #f8f8f8;
  --black: #050505;
  --nav: #1a1a1a;
  --card: #111;
  --border: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.72);
  --rule: rgba(255, 255, 255, 0.28);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--black);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

p {
  font-family: "Harmattan", sans-serif;
}

h2,
h3 {
  font-family: "Alta", serif;
}

h4,
h5,
h6 {
  font-family: "Alta", serif;
}

.site-nav {
  min-height: 58px;
  background: var(--nav);
}

.site-nav .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: clamp(2.5rem, 5vw, 4.25rem);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-menu a.active,
.nav-menu a:hover {
  color: #fff;
}

.nav-toggle,
.nav-toggle-label,
.mobile-brand {
  display: none;
}

.hero {
  min-height: calc(100vh - 58px);
}

.hero-image {
  position: relative;
  overflow: hidden;
  height: clamp(560px, 68vw, 965px);
  max-height: calc(100vh - 58px);
  background: #181818;
}

.hero-image img,
.hero-image video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 73% 46%;
}

.hero-title {
  position: absolute;
  top: auto;
  bottom: clamp(3rem, 9vh, 6rem);
  left: clamp(2rem, 14vw, 15.5rem);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36);
}

h1 {
  margin: 0;
  font-family: "Le Jour Serif", serif;
  font-size: clamp(4.2rem, 5.25vw, 6rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.home-page h1 {
  color: #f0f5f9;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
}

.home-page .hero-title hr {
  color: #f0f5f9;
  opacity: 1;
}

.home-page .hero-title h2 {
  color: #f0f5f9;
}

.hero-title p {
  width: 100%;
  margin: 1.3rem 0 0;
  padding-top: 1.55rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 300;
}

.bio .container {
  max-width: 1050px;
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.bio p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.1rem, 1.55vw, 1.34rem);
  font-weight: 300;
  line-height: 1.85;
  text-align: center;
}

.page-hero {
  position: relative;
  min-height: clamp(160px, 20vw, 260px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #181818, #080808);
  text-align: center;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.35));
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.card-content,
.gallery-content {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.content-card,
.gallery-card {
  color: rgba(255, 255, 255, 0.92);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.content-card {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.92);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-form {
  display: grid;
  gap: 1.35rem;
}

.contact-field {
  display: grid;
  gap: 0.5rem;
}

.contact-field label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 0.85rem 1rem;
  color: #fff;
  background: #080808;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
}

.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 2px;
}

.contact-submit {
  justify-self: start;
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 0.75rem 1.5rem;
  color: #050505;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  color: #fff;
  background: transparent;
}

.resume-page .content-card,
.reviews-page .content-card {
  color: #c9d6df;
  background: #52616b;
}

.resume-page .content-card h2,
.reviews-page .content-card h2 {
  color: #c9d6df;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow: 1px 1px 0 #000;
}

.contact-page .contact-card {
  color: #000;
  background: #c9d6df;
}

.contact-page .contact-card p {
  color: #000;
}

.contact-page .contact-field input,
.contact-page .contact-field textarea {
  color: #000;
  background: #f0f5f9;
  border-color: rgba(0, 0, 0, 0.3);
}

.contact-page .contact-submit {
  color: #fff;
  background: #52616b;
  border-color: #52616b;
}

.contact-page .contact-submit:hover,
.contact-page .contact-submit:focus-visible {
  color: #fff;
  background: #3f4c54;
}

.content-card h2,
.gallery-meta h2 {
  margin: 0 0 1.45rem;
  color: #fff;
  font-family: "Alta", serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
}

.content-card p,
.review-entry p {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 300;
  line-height: 1.65;
}

.content-card p:last-child,
.review-entry p:last-child {
  margin-bottom: 0;
}

.review-card h2 {
  margin-bottom: 1.75rem;
}

.review-entry {
  padding-top: 1.35rem;
  margin-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.review-entry:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.review-entry h3 {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 300;
  line-height: 1.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.responsive-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.responsive-gallery > a {
  display: block;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #050505;
  aspect-ratio: 4 / 3;
}

.responsive-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.responsive-gallery > a:hover img,
.responsive-gallery > a:focus-visible img {
  opacity: 0.86;
  transform: scale(1.025);
}

.responsive-gallery > a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.gallery-card {
  overflow: hidden;
}

.scroll-carousel {
  position: relative;
  display: flex;
  height: clamp(260px, 42vw, 520px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
  background: #050505;
}

.scroll-slide {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.scroll-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-frame {
  position: relative;
  background: #050505;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 1.65rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-arrow:hover,
.gallery-arrow:focus {
  background: rgba(255, 255, 255, 0.18);
}

.gallery-arrow.prev {
  left: 0.75rem;
}

.gallery-arrow.next {
  right: 0.75rem;
}

.slide-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  padding: 0.8rem 1rem 0;
}

.slide-dots a {
  width: 0.65rem;
  height: 0.65rem;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  text-indent: -999px;
  overflow: hidden;
}

.slide-dots a:hover,
.slide-dots a:focus {
  background: #fff;
}

.gallery-meta {
  padding: 1.1rem 1.25rem 1.35rem;
}

.gallery-meta h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}

.gallery-meta p {
  margin: 0.16rem 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.45;
}

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.9);
  font-size: calc(1.08rem - 2px);
  font-weight: 300;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.privacy-page .content-card,
.terms-page .content-card,
.accessibility-page .content-card {
  text-align: left;
}

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

@media (max-width: 767.98px) {
  .site-nav,
  .site-nav .container {
    min-height: 58px;
  }

  .site-nav .container {
    justify-content: space-between;
  }

  .mobile-brand,
  .nav-toggle-label {
    display: block;
  }

  .mobile-brand {
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    text-decoration: none;
  }

  .nav-toggle-label {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.375rem;
    padding: 0.35rem 0.65rem;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
  }

  .nav-menu {
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0;
    background: var(--nav);
  }

  .nav-menu a {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 10px;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .hero-image {
    height: 600px;
  }

  .hero-image img,
  .hero-image video {
    object-position: 67% 50%;
  }

  .hero-title {
    top: auto;
    right: 1rem;
    bottom: 3rem;
    left: 1.4rem;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.9rem);
  }

  .bio p,
  .content-card,
  .review-card {
    text-align: left;
  }

  .scroll-carousel {
    height: clamp(240px, 76vw, 430px);
  }

  .gallery-arrow {
    width: 2rem;
    height: 2rem;
    font-size: 1.35rem;
  }
}
