/* ---------- Tokens ---------- */
:root {
  --cream: #f7f2ea;
  --cream-2: #efe7da;
  --ivory: #fbf8f3;
  --ink: #1f1a17;
  --ink-soft: #3d3531;
  --muted: #7a6f68;
  --line: #e4ddd0;
  --accent: #a8472c;      /* warm terracotta */
  --accent-2: #6b5845;    /* warm walnut */
  --jewel: #2f5d5b;       /* muted teal jewel */
  --shadow: 0 20px 60px -24px rgba(55, 38, 28, 0.25);
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --wrap-narrow: 960px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* subtle paper texture using layered gradients */
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(168,71,44,0.05), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(47,93,91,0.04), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.01em; }
h1 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.9em;
  font-weight: 500;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 248, 243, 0.95);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.85);
  transform-origin: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) 28px clamp(60px, 10vw, 140px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.hero-copy h1 { margin-top: 0.2em; }
.lede {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.25s ease;
  border-radius: var(--radius);
  font-weight: 500;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

.hero-art { position: relative; aspect-ratio: 3/4; }
.hero-art-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px;
  background: transparent;
  box-shadow: 0 36px 70px -28px rgba(55, 38, 28, 0.28);
}
.hero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.0);
  transform-origin: center;
  transition: transform 1.4s ease;
}
.hero-art:hover .hero-art-frame img { transform: scale(1.03); }
.hero-art-accent {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 36%;
  height: 36%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  z-index: -1;
  border-radius: 3px;
  opacity: 0.9;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) 28px;
}
.section-alt {
  background: var(--cream);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section-alt > * {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.section-head {
  max-width: var(--wrap-narrow);
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.section-lede {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--cream-2);
  border-radius: var(--radius);
  cursor: zoom-in;
  box-shadow: 0 1px 0 rgba(31,26,23,0.04);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), filter 0.4s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,26,23,0.25));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--cream-2);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 0.5em; }
.affiliations {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.affiliations li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.affiliations li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Events ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.events-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.events-card h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.events-upcoming { border-color: var(--accent); }
.events-upcoming h3 { color: var(--accent); }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.event-list li:last-child { border-bottom: 0; }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}
.event-date span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.event-date strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
}
.event-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 2px;
}
.event-meta { font-size: 0.88rem; color: var(--muted); margin: 0; }
.event-meta a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.event-meta a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Writing ---------- */
.writing-cta { text-align: center; margin-top: 40px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--wrap-narrow);
  margin: 0 auto;
}
.posts-status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  padding: 24px 0;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-2);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.post-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.post-excerpt {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.post-link {
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
@media (max-width: 700px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-wrap {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  text-align: center;
}
.contact-wrap h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.25s ease;
  background: var(--ivory);
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--cream);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); }
.footer-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
  background: var(--cream);
}
.footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.85);
  transform-origin: center;
}
.footer-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--ivory);
  font-size: 2.4rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin: 0 auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; margin: 0 auto; width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 2; }
  .events-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 2;
  }
  .nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-family: var(--serif); font-size: 1.6rem; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; }
  .event-list li { grid-template-columns: 70px 1fr; gap: 14px; }
  .hero-ctas { width: 100%; }
  .btn { flex: 1 1 auto; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
