/* ============================================================================
   DEVV'S PHOTO DUMP — Cinematic Blog Layer
   ----------------------------------------------------------------------------
   Loaded AFTER blog.css so it overrides the old monospace / brown theme and
   brings the blog in line with the cinematic landing page (landing.css):
   near-black canvas, one restrained warm-gold accent, Cormorant + Rubik.

   Scoped intentionally: typography overrides target the page wrappers
   (.site-header, .blogx, .main-article, .footer) so they beat blog.css's
   aggressive `* { font-family: monospace }` rule without touching PhotoSwipe.
   ========================================================================== */

:root {
  --c-bg:        #0a0a0c;
  --c-bg-soft:   #111116;
  --c-bg-raise:  #16161c;
  --c-ink:       #f4f2ee;
  --c-ink-dim:   #a7a39b;
  --c-gold:      #c9a86a;
  --c-gold-soft: rgba(201, 168, 106, 0.16);
  --c-line:      rgba(255, 255, 255, 0.10);
  --c-line-soft: rgba(255, 255, 255, 0.06);
  --c-display:   "Cormorant Garamond", Georgia, serif;
  --c-body:      "Rubik", system-ui, -apple-system, sans-serif;
  --c-ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --c-shell:     min(1200px, 92vw);
  --header-h:    66px;
}

