/* ================================================
   Lens of Fariha — Shared Stylesheet
   gallery.lensofariha.com
   ================================================ */

/* Self-hosted fonts (latin subset) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/cormorant-garamond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/cormorant-garamond-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/jost.woff2') format('woff2-variations'),
       url('fonts/jost.woff2') format('woff2');
}

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

:root {
  --cream: #f5f2ed;
  --ink: #1a1814;
  --ink-light: #524d48;
  --ink-faint: #c8c3bc;
  --accent: #8b7355;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --gap: clamp(1rem, 3vw, 2rem);
  --section: clamp(4rem, 10vw, 8rem);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Custom cursor only after first mousemove confirms position — prevents
   invisible-cursor flash on first load and during scroll-only interactions */
html.cursor-ready body { cursor: none; }
html.cursor-ready a, html.cursor-ready button,
html.cursor-ready .gallery-item, html.cursor-ready .series-card { cursor: none; }

/* No-JS fallback: keep reveal content visible */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1rem; z-index: 9999;
  font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 2px solid var(--accent); outline-offset: 2px; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img, video, iframe { max-width: 100%; height: auto; }

/* ── Cursor ── */
.cursor {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: -100px; left: -100px; /* off-screen until first mousemove */
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.2s;
  mix-blend-mode: difference; /* visible on both light + dark sections */
  opacity: 0;
}
html.cursor-ready .cursor { opacity: 1; }
.cursor.expanded {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid #fff;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(245,242,237,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
}
/* Hide nav while lightbox open */
body:has(.lightbox.open) nav,
body:has(.lightbox.open) .nav-mobile { display: none !important; }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  font-style: italic;
}
.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
  display: inline-block;
  transform-origin: center;
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { border-bottom: 1px solid var(--accent); padding-bottom: 0.15rem; }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    transform: scale(1.18);
    color: var(--accent);
  }
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
html.js .nav-hamburger { cursor: none; }
.nav-hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--ink); transition: all 0.3s;
}
.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 200;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 300;
  font-style: italic; color: var(--ink);
  text-decoration: none;
  opacity: 0.85; transition: opacity 0.3s;
}
.nav-mobile a:hover { opacity: 1; }
.nav-mobile-close {
  position: absolute; top: 1.8rem; right: clamp(1.5rem, 5vw, 4rem);
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ink-light);
  background: none; border: none;
}
html.js .nav-mobile-close { cursor: none; }

/* ── Section helpers ── */
section {
  padding: var(--section) clamp(1.5rem, 5vw, 4rem);
}
.section-header {
  display: flex; align-items: baseline;
  gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-number {
  font-size: 0.65rem; font-weight: 200;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); flex-shrink: 0;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.1;
  white-space: nowrap;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-rule {
  flex: 1; height: 1px;
  background: var(--ink-faint); margin-bottom: 0.3rem;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Photo placeholders (remove when using real images) ── */
.photo-placeholder {
  width: 100%; height: 100%;
  min-height: 200px;
  background: var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.1em;
}

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  grid-auto-rows: 220px;
}
.gallery-item {
  overflow: hidden; position: relative;
  background: var(--ink-faint);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.gallery-item.visible { opacity: 1; transform: translateY(0); }
.gallery-item img,
.gallery-item .photo-placeholder {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.88);
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.6s;
}
.gallery-item:hover img { transform: scale(1.05); filter: contrast(1.0) saturate(1.0); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,24,20,0);
  transition: background 0.4s;
  display: flex; align-items: flex-end; padding: 1.2rem;
}
.gallery-item:hover .gallery-overlay { background: rgba(26,24,20,0.35); }
.gallery-meta { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; color: var(--cream); }
.gallery-item:hover .gallery-meta { opacity: 1; transform: translateY(0); }
.gallery-meta-series { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.7; }
.gallery-meta-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 300; font-style: italic; }

