/* Field Notes — fn-style.css */

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

:root {
  --cream:      #f5f2ed;
  --warm-white: #faf9f6;
  --ink:        #1a1916;
  --ink-light:  #4a4842;
  --ink-muted:  #8a8680;
  --olive:      #5c6345;
  --olive-dark: #3f4530;
  --border:     #ddd9d2;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.fn-noscroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }

/* ─── NAV ─── */
nav {
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--warm-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 28px;
  border-right: 1px solid var(--border);
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 220px 200px;
  gap: 3px;
  background: var(--border);
  position: relative;
}

.hero-img { overflow: hidden; }
.hero-img img { height: 100%; transition: transform 0.4s ease; }
.hero-img:hover img { transform: scale(1.03); }

.hero-img:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.hero-img:nth-child(2) { grid-column: 2; grid-row: 1; }
.hero-img:nth-child(3) { grid-column: 3; grid-row: 1; }
.hero-img:nth-child(4) { grid-column: 4; grid-row: 1; }
.hero-img:nth-child(5) { grid-column: 5; grid-row: 1 / 3; }
.hero-img:nth-child(6) { grid-column: 2; grid-row: 2; }
.hero-img:nth-child(7) { grid-column: 3; grid-row: 2; }
.hero-img:nth-child(8) { grid-column: 4; grid-row: 2; }

/* ─── HERO CARD — hand-drawn border ─── */
.hero-card {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 80%);
  background: rgba(250, 249, 246, 0.93);
  padding: 32px 36px 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
}

/* The border is on a separate layer so the sketch filter
   only distorts the stroke — not the card content.        */
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(26, 25, 22, 0.38);
  pointer-events: none;
  filter: url(#fn-sketch);
}

.hero-headline {
  font-family: 'EB Garamond', serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 400px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--olive);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  width: fit-content;
  transition: background 0.2s;
}

.hero-cta:hover { background: var(--olive-dark); }

/* ─── CATEGORIES ─── */
.section-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--border);
}

.cat-card {
  padding: 32px 24px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: background 0.2s;
}

.cat-card:last-child { border-right: none; }
.cat-card:hover { background: var(--cream); }

.cat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon svg { width: 36px; height: 36px; }

.cat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.cat-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ─── FEATURED NOTES ─── */
.section-featured {
  padding: 52px 40px;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}