/* ---- Reset the old brown/monospace canvas -------------------------------- */
html, body {
  height: auto;
  /* `clip`, not `hidden`: hidden makes body a scroll container and silently
     breaks the sticky .dpd-header. */
  overflow-x: clip;
  overflow-y: visible;
}
body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--c-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: block;
}
/* (the header handles its own fonts in site-header.css) */
.blogx, .blogx *,
.footer, .footer *,
.main-article, .main-article *,
.back-to-blog {
  font-family: var(--c-body);
}
.blogx h1, .blogx h2, .blogx h3,
.main-article h1, .main-article h2, .main-article h3 {
  font-family: var(--c-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
}
main { display: block; }

/* ============================================================================
   SITE HEADER — MOVED OUT
   ----------------------------------------------------------------------------
   The header is now ONE shared file: /site-header.css (class prefix .dpd-*),
   used by every page. Do not add header rules here — edit site-header.css.
   ========================================================================== */
/* ============================================================================
   BLOG INDEX
   ========================================================================== */
.blogx {
  width: var(--c-shell);
  margin: 0 auto;
  padding: 0 0 6rem;
}

/* ---- Masthead ------------------------------------------------------------ */
.blogx__hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.blogx__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.2rem;
}
.blogx__title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  margin: 0;
}
.blogx__lede {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  color: var(--c-ink-dim);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---- Sticky filter pills ------------------------------------------------- */
.blogx__filter {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  margin: 0 -4vw 3rem;
  padding: 0.9rem 0;
  background: linear-gradient(to bottom, rgba(10,10,12,0.94) 60%, rgba(10,10,12,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.blogx__filter-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 4vw;
}
@media (max-width: 620px) {
  .blogx__filter-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .blogx__filter-track::-webkit-scrollbar { display: none; }
}
.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--c-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s var(--c-ease), border-color 0.3s var(--c-ease),
              background 0.3s var(--c-ease), transform 0.3s var(--c-ease);
}
.pill:hover { color: var(--c-ink); border-color: rgba(201,168,106,0.5); transform: translateY(-1px); }
.pill.is-active {
  color: var(--c-bg);
  background: var(--c-gold);
  border-color: var(--c-gold);
  font-weight: 500;
}
.pill.is-empty { display: none; }
.pill__count {
  font-size: 0.68rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.pill.is-active .pill__count { opacity: 0.85; }

/* ---- Cards grid ---------------------------------------------------------- */
.blogx__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}
.gallery-card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.5s var(--c-ease), border-color 0.5s var(--c-ease),
              box-shadow 0.5s var(--c-ease);
}
.gallery-card.is-hidden { display: none; }
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,106,0.4);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.9);
}
.gallery-card__link { display: block; color: inherit; }
.gallery-card__image-wrapper {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--c-bg-raise);
}
.gallery-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--c-ease), filter 0.7s var(--c-ease);
  filter: saturate(1.02);
}
.gallery-card:hover .gallery-card__image { transform: scale(1.06); }
.gallery-card__badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--c-gold-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  background: linear-gradient(to top, rgba(10,10,12,0.85), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--c-ease);
}
.gallery-card:hover .gallery-card__overlay { opacity: 1; }
.gallery-card__view-text {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.gallery-card__content { padding: 1.3rem 1.4rem 1.5rem; }
.gallery-card__title {
  font-family: var(--c-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 0.5rem;
}
.gallery-card__description {
  color: var(--c-ink-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--c-line-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c-ink-dim);
}
.gallery-card__date { color: var(--c-gold); white-space: nowrap; }

.blogx__empty {
  text-align: center;
  color: var(--c-ink-dim);
  padding: 3rem 0;
  font-style: italic;
}
.blogx__archive { text-align: center; margin-top: 3.5rem; }
.blogx__archive a {
  color: var(--c-ink-dim);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 3px;
  transition: color 0.3s var(--c-ease), border-color 0.3s var(--c-ease);
}
.blogx__archive a:hover { color: var(--c-gold); border-color: var(--c-gold); }

/* ============================================================================
   ARTICLE PAGE — readable cinematic long-form
   ========================================================================== */
.main-article {
  width: var(--c-shell);
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem;
}
.main-article .feature { text-align: center; margin-bottom: 2.5rem; }
.main-article .article-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--c-ink);
  margin: 0 0 0.6rem;
}
.main-article .feature h2 {
  font-family: var(--c-body);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.main-article p { color: #d8d5ce; font-size: 1.05rem; line-height: 1.85; margin: 0 0 1.5rem; }
.main-article h2 { font-size: 2rem; color: var(--c-ink); margin: 2.8rem 0 1rem; }
.main-article h3 { font-size: 1.5rem; color: var(--c-ink); margin: 2rem 0 0.8rem; }
.main-article a:not(.back-to-blog):not(.pswp-gallery__item) {
  color: var(--c-gold);
  border-bottom: 1px solid var(--c-gold-soft);
  transition: border-color 0.3s var(--c-ease);
}
.main-article a:not(.back-to-blog):not(.pswp-gallery__item):hover { border-color: var(--c-gold); }
.main-article img { border-radius: 10px; margin: 1rem 0; }
.main-article figure { margin: 2rem 0; }
.main-article figcaption {
  text-align: center;
  color: var(--c-ink-dim);
  font-size: 0.82rem;
  font-style: italic;
  margin-top: 0.6rem;
}
.main-article blockquote {
  border-left: 2px solid var(--c-gold);
  padding-left: 1.4rem;
  margin: 2rem 0;
  color: var(--c-ink-dim);
  font-family: var(--c-display);
  font-size: 1.4rem;
  font-style: italic;
}
.main-article ul, .main-article ol { color: #d8d5ce; margin: 0 0 1.5rem 1.4rem; line-height: 1.8; }
.main-article code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: var(--c-bg-raise);
  border: 1px solid var(--c-line-soft);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
  color: var(--c-gold);
}
.main-article pre {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line-soft);
  border-radius: 10px;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.main-article pre code { background: none; border: none; padding: 0; color: #d8d5ce; }
.main-article hr { border: none; border-top: 1px solid var(--c-line); margin: 3rem 0; }

.back-to-blog {
  display: inline-block;
  margin-top: 3rem;
  color: var(--c-ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  transition: color 0.3s var(--c-ease), border-color 0.3s var(--c-ease), background 0.3s var(--c-ease);
}
.back-to-blog:hover { color: var(--c-bg); background: var(--c-gold); border-color: var(--c-gold); }

/* The SVG logo block on the old index page — hide it, hero replaces it. */
.dpdlogo-archive { display: none; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-line-soft);
  color: var(--c-ink-dim);
  margin-top: 4rem;
  padding: 3.5rem 0 1.5rem;
}
.footer .container { width: var(--c-shell); margin-inline: auto; }
.footer .row { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer-col h4 {
  font-family: var(--c-display);
  font-size: 1.3rem;
  color: var(--c-ink);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--c-ink-dim);
  font-size: 0.9rem;
  transition: color 0.3s var(--c-ease);
}
.footer-col a:hover { color: var(--c-gold); }
.social-links { display: flex; gap: 0.8rem; }
.social-links a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink-dim);
  transition: color 0.3s var(--c-ease), border-color 0.3s var(--c-ease), transform 0.3s var(--c-ease);
}
.social-links a:hover { color: var(--c-gold); border-color: var(--c-gold); transform: translateY(-2px); }
.footer .copyright {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-ink-dim);
}