/* ── Series cards ── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.series-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5; background: var(--ink-faint);
  display: block; text-decoration: none;
}
.series-card img,
.series-card .photo-placeholder {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
  transition: transform 1s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.6s;
}
.series-card:hover img { transform: scale(1.06); filter: saturate(1) contrast(1); }
.series-card-body {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,24,20,0.75) 0%, transparent 55%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.8rem;
}
.series-tag { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); font-weight: 200; margin-bottom: 0.5rem; }
.series-name { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; color: var(--cream); line-height: 1.1; }
.series-count { font-size: 0.7rem; color: rgba(245,242,237,0.5); font-weight: 200; margin-top: 0.6rem; }

/* ── About section ── */
.about-section {
  background: var(--ink); color: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.about-image {
  aspect-ratio: 3/4; background: #2c2a26;
  overflow: hidden; position: relative;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(0.7); }
.about-image::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(245,242,237,0.12); }
.about-content { padding: clamp(1rem, 3vw, 2rem) 0; }
.about-eyebrow { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); font-weight: 200; margin-bottom: 1.5rem; }
.about-heading { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.8rem; }
.about-heading em { font-style: italic; color: var(--ink-faint); }
.about-body { font-size: 0.85rem; line-height: 2; color: rgba(245,242,237,0.82); font-weight: 400; margin-bottom: 2.5rem; }
.about-stats { display: flex; gap: 2.5rem; border-top: 1px solid rgba(245,242,237,0.1); padding-top: 1.8rem; }
.about-stat-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--cream); }
.about-stat-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,242,237,0.4); font-weight: 200; margin-top: 0.3rem; }

/* ── Contact ── */
.contact-section { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-heading { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.5rem; }
.contact-heading em { font-style: italic; color: var(--accent); }
.contact-sub { font-size: 0.82rem; color: var(--ink-light); line-height: 2; margin-bottom: 2.5rem; font-weight: 400; }
.contact-email {
  display: inline-block; font-family: var(--serif); font-size: 1.1rem;
  font-style: italic; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink-faint); padding-bottom: 0.2rem;
  transition: border-color 0.3s, color 0.3s;
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }
.contact-socials { display: flex; justify-content: center; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.contact-socials a { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-light); text-decoration: none; font-weight: 200; transition: color 0.3s; }
.contact-socials a:hover { color: var(--ink); }

/* ── Footer ── */
footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ink-faint);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-family: var(--serif); font-style: italic; font-size: 0.95rem; font-weight: 300; color: var(--ink-light); }

/* Logo image inside .nav-logo and .footer-logo */
.nav-logo img { height: 32px; width: auto; display: block; }
.footer-logo img { height: 26px; width: auto; display: block; }
.footer-domain { font-size: 0.65rem; letter-spacing: 0.18em; color: var(--ink-faint); font-weight: 200; }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-light); text-decoration: none; font-weight: 300; transition: color 0.3s; }
.footer-links a:hover { color: var(--ink); }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(26,24,20,0.97); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 90svh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(245,242,237,0.4); cursor: none; background: none; border: none;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--cream); }
.lightbox-caption {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  text-align: center;
}
.lightbox-caption-series { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); }
.lightbox-caption-title { font-family: var(--serif); font-style: italic; color: rgba(245,242,237,0.7); font-size: 1rem; margin-top: 0.3rem; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(245,242,237,0.3);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: none; transition: color 0.3s; padding: 1rem;
}
.lightbox-nav:hover { color: var(--cream); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding-top: calc(var(--section) + 4rem);
  padding-bottom: var(--section);
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
}
.page-hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); font-weight: 200; margin-bottom: 1.2rem; }
.page-hero-title { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6rem); font-weight: 300; line-height: 0.95; }
.page-hero-title em { font-style: italic; color: var(--accent); }
.page-hero-desc { font-size: 0.82rem; color: var(--ink-light); max-width: 40ch; margin-top: 1.5rem; line-height: 1.9; font-weight: 400; }

