/* ============================================================
   Cindy Pluciennik — A Tribute to Her Life and Art
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg:           #faf9f6;
  --bg-alt:       #f3ede5;
  --bg-dark:      #1c1917;
  --text:         #1c1917;
  --text-mid:     #6b6058;
  --text-light:   #a09488;
  --accent:       #8b2635;
  --accent-warm:  #c9a07a;
  --white:        #ffffff;
  --border:       #e8e0d6;

  --serif:        'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:         'Raleway', system-ui, sans-serif;

  --hdr:          76px;
  --gap:          28px;
  --max:          1200px;
  --max-narrow:   780px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --dur:          0.38s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

address { font-style: normal; }

/* ── Layout Utilities ────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

.container.narrow {
  max-width: var(--max-narrow);
}

/* ── Section Header ──────────────────────────────────────────── */
.sec-head {
  text-align: center;
  margin-bottom: 64px;
}

.sec-head.left {
  text-align: left;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.1;
}

.rule {
  width: 52px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 20px;
}

.sec-head.left .rule {
  margin-left: 0;
}

.sec-sub {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Fade-up Animation ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--hdr);
  background: rgba(250, 249, 246, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

#site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(28, 25, 23, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Brand */
.site-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1;
}

.brand-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1;
}

/* Nav */
#main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

#main-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

#main-nav a:hover {
  color: var(--text);
}

#main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────
   INTRO (hero + about merged)
───────────────────────────────────────────────────────────── */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--hdr);
}

.intro-image {
  position: sticky;
  top: var(--hdr);
  height: calc(100vh - var(--hdr));
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 28px;
  gap: 0;
}

.intro-image img {
  max-height: calc(100vh - var(--hdr) - 100px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.intro-caption {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px 80px 64px;
}

.intro-eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.intro-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.intro-rule {
  width: 52px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 32px;
}

.intro-bio {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.2em;
}

.intro-memorial {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.intro-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 15px 44px;
  background: var(--text);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease);
}

.intro-btn:hover {
  background: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   GALLERY
───────────────────────────────────────────────────────────── */
.section-gallery {
  padding: 110px 0 120px;
}

/* CSS Masonry via columns — preserves natural artwork proportions */
.masonry {
  columns: 3;
  column-gap: var(--gap);
}

.art-card {
  break-inside: avoid;
  margin-bottom: var(--gap);
  cursor: pointer;
}

.art-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.art-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease);
}

.art-card:hover .art-wrap img {
  transform: scale(1.045);
}

.art-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(28, 25, 23, 0.62);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.art-card:hover .art-hover {
  opacity: 1;
}

.art-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  letter-spacing: 0.04em;
}

.art-view {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 3px;
}


/* ─────────────────────────────────────────────────────────────
   CINDY'S FUND
───────────────────────────────────────────────────────────── */
.section-fund {
  background: var(--bg-alt);
  padding: 110px 0 120px;
}

.fund-body {
  margin-top: 0;
}

.fund-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.fund-date {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.fund-body p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.2em;
}

.donation-box {
  background: var(--white);
  border-left: 3px solid var(--accent);
  padding: 32px 36px;
  margin: 44px 0;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
}

.donation-box h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.donation-box address {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-mid);
}

.donation-box a {
  color: var(--accent);
  transition: color var(--dur);
}

.donation-box a:hover {
  color: var(--text);
}

.fund-close {
  font-style: italic;
  color: var(--text-mid) !important;
}

.fund-sig {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin-top: 6px !important;
}

/* ─────────────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────────────────────── */
.section-contact {
  background: var(--white);
  padding: 110px 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 88px;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color var(--dur) var(--ease);
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--border);
}

.btn-send {
  align-self: flex-start;
  padding: 15px 48px;
  background: var(--text);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  margin-top: 8px;
}

.btn-send:hover {
  background: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 14px;
}

/* Info panel */
.contact-info {
  padding-top: 12px;
}

.contact-info h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  line-height: 1.7;
}

.contact-info a {
  color: var(--text-mid);
  transition: color var(--dur);
}

.contact-info a:hover {
  color: var(--accent);
}

.contact-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.contact-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem !important;
  color: var(--text-light) !important;
  line-height: 1.8 !important;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 72px 48px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-name {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.footer-rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 20px;
}

.footer-words {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.footer-legal {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}

/* ─────────────────────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lb-veil {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.93);
  cursor: zoom-out;
}

.lb-figure {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 90vw;
  max-height: 90vh;
  animation: lbIn 0.3s var(--ease) both;
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-figure img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}

.lb-figure figcaption {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-align: center;
}

.lb-close {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 3;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur);
  padding: 4px 8px;
}

.lb-close:hover {
  color: var(--white);
}

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 20px 28px;
  transition: color var(--dur);
  line-height: 1;
}

.lb-arrow:hover {
  color: var(--white);
}

.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 36px; }
  .header-inner { padding: 0 36px; }
  .about-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; }
}

@media (max-width: 860px) {
  .masonry { columns: 2; }
  .intro { grid-template-columns: 1fr; min-height: auto; }
  .intro-image { position: relative; top: 0; height: auto; min-height: 0; padding: 32px 24px 20px; }
  .intro-image img { max-height: 55vw; width: auto; }
  .intro-content { padding: 52px 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 680px) {
  :root {
    --hdr: 60px;
    --gap: 18px;
  }

  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }

  /* Mobile nav */
  #main-nav {
    display: none;
    position: fixed;
    top: var(--hdr);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px 32px;
    z-index: 199;
  }

  #main-nav.open {
    display: block;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 22px;
  }

  #main-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    display: flex;
  }

  .masonry { columns: 1; }

  .section-gallery,
  .section-fund,
  .section-contact { padding: 72px 0 80px; }

  .intro-name { font-size: 3rem; }
  .intro-content { padding: 40px 20px; }
  .intro-image img { max-height: 70vw; }
  .intro-btn { width: 100%; text-align: center; align-self: stretch; }

  .btn-send { width: 100%; text-align: center; }

  .site-footer { padding: 56px 24px; }

  .lb-arrow { padding: 12px 16px; font-size: 2rem; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  #site-header, .lb-arrow, .lb-close, .lightbox { display: none; }
  .intro { grid-template-columns: 1fr; min-height: auto; }
  .intro-image { position: relative; height: 400px; }
}
