/* Waverly Street - Aligned with toddsto.com main site styling */

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

.body-text {
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-italic { font-style: italic; }

/* Layout - Aligned with main site */
.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation - Clean like main site */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(0, 0, 0, 0.4);
}

.nav-back svg {
  width: 18px;
  height: 18px;
}

.nav-logo {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-title {
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-link {
  font-size: 0.99rem;
  color: #000;
}

/* Header / Series Header */
.series-header {
  display: block;
  margin-bottom: 40px;
}

.series-label {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
  display: block;
  margin-bottom: 4px;
}

.series-title {
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Article Header */
.article-header {
  margin-bottom: 40px;
}

.article-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.article-location {
  font-size: 0.99rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Content */
.content {
  margin-bottom: 60px;
}

.content > * + * {
  margin-top: 2rem;
}

.content .body-text + .body-text {
  margin-top: 0;
}

/* Images */
.image-full {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.image-tall {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.image-medium {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.image-row {
  display: flex;
  gap: 12px;
}

.image-row img {
  flex: 1;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Two Column Layout */
.two-col {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.two-col-text {
  flex: 1;
}

.two-col-image {
  width: 40%;
  flex-shrink: 0;
}

.two-col-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 500px;
}

.slideshow-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slideshow-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slideshow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s;
}

.slideshow-dot.active {
  background: #000;
}

/* Article List - Compact */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-list-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-list-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-list-title {
  font-size: 1rem;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.article-list-subtitle {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Hero for series index */
.hero {
  margin-bottom: 48px;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
}

.hero-slideshow {
  width: 100%;
  height: 450px;
  margin-top: 32px;
}

/* Meta */
.meta {
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.meta-date,
.meta-camera {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
  display: block;
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
}

.article-nav-link:hover {
  color: #000;
  opacity: 1;
}

.article-nav-link svg {
  width: 14px;
  height: 14px;
}

.article-nav-link.prev svg {
  transform: rotate(180deg);
}

.article-nav-link.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-icon {
  width: 24px;
  height: 24px;
  display: block;
  margin-bottom: 16px;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
}

.footer-text {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
}

/* Caption */
.caption {
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 8px;
}

/* Section */
.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 40px 24px;
  }

  .nav {
    margin-bottom: 60px;
  }

  .body-text {
    font-size: 1rem;
  }

  .hero-slideshow {
    height: 300px;
  }

  .two-col {
    flex-direction: column;
    gap: 24px;
  }

  .two-col-image {
    width: 100%;
  }

  .image-row {
    flex-direction: column;
  }

  .image-row img {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 32px 20px;
  }

  .nav {
    margin-bottom: 48px;
  }

  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.125rem; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: rgba(0, 0, 0, 0.5); }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
