/* Sempre Amore — styles */
:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --ink: #23211f;
  --muted: #7a746c;
  --line: #e4dfd7;
  --accent: #8a6f5a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  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; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1.2em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { font-family: var(--serif); font-size: 26px; letter-spacing: .04em; white-space: nowrap; display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.brand .mark-light { display: none; }
body.home .site-header:not(.scrolled) .brand .mark-dark { display: none; }
body.home .site-header:not(.scrolled) .brand .mark-light { display: block; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
@media (max-width: 400px) { .brand img { height: 38px; } }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Transparent header on top of the home hero */
body.home .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; }
body.home .site-header:not(.scrolled) .brand,
body.home .site-header:not(.scrolled) .nav a { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
body.home .site-header { position: fixed; left: 0; right: 0; }

.menu-toggle { display: none; }

@media (max-width: 640px) {
  .menu-toggle {
    display: block; background: none; border: 0; padding: 8px; margin-right: -8px;
    font: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: inherit; cursor: pointer;
  }
  body.home .site-header:not(.scrolled) .menu-toggle { color: #fff; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none; padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; color: var(--ink) !important; text-shadow: none !important; }
}

/* ---------- Home ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  display: flex; align-items: center; overflow: hidden; color: #fff; text-align: center;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 42% 30% at 50% 52%, rgba(0,0,0,.34), rgba(0,0,0,.16) 55%, rgba(0,0,0,0) 100%),
    rgba(255,255,255,.12);
}
.hero-text { position: relative; z-index: 1; width: 100%; padding-top: 40px; }
.hero h1 { font-size: clamp(48px, 9vw, 112px); margin: 0 0 18px; letter-spacing: .02em; }
.hero-logo { width: min(640px, 86vw); height: auto; margin: 0 auto; filter: drop-shadow(0 2px 14px rgba(0,0,0,.35)); }
.hero p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); margin: 0; opacity: .95; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

.intro { padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(72px, 12vw, 140px); text-align: center; }
.intro p { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; margin: 0 0 32px; }

.text-link {
  display: inline-block; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px; transition: opacity .2s;
}
.text-link:hover { opacity: .6; }

.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); padding-bottom: clamp(72px, 10vw, 120px); }
.tile { position: relative; overflow: hidden; display: block; background: var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.featured .tile img { aspect-ratio: 4 / 5; }
/* Soft white wash on the home page's featured photos; lifts away on hover */
.featured .tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(255,255,255,.12); transition: opacity .6s ease;
}
.featured .tile:hover::after { opacity: 0; }
.tile-label { z-index: 1; }
.tile:hover img { transform: scale(1.03); }
.tile-label {
  position: absolute; left: 0; bottom: 0; padding: 18px 22px; color: #fff;
  font-family: var(--serif); font-size: 24px;
  text-shadow: 0 1px 14px rgba(0,0,0,.35);
}
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; }
  .featured .tile img { aspect-ratio: 3 / 2; }
}

.home-quote { text-align: center; padding-bottom: clamp(72px, 10vw, 120px); }
.home-quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 10px; }

/* ---------- Page headers ---------- */
.page-head { padding: clamp(56px, 9vw, 110px) 0 clamp(36px, 5vw, 64px); text-align: center; }
.page-head h1 { font-size: clamp(42px, 6vw, 72px); margin: 0 0 12px; }
.page-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- Portfolio index ---------- */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(20px, 3vw, 40px); padding-bottom: 120px; }
.collection img { aspect-ratio: 4 / 5; }
.collection-meta { padding: 16px 2px 0; }
.collection-meta h2 { font-size: 28px; margin: 0; }
.collection-meta span { font-size: 14px; color: var(--muted); }
@media (max-width: 400px) { .collections { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { padding-bottom: 80px; }
.gallery-grid { columns: 3 320px; column-gap: clamp(12px, 2vw, 24px); }
.gallery-grid figure { margin: 0 0 clamp(12px, 2vw, 24px); break-inside: avoid; }
.gallery figure { cursor: zoom-in; }

/* Stories: groupings of photos with text underneath */
.story { margin-bottom: clamp(64px, 9vw, 120px); }
.story-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.story-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 0 0 14px; }
.story-head p { color: var(--muted); margin: 0 auto; max-width: 600px; }
.photo-group { margin-bottom: clamp(56px, 8vw, 104px); }
.photo-row { display: flex; gap: clamp(10px, 1.6vw, 20px); margin-bottom: clamp(10px, 1.6vw, 20px); }
.photo-row figure { flex: 1.5 1 0; min-width: 0; margin: 0; }
.photo-row img { width: 100%; height: 100%; object-fit: cover; }
.group-text { text-align: center; padding-top: clamp(14px, 2vw, 24px); }
.group-text h3 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 8px; }
.group-text p { color: var(--muted); margin: 0; }
.more-head { text-align: center; font-size: 30px; margin: 0 0 32px; }
@media (max-width: 640px) {
  .photo-row { flex-direction: column; }
  .photo-row figure { flex: none !important; }
  .photo-row img { height: auto; }
}
.gallery img { width: 100%; transition: opacity .3s; }
.gallery figure:hover img { opacity: .9; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }
.gallery figcaption strong { color: var(--ink); font-weight: 400; }

