/* Lily Hollander Portfolio - 2026 redesign v8 (hero-first, editorial scrolling grid below fold) */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #ece4da;
  --paper: #f5efe6;
  --ink: #2b241d;
  --ink-soft: #574c3f;
  --rust: #a8461f;
  --line: rgba(43,36,29,0.14);
  --dark: #14100c;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink-soft);
  font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  min-height: 100vh;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============ Persistent header — always visible, always readable ============ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 6vw;
  z-index: 500;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.main-nav {
  display: flex;
  gap: 2.2rem;
}

.main-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--rust);
  color: var(--rust);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 18px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink-soft);
  top: 0;
}
.nav-toggle span:last-child { top: auto; bottom: 0; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 900;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.nav-close {
  position: absolute;
  top: 30px;
  right: 6vw;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--ink-soft);
}

/* ============ Hero — immediately reads as Lily Hollander's site ============ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5vw;
  padding: 8vh 6vw 7vh;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-text {
  flex: 1 1 380px;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.1rem;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-text .tagline {
  margin-top: 1.3rem;
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-preview {
  display: flex;
  gap: 10px;
  margin-top: 2.4rem;
}

.hero-preview a {
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  display: block;
}

.hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.hero-preview a:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.hero-scroll-cue {
  margin-top: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-scroll-cue svg {
  width: 14px;
  height: 14px;
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.hero-image {
  flex: 0 1 320px;
  max-width: 340px;
}

.hero-image .frame {
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(43,36,29,0.25);
}

.hero-image img { width: 100%; }

/* ============ Showcase section — editorial scrolling portfolio grid ============ */
.showcase {
  background: var(--paper);
  padding: 7vh 6vw 8vh;
}

.showcase-label {
  text-align: center;
  color: var(--ink-soft);
  opacity: 0.7;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 5vh;
}

.work-list {
  max-width: 1240px;
  margin: 0 auto;
}

.work-project {
  padding-bottom: 6vh;
}

.work-project-header {
  max-width: 640px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.work-project-num {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  margin-bottom: 0.8rem;
}

.work-project-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 0.9rem;
}

.work-project-desc {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* CSS multi-column masonry: every image keeps its own natural aspect ratio,
   just scales down to fit the column width. No object-fit, no cropping,
   no fixed frame -- this is what structurally prevents the v2-v7 framing
   bug (nothing is ever forced into an artificial box). */
.work-grid {
  column-count: 1;
  column-gap: 20px;
}

@media (min-width: 640px) {
  .work-grid { column-count: 2; }
}

@media (min-width: 1080px) {
  .work-grid { column-count: 3; }
}

.work-grid-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(43,36,29,0.32);
  cursor: zoom-in;
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -14px rgba(43,36,29,0.4);
}

.work-grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.work-divider {
  border: none;
  border-top: 1px solid var(--line);
  max-width: 1240px;
  margin: 0 auto;
}

/* ============ Lightbox (optional, simple, low-risk) ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,16,12,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  padding: 5vh 5vw;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  color: #f5efe6;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-locked { overflow: hidden; }

@media (max-width: 720px) {
  .showcase { padding: 5vh 4vw 6vh; }
  .hero-preview { display: none; }
  .work-project-header { margin-bottom: 2.2rem; }
  .work-grid { column-gap: 14px; }
  .work-grid-item { margin-bottom: 14px; }
}

/* ============ Static pages (resume / contact) ============ */
.resume-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vh 6vw 10vh;
  gap: 2.2rem;
  text-align: center;
}

.resume-heading h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.resume-heading p { margin-top: 0.6rem; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 16px 36px;
  border: 1px solid var(--ink);
  border-radius: 40px;
  font-family: 'Marcellus', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn svg { width: 16px; height: 16px; }

.resume-frame {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(43,36,29,0.3);
  max-width: 680px;
  width: 100%;
}
.resume-frame img { width: 100%; }

.contact-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6vw;
  padding: 9vh 6vw;
  flex-wrap: wrap;
}

.contact-photo { flex: 0 1 320px; max-width: 320px; }
.contact-photo .frame { border: 1px solid var(--line); padding: 10px; background: var(--paper); }
.contact-photo img { width: 100%; filter: grayscale(100%); }

.contact-info { flex: 1 1 340px; max-width: 440px; }
.contact-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}
.contact-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.4rem; }
.contact-detail { margin-bottom: 1.6rem; font-size: 1.05rem; }
.contact-detail a { border-bottom: 1px solid var(--ink); }

.social-links { display: flex; flex-direction: column; gap: 1rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.2s ease, gap 0.2s ease;
}
.social-link:hover { color: var(--rust); gap: 1.1rem; }
.social-link .icon {
  width: 38px; height: 38px;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.social-link:hover .icon { border-color: var(--rust); background: rgba(168,70,31,0.08); }
.social-link .icon svg { width: 18px; height: 18px; fill: var(--ink); }
.social-link:hover .icon svg { fill: var(--rust); }
.social-note { font-size: 0.85rem; color: var(--ink-soft); opacity: 0.75; margin-top: 0.15rem; }

.site-footer {
  padding: 3.5vh 6vw;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.site-footer.footer-on-dark {
  color: var(--ink-soft);
  opacity: 0.6;
  padding-top: 4vh;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .site-header { padding: 20px 5vw; }
  .hero { padding: 6vh 5vw 5vh; flex-direction: column-reverse; text-align: center; }
  .hero-preview { justify-content: center; }
  .hero-scroll-cue { justify-content: center; width: 100%; }
  .contact-wrap { flex-direction: column; text-align: center; }
  .social-links { align-items: center; }
}