/* ── Back link ── */
.back-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-light); text-decoration: none; font-weight: 200;
  transition: color 0.3s;
}
.back-link:hover { color: var(--ink); }
.back-link::before { content: '←'; font-size: 0.8rem; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── Series grid variants ── */
.series-grid-4 { grid-template-columns: repeat(4, 1fr); }
.series-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ── Shared series-gallery (category pages) ── */
.series-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.series-gallery-item {
  position: relative; overflow: hidden;
  background: var(--ink-faint);
  cursor: none; aspect-ratio: 4/5;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.series-gallery-item.visible { opacity: 1; transform: translateY(0); }
.series-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: contrast(1.02) saturate(0.88);
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.6s;
}
.series-gallery-item:hover img { transform: scale(1.04); filter: saturate(1) contrast(1); }
.series-gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,24,20,0);
  transition: background 0.4s;
  display: flex; align-items: flex-end; padding: 1rem;
  pointer-events: none;
}
.series-gallery-item:hover .gallery-overlay { background: rgba(26,24,20,0.35); }
.series-gallery-item .gallery-meta {
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
  color: var(--cream);
}
.series-gallery-item:hover .gallery-meta { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .series-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .series-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .about-section { grid-template-columns: 1fr; }
  .about-image { max-height: 60vw; aspect-ratio: auto; }
  nav { padding: 1.4rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  footer { flex-wrap: wrap; gap: 1rem; }
  .series-gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
@media (max-width: 700px) {
  .series-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
  }
  .footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .footer-logo img { margin: 0 auto; }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    width: 100%;
  }
  .footer-domain {
    display: block;
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 600px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .about-stats { gap: 1.5rem; }
  .section-title { white-space: normal; }
  .series-grid-4, .series-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
/* Instagram-style profile grid on mobile: 3 equal cols, 1px gap, square thumbs.
   Applies to category pages (couple, engagement, family, graduation, wedding)
   AND the index Selected Works gallery (#gallery). */
@media (max-width: 700px) {
  .series-gallery,
  #gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }
  .series-gallery-item,
  .series-gallery-item.ar-landscape,
  .series-gallery-item.ar-tall,
  #gallery .gallery-item {
    aspect-ratio: 1 / 1;
  }
  .series-gallery-item img,
  #gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ── Blog post layout ── */
.post-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.post-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding-right: 0.5rem;
  min-width: 0;
}
@media (max-width: 900px) {
  .post-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--ink-faint);
    padding-bottom: 1.5rem;
  }
}
.post-sidebar-label {
  font-size: 0.7rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 400; margin-bottom: 1.2rem;
}
.post-sidebar ol {
  list-style: none; padding: 0;
  counter-reset: post;
}
.post-sidebar li {
  counter-increment: post;
  border-top: 1px solid var(--ink-faint);
}
.post-sidebar li:last-child {
  border-bottom: 1px solid var(--ink-faint);
}
.post-sidebar a {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--ink-light);
  font-family: var(--serif); font-style: italic;
  font-size: 1.02rem; line-height: 1.3;
  font-weight: 300;
  transition: color 0.3s;
}
.post-sidebar a::before {
  content: counter(post, decimal-leading-zero);
  font-family: var(--sans); font-style: normal;
  font-size: 0.62rem; letter-spacing: 0.18em;
  color: var(--ink-faint); font-weight: 400;
  flex-shrink: 0; padding-top: 0.25rem;
}
.post-sidebar a:hover { color: var(--ink); }
.post-sidebar a[aria-current="page"] {
  color: var(--accent);
}
.post-sidebar a[aria-current="page"]::before { color: var(--accent); }

.post-article {
  max-width: 720px;
  min-width: 0;
  width: 100%;
  overflow-wrap: break-word;
}

.post-back {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-light);
  text-decoration: none; font-weight: 400;
  margin-bottom: 1.8rem;
  transition: color 0.3s;
}
.post-back::before { content: '←'; font-size: 0.85rem; }
.post-back:hover { color: var(--ink); }