.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 32px 0 100px; }
.pager a { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pager a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(18,17,16,.96);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 56px 16px 24px; color: #eee;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox .lb-cap { font-size: 14px; letter-spacing: .04em; margin-top: 14px; text-align: center; color: #bbb; }
.lightbox .lb-cap strong { color: #fff; font-weight: 400; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #ddd; cursor: pointer;
  font: 300 32px/1 var(--sans); padding: 16px;
}
.lightbox button:hover { color: #fff; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Blog index ---------- */
.post-list { display: grid; gap: clamp(48px, 7vw, 88px); padding-bottom: 120px; }
.post-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.post-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-card h2 { font-size: clamp(30px, 3.4vw, 42px); }
.post-card p { color: var(--muted); }
.post-card:nth-child(even) .tile { order: 2; }
@media (max-width: 760px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card:nth-child(even) .tile { order: 0; }
}

/* ---------- Single post ---------- */
.post-hero { margin: 0 auto clamp(40px, 6vw, 72px); max-width: var(--max); padding: 0 var(--gutter); }
.post-hero img { width: 100%; max-height: 78vh; object-fit: cover; }
.prose { font-size: 18px; }
.prose h2 { font-size: 34px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 26px; margin: 1.4em 0 .4em; }
.prose a { border-bottom: 1px solid var(--accent); }
.prose blockquote {
  margin: 1.8em 0; padding: 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.4;
}
.prose figure { margin: 2.2em calc(-1 * min(120px, 8vw)); }
.prose figcaption { text-align: center; font-size: 14px; color: var(--muted); padding-top: 10px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
@media (max-width: 760px) { .prose figure { margin: 1.8em 0; } }

/* ---------- Page banner (About page header photo) ---------- */
/* Desktop: a slim strip anchored to the bottom of the photo, so the tower and
   trees stay whole; the title sits just above the wires on the left. */
.page-banner {
  position: relative; aspect-ratio: 2.6 / 1; overflow: hidden;
  display: flex; align-items: flex-start; padding-top: 6.5%;
  color: #fff; margin-bottom: clamp(48px, 7vw, 96px);
}
.page-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
@media (max-width: 760px) {
  .page-banner { aspect-ratio: auto; height: clamp(320px, 62vh, 640px); padding-top: 48px; }
  .page-banner > img { object-position: 72% 72%; }
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.32), rgba(0,0,0,.08) 60%, rgba(0,0,0,0));
}
.page-banner-text { position: relative; z-index: 1; width: 100%; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.page-banner-text .eyebrow { color: rgba(255,255,255,.85); }
.page-banner-text h1 { font-size: clamp(44px, 6.5vw, 80px); margin: 0 0 8px; }
.page-banner-text p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: 120px; }
.about img { position: sticky; top: 100px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about .lead { font-family: var(--serif); font-size: 28px; line-height: 1.45; }
.about .signoff { font-family: var(--serif); font-style: italic; font-size: 26px; margin-top: 1.6em; }
.about .giving { border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.6em; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about img { position: static; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 48px; text-align: center; font-size: 14px; color: var(--muted); }
.site-footer .brand { color: var(--ink); display: block; margin-bottom: 8px; }
.footer-logo { width: 220px; height: auto; margin: 0 auto 24px; opacity: .9; }
.site-footer .giving { max-width: 520px; margin: 0 auto 20px; }
.site-footer .links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.site-footer .links a { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.site-footer .links a:hover { color: var(--ink); }

.empty { text-align: center; color: var(--muted); padding: 40px 0 120px; }

/* Gentle fade-in */
.fade { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  .tile img { transition: none; }
}