.view-all {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.view-all:hover { color: var(--ink); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.note-card { display: flex; flex-direction: column; }

.note-thumb {
  display: block;
  height: 210px;
  overflow: hidden;
  margin-bottom: 16px;
}

.note-thumb img { height: 100%; transition: transform 0.4s; }
.note-card:hover .note-thumb img { transform: scale(1.04); }

.note-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 7px;
}

.note-title {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.note-card:hover .note-title { color: var(--olive); }

.note-excerpt {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 12px;
}

.note-meta {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* ─── VISUAL LOG ─── */
.section-visual-log {
  padding: 52px 40px;
  border-bottom: 1px solid var(--border);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 110px 110px;
  gap: 3px;
  margin-top: 24px;
}

.vlog-img { overflow: hidden; cursor: zoom-in; }
.vlog-img img { height: 100%; transition: transform 0.35s, filter 0.35s; }
.vlog-img:hover img { transform: scale(1.06); filter: brightness(1.05); }
.vlog-img.wide { grid-column: span 2; }

/* ─── VIDEO NOTES ─── */
.section-video {
  padding: 52px 40px;
  border-bottom: 1px solid var(--border);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.video-card {
  display: flex;
  flex-direction: column;
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  padding: 0;
  border: 0;
  background: var(--cream);
  cursor: pointer;
  margin-bottom: 16px;
}

.video-thumb img,
.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.18s;
}

.video-thumb:hover .video-play { background: rgba(0,0,0,0.42); }
.video-play svg { width: 32px; height: 32px; }

.video-duration {
  position: absolute;
  bottom: 5px;
  left: 6px;
  font-size: 10px;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 1px 5px;
  letter-spacing: 0.04em;
}

.video-info { display: flex; flex-direction: column; gap: 6px; }

.video-title {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

.video-title a { transition: color 0.2s; }
.video-title a:hover { color: var(--olive); }

.video-excerpt {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.6;
}

.video-meta { font-size: 11px; color: var(--ink-muted); }

/* --- Family Videos Grid --- */
.video-grid-family {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.family-card {
  display: flex;
  flex-direction: column;
}

.family-card .video-thumb {
  margin-bottom: 10px;
}

.family-title {
  font-family: 'EB Garamond', serif;
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

.family-title a {
  transition: color 0.2s;
}

.family-title a:hover {
  color: var(--olive);
}

@media (max-width: 1024px) {
  .video-grid-family {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .video-grid-family {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }
}

/* ─── FOOTER ─── */
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  background: var(--warm-white);
}

.footer-logo a { font-size: 13px; color: var(--ink); }

.footer-copy {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.footer-mantra {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
}

.footer-socials a {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer-socials a:hover { color: var(--ink); }
.footer-top { font-size: 16px !important; }

/* ─── FLICKR IMAGE STATES ─── */
img[data-flickr] { transition: opacity 0.4s ease; }
img[data-flickr].fn-loading { opacity: 0; }
img[data-flickr].fn-loaded  { opacity: 1; }

.fn-shimmer {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.fn-shimmer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cream) 25%, var(--border) 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: fn-shimmer 1.4s infinite;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}

.fn-shimmer.fn-ready::before { opacity: 0; }

@keyframes fn-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */

#fn-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#fn-lightbox.fn-lb-open { display: flex; }

.fn-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 11, 0.94);
  cursor: pointer;
}

.fn-lb-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: fn-lb-enter 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fn-lb-enter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.fn-lb-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: rgba(245, 242, 237, 0.45);
  cursor: pointer;
  padding: 8px;
  line-height: 0;
  transition: color 0.18s;
}

.fn-lb-close:hover { color: rgba(245, 242, 237, 0.95); }
.fn-lb-close svg { width: 20px; height: 20px; }

.fn-lb-stage {
  position: relative;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  background: #0a0908;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fn-lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fn-lb-img.fn-lb-loaded { opacity: 1; }

.fn-lb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(14, 13, 11, 0.95) 0%, rgba(14, 13, 11, 0.8) 50%, rgba(14, 13, 11, 0) 100%);
  padding: 48px 32px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  color: #f0ede8;
  z-index: 10;
  pointer-events: none;
}

.fn-lb-overlay * {
  pointer-events: auto;
}

.fn-lb-overlay-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fn-lb-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.25;
  color: #f5f2ed;
  letter-spacing: -0.01em;
}

.fn-lb-desc {
  font-size: 12.5px;
  color: rgba(245, 242, 237, 0.65);
  line-height: 1.55;
  max-width: 480px;
  font-weight: 300;
}

.fn-lb-overlay-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fn-lb-date {
  font-size: 11px;
  color: rgba(245, 242, 237, 0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  border-left: 1px solid rgba(245, 242, 237, 0.15);
  border-right: 1px solid rgba(245, 242, 237, 0.15);
  padding: 4px 20px;
  white-space: nowrap;
}

.fn-lb-overlay-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.fn-lb-location {
  font-size: 12px;
  color: rgba(245, 242, 237, 0.7);
  text-align: right;
  letter-spacing: 0.02em;
}

.fn-lb-flickr-link {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245, 242, 237, 0.4);
  text-transform: uppercase;
  transition: color 0.18s;
}

.fn-lb-flickr-link:hover {
  color: var(--olive);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .section-categories { grid-template-columns: repeat(3, 1fr); }
  .cat-card:nth-child(3) { border-right: none; }
  .cat-card:nth-child(4) { border-top: 1px solid var(--border); }
  .cat-card:nth-child(5) { border-top: 1px solid var(--border); }
  .cat-card:nth-child(6) { border-top: 1px solid var(--border); border-right: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 180px 180px 160px; }
  .hero-img:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .hero-img:nth-child(5) { grid-column: 3; grid-row: 1 / 3; }
  .featured-grid { grid-template-columns: 1fr; }
  .visual-grid   { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 100px); }
  .video-grid    { grid-template-columns: 1fr; }

  /* Lightbox: below desktop width, stack the image and the metadata so the
     Flickr caption/date/location are never clipped by the cinematic overlay.
     The desktop layout floats the overlay absolutely inside an
     overflow:hidden stage, which cuts off metadata on landscape photos
     whenever the overlay is taller than the rendered image. */
  .fn-lb-dialog {
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fn-lb-stage {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-height: none;
    overflow: visible;
  }
  .fn-lb-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
  }
  .fn-lb-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 28px 28px;
    background: rgba(14, 13, 11, 0.96);
    align-items: start;
    max-height: none;
    overflow-y: visible;
  }
  .fn-lb-overlay-center { justify-content: flex-start; }
  .fn-lb-date  { border: none; padding: 0; text-align: left; }
  .fn-lb-overlay-right { align-items: flex-start; }
  .fn-lb-location { text-align: left; }
}

