/* ============================================================
   Alvin's photo journal — bright, airy, nature-toned.
   Deliberately distinct from the Unspoken theme it conceals.
   ============================================================ */

:root {
  --pb-bg: #faf8f3;
  --pb-card: #ffffff;
  --pb-ink: #2b2b26;
  --pb-mist: #7a7468;
  --pb-green: #44593c;
  --pb-clay: #b9744f;
  --pb-line: #eae5da;

  --pb-font-heading: 'Fraunces', Georgia, serif;
  --pb-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --pb-font-caption: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--pb-bg);
  color: var(--pb-ink);
  font-family: var(--pb-font-body);
}

.pb-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.pb-header {
  text-align: center;
  margin-bottom: 48px;
}

.pb-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-green);
  margin: 0 0 10px;
  font-weight: 600;
}

.pb-title {
  font-family: var(--pb-font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--pb-ink);
}

.pb-subtitle {
  font-family: var(--pb-font-caption);
  font-style: italic;
  font-size: 17px;
  color: var(--pb-mist);
  max-width: 52ch;
  margin: 0 auto;
}

.pb-invite {
  text-align: center;
  margin: -24px auto 48px;
}

.pb-invite a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--pb-font-caption);
  font-style: italic;
  font-size: 18px;
  color: var(--pb-clay);
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid rgba(185, 116, 79, 0.32);
  border-radius: 999px;
  background: rgba(185, 116, 79, 0.06);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.pb-invite a:hover {
  background: rgba(185, 116, 79, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(185, 116, 79, 0.6);
}

.pb-invite-heart {
  font-style: normal;
  animation: pb-heart-pulse 2.4s ease-in-out infinite;
}

.pb-invite-arrow {
  font-style: normal;
  transition: transform .25s ease;
}

.pb-invite a:hover .pb-invite-arrow {
  transform: translateX(4px);
}

@keyframes pb-heart-pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.18); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pb-invite-heart { animation: none; }
}

.pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.pb-card {
  background: var(--pb-card);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(43, 43, 38, 0.12);
  border: 1px solid var(--pb-line);
}

.pb-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.pb-card-body {
  padding: 16px 18px 20px;
}

.pb-caption {
  font-family: var(--pb-font-caption);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pb-ink);
  margin: 0 0 8px;
}

.pb-meta {
  font-size: 12px;
  color: var(--pb-mist);
  letter-spacing: 0.02em;
}

.pb-meta .dot {
  margin: 0 6px;
}

.pb-empty {
  text-align: center;
  color: var(--pb-mist);
  padding: 60px 20px;
  font-family: var(--pb-font-caption);
  font-style: italic;
}

.pb-footer {
  text-align: center;
  margin-top: 70px;
  padding-top: 24px;
}

.pb-footer-credit {
  font-size: 13px;
  color: var(--pb-mist);
}

/* ---- Announcement popup ---- */
.pb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 38, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: pb-fade-in .25s ease;
}

.pb-modal {
  position: relative;
  background: var(--pb-card);
  border: 1px solid var(--pb-line);
  border-radius: 10px;
  max-width: 440px;
  width: 100%;
  padding: 34px 30px 30px;
  box-shadow: 0 24px 60px -18px rgba(43, 43, 38, 0.4);
  text-align: center;
  animation: pb-pop-in .28s cubic-bezier(.2, .8, .3, 1);
}

.pb-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--pb-mist);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}

.pb-modal-close:hover {
  background: var(--pb-line);
  color: var(--pb-ink);
}

.pb-modal-title {
  font-family: var(--pb-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--pb-ink);
  margin: 0 0 12px;
}

.pb-modal-body {
  font-family: var(--pb-font-caption);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pb-mist);
}

.pb-modal-overlay.pb-modal-hide {
  animation: pb-fade-out .2s ease forwards;
}

@keyframes pb-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pb-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pb-pop-in   { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .pb-modal-overlay, .pb-modal { animation: none; }
}

@media (max-width: 480px) {
  .pb-grid { grid-template-columns: 1fr; }
}
