:root{
  --bg: #fbf8f1;
  --text: #2b2b2b;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
}

body{
  font-family: 'EB Garamond', serif;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  line-height: 1.7;
  font-size: 18px;
}

/* NAV */

.site-header{
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,.08);
  z-index: 100;
}

.nav{
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 18px 10px;
  flex-wrap: wrap;
}

.nav a{
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: #333;
}

.nav a:hover{ opacity: 0.7; }

/* BANNER */

.page-banner{
  width: 100%;
  height: 360px;
  overflow: hidden;
  display: block;
  background: #000;
}

.page-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TITLES */

.title-block{
  padding: 35px 20px 20px;
}

.title-block h1{
  font-family: 'Monsieur La Doulaise', cursive;
  font-size: clamp(50px, 5vw, 80px);
  margin: 0;
  line-height: 1.05;
  padding-bottom: 15px;
}

/* Divider under all page titles EXCEPT home */

main:not(.home-page) .title-block h1::after{
  content: "";
  display: block;
  width: 170px;
  height: 1px;
  background: rgba(0,0,0,.12);
  margin: 15px auto 0;
}

/* Date styling */

.title-block .date{
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 20px;
  margin-top: 8px;
  letter-spacing: .03em;
}

/* SECTIONS */

.section{
  padding: 15px 0 35px;
}

.container{
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.card{
  background: transparent;
  border: none;
  padding: 0;
}

/* Subheaders */

.card h2{
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .02em;
  margin: 25px 0 10px;
}

/* Divider inside content */

.hr{
  height: 1px;
  background: rgba(0,0,0,.12);
  width: 170px;
  margin: 18px auto;
}

/* GALLERY */

.gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 25px;
}

.gallery img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

@media (min-width: 700px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px){
  .gallery{ grid-template-columns: repeat(4, 1fr); }
}

/* MOBILE */

@media (max-width: 600px){

  .page-banner{ height: 200px; }

  .title-block h1{ font-size: 38px; }

  .card h2{ font-size: 22px; }

  .container{ width: 94%; }

  .card p{ font-size: 16px; }
}

.footer{ display:none; }

/* ===== FIX: Make spacing under page titles consistent with body spacing ===== */

/* Reduce title block bottom padding (this is the big empty area) */
.title-block{
  padding-bottom: 6px !important;
}

/* Tighten the auto divider spacing under titles */
.title-block h1{
  padding-bottom: 10px !important;
}

.title-block h1::after{
  margin-top: 10px !important;
}

/* Reduce the gap before the first content section */
.section{
  padding-top: 6px !important;
}

/* Optional: make the first subheader sit more like the rest of the page */
.section .card h2:first-of-type{
  margin-top: 14px !important;
}

/* ===== Make title font weight look consistent across desktop + mobile ===== */

/* Smooth script font rendering */
.title-block h1, .card h1, .card h2{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-weight: 400; /* prevents browser from "thickening" */
}

/* Also apply to your nav if you want consistency */
.nav a{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== GLOBAL FOOTER SKETCH + DIVIDERS + SUBTLE PARALLAX ===== */

/* Banner: subtle parallax feel (safe-ish) */
.page-banner{
  position: relative;
}
.page-banner img{
  transform: translateZ(0);
  will-change: transform;
}

/* Subtle parallax only on devices that support fixed background well */
@media (min-width: 900px){
  .page-banner{
    background: #000;
    overflow: hidden;
  }
  .page-banner img{
    transform: scale(1.06);
    object-position: center;
  }
}

/* Divider utility (you already have .hr) — keep it consistent */
.hr{
  width: 170px;
  margin: 18px auto;
}

/* Footer sketch section */
.site-footer{
  padding: 0 0 28px;
}

.site-footer .footer-divider{
  height: 1px;
  background: rgba(0,0,0,.12);
  width: 170px;
  margin: 24px auto 18px;
}

.site-footer img{
  width: 220px;          /* smaller footer size */
  max-width: 70%;
  height: auto;
  opacity: 0.95;
  display: block;
  margin: 0 auto;
}

/* Mobile footer sizing */
@media (max-width: 600px){
  .site-footer img{
    width: 180px;
  }
}

/* ===== Even vertical balance between title area and footer on interior pages ===== */

/* Make page layout a vertical column so footer sits at the bottom */
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Let main take up remaining height so footer naturally sits at bottom */
main{
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Make the section fill available space and center content vertically a bit */
main .section{
  flex: 1;
  display: flex;
  align-items: center;       /* vertical centering */
}

/* Keep your normal width constraints */
main .section .container{
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Don’t vertically center the home page (keep it normal) */
.home-page .section{
  display: block !important;
}

/* Don’t vertically center the gallery page grid (it can look weird) */
.photos-page .section{
  display: block !important;
}

/* ===== Nav Highlight (Editorial Style) ===== */

.nav a{
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.nav a.active{
  color: #fbf8f1 !important;
}

.nav a.active::before{
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 60%;
  background: #3f4a2a;   /* your green */
  z-index: -1;
}

/* ===== Fix centered text block width ===== */

.card p{
  max-width: 700px;
  margin: 0 auto;
}
