/* Lily Cantillo Portfolio — faithful to original brand
   Palette: white bg, #222 text, #999 muted, #7EA07A green accent */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #999999;
  --accent: #7EA07A;
  --border: #eeeeee;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ---- layout: fixed sidebar 25% + main 75% (original) ---- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 25%;
  height: 100vh;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* align to top like original (logo at top with padding, not vertically centered) */
  justify-content: flex-start;
  padding: 3rem 1.5rem;
  overflow-y: auto;
}
.main {
  margin-left: 25%;
  padding: 2.5rem 2.5rem 4rem;
  min-height: 100vh;
}
.container-inner { max-width: 1000px; margin: 0 auto; }

/* ---- logo (original: full-width banner at top of sidebar) ---- */
.logo-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
  padding: 0 0.5rem;
}
.logo-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.logo-link { display: block; }
.logo-email {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 0.6rem;
}

/* ---- nav (original: centered, green section labels) ---- */
.sidebar nav { width: 100%; }
.nav-group {
  text-align: center;
  margin-bottom: 2.25rem;
}
.nav-label {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.nav-group a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.9;
  transition: color 0.15s;
}
.nav-group a:hover,
.nav-group a.active { color: var(--text); }

/* ---- social icons (original: 30px SVG, #999 -> #222 hover) ---- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-icons a { color: var(--muted); transition: color 0.15s; }
.social-icons a:hover { color: var(--text); }
.social-icons svg { width: 30px; height: auto; fill: currentColor; display: block; }

/* ---- content ---- */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text);
}
p { margin-bottom: 1rem; color: var(--text); }
a { color: var(--text); }

/* ---- index hero + covers ---- */
.hero { text-align: center; margin-bottom: 2.5rem; }
.hero h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-sub { color: var(--accent); font-size: 1.1rem; font-weight: 500; }

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cover {
  display: block;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s;
}
.cover:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.cover-img { aspect-ratio: 1/1; overflow: hidden; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* cover-meta = hover overlay (matches original: white panel fades in over the cover) */
.cover-meta {
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.cover:hover .cover-meta,
.cover:focus-visible .cover-meta { opacity: 1; }
@media (hover: none) { .cover-meta { opacity: 1; } }  /* touch devices: always visible */
.cover-date { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cover-title { font-weight: 700; font-size: 1rem; text-transform: uppercase; }

/* ---- galleries ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.gallery-item { border: 1px solid var(--border); }
.gallery-item img, .gallery-item video { width: 100%; height: auto; display: block; }
.gallery-item figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- videos ---- */
.reel-video {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 1.25rem auto;
  background: #000;
  aspect-ratio: 16/9;
}
.video-missing {
  border: 1px dashed var(--muted);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  margin: 1.25rem 0;
}

/* ---- embeds ---- */
.embed-slides, .embed, .embed-itch { margin: 1.25rem 0; }
.embed-slides iframe { width: 100%; height: 480px; border: 1px solid var(--border); display: block; }
.embed iframe { width: 100%; height: 400px; border: 1px solid var(--border); display: block; }

/* ---- About page (clean rebuild 2026-08-06: same look as original, sane proportions) ---- */
.about-header { max-width: 800px; margin: 0 auto; padding: 60px 0 0; }
.about-header .page-title {
  font-size: 2.5rem; font-weight: 600; line-height: 1.2;
  color: #222; text-align: center; padding: 0 0 24px; margin: 0;
}
.about-content { max-width: 960px; margin: 0 auto; }
.about-graphic { display: block; width: 200px; margin: 0 auto 24px; }
.about-content > .about-graphic:last-child { margin-bottom: 40px; }
.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.about-photos img { width: 100%; height: 320px; object-fit: cover; display: block; }
.about-bio { text-align: center; margin-bottom: 40px; }
.about-bio p { font-size: 18px; color: var(--muted); line-height: 26px; margin: 0; }
@media (max-width: 720px) {
  .about-header { padding-top: 2rem; }
  .about-header .page-title { font-size: 2rem; line-height: 1.2; }
  .about-photos { grid-template-columns: 1fr; gap: 1rem; }
  .about-photos img { height: auto; }
}

/* ---- locked / about ---- */
.locked, .about {
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 720px;
}

/* ---- footer ---- */
/* ---- back to top + footer (mirrors original: 60px padding, gray 18px link, social icons) ---- */
.back-to-top {
  text-align: center;
  padding: 60px 0;
  margin-left: 25%;
}
.back-to-top a {
  font-size: 18px;
  color: var(--muted);
  text-decoration: none;
}
.back-to-top a:hover { color: var(--text); }
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 60px 0;
  margin-left: 25%;
}
.site-footer a { color: var(--muted); }
.footer-social { margin-top: 0; margin-bottom: 1.25rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1rem;
  }
  .main { margin-left: 0; padding: 1.5rem; }
  .site-footer { margin-left: 0; }
  .back-to-top { margin-left: 0; }
  .cover-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-group { margin-bottom: 1.25rem; }
  .logo-wrap { margin-bottom: 1.5rem; }
  .embed-slides iframe { height: 320px; }
}
@media (max-width: 560px) {
  .cover-grid { grid-template-columns: 1fr; }
}
