:root {
  --bg: #f6f3ee;
  --surface: #fbfaf7;
  --text: #171717;
  --muted: #6f6a63;
  --line: rgba(23, 23, 23, 0.12);
  --max-width: 1120px;
  --gap: clamp(14px, 2vw, 24px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", Arial, sans-serif;
  line-height: 1.55;
  font-weight: 400;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrapper {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.site-header h1 {
  margin: 0;
  font-family: "Boska", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.35rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

main section {
  padding-top: 3rem;
}

.intro {
  max-width: 720px;
}

.intro h2,
.section-head h2,
section > h2 {
  margin: 0 0 0.75rem;
  font-family: "Boska", Georgia, serif;
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.intro p,
.about p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  max-width: 60ch;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.photo-card {
  margin: 0;
  cursor: pointer;
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.photo-card:hover img {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.photo-card:active img {
  transform: translateY(-2px) scale(0.995);
}

.about,
.contact {
  padding-top: 0.25rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-links a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-links a:hover {
  color: var(--muted);
  border-color: rgba(23, 23, 23, 0.3);
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform 0.22s ease;
}

.lightbox.is-open .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    padding-bottom: 2rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  main section {
    padding-top: 2.25rem;
  }

  .site-header h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .intro h2,
  .section-head h2,
  section > h2 {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }
}