/*
Theme Name: Minimal Personal v3
Author: You
Description: A minimal personal site. Fully customizable via Appearance → Customize.
Version: 3.2
*/

/* ── FONTS ───────────────────────────────────────────────────────────────────── */
/* Proxima Nova is a commercial font — Nunito Sans is the closest free match.   */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Roboto:wght@300;400;500;700&family=Inter:wght@300;400;500;600&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;1,300&family=Raleway:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@300;400&display=swap');

/* ── VARIABLES ───────────────────────────────────────────────────────────────── */
:root {
  --bg:     #f7f5f2;
  --ink:    #1a1a18;
  --muted:  #8a8780;
  --accent: #c8b99a;
  --border: #e2ddd8;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  --max:      1100px;
  --narrow:   680px;
  --side-pad: 2.5rem;
  --hero-side-margin: 0px;
}

/* ── BASE ────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin-bottom: 1.4em; } p:last-child { margin-bottom: 0; }

/* ── ADMIN BAR ───────────────────────────────────────────────────────────────── */
.admin-bar .site-header { top: 32px !important; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px !important; } }

/* ── HEADER ──────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 var(--side-pad); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,245,242,0.93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-title {
  font-family: var(--serif); font-size: 1.1rem;
  font-style: normal; font-weight: 400; flex-shrink: 0;
}
.site-title a { transition: opacity 0.2s; }
.site-title a:hover { opacity: 0.55; }

/* ── DESKTOP NAV ─────────────────────────────────────────────────────────────── */
.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--ink); }

/* ── HAMBURGER ───────────────────────────────────────────────────────────────── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px; z-index: 300;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: all 0.28s ease;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ──────────────────────────────────────────────────────── */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; background: var(--bg);
  z-index: 250; padding: 6rem var(--side-pad) 3rem;
  flex-direction: column; overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-nav-overlay.is-open {
  display: flex; opacity: 1; transform: translateY(0);
}
.mobile-nav-overlay ul { list-style: none; }
.mobile-nav-overlay li { border-bottom: 1px solid var(--border); }
.mobile-nav-overlay a {
  display: block; padding: 1.25rem 0;
  font-family: var(--serif); font-size: 2.2rem; font-weight: 400;
  color: var(--ink); transition: opacity 0.2s;
}
.mobile-nav-overlay a:hover { opacity: 0.5; }

/* ── SITE MAIN ───────────────────────────────────────────────────────────────── */
.site-main { padding-top: 64px; min-height: 100vh; }
.admin-bar .site-main { padding-top: calc(64px + 32px); }

/* ── HERO SLIDER ─────────────────────────────────────────────────────────────── */
.home-hero-wrap { padding: 0 var(--hero-side-margin); background: var(--bg); }
.home-hero {
  height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}

/* Position classes */
.home-hero.pos-bottom-left   { justify-content: flex-end;   align-items: flex-start; }
.home-hero.pos-bottom-center { justify-content: flex-end;   align-items: center; }
.home-hero.pos-center        { justify-content: center;     align-items: center; }
.home-hero.pos-top-left      { justify-content: flex-start; align-items: flex-start; }

/* Slide container */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-overlay { position: absolute; inset: 0; pointer-events: none; }

/* Dots */
.hero-dots {
  position: absolute; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 20;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.6);
  cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.is-active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.3);
}
/* Hide dots when only 1 image */
.hero-dots:has(.hero-dot:only-child) { display: none; }

/* Hero text */
.home-hero-content {
  position: relative; z-index: 10;
  max-width: 680px; width: 100%;
  padding: 0 var(--side-pad) 4rem;
}
.home-hero.pos-top-left .home-hero-content { padding-top: 4rem; }
.home-hero.pos-center .home-hero-content,
.home-hero.pos-bottom-center .home-hero-content { text-align: center; }

