/* 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;
  justify-content: center;
  padding: 2rem 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: centered, icon + name stacked) ---- */
.logo-wrap {
  text-align: center;
  margin-bottom: 3rem;
  width: 80%;
}
.logo-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.logo-email {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 0.75rem;
}

/* ---- 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: 30px; fill: currentColor; }

/* ---- content ---- */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
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;
  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 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--border);
}
.cover-date { color: var(--muted); font-size: 0.8rem; }
.cover-title { font-weight: 600; font-size: 1rem; }

/* ---- 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 { 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; }

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

/* ---- footer ---- */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem 0 1rem;
  margin-left: 25%;
}
.site-footer a { color: var(--muted); }

/* ---- 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; }
  .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; }
}
