/* ============================================================
   GIULIA MICULAN — Personal Site
   Minimal, editorial design
   ============================================================ */

:root {
  --bg:     #F6F4F1;
  --fg:     #1A1916;
  --muted:  #847F79;
  --border: #DDD9D3;
  --accent: #B8976A;
}

html[data-theme="dark"] {
  --bg:     #1C1A17;
  --fg:     #F0EDE8;
  --muted:  #9E9890;
  --border: #2E2B27;
  --accent: #B8976A;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  transition: color 0.2s ease;
  font-family: inherit;
}

.theme-toggle:hover {
  color: var(--fg);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ─────────────────────────────────────────── */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--fg);
}

/* ── Layout ──────────────────────────────────────────────── */

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a.lang-switch {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--fg);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  border-bottom: 1px solid var(--border);
}

.hero .wrap {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  max-width: 760px;
  color: var(--fg);
}

.hero-headline em {
  font-style: italic;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Section label ───────────────────────────────────────── */

.section-label {
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* ── Bio ─────────────────────────────────────────────────── */

.bio {
  border-bottom: 1px solid var(--border);
}

.bio .wrap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--border);
  overflow: hidden;
  border-radius: 50%;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.bio-text {
  font-size: 1.2rem;
  line-height: 1.85;
}

.bio-text p:first-child {
  font-size: 1.5rem;
}

.bio-text p + p {
  margin-top: 1.1em;
}

/* ── Collapsible (details/summary) ───────────────────────── */

.collapsible-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.collapsible-section .wrap {
  padding-top: 0;
  padding-bottom: 0;
}

details.collapsible {
  border: none;
}

details.collapsible + details.collapsible {
  border-top: 1px solid var(--border);
}

summary.collapsible-trigger {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  user-select: none;
}

summary.collapsible-trigger::-webkit-details-marker {
  display: none;
}

summary.collapsible-trigger:hover {
  color: var(--fg);
}

.collapsible-icon {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--border);
  transition: color 0.2s ease, transform 0.25s ease;
  line-height: 1;
}

details[open] .collapsible-icon {
  transform: rotate(45deg);
  color: var(--muted);
}

.collapsible-body {
  padding-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--muted);
  font-style: italic;
}

/* ── Collaborations ──────────────────────────────────────── */

.collaborations {
  border-bottom: 1px solid var(--border);
}

.collaborations .wrap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.collab-statement {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  max-width: 680px;
  color: var(--fg);
  margin-bottom: 0;
}

.cta-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-link:hover {
  color: var(--muted);
  border-color: var(--muted);
}

/* ── Services ────────────────────────────────────────────── */

.services .wrap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  margin-top: 0;
}

.service-item {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}

.service-item:last-child {
  border-right: none;
}

.service-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-name {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--fg);
}

/* ── Page hero (inner pages) ─────────────────────────────── */

.page-hero {
  border-bottom: 1px solid var(--border);
}

.page-hero .wrap {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--fg);
}

/* ── Work / Experience ───────────────────────────────────── */

.experience {
  border-bottom: 1px solid var(--border);
}

.experience .wrap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-aside {
  padding-top: 0.2rem;
}

.exp-org {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.exp-date {
  display: block;
  font-size: 1.2rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.exp-role {
  display: block;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.5rem;
}

.exp-body {
  font-size: 1.2rem;
  line-height: 1.8;
}

.exp-body p {
  margin-bottom: 1em;
}

.exp-body p:last-child {
  margin-bottom: 0;
}

.exp-task {
  margin-bottom: 1.4em;
}

.exp-task:last-child {
  margin-bottom: 0;
}

.exp-task-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.4em;
  display: block;
}

.exp-list-items {
  list-style: none;
  margin-top: 0.5em;
}

.exp-list-items li {
  padding-left: 1em;
  position: relative;
  margin-bottom: 0.3em;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--fg);
}

.exp-list-items li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ── Publications ────────────────────────────────────────── */

.publications .wrap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.pub-link:hover {
  border-color: var(--fg);
}

/* ── Contact ─────────────────────────────────────────────── */

.contact .wrap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  margin-top: 0;
}

.contact-group {
  margin-bottom: 2.5rem;
}

.contact-group:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-value {
  font-size: 1.2rem;
  color: var(--fg);
}

.contact-value a {
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.contact-value a:hover {
  border-color: var(--fg);
}

.contact-areas {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--fg);
}

.contact-areas p + p {
  margin-top: 0.6em;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-footer a {
  font-size: 1.2rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ── Portfolio credits (artists / collections) ───────────── */

.portfolio-credits {
  border-bottom: 1px solid var(--border);
}

.portfolio-credits .wrap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.portfolio-credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.portfolio-list {
  list-style: none;
  margin: 0;
}

.portfolio-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--fg);
}

.portfolio-list li:first-child {
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .portfolio-credits-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── Photo Portfolio ─────────────────────────────────────── */

.photo-portfolio .wrap {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.photo-grid {
  columns: 2;
  column-gap: 1.5rem;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  cursor: zoom-in;
}

.photo-item img {
  width: 100%;
  display: block;
  transition: opacity 0.2s ease;
}

.photo-item:hover img {
  opacity: 0.85;
}

.photo-item--video {
  cursor: pointer;
}

.video-thumb {
  position: relative;
}

.video-thumb video {
  width: 100%;
  display: block;
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.photo-item--video:hover .video-play-btn {
  background: rgba(0, 0, 0, 0.3);
}

.video-play-btn span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  padding-left: 3px;
  transition: background 0.2s ease;
}

.photo-item--video:hover .video-play-btn span {
  background: rgba(0, 0, 0, 0.5);
}

.photo-item figcaption {
  padding: 0.6rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Lightbox ────────────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.lightbox-figure {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img,
.lightbox-figure video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-figure figcaption {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 800px) {
  .photo-grid {
    columns: 1;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bio-photo {
    max-width: 200px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item:nth-child(2n) {
    border-right: none;
  }

  .service-item {
    border-bottom: 1px solid var(--border);
  }

  .service-item:last-child {
    border-bottom: none;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 520px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero .wrap {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    border-right: none;
  }
}