.home-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  color: #f7f5f2; line-height: 1.1; margin-bottom: 0.75rem;
}
.home-hero h1 em { font-style: italic; color: var(--accent); }
.home-hero p.hero-coords {
  color: rgba(247,245,242,0.7); margin-bottom: 0;
  font-size: clamp(0.85rem, 2vw, 1rem); font-weight: 300;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 2rem; right: 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 10;
}
.hero-scroll-line {
  display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,0.4);
  animation: scrollpulse 2s ease-in-out infinite;
}
.hero-scroll-text {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
@keyframes scrollpulse {
  0%,100% { opacity:.4; transform:scaleY(1); }
  50%      { opacity:1;  transform:scaleY(1.15); }
}

/* ── HOME SECTIONS ───────────────────────────────────────────────────────────── */
.home-sections { max-width: var(--max); margin: 0 auto; padding: 5rem var(--side-pad); }
.home-sections-label {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2.5rem;
}
.sections-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1.5px; background: var(--border); border: 1.5px solid var(--border);
}
.section-card {
  background: var(--bg); padding: 2.5rem 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px; transition: background 0.3s;
}
.section-card:hover { background: var(--ink); }
.section-card:hover .card-title,
.section-card:hover .card-desc,
.section-card:hover .card-num,
.section-card:hover .card-arrow { color: var(--bg); }
.card-num   { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; transition: color 0.3s; }
.card-title { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 400; line-height: 1.15; margin: 1.25rem 0 0.6rem; transition: color 0.3s; }
.card-desc  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; flex: 1; transition: color 0.3s; }
.card-arrow { font-size: 1.1rem; color: var(--muted); transition: transform 0.3s, color 0.3s; display: inline-block; }
.section-card:hover .card-arrow { transform: translate(4px,-4px); }