.post-meta {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 400; margin-bottom: 1.2rem;
}
.post-meta .dot { color: var(--ink-faint); }
.post-meta .read-time { color: var(--ink-light); letter-spacing: 0.18em; }

.post-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300; line-height: 1.05;
  margin-bottom: 1.8rem;
}
.post-title em { font-style: italic; color: var(--accent); }

.post-hero-img {
  width: 100%; max-width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover; display: block;
  margin-bottom: 2.5rem;
  filter: contrast(1.02) saturate(0.9);
}

.post-body p {
  font-size: 1rem; line-height: 1.95;
  color: var(--ink); font-weight: 400;
  margin-bottom: 1.4rem;
}
.post-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.6rem; font-style: italic;
  float: left; line-height: 0.9;
  margin: 0.4rem 0.6rem 0 0;
  color: var(--accent);
}
.post-body h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 300; font-style: italic;
  margin-top: 2.5rem; margin-bottom: 1rem;
  color: var(--ink);
}
.post-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 1.4rem;
  margin: 2rem 0;
  font-family: var(--serif); font-style: italic;
  font-size: 1.18rem; line-height: 1.7;
  color: var(--ink-light);
}
.post-body ul, .post-body ol {
  padding-left: 1.4rem; margin-bottom: 1.4rem;
}
.post-body li {
  font-size: 1rem; line-height: 1.85;
  color: var(--ink); margin-bottom: 0.5rem;
}

.post-pager {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink-faint);
}
.post-pager a {
  display: block;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--ink-faint);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
}
.post-pager a:hover {
  border-color: var(--ink);
  background: rgba(26,24,20,0.02);
}
.post-pager-label {
  font-size: 0.62rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-light);
  font-weight: 400; margin-bottom: 0.5rem;
}
.post-pager-title {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; font-weight: 300;
  line-height: 1.3;
}
.post-pager-next { text-align: right; }
.post-pager-empty { visibility: hidden; pointer-events: none; }
@media (max-width: 600px) {
  .post-pager { grid-template-columns: 1fr; }
  .post-pager-next { text-align: left; }
}

/* ── Blog standalone nav (used on listing + post pages) ── */
.blog-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(245,242,237,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-faint);
}
.blog-nav .nav-logo img { height: 28px; width: auto; display: block; }
.blog-nav-tag {
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-light);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s;
}
a.blog-nav-tag:hover { color: var(--accent); }

.blog-footer {
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ink-faint);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(4rem, 8vw, 6rem);
}
.blog-footer-tag {
  font-family: var(--serif); font-style: italic;
  font-size: 0.95rem; color: var(--ink-light); font-weight: 300;
}
.blog-footer-domain {
  font-size: 0.65rem; letter-spacing: 0.18em;
  color: var(--ink-faint); font-weight: 400;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .blog-footer { flex-direction: column; text-align: center; }
}

/* ── Footer legal links + copyright ──
   Footer bg is --cream, so legal links must use dark ink (matches .footer-links). */
footer { flex-wrap: wrap; row-gap: 1rem; }
.footer-legal {
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  flex-basis: 100%; order: 3;
}
.footer-legal a {
  color: var(--ink-light); text-decoration: none;
  font-weight: 300; transition: color 0.3s;
}
.footer-legal a:hover { color: var(--ink); }
.footer-copyright {
  font-size: 0.6rem; color: var(--ink-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 300;
  flex-basis: 100%; order: 4; text-align: center;
}
@media (max-width: 600px) {
  .footer-legal { gap: 1rem; font-size: 0.6rem; }
}

/* ── Legal pages: suppress drop-cap from .post-body so legal copy reads cleanly ── */
.legal-body p:first-of-type::first-letter {
  font-family: inherit;
  font-size: inherit; font-style: inherit;
  float: none; line-height: inherit;
  margin: 0; color: inherit;
}
.legal-body a {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.legal-body a:hover { color: var(--accent); }
.legal-body code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.88em; background: rgba(0,0,0,0.05);
  padding: 0.1em 0.35em; border-radius: 3px;
}
.legal-article {
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  margin: 0 auto;
}

/* ── Journal / Blog ── */
.about-journal-cta {
  display: flex; justify-content: center;
  margin: clamp(2rem, 4vw, 3rem) 0;
}
.journal-btn-light {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--ink-faint);
  padding: 0.9rem 1.8rem;
  text-decoration: none; font-weight: 300;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.journal-btn-light::after { content: '→'; }
.journal-btn-light:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(0,0,0,0.02);
}

