/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/bodoni-moda.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/dm-sans.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --cream: #fafafa;
  --cream-rgb: 250, 250, 250;
  --charcoal: #121212;
  --charcoal-rgb: 18, 18, 18;
  --warm-gray: #6b6b6b;
  --taupe: #8c8c8c;
  --taupe-light: #b8b8b8;
  --sand: #d6d6d6;
  --sand-rgb: 214, 214, 214;
  --blush: #e8e8e8;
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;
  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  text-align: inherit;
}

a,
button {
  cursor: pointer;
}

/* ---------- Base ---------- */
body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: var(--font-display);
}

.section-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--taupe);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--charcoal);
}

@media (min-width: 640px) {
  .section-heading {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-heading {
    font-size: 3rem;
  }
}

.container {
  max-width: 72rem;
  margin-inline: auto;
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(var(--sand-rgb), 0.4);
  background: rgba(var(--cream-rgb), 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .site-header__inner {
    padding-inline: 2rem;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding-inline: 3rem;
  }
}

.site-header__logo-link {
  display: flex;
  align-items: center;
}

.site-header__logo {
  height: 2rem;
  width: 2rem;
  filter: brightness(0);
}

@media (min-width: 640px) {
  .site-header__logo {
    height: 2.25rem;
    width: 2.25rem;
  }
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  transition: color 0.2s ease;
}

.site-header__nav-link:hover {
  color: var(--charcoal);
}

.site-header__menu-button {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .site-header__menu-button {
    display: none;
  }
}

.site-header__menu-icon {
  position: relative;
  display: block;
  height: 1rem;
  width: 1.25rem;
}

.site-header__menu-bar {
  position: absolute;
  left: 0;
  display: block;
  height: 2px;
  width: 1.25rem;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-header__menu-bar--top {
  top: 0;
}

.site-header__menu-bar--middle {
  top: 0.5rem;
}

.site-header__menu-bar--bottom {
  top: 1rem;
}

.site-header.is-open .site-header__menu-bar--top {
  top: 0.5rem;
  transform: rotate(45deg);
}

.site-header.is-open .site-header__menu-bar--middle {
  opacity: 0;
}

.site-header.is-open .site-header__menu-bar--bottom {
  top: 0.5rem;
  transform: rotate(-45deg);
}

.site-header__mobile-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  border-top: 1px solid rgba(var(--white-rgb), 0.1);
  background: rgba(var(--black-rgb), 0.7);
  padding: 2.5rem 1.5rem;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

@media (min-width: 768px) {
  .site-header__mobile-nav {
    display: none !important;
  }
}

.site-header.is-open .site-header__mobile-nav {
  display: block;
}

.site-header__mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.site-header__mobile-nav-link {
  display: block;
  padding-block: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero {
    min-height: 85svh;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero/karlie-kloss.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center 25%;
}

@media (max-width: 767px) {
  .hero__bg {
    background-attachment: scroll;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--black-rgb), 0.6),
    rgba(var(--black-rgb), 0.15),
    transparent
  );
}

.hero__content {
  position: relative;
  display: flex;
  min-height: 78svh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 4rem 1.25rem 3.5rem;
}

@media (min-width: 640px) {
  .hero__content {
    min-height: 85svh;
    padding-inline: 2rem;
    padding-bottom: 5rem;
  }
}

.hero__inner {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  text-align: center;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4.8rem);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.05em;
  color: #fff;
}

.hero__divider {
  margin: 1.25rem auto 0;
  height: 1px;
  width: 6rem;
  background: rgba(var(--white-rgb), 0.6);
}

@media (min-width: 640px) {
  .hero__divider {
    margin-top: 1.5rem;
  }
}

.hero__tagline {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: rgba(var(--white-rgb), 0.9);
}

@media (min-width: 640px) {
  .hero__tagline {
    margin-top: 1.25rem;
    font-size: 0.875rem;
  }
}

/* ---------- Portfolio ---------- */
.portfolio {
  scroll-margin-top: 5rem;
  background: #fff;
  padding: 4rem 1.25rem;
}

@media (min-width: 640px) {
  .portfolio {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  .portfolio {
    padding-inline: 3rem;
  }
}

.portfolio__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .portfolio__header {
    margin-bottom: 3.5rem;
  }
}

.editorial {
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .editorial {
    margin-top: 5rem;
  }
}

.editorial__heading {
  margin-bottom: 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
}

@media (min-width: 640px) {
  .editorial__heading {
    margin-bottom: 2.5rem;
    font-size: 1.875rem;
  }
}

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

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.gallery__button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blush);
}

.gallery__image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.gallery__button:hover .gallery__image {
  transform: scale(1.02);
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: rgba(var(--charcoal-rgb), 0.9);
  padding: 0;
}

.lightbox.is-open {
  display: flex;
}

@media (min-width: 640px) {
  .lightbox {
    padding: 2rem;
  }
}

