:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6d6d68;
  --line: #ddddda;
  --placeholder-dark: #b9bbb4;
  --placeholder-light: #e8e8e2;
  --radius: 1.1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  padding-top: 1rem;
}

.site-nav {
  align-items: flex-start;
}

.navbar {
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.navbar-scrolled {
  background: rgba(245, 245, 242, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: var(--muted);
  padding-left: 0;
  padding-right: 0;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
}

.hero-block {
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.hero-eyebrow,
.section-heading span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-block h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 34rem;
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.featured-work,
.about-block,
.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.featured-photo,
.photo-tile {
  margin: 0;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--placeholder-light), var(--placeholder-dark));
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame-featured {
  aspect-ratio: 4 / 5;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 1rem;
  color: rgba(17, 17, 17, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.42)),
    linear-gradient(135deg, var(--placeholder-light), var(--placeholder-dark));
}

.photo-fallback span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.photo-fallback-featured {
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.featured-photo figcaption,
.photo-tile figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.featured-photo figcaption strong,
.photo-tile figcaption strong {
  color: var(--text);
  font-weight: 600;
}

.featured-photo figcaption span,
.photo-tile figcaption span {
  text-align: right;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.photo-tile .photo-frame {
  aspect-ratio: 4 / 5;
}

.photo-tile-square .photo-frame {
  aspect-ratio: 1 / 1;
}

.photo-tile-wide .photo-frame {
  aspect-ratio: 5 / 4;
}

.about-block {
  max-width: 44rem;
}

.about-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.quiet-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 2rem;
}

.footer-content p {
  margin: 0;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text);
}

code {
  color: var(--text);
  background: rgba(17, 17, 17, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
}

@media (min-width: 768px) {
  .hero-block {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .featured-work,
  .about-block,
  .site-footer {
    padding-bottom: 3.5rem;
  }

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

  .photo-tile-tall {
    grid-row: span 2;
  }

  .photo-tile-tall .photo-frame {
    aspect-ratio: 4 / 6;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-links {
    flex-direction: row;
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .featured-photo figcaption,
  .photo-tile figcaption {
    font-size: 0.95rem;
  }

  .photo-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .photo-tile-wide {
    grid-column: span 2;
  }
}
