/* Lily Hollander Portfolio — faithful static rebuild of lilyhollander.com */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #ece4da;
  --ink: #36302a;
  --ink-soft: #574c3f;
  --line: rgba(54,48,42,0.15);
}

html { scroll-behavior: smooth; }

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

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; }

/* Header / Nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 6vw;
}

.brand {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

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

.main-nav a {
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

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

/* Full screen mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}

.nav-overlay.open { display: flex; }

.nav-overlay a {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1.8rem;
}

.nav-close {
  position: absolute;
  top: 30px;
  right: 6vw;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink-soft);
}

/* Hero (homepage) */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4vw;
  padding: 5vh 6vw 6vh;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 320px;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.3;
}

.hero-text p {
  margin-top: 8px;
  font-size: 1rem;
}

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

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

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px 56px;
  padding: 0 6vw 8vh;
}

.grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: block;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-item .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.grid-item .portfolio-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.grid-item:hover .portfolio-overlay { opacity: 0.55; }
.grid-item:hover .portfolio-text { opacity: 1; }

.portfolio-title {
  font-size: 1.15rem;
}

/* Project page */
.project-header {
  padding: 6vh 6vw 3vh;
  text-align: center;
}

.project-header h1 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.project-body {
  padding: 0 6vw 6vh;
}

/* generic 2-col image grid used on several project pages */
.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: start;
}

.img-grid img {
  width: 100%;
  border-radius: 0;
}

/* 3-col grid for Other Graphic Design Work first row */
.img-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.tall-img { grid-row: span 2; }

/* Single centered image (Organic Social) */
.project-single {
  display: flex;
  justify-content: center;
  padding: 0 6vw 2vh;
}

.project-single img {
  max-width: 320px;
  width: 100%;
  border-radius: 20px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4vh 6vw 8vh;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-nav .side { display: flex; align-items: center; gap: 0.4rem; font-size: 1.1rem; }
.project-nav .side.right { margin-left: auto; }
.project-nav .side.left:only-child { }

/* Resume page */
.resume-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 6vw 8vh;
  gap: 2.5rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 16px 34px;
  border: 1px solid var(--ink-soft);
  border-radius: 30px;
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1rem;
}

.resume-wrap img {
  max-width: 560px;
  width: 100%;
}

/* Contact page */
.contact-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5vw;
  padding: 8vh 6vw;
  flex-wrap: wrap;
}

.contact-photo {
  flex: 0 1 320px;
  max-width: 320px;
}

.contact-photo img {
  width: 100%;
  filter: grayscale(100%);
}

.contact-info {
  flex: 1 1 320px;
  max-width: 420px;
}

.contact-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
}

.contact-info p {
  margin-bottom: 0.9rem;
}

.contact-info a {
  border-bottom: 1px solid var(--ink);
}

/* Footer */
.site-footer {
  padding: 3vh 6vw;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: 0.7;
}

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

@media (max-width: 720px) {
  .site-header { padding: 22px 5vw; }
  .portfolio-grid { grid-template-columns: 1fr; padding: 0 5vw 6vh; }
  .hero { padding: 5vh 5vw 4vh; flex-direction: column-reverse; }
  .img-grid, .img-grid-3 { grid-template-columns: 1fr; }
  .tall-img { grid-row: auto; }
  .contact-wrap { flex-direction: column; text-align: center; }
}
