/* Lily Casciaro Dircksen — shared styles */

:root {
  --ink: #1a1a18;
  --paper: #faf9f6;
  --line: #dedad2;
  --muted: #6b6a63;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* Header / nav, shared on every page */

.site-header {
  padding: clamp(18px, 3vw, 32px) clamp(16px, 3vw, 40px) clamp(14px, 2vw, 22px);
  text-align: center;
}

.site-header .name {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: clamp(20px, 3vw, 30px);
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav {
  margin-top: clamp(10px, 2vw, 18px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 30px);
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.65;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a.active {
  opacity: 1;
  border-color: var(--ink);
}

/* Footer, shared on every page */

.site-footer {
  text-align: center;
  padding: clamp(18px, 3vw, 30px) 0 clamp(20px, 3vw, 34px);
  margin-top: auto;
}

.site-footer a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer a:hover {
  border-color: var(--ink);
}

/* Generic content container used on Gallery / Bio / CV / Contact */

.content {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 20px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
}

.page-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* Home page hero */

.hero-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #ece9e2;
  min-height: 0;
}

.hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1.18);
  transition: opacity 0.35s ease;
}

.arrow-nav {
  display: flex;
  justify-content: center;
  padding: clamp(10px, 1.8vw, 16px) 0 clamp(18px, 3vw, 28px);
}

.arrow-nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.55;
  padding: 8px;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.arrow-nav button:hover {
  opacity: 1;
  transform: translateX(2px);
}

.arrow-nav button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* Gallery grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 32px);
}

.gallery-grid figure {
  break-inside: avoid;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.gallery-grid figure:hover img {
  opacity: 0.88;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 11, 9, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.is-open { display: flex; }

.lightbox-stage {
  max-width: 90vw;
  max-height: 86vh;
  overflow: auto;
}

.lightbox-stage img {
  display: block;
  max-width: 90vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform 0.25s ease;
  transform: scale(1);
}

.lightbox-stage img.is-zoomed {
  max-width: none;
  max-height: none;
  transform: scale(1.9);
  cursor: zoom-out;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  opacity: 0.7;
  padding: 12px;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close { top: clamp(10px, 2vw, 24px); right: clamp(10px, 2vw, 24px); }
.lightbox-prev { left: clamp(6px, 2vw, 20px); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(6px, 2vw, 20px); top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { display: none; }
}

/* Bio page */

.bio-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  align-items: flex-start;
}

.bio-portrait {
  flex: 0 0 220px;
  width: 220px;
  border-radius: 2px;
}

.bio-text {
  flex: 1 1 320px;
  min-width: 280px;
}

.bio-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.1em;
}

.bio-text p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .bio-portrait {
    flex: 0 0 auto;
    width: 160px;
    margin: 0 auto;
  }
  .bio-layout {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
}

/* CV page */

.cv-block {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.cv-block h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.cv-entry {
  display: flex;
  gap: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  padding: 6px 0;
}

.cv-entry .cv-year {
  flex: 0 0 52px;
  color: var(--muted);
}

.cv-entry .cv-detail { flex: 1; }

.cv-contact {
  text-align: center;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.cv-text {
  font-size: 14.5px;
  line-height: 1.75;
}

/* Contact page */

.contact-block {
  text-align: center;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.contact-block h2 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.contact-block p,
.contact-block a {
  font-size: 15px;
  line-height: 1.8;
  text-decoration: none;
}

.contact-block a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-block a:hover {
  border-color: var(--ink);
}
