/* =======================================================================
 * Julia Bean — static site stylesheet
 * Rebuild of the Garnish/TT4-with-portfolio-filter-snippet design.
 *
 * Layout system: 960px max content width, 4/3/2-col responsive grid,
 * Garnish-style slash-separated nav + filter bar.
 * Accent: #43b296. Body text: #333 on #fff.
 * ======================================================================= */

/* ----- Reset ----- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption {
  margin: 0;
  padding: 0;
}
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ----- Document ----- */
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Layout container (matches 960px snippet rule) ----- */
.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Header ----- */
.site-header {
  padding: 30px 0 18px;
}
.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.site-logo img {
  max-height: 70px;
  width: auto;
  margin: 0 auto;
}

/* ----- Primary nav (slash-separated, Garnish-style) ----- */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.site-nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #888;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #43b296;
}
.site-nav li + li::before {
  content: "/";
  color: #ccc;
  padding: 0 8px;
}

/* ----- Main ----- */
main { padding: 20px 0 40px; }

/* ----- Portfolio filter bar (snippet `.pf-filter-bar`) ----- */
.pf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 30px;
  justify-content: center;
}
.pf-filter-btn {
  background: transparent;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
  line-height: 1;
}
.pf-filter-btn:hover { color: #43b296; }
.pf-filter-btn.active {
  color: #43b296;
  font-weight: 600;
}
.pf-filter-sep {
  color: #ccc;
  padding: 0 8px;
  font-size: 13px;
  user-select: none;
}

/* ----- Portfolio grid (snippet `.pf-grid`) ----- */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

.pf-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pf-item.is-hidden { display: none; }
.pf-item a {
  display: block;
  width: 100%;
  height: 100%;
}
.pf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Hover overlay */
.pf-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.pf-item:hover .pf-item-overlay,
.pf-item:focus-within .pf-item-overlay { opacity: 1; }
.pf-item-overlay-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.pf-item-overlay-cats {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* ----- Content pages (About, Having a Party?, Memorial, Portfolio detail) ----- */
.page__title {
  font-size: 28px;
  font-weight: 600;
  margin: 10px 0 24px;
  letter-spacing: 0.01em;
}
.page__meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 18px;
}
.page__body p { margin: 0 0 1.2em; }
.page__body h2,
.page__body h3,
.page__body h4 {
  margin: 1.4em 0 0.6em;
  font-weight: 600;
}
.page__body h2 { font-size: 20px; }
.page__body h3 { font-size: 17px; }
.page__body h4 { font-size: 15px; color: #555; }
.page__body a { color: #43b296; }
.page__body a:hover { text-decoration: underline; }

/* Image stack for portfolio detail bodies and party page */
.page__body img,
.image-stack img {
  margin: 16px auto;
  max-width: 100%;
  height: auto;
}
.image-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Embedded video (YouTube iframe wrapper, local <video>) */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 24px auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed iframe,
.video-embed video,
video.video-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
video.video-embed {
  aspect-ratio: 16 / 9;
  max-width: 720px;
  margin: 24px auto;
}

/* Post navigation (Previous / Next on portfolio details) */
.post-nav {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin: 20px 0 30px;
  gap: 20px;
}
.post-nav__prev { text-align: left; flex: 1 1 50%; }
.post-nav__next { text-align: right; flex: 1 1 50%; }
.post-nav a { color: #888; transition: color 0.2s ease; }
.post-nav a:hover { color: #43b296; }

/* Divider used at end of portfolio details */
.page__divider {
  border: 0;
  border-top: 1px solid #e6e6e6;
  margin: 30px 0;
}

/* ----- Footer ----- */
.site-footer {
  padding: 30px 0 40px;
  text-align: center;
  font-size: 11px;
  color: #888;
}
.site-footer__line {
  display: block;
  height: 1px;
  background: #e6e6e6;
  margin: 0 0 22px;
}
.site-footer img {
  max-width: 60px;
  margin: 0 auto 10px;
}
.site-footer a { color: #888; }
.site-footer a:hover { color: #43b296; }
.site-footer p { margin: 0; }
.site-footer__dates { font-size: 11px; color: #aaa; }
.site-footer__admin { margin-top: 6px; font-size: 10px; }

/* ----- Utilities ----- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- Mobile tweaks ----- */
@media (max-width: 600px) {
  .page__title { font-size: 22px; }
  .site-nav a, .pf-filter-btn { font-size: 12px; }
  .site-nav li + li::before, .pf-filter-sep { padding: 0 6px; }
}
