* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: "Lato", "Helvetica Neue", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: #7c3aed; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  display: flex;
  align-items: baseline;
  gap: 2rem;
}
.site-header h1 {
  margin: 0;
  font-family: "Odibee Sans", "Crimson Pro", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0;
}
.site-header h1 a { color: #111; }
.site-header h1 span { color: #7c3aed; }
.site-header nav { margin-left: auto; display: flex; gap: 1.5rem; font-size: 0.95rem; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
  margin-bottom: 2rem;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-name {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero-tag {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  color: #555;
  margin: 0 0 1.25rem;
  line-height: 1.5;
  max-width: 42ch;
}
.hero-bio {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 2.75rem;
  line-height: 1.65;
  max-width: 52ch;
}
.hero-cta {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7c3aed;
  margin: 0 0 0.6rem;
}
.hero-collections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  width: 100%;
  max-width: none;
}
.hero-all-collections { margin: 1rem 0 0; }
.btn-all-collections {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid #7c3aed;
  border-radius: 6px;
  color: #7c3aed;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s;
}
.btn-all-collections:hover {
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
}
.hc-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.7rem;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.hc-card:hover {
  text-decoration: none;
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}
.hc-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hc-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.hc-text strong {
  font-weight: 600;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.25;
}
.hc-text span {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem 0 1.5rem;
    text-align: center;
  }
  .hero-photo {
    max-width: 220px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }
  .hero-name { font-size: 2rem; }
  .hero-tag { font-size: 1.1rem; margin: 0 auto 1.25rem; }
  .hero-collections {
    margin: 0 auto;
    text-align: left;
    grid-template-columns: 1fr;
  }
}

h1, h2, h3 {
  font-family: "Crimson Pro", Georgia, serif;
}
h2 {
  font-weight: 400;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.5rem;
  color: #7c3aed;
}
.lede { color: #555; margin-top: -0.8rem; margin-bottom: 1.5rem; }
.prose p { margin: 0 0 0.8rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: #7c3aed; }
.prose code { background: #f0f0f0; padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.95em; }
.prose ul, .prose ol { margin: 0 0 0.8rem; padding-left: 1.4rem; }
.prose blockquote { margin: 0 0 0.8rem; padding-left: 0.8rem; border-left: 3px solid #d0d0d0; color: #666; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.tile {
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}
.tile:hover {
  transform: translateY(-6px) scale(1.01);
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  border-color: #d0d0d0;
}
.tile .tile-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}
.tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.tile-empty { width: 100%; height: 100%; display: block; }
.tile-empty { background: #ececec; }
.tile-label { padding: 0.8rem 1rem; }
.tile-label strong { display: block; font-weight: 500; color: #111; }
.tile-label span { display: block; color: #666; font-size: 0.85rem; margin-top: 0.2rem; }

.tile-title-top .tile-label {
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}
.tile-title-top .tile-label strong { font-weight: 700; font-size: 1.15rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  width: 100%;
}
#featured-section .gallery {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 800px) {
  #featured-section .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  #featured-section .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}
#featured-section .gallery-item .gallery-img { padding: 0; }
@media (min-width: 1000px) {
  #featured-section .gallery-item .gallery-img { padding: 0; }
}
.gallery-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  min-width: 0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.gallery-item:hover {
  text-decoration: none;
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  border-color: #d0d0d0;
}
.gallery-item .gallery-img {
  background: #fafafa;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}
.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.view-radio { position: absolute; opacity: 0; pointer-events: none; }
.view-switch > label {
  display: inline-block;
  cursor: pointer;
  padding: 0.4rem 1rem;
  margin: 0 0.4rem 1.5rem 0;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #555;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.view-switch > label:hover { border-color: #999; }
.view-radio-curated:checked ~ label[for="view-curated"],
.view-radio-month:checked ~ label[for="view-month"] {
  background: #111;
  color: #fff;
  border-color: #111;
}
.view-radio:focus-visible ~ label[for="view-curated"],
.view-radio:focus-visible ~ label[for="view-month"] { outline: 2px solid #111; outline-offset: 2px; }
.view-panel-month { display: none; }
.view-radio-month:checked ~ .view-panel-curated { display: none; }
.view-radio-month:checked ~ .view-panel-month { display: block; }
.month-group { margin-bottom: 2.75rem; }
.month-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #ececec;
}

.photo-detail { margin: 0; text-align: center; }
.photo-detail .photo-frame {
  width: min(92vw, calc(100dvh - 260px));
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-detail .photo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.photo-meta {
  max-width: 600px;
  margin: 2rem auto;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}
.exif {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 0.9rem;
}
.exif dt { color: #666; margin: 0; }
.exif dd { margin: 0; color: #222; }

.featured { margin-bottom: 3rem; }
.featured-centered { display: flex; justify-content: center; }
.slideshow {
  position: relative;
  background: #fafafa;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: min(92vw, calc(100dvh - 180px));
  margin: 0 auto;
}
.slideshow .slides { position: absolute; inset: 0; }
.slideshow .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.slideshow .slide.active { opacity: 1; pointer-events: auto; }
.slideshow .slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.slideshow .slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.slideshow .slide-nav:hover { background: rgba(0, 0, 0, 0.7); }
.slideshow .slide-nav.prev { left: 1rem; }
.slideshow .slide-nav.next { right: 1rem; }
.slideshow .slide-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}
.slideshow .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slideshow .dot.active { background: #fff; transform: scale(1.3); }

@media (max-width: 640px) {
  .slideshow {
    border-radius: 0;
    margin: 0 -1rem;
    width: 100vw;
  }
  .slideshow .slide-nav { width: 36px; height: 36px; font-size: 1.2rem; }
}

.empty { color: #999; font-style: italic; }

.context-back {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.context-back a { color: #7c3aed; text-decoration: none; }
.context-back a:hover { text-decoration: underline; }

.photo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem auto 0;
  max-width: 600px;
  font-size: 0.95rem;
}
.photo-nav a { color: #7c3aed; text-decoration: none; }
.photo-nav a:hover { text-decoration: underline; }
.photo-nav .disabled { color: #bbb; }

footer {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-size: 0.85rem;
  border-top: 1px solid #e5e5e5;
  margin-top: 4rem;
  background: #fff;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }
  .site-header h1 { font-size: 1.6rem; }
  .site-header nav {
    margin-left: 0;
    width: 100%;
    gap: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  main { padding: 1.25rem 1rem; }
  h2 { font-size: 1.6rem; margin-bottom: 1rem; }
  .tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
    margin-bottom: 2rem;
  }
  .tile-label { padding: 0.6rem 0.7rem; }
  .tile-label strong { font-size: 0.95rem; }
  .tile-label span { font-size: 0.8rem; }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
  }
  .photo-detail .photo-frame { border-radius: 0; margin: 0 -1rem; width: 100vw; }
  .photo-meta { margin: 1.5rem auto; padding-top: 1rem; }
  .photo-nav { margin-top: 1rem; font-size: 0.9rem; }
  .exif { padding: 0.75rem; font-size: 0.85rem; }
  footer { padding: 1.5rem 1rem; margin-top: 2.5rem; }
}
