* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-muted: #717171;
  --color-border: #e5e5e5;
  --font: "Work Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a1a;
    --color-text: #e5e5e5;
    --color-muted: #999;
    --color-border: #333;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Main */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero */

.hero {
  padding: 3rem 0 1rem;
}

.hero h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  white-space: nowrap;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.bio {
  font-size: 0.9rem;
  text-transform: lowercase;
  color: var(--color-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Links */

.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.links a {
  font-size: 0.85rem;
  text-transform: lowercase;
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.2s;
}

.links a:hover {
  border-color: var(--color-text);
}

/* Gallery */

.gallery {
  position: relative;
  padding: 0.75rem 0;
  overflow: hidden;
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin: 0 0 0.75rem;
  padding: 0 2rem;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gallery-arrow:hover {
  opacity: 1;
}

.gallery-arrow-left {
  left: 12px;
}

.gallery-arrow-right {
  right: 12px;
}

.gallery-track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

figure {
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

figure img {
  height: 380px;
  width: auto;
  display: block;
  object-fit: cover;
}

figcaption {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  width: 0;
  min-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections */

section {
  padding: 1.5rem 0;
}

h2 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  text-transform: lowercase;
}

/* A Propos */

.about-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-portrait {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.about-text p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  max-width: 480px;
  line-height: 1.7;
  text-transform: lowercase;
}

.about-email {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Footer */

footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
}

footer p {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: left;
  align-self: flex-start;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 101;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-arrow-left {
  left: 1.5rem;
}

.lightbox-arrow-right {
  right: 1.5rem;
}

/* Responsive */

@media (max-width: 600px) {
  main {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 5rem 0 3rem;
  }

  figure img {
    height: 240px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-portrait {
    width: 150px;
    height: 150px;
  }
}