.lightbox__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 10;
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.875rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.lightbox__close:hover {
  opacity: 0.7;
}

@media (min-width: 640px) {
  .lightbox__close {
    right: 2rem;
    top: 2rem;
  }
}

.lightbox__hint {
  position: absolute;
  inset-inline: 0;
  top: 1.5rem;
  z-index: 10;
  padding-inline: 4rem;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(var(--cream-rgb), 0.7);
}

@media (min-width: 640px) {
  .lightbox__hint {
    display: none;
  }
}

.lightbox__hint-arrows {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: none;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: var(--cream);
  font-size: 2.25rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.lightbox__arrow:hover {
  opacity: 0.7;
}

@media (min-width: 640px) {
  .lightbox__arrow {
    display: flex;
  }

  .lightbox__arrow--prev {
    left: 1.5rem;
  }

  .lightbox__arrow--next {
    right: 1.5rem;
  }
}

.lightbox__arrow--prev {
  left: 0.5rem;
}

.lightbox__arrow--next {
  right: 0.5rem;
}

.lightbox__mobile-viewer {
  position: relative;
  display: flex;
  max-height: 80vh;
  width: 100%;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .lightbox__mobile-viewer {
    display: none;
  }
}

.lightbox__mobile-image {
  max-height: 80vh;
  width: 100%;
  object-fit: contain;
}

.lightbox__desktop-viewer {
  position: relative;
  display: none;
  height: 600px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .lightbox__desktop-viewer {
    display: flex;
    max-width: 90vw;
  }
}

.lightbox__peek {
  position: absolute;
  top: 50%;
  z-index: 0;
  height: 380px;
  width: 240px;
  transform: translateY(-50%);
  overflow: hidden;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.2s ease;
}

.lightbox__peek:hover {
  opacity: 0.7;
}

.lightbox__peek--prev {
  left: 1rem;
}

.lightbox__peek--next {
  right: 1rem;
}

.lightbox__peek-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.lightbox__zoom-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  height: 600px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.lightbox__desktop-image {
  height: 600px;
  width: auto;
  object-fit: contain;
}

.lightbox__zoom-toolbar {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 20;
  display: flex;
  transform: translateX(-50%);
  align-items: center;
  gap: 1rem;
  border-radius: 9999px;
  background: rgba(var(--charcoal-rgb), 0.7);
  padding: 0.5rem 1.25rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox__zoom-btn {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--cream);
  transition: opacity 0.2s ease;
}

.lightbox__zoom-btn:hover {
  opacity: 0.7;
}

.lightbox__zoom-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox__zoom-value {
  width: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(var(--cream-rgb), 0.8);
}

/* ---------- Bio ---------- */
.bio {
  scroll-margin-top: 5rem;
  background: var(--cream);
  padding: 4rem 1.25rem;
}

@media (min-width: 640px) {
  .bio {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  .bio {
    padding-inline: 3rem;
  }
}

.bio__grid {
  display: grid;
  max-width: 72rem;
  margin-inline: auto;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .bio__grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: center;
    gap: 4rem;
  }
}

.bio__paragraphs {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--warm-gray);
}

@media (min-width: 640px) {
  .bio__paragraphs {
    font-size: 1.125rem;
  }
}

.bio__instagram-link {
  margin-top: 1.5rem;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.bio__instagram-link:hover {
  color: var(--warm-gray);
}

.bio__photo-wrap {
  margin-inline: auto;
  width: 70%;
}

@media (min-width: 1024px) {
  .bio__photo-wrap {
    margin-inline: 0;
  }
}

.bio__photo-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--blush);
}

.bio__photo {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ---------- Contact ---------- */
.contact {
  scroll-margin-top: 5rem;
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem 1.25rem;
}

@media (min-width: 640px) {
  .contact {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  .contact {
    padding-inline: 3rem;
  }
}

.contact__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .contact__header {
    margin-bottom: 3.5rem;
  }
}

.contact .section-eyebrow {
  color: var(--taupe-light);
}

.contact .section-heading {
  color: var(--cream);
}

.contact__cards {
  margin-inline: auto;
  display: flex;
  max-width: 32rem;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.contact__card {
  border: 1px solid rgba(var(--sand-rgb), 0.3);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease;
}

.contact__card--link:hover {
  border-color: var(--cream);
}

.contact__card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--taupe-light);
}

.contact__card-value {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: var(--cream);
}

.contact__card--link:hover .contact__card-value {
  text-decoration: underline;
}

.contact__card-note {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--sand);
}

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid rgba(var(--sand-rgb), 0.2);
  background: var(--charcoal);
  padding: 2rem 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer {
    padding-inline: 2rem;
  }
}

.site-footer__copyright {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--taupe-light);
}

.site-footer__instagram {
  margin-top: 0.75rem;
  display: inline-block;
  font-size: 0.875rem;
  color: var(--sand);
  transition: color 0.2s ease;
}

.site-footer__instagram:hover {
  color: var(--cream);
}
