:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #171717;
  --muted: #7a7a7a;
  --ink: #111827;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--fg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: #ffffff;
  border-bottom: none;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0.5rem;
}

.site-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.site-mark {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--ink);
}

.site-date-range {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-tagline {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}

.spread-intro {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.spread-intro-text {
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.spread-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
  padding: 1.25rem 1rem 3rem;
  border-radius: 0;
  background: transparent;
  justify-content: center;
}

.post-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  max-width: 420px;
  justify-self: center;
}

.post-card-image {
  position: relative;
}

.post-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

.post-card-meta {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.68rem;
  color: #f9fafb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.post-date {
  opacity: 0.9;
  text-transform: uppercase;
}

.post-exif {
  opacity: 0.85;
}

.post-card-caption {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--fg);
  font-weight: 400;
}

/* size variants now only affect approximate footprint; aspect ratio is preserved */
.post-card--small {
  max-width: 300px;
}

.post-card--medium {
  max-width: 360px;
}

.post-card--tall {
  max-width: 380px;
}

.post-card--wide {
  max-width: 460px;
}

/* subtle vertical offsets for scattered editorial feel */
.spread-grid .post-card:nth-child(3n) {
  margin-top: 12px;
}

.spread-grid .post-card:nth-child(4n) {
  margin-top: -18px;
}

.spread-grid .post-card:nth-child(5n) {
  margin-top: 20px;
}

.site-footer {
  border-top: none;
  padding: 1rem 1.5rem 1.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .spread-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .site-main {
    padding-inline: 1rem;
  }

  .spread-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 0.8rem;
  }

  .spread-intro {
    margin-bottom: 0.75rem;
  }
}