/* ─── MOBILE NAV HAMBURGER ─── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  margin-left: auto;
  color: var(--ink);
  line-height: 0;
}

.nav-hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nav-hamburger-icon span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s, opacity 0.22s;
  transform-origin: center;
}

/* Animated X when open */
.nav-hamburger.fn-nav-open .nav-hamburger-icon span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.fn-nav-open .nav-hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.fn-nav-open .nav-hamburger-icon span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Switch to the hamburger before the horizontal nav can overflow.
   The full row of links needs ~700px to fit; the hamburger previously
   only appeared at <=640px, leaving 641-768px (landscape phones, small
   tablets) with links pushed off the right edge — "missing" navigation. */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; align-items: center; }
  .nav-links { display: none; }

  /* Links are hidden here, so drop the logo's orphaned desktop separator. */
  .nav-logo a { padding-right: 0; border-right: none; }

  /* Mobile dropdown menu */
  .nav-links.fn-nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 24px;
    gap: 18px;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(26, 25, 22, 0.08);
  }

  .nav-links.fn-nav-open a {
    font-size: 15px;
    color: var(--ink);
  }
}

@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .section-featured,
  .section-visual-log,
  .section-video { padding: 36px 20px; }
  footer { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .footer-socials { justify-content: flex-start; }
  .footer-mantra  { text-align: left; }
  .hero-card { width: min(92%, 92%); padding: 22px 20px 18px; }
  .fn-lb-dialog { width: 100vw; max-height: 100dvh; }
  .fn-lb-close  { top: 12px; right: 12px; }
  .fn-lb-overlay {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 20px 20px;
    align-items: start;
    background: rgba(14, 13, 11, 0.95);
  }
  .fn-lb-overlay-center { justify-content: flex-start; }
  .fn-lb-date { border: none; padding: 0; text-align: left; }
  .fn-lb-overlay-right { align-items: flex-start; }
  .fn-lb-location { text-align: left; }
}

/* ─── Notes Page Archive Styles ────────────────────────────── */
.notes-archive {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  width: 100%;
}

.notes-archive-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.notes-archive-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.notes-archive-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.note-list-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.note-list-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.note-list-thumb {
  display: block;
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--cream);
}

.note-list-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.note-list-card:hover .note-list-thumb img {
  transform: scale(1.03);
}

.note-list-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-list-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-list-sep {
  color: var(--border);
}

.note-list-cat {
  color: var(--olive);
  text-decoration: none;
}

.note-list-cat:hover {
  text-decoration: underline;
}

