:root {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --text: #1c2740;
  --text-muted: #5b6682;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(120, 140, 186, 0.24);
  --accent: #6a6dff;
  --accent-alt: #1ac6bc;
  --shadow: 0 18px 45px rgba(103, 119, 162, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  position: absolute;
  left: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  font-size: 1.2rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.25rem 0.55rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


.home-main {
  padding: 2rem 0 3rem;
}


.home-feature-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.hero-content {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0f9f98;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 5.1rem);
  margin-bottom: 1rem;
}

.tagline {
  max-width: 65ch;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #7e8dff);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.page-section {
  padding: 4.5rem 0 5rem;
}

.page-intro {
  margin-bottom: 2rem;
}

.page-intro h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-intro p {
  color: var(--text-muted);
  max-width: 70ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item h2 {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 1rem;
  background: rgba(28, 39, 64, 0.34);
  color: #fff;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.writing-list {
  display: grid;
  gap: 1rem;
}

.writing-piece {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.writing-piece:hover {
  border-color: rgba(106, 109, 255, 0.5);
  transform: translateY(-2px);
}

.writing-piece h2 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-family: "Libre Baskerville", Georgia, serif;
}

.writing-piece p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.writing-piece a {
  color: #0f9f98;
  font-weight: 600;
}


.writing-details summary {
  cursor: pointer;
  color: #0f9f98;
  font-weight: 600;
  list-style: none;
}

.writing-details summary::-webkit-details-marker {
  display: none;
}

.pdf-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.pdf-list li + li {
  margin-top: 0.5rem;
}

.pdf-list a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.45rem 0.7rem;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.pdf-list a:hover {
  border-color: var(--accent-alt);
}

.photo-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.photo-sections.has-selection .gallery-item {
  aspect-ratio: 4 / 3;
}

.photo-sections.has-selection .gallery-item.is-minimized {
  aspect-ratio: 16 / 9;
  opacity: 0.72;
}

.photo-sections.has-selection .gallery-item.is-minimized h2 {
  font-size: 0.9rem;
  background: rgba(28, 39, 64, 0.26);
}

.photo-sections.has-selection .gallery-item.is-selected {
  opacity: 1;
  border-color: rgba(106, 109, 255, 0.55);
}

.photo-detail h2 {
  margin: 0 0 1rem;
}

.photo-detail:not([hidden]) {
  display: block;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #0f9f98;
  font-weight: 600;
}

.masonry-gallery {
  column-count: 3;
  column-gap: 1rem;
}

.masonry-gallery img {
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 1.5rem;
  align-items: start;
}

.about-copy h2 {
  margin: 0 0 0.6rem;
}

.about-copy p,
.about-copy li {
  color: var(--text-muted);
}

.about-photo-shifted {
  margin-top: -2.6rem;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.social-links a:hover {
  border-color: var(--accent-alt);
}

.about-photo {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

@media (max-width: 720px) {
  .nav {
    justify-content: space-between;
  }

  .brand {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 0.6rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .masonry-gallery {
    column-count: 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-shifted {
    margin-top: 0;
    max-width: 420px;
  }
}


@media (max-width: 560px) {
  .masonry-gallery {
    column-count: 1;
  }
}
