:root {
  --background: #e5e7eb;
  --surface: #ffffff;
  --text: #374151;
  --muted: #6b7280;
  --border: #9ca3af;
  --footer: #1f2937;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:hover {
  color: #1f2937;
}

.site-header {
  background: var(--surface);
}

.site-nav,
.site-main,
.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-mark {
  flex-shrink: 0;
  margin-right: 1.5rem;
  color: #4b5563;
  font-size: 1.875rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  color: #4b5563;
  font-size: 0.875rem;
}

.nav-links a {
  text-decoration: none;
}

.site-main {
  flex: 1;
  padding-bottom: 1px;
}

.site-footer {
  max-width: none;
  margin-top: 6rem;
  color: #9ca3af;
  background: var(--footer);
  font-size: 0.875rem;
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.home-photos {
  columns: 2;
  column-gap: 1rem;
  margin-top: 5rem;
}

.home-photos a {
  display: block;
  margin-bottom: 1rem;
  break-inside: avoid;
}

.home-photos img {
  display: block;
  width: 100%;
  height: auto;
}

.section-rule {
  margin-top: 4rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.contact {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 4rem;
}

.section-title {
  margin: 0;
  color: #374151;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.15;
}

.section-title + hr,
.page-sidebar hr {
  width: 2.5rem;
  margin: 0.75rem 0 0;
  border: 0;
  border-top: 1px solid #6b7280;
}

.contact-action {
  margin-top: 0.5rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  color: #1f2937;
  background: #9ca3af;
  font-weight: 700;
  text-decoration: none;
}

.contact-button:hover {
  color: #1f2937;
  background: #6b7280;
}

.contact-button svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.page-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.page-sidebar {
  flex-shrink: 0;
}

.photo-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.photo-link {
  display: block;
  width: min(100%, 36rem);
  margin-bottom: 3rem;
}

.photo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.prose {
  max-width: 48rem;
  margin-top: 3rem;
  color: #374151;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #374151;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
}

.prose h1 {
  margin-top: 0;
  font-size: 2.25rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.prose a {
  color: #374151;
}

.prose p,
.prose li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.prose ul {
  padding-left: 1.5rem;
}

.muted {
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-nav {
    padding-top: 4rem;
    padding-bottom: 1rem;
  }

  .site-main,
  .site-nav {
    padding-right: 5rem;
    padding-left: 5rem;
  }

  .footer-inner {
    padding-right: 5rem;
    padding-left: 5rem;
  }

  .home-photos {
    columns: 3;
  }

  .page-layout {
    position: relative;
    display: block;
  }

  .page-sidebar {
    position: absolute;
    top: 0;
    left: 0;
  }

  .photo-list {
    align-items: center;
  }

  .contact {
    gap: 8rem;
  }
}

@media (max-width: 767px) {
  .contact {
    flex-direction: column;
  }
}