.note-list-title {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

.note-list-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.note-list-card:hover .note-list-title a {
  color: var(--olive);
}

.note-list-excerpt {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}

.note-list-excerpt p {
  margin: 0;
}

.note-list-read-more {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.note-list-read-more:hover {
  border-color: var(--olive);
}

.notes-pagination {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.notes-pagination ul {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.notes-pagination .page-numbers {
  display: inline-flex;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.notes-pagination .page-numbers:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.notes-pagination .page-numbers.current {
  color: var(--ink);
  border-color: var(--ink);
}

.notes-empty {
  font-size: 14px;
  color: var(--ink-muted);
  padding: 40px 0;
  text-align: center;
}

/* ─── Standard Page Content (e.g. About page) ─────────────────── */
.fn-page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  width: 100%;
}

.fn-page-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-light);
}

.fn-page-body p {
  margin-bottom: 1.5em;
}

.fn-page-body h1, 
.fn-page-body h2, 
.fn-page-body h3, 
.fn-page-body h4 {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.fn-page-body ul, 
.fn-page-body ol {
  margin-bottom: 1.5em;
  padding-left: 20px;
}

.fn-page-body li {
  margin-bottom: 0.5em;
}

/* Premium drop-cap styling for serif paragraph blocks */
.fn-page-body p.has-drop-cap:not(:focus)::first-letter {
  font-family: 'EB Garamond', serif;
  font-size: 4.8em;
  line-height: 0.83;
  margin-top: 0.05em;
  margin-right: 0.1em;
  color: var(--ink);
}

/* Responsive constraints */
@media (max-width: 768px) {
  .fn-page-content {
    padding: 30px 20px 50px;
  }
}

@media (max-width: 640px) {
  .notes-archive {
    padding: 30px 20px 50px;
  }
  .note-list-thumb {
    height: 180px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   fn-mobile-fix.css  — v2
   REPLACE the entire previous fn-mobile-fix block in fn-style.css
   with this one. Delete the old block and paste this at the end.
   ═══════════════════════════════════════════════════════════════ */
 
@media (max-width: 640px) {
 
  /* ── FIX 1a: iOS scroll-lock ─────────────────────────────────────────
     overflow:hidden alone doesn't reliably lock body scroll on iOS
     Safari / Chrome. touch-action:none prevents momentum scroll without
     the page-jump caused by position:fixed on body.
  ─────────────────────────────────────────────────────────────────── */
  body.fn-noscroll {
    overflow: hidden;
    touch-action: none;
  }
 
  /* ── FIX 1b: Dialog ──────────────────────────────────────────────────
     Use vh, not dvh. dvh is unsupported below iOS 15.4 / Chrome 108 —
     on older devices it silently resolves to nothing, collapsing
     any element whose height or max-height uses it to zero.
     Re-enable pan-y so the dialog itself remains scrollable by touch
     even though the body has touch-action:none.
  ─────────────────────────────────────────────────────────────────── */
  .fn-lb-dialog {
    width: 100vw;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
 
  /* ── FIX 1c: Stage — column layout so image and overlay stack ────────
     v1 failure: stage is display:flex (row). Adding position:relative
     to the overlay just made it a second flex item beside the image
     at near-zero width — invisible, and its zero height ate click events
     on Chrome iOS. Switching to flex-direction:column stacks correctly.
  ─────────────────────────────────────────────────────────────────── */
  .fn-lb-stage {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-height: none;
    overflow: visible;
    flex-shrink: 0;
  }
 
  /* ── FIX 1d: Image — full width, vh-capped height ────────────────── */
  .fn-lb-img {
    width: 100%;
    max-height: 58vh;
    object-fit: contain;
    background: #0a0908;
    flex-shrink: 0;
  }
 
  /* ── FIX 1e: Overlay — in-flow panel below the image ─────────────────
     position:absolute + overflow:hidden on the stage clipped the title
     and description for any landscape photo whose overlay height
     exceeded the rendered image height. Now the overlay flows naturally
     as a column flex item below the image. No dvh units.
     The existing @media (max-width:640px) block above this one already
     sets grid-template-columns:1fr, padding, gap, and background.
  ─────────────────────────────────────────────────────────────────── */
  .fn-lb-overlay {
    position: relative;
    bottom: auto;
    left:   auto;
    right:  auto;
    width:  100%;
    flex-shrink: 0;
    overflow-y: visible;
    max-height: none;
  }
 
  /* ── FIX 2: Nav logo — remove orphaned desktop separator ─────────────
     .nav-logo a has padding-right:28px + border-right designed for
     desktop where nav links sit beside the logo. On mobile the links
     are hidden, leaving a hanging divider that makes "field notes"
     look truncated.
  ─────────────────────────────────────────────────────────────────── */
  .nav-logo a {
    padding-right: 0;
    border-right:  none;
  }
 
}