/* Monthly Drop — plain CSS, no build step. Light/dark aware via prefers-color-scheme. */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted-fg: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  --muted: #f4f4f5;
  --accent: #111827;
  --accent-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f4f4f5;
    --muted-fg: #9ca3af;
    --border: #27272a;
    --card: #141414;
    --muted: #1c1c1f;
    --accent: #f4f4f5;
    --accent-fg: #0a0a0a;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand-name { font-weight: 600; font-size: 1.1rem; }
.brand-period { font-size: 0.875rem; color: var(--muted-fg); }
.nav { display: flex; gap: 1.5rem; font-size: 0.875rem; font-weight: 500; }
.nav a { color: var(--muted-fg); text-decoration: none; }
.nav a:hover { color: var(--fg); }
@media (max-width: 640px) { .nav { display: none; } }

.intro { padding: 4rem 1.5rem 3rem; }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg); margin: 0; }
.intro h1 { margin: 0.75rem 0 0; font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.lede { margin-top: 1rem; max-width: 42rem; color: var(--muted-fg); font-size: 1.05rem; }
.cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent);
}
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }

.section { border-top: 1px solid var(--border); padding: 4rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.section-head p { margin: 0.5rem 0 0; max-width: 42rem; color: var(--muted-fg); font-size: 0.9rem; }

.grid-preview {
  max-width: 28rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.grid-preview button { padding: 0; border: 0; background: none; cursor: pointer; }

/* Clickable image wrapper — a div with role="button", not a real <button>,
   because it may contain a real download <button> and buttons can't nest. */
.img-clickable { display: block; width: 100%; cursor: pointer; }
.img-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0.375rem; }

.img-box {
  position: relative; width: 100%; overflow: hidden; border-radius: 0.375rem;
  background: var(--muted);
}
.img-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-box.aspect-square { aspect-ratio: 1 / 1; }
.img-box.aspect-portrait { aspect-ratio: 9 / 16; }
.img-box.aspect-landscape { aspect-ratio: 16 / 9; }
.img-box.aspect-post { aspect-ratio: 4 / 5; }
.img-box .placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 500; color: var(--muted-fg);
}
.icon-btn {
  position: absolute; z-index: 5; display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(0,0,0,0.6); color: #fff; opacity: 0; transition: opacity 0.15s;
}
.img-box:hover .icon-btn, .img-box:focus-within .icon-btn { opacity: 1; }
.icon-btn.top-right { top: 0.35rem; right: 0.35rem; }

article.carousel-block { }
.carousel-block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.carousel-block-head .eyebrow { margin: 0; }
.carousel-block-head h3 { margin: 0.2rem 0 0; font-size: 1.15rem; font-weight: 600; }
.carousel-block-head .count { font-size: 0.75rem; color: var(--muted-fg); }
.stack-16 > * + * { margin-top: 4rem; }

.carousel-scroller {
  display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch;
}
.carousel-scroller::-webkit-scrollbar { height: 6px; }
.carousel-scroller .slide {
  flex: 0 0 70%; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: pointer;
}
@media (min-width: 640px) { .carousel-scroller .slide { flex-basis: 33%; } }
@media (min-width: 768px) { .carousel-scroller .slide { flex-basis: 24%; } }
.carousel-nav { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.carousel-nav button {
  width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; font-size: 0.9rem;
}
.caption { margin-top: 1rem; max-width: 48rem; white-space: pre-line; font-size: 0.875rem; color: var(--muted-fg); }

.grid-2 { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.blog-card { border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); padding: 1rem; }
.blog-card .row { display: flex; gap: 1rem; }
.blog-card .row .banner-col { flex: 1; }
.blog-card .row .story-col { width: 5rem; flex-shrink: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.blog-card .body { margin-top: 1rem; }
.blog-card h3 { margin: 0.2rem 0 0; font-size: 1.05rem; font-weight: 600; }
.blog-card .preview { margin-top: 0.5rem; color: var(--muted-fg); font-size: 0.875rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.newsletter-card { display: flex; flex-direction: column; }
.newsletter-card h3 { margin: 0.2rem 0 0.75rem; font-size: 1.05rem; font-weight: 600; }
.newsletter-card .banner-btn { padding: 0; border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; background: var(--card); cursor: pointer; position: relative; }
.newsletter-card .banner-btn img { display: block; width: 100%; height: auto; }
.newsletter-card .banner-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.email-preview { margin-top: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--muted); padding: 1rem; }
.email-preview .email-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.75rem; color: var(--muted-fg); }
.email-preview .email-head button { border: 0; background: none; color: var(--muted-fg); cursor: pointer; font-size: 0.75rem; }
.email-preview .email-body { white-space: pre-wrap; font-size: 0.875rem; line-height: 1.6; }
.newsletter-card .btn { margin-top: 0.75rem; width: 100%; justify-content: center; }
.story-row { margin-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.story-row p { margin: 0; font-size: 0.875rem; color: var(--muted-fg); }
.story-row button { width: 4rem; flex-shrink: 0; padding: 0; border: 0; background: none; cursor: pointer; }

.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; text-align: center; font-size: 0.875rem; color: var(--muted-fg); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 48rem; width: 90vw; }
.lightbox::backdrop { background: rgba(0,0,0,0.75); }
.lightbox-inner { position: relative; background: #000; border-radius: 0.75rem; overflow: hidden; }
.lightbox-inner img { display: block; width: 100%; max-height: 85vh; object-fit: contain; margin: 0 auto; }
.lightbox-close, .lightbox-download { top: 0.75rem; }
.lightbox-close { right: 0.75rem; opacity: 1; }
.lightbox-download { right: 3rem; opacity: 1; }