.blog-grid-section {
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card { display: block; }
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card-thumb {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink-faint);
  margin-bottom: 1.2rem;
}
.blog-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.92);
}
.blog-card-link:hover .blog-card-thumb img {
  transform: scale(1.04); filter: saturate(1);
}
.blog-card-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 300; line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.blog-card-cta {
  font-size: 0.65rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
  transition: letter-spacing 0.3s;
}
.blog-card-link:hover .blog-card-cta { letter-spacing: 0.32em; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Journal individual post */
.journal-post {
  /* Top padding clears the fixed nav (same calc used by .page-hero) */
  padding: calc(var(--section) + 4rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 5vw, 5rem);
  margin: 0 auto;
  max-width: 1100px;
}

/* Inline single images between paragraphs inside a journal post */
.journal-post .post-body img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: clamp(2rem, 4vw, 3rem) auto;
  filter: saturate(0.92);
}
.journal-post-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.journal-post-header .post-title { margin-bottom: 0.8rem; }
.journal-post-header .post-meta { justify-content: center; }

.journal-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1vw, 1rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.journal-image-grid img {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; display: block;
  filter: saturate(0.92);
}
@media (max-width: 700px) {
  .journal-image-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Drop-cap suppression for journal posts (until owner sets final copy) */
.journal-post .post-body p:first-of-type::first-letter {
  font-family: inherit; font-size: inherit; font-style: inherit;
  float: none; line-height: inherit; margin: 0; color: inherit;
}

/* Constrain post-body width inside journal-post */
.journal-post .post-body {
  max-width: 720px; margin: 0 auto;
}
.journal-post .post-back {
  display: inline-flex; margin-top: 3rem;
}

/* Sign-off rule + italic closer for journal posts */
.journal-post .post-rule {
  border: 0; border-top: 1px solid var(--ink-faint);
  width: 60px; margin: 2.5rem auto 2rem; opacity: 0.6;
}
.journal-post .post-signoff {
  text-align: center;
  font-family: var(--serif); font-size: 1rem;
  color: var(--ink-light); font-weight: 300;
}
.journal-post .post-signoff em { color: var(--accent); }

/* Bold + lists inside journal post body */
.journal-post .post-body strong { color: var(--ink); font-weight: 500; }
.journal-post .post-body ul { padding-left: 1.4rem; margin: 1.6rem 0; }
.journal-post .post-body ul li { margin-bottom: 1rem; line-height: 1.85; }

/* Make sure the H1 wraps gracefully even with long titles */
.journal-post-header .post-title {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ── Mobile fixes for journal post header (prevents eyebrow + title clipping on phones) ── */
@media (max-width: 700px) {
  .journal-post {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .journal-post-header {
    padding: 0 0.25rem;
  }
  .journal-post-header .post-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    letter-spacing: -0.005em;
    line-height: 1.1;
  }
  .journal-post-header .page-hero-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }
}

/* ── Copyright toast (image right-click + drag protection) ── */
.copyright-toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream);
  padding: 0.9rem 1.5rem;
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 300;
  font-family: var(--sans);
  border-radius: 2px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: min(420px, 90vw);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  line-height: 1.5;
}
.copyright-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Prevent drag-out on protected images (logos remain interactive) */
img { -webkit-user-drag: none; user-drag: none; }
.nav-logo img, .footer-logo img { -webkit-user-drag: auto; user-drag: auto; }