/* ── PAGE LAYOUT ─────────────────────────────────────────────────────────────── */
.page-header { max-width: var(--max); margin: 0 auto; padding: 4rem var(--side-pad) 2.5rem; border-bottom: 1px solid var(--border); }
.page-label  { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.page-title  { font-family: var(--serif); font-size: clamp(2rem,5vw,4rem); font-weight: 400; line-height: 1.1; }
.page-title em { font-style: italic; color: var(--muted); }
.page-subtitle { margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; }
.page-content-wrap { max-width: var(--max); margin: 0 auto; padding: 3rem var(--side-pad) 5rem; }

/* ── ABOUT ───────────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-text h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; margin-bottom: 1.25rem; }

/* ── PHOTO GRID ──────────────────────────────────────────────────────────────── */
.photo-grid { columns: 3; column-gap: 0.75rem; }
.photo-grid a { display: block; break-inside: avoid; margin-bottom: 0.75rem; overflow: hidden; }
.photo-grid img { width: 100%; display: block; transition: transform 0.4s; }
.photo-grid a:hover img { transform: scale(1.04); }

/* ── ENTRY LIST ──────────────────────────────────────────────────────────────── */
.entry-list { display: flex; flex-direction: column; }
.entry-item {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 1.5rem; align-items: center; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s; color: inherit;
}
.entry-item:hover { opacity: 0.6; }
.entry-item:first-child { border-top: 1px solid var(--border); }
.entry-item.has-thumb { grid-template-columns: auto 120px 1fr auto; }
.entry-date  { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; }
.entry-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.entry-arrow { color: var(--muted); font-size: 1rem; transition: transform 0.2s; }
.entry-item:hover .entry-arrow { transform: translate(3px,-3px); }
.entry-thumb { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; }

/* ── SINGLE POST ─────────────────────────────────────────────────────────────── */
.single-content { max-width: var(--narrow); margin: 0 auto; padding: 4rem var(--side-pad) 8rem; }
.single-content h1 { font-family: var(--serif); font-size: clamp(1.8rem,4vw,2.5rem); font-weight: 400; line-height: 1.2; margin-bottom: 0.5rem; }
.single-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.single-content .entry-content p { color: #3a3a38; font-weight: 300; }
.single-content .entry-content h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 2.5rem 0 1rem; }
.single-content .entry-content h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; margin: 2rem 0 0.8rem; }
.single-content .entry-content blockquote { border-left: 2px solid var(--accent); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; font-family: var(--serif); font-size: 1.1rem; color: var(--muted); }
.single-content .entry-content img { width: 100%; margin: 2rem 0; }
.single-content .entry-content ul,
.single-content .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.4em; }
.single-content .entry-content li { margin-bottom: 0.4em; }
.single-content .entry-content a { border-bottom: 1px solid var(--border); transition: border-color 0.2s; }
.single-content .entry-content a:hover { border-color: var(--ink); }
.single-featured-image { margin-bottom: 2rem; margin-top: 0.5rem; }
.single-featured-image img { display: block; width: 100%; height: 400px; object-fit: cover; }
.featured-image-caption { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; }
.single-post-nav { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 2rem; }
.post-nav-link { display: flex; flex-direction: column; gap: 0.25rem; max-width: 48%; }
.post-nav-link.post-nav-prev { text-align: left; }
.post-nav-link.post-nav-next { text-align: right; }
.post-nav-label { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.post-nav-title { font-family: var(--serif); font-size: 1rem; color: var(--ink); transition: opacity 0.2s; }
.post-nav-link:hover .post-nav-title { opacity: 0.6; }

/* ── JOURNAL FEED ────────────────────────────────────────────────────────────── */
.home-journal-feed { border-top: 1px solid var(--border); }
.home-journal-inner { max-width: var(--max); margin: 0 auto; padding: 4rem var(--side-pad) 5rem; }
.home-journal-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.home-journal-header .home-sections-label { margin-bottom: 0; }
.journal-viewall-link { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; transition: color 0.2s; }
.journal-viewall-link:hover { color: var(--ink); }
.journal-cards-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.5rem; }
.journal-card { display: flex; flex-direction: column; border: 1px solid var(--border); overflow: hidden; transition: border-color 0.2s; }
.journal-card:hover { border-color: var(--ink); }
.journal-card-image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.journal-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.journal-card-date { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.journal-card-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.2; margin-bottom: 0.75rem; }
.journal-card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.journal-card-arrow { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); transition: color 0.2s; }
.journal-card:hover .journal-card-arrow { color: var(--ink); }
.journal-large-featured { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); overflow: hidden; margin-bottom: 1.5px; transition: border-color 0.2s; }
.journal-large-featured:hover { border-color: var(--ink); }
.journal-large-image img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.journal-large-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.journal-large-title { font-family: var(--serif); font-size: clamp(1.4rem,3vw,2rem); font-weight: 400; line-height: 1.15; margin-bottom: 1rem; }
.journal-large-rest { border: 1px solid var(--border); border-top: none; background: var(--border); display: flex; flex-direction: column; gap: 1.5px; }
.journal-large-rest .journal-minimal-item { background: var(--bg); padding: 1.2rem 1.5rem; }
.journal-minimal-list { display: flex; flex-direction: column; }
.journal-minimal-item { display: flex; justify-content: space-between; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid var(--border); transition: opacity 0.2s; }
.journal-minimal-item:first-child { border-top: 1px solid var(--border); }
.journal-minimal-item:hover { opacity: 0.6; }
.journal-minimal-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.journal-minimal-arrow { color: var(--muted); }
.journal-feed-list .entry-item:first-child { border-top: 1px solid var(--border); }
.journal-empty { color: var(--muted); padding: 2rem 0; }
.journal-empty a { color: var(--ink); border-bottom: 1px solid var(--border); }

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem var(--side-pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.footer-name { font-family: var(--serif); font-style: italic; font-size: 0.95rem; }
.footer-copy { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; justify-self: end; }
.footer-social { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-social a { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--ink); }
.footer-center { justify-self: center; }

/* ═══ RESPONSIVE ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image img { aspect-ratio: 16/9; }
  .journal-large-featured { grid-template-columns: 1fr; }
  .journal-large-image img { min-height: 220px; }
  .photo-grid { columns: 2; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --side-pad: 1.25rem; }

  /* Header — show burger, hide desktop nav */
  .nav-toggle { display: flex; }
  .main-nav { display: none !important; }

  /* Hero */
  .home-hero { height: calc(100svh - 64px); }
  .home-hero-content { padding-bottom: 3rem; }
  .hero-scroll-hint { display: none; }

  /* Sections */
  .sections-grid { grid-template-columns: 1fr !important; }
  .section-card { min-height: 180px; padding: 1.75rem 1.5rem; }

  /* Entry list — drop date column, simplify */
  .entry-item { grid-template-columns: 1fr auto !important; gap: 1rem; }
  .entry-date { display: none; }
  .entry-title { font-size: 1.05rem; }

  /* Photos → 1 column */
  .photo-grid { columns: 1; }

  /* Single post */
  .single-content { padding-top: 2rem; padding-bottom: 4rem; }
  .single-post-nav { flex-direction: column; gap: 1.25rem; }
  .post-nav-link { max-width: 100%; text-align: left !important; }

  /* Page headers */
  .page-header { padding-top: 2.5rem; padding-bottom: 1.75rem; }

  /* Journal cards */
  .journal-cards-grid { grid-template-columns: 1fr; }
  .journal-large-featured { grid-template-columns: 1fr; }

  /* Footer → stacked */
  .site-footer { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .footer-copy { justify-self: center; }
  .footer-center { order: -1; }
  .footer-social { justify-content: center; }
}

.wp-element-caption {
    font-size: 0.8rem !important;
}

.wp-block-image figcaption,
.wp-block-image :where(figcaption) {
    margin-top: 0.25rem !important;
    text-align: center !important;
}

.wp-block-image.aligncenter,
.wp-block-image.alignleft,
.wp-block-image.alignright {
    display: block !important;
}