/* ---- Go-to-top button ---------------------------------------------------- */
.gotopbtn {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--c-gold);
  color: var(--c-bg);
  border-radius: 50%;
  z-index: 150;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.8);
  transition: transform 0.3s var(--c-ease);
}
.gotopbtn:hover { transform: translateY(-3px); }
.gotopbtn i { display: none; } /* old font-awesome icon removed */
.gotopbtn::before {
  content: "";
  width: 12px; height: 12px;
  border-top: 2px solid var(--c-bg);
  border-right: 2px solid var(--c-bg);
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ---- Motion / accessibility --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ============================================================================
   SOFT GLOW on the archive cards + archive buttons  (2026-10-13)
   blog.css used rgba(255,255,255, 15) (alpha clamps to solid white) on
   .post-item and a 0.8 white glow on .blog-archive a. Matched to the soft glow
   approved on the About page; a touch brighter on hover so cards still react.
   Pages: /photos/, /blog-archive/, /photodump-archive/
   ========================================================================== */
.post-item,
.blog-archive a {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.18), 0 0 28px rgba(255, 255, 255, 0.05);
}
.post-item:hover,
.blog-archive a:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.28), 0 0 32px rgba(255, 255, 255, 0.08);
}


/* ============================================================================
   PHOTO DUMP PAGE (/photos/) — tighter top + cleaner cards  (2026-10-20)
   - .dpdlogo had padding-top:100px + a 40px margin → ~140px of dead space
     under the header. Now a small gap.
   - Card text was hit by blog.css's generic `p` rule: Courier New at ~25px with
     10px padding (the padding is why a half-cut 3rd line peeked out under the
     2-line clamp). Reset to the Journal card look: display-serif title,
     Rubik 14px description, gold date. px, not rem (rem is 13px here).
   Scoped to .gallery-cards-container, so the Journal grid is untouched.
   ========================================================================== */
.dpdlogo {
  padding-top: 0;
  margin: 28px auto 8px;
}
.dpdsvg img { max-height: min(40vh, 340px); }

.section:has(> .articles__list .gallery-cards-container) { padding-top: 16px; }

.gallery-cards-container {
  /* it sits inside another grid (.articles__list) and was sizing itself to its
     content (~1270px even on a phone); pin it to the parent's width */
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  padding: 0;
}
.gallery-cards-container .gallery-card__image-wrapper { height: auto; aspect-ratio: 3 / 2; }
.gallery-cards-container .gallery-card__content {
  padding: 18px 20px 16px;
  min-height: 0;
  text-align: left;
}
.gallery-cards-container .gallery-card__title,
.gallery-cards-container .gallery-card__description {
  padding: 0;
  width: auto;
  text-align: left;
}
.gallery-cards-container .gallery-card__title {
  font-family: var(--c-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--c-ink);
  margin: 0 0 6px;
}
.gallery-cards-container .gallery-card__description {
  font-family: var(--c-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink-dim);
  margin: 0 0 14px;
  /* exactly 2 lines; no partial third line */
  max-height: calc(14px * 1.55 * 2);
}
.gallery-cards-container .gallery-card__meta {
  font-family: var(--c-body);
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.gallery-cards-container .gallery-card__date { font-family: var(--c-body); color: var(--c-gold); }
/* if a cover image is missing, its alt text shouldn't render as big monospace */
.gallery-cards-container .gallery-card__image { font-family: var(--c-body); font-size: 13px; color: var(--c-ink-dim); }
/* archive button under the grid: keep its approved soft glow, drop the monospace */
.dpdlogo ~ .blog-archive a { font-family: var(--c-body); font-size: 15px; letter-spacing: 0.04em; }
.gallery-cards-container .gallery-card__view-text { font-family: var(--c-body); font-size: 12px; }

@media (max-width: 502px) {
  .dpdlogo { margin: 16px auto 0; }
  .dpdsvg img { max-height: 200px; }
  .gallery-cards-container { padding: 0; }
}
