/* Shared styles — Victorine Aydin portfolio */

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

html, body {
  background: #ffffff;
  color: #111111;
  font-family: 'Cormorant Garamond', 'Minion Pro', Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Page-transition fade ---------------------------------------- */
@keyframes va-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: va-fade-in 0.45s ease both;
}
body.va-leaving {
  opacity: 0;
  transition: opacity 0.32s ease;
}

a { color: inherit; }

/* ============================================================
   Corner dashes (used on every page)
   ============================================================ */
.corner {
  position: fixed;
  top: 1.75rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: #111;
  line-height: 1;
  user-select: none;
  z-index: 10;
}
.corner.left  { left: 1.75rem; }
.corner.right { right: 1.75rem; }

/* ============================================================
   Home page
   ============================================================ */
.home {
  min-height: 100vh;
  padding: 32vh 4vw 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home .site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: #111;
  text-decoration: none;
}
.home .site-title:hover { opacity: 0.7; }

.home .sections {
  margin-top: 3rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.home .sections a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
}
.home .sections a:hover { opacity: 0.55; }

footer.home-footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
}

@media (max-width: 600px) {
  .home .sections { gap: 1.5rem; margin-top: 2rem; }
}

/* ============================================================
   Section gallery (e.g. /paris.html) — Pinterest cards
   ============================================================ */
.section-page {
  min-height: 100vh;
  padding: 5rem 4vw 7rem;
}

.section-page header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-page .site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: 0.01em;
  color: #111;
  text-decoration: none;
}
.section-page .site-title:hover { opacity: 0.7; }

.section-page .section-label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #555;
}

.gallery {
  column-count: 3;
  column-gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  display: block;
  margin: 0 0 1.5rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  color: #111;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
a.card:hover { opacity: 0.92; transform: translateY(-2px); }

.card img {
  width: 100%;
  display: block;
  background: #f3f3f3;
}

.card-info {
  padding: 0.7rem 0.25rem 0.2rem;
}
.card-info h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.card-info p {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  line-height: 1.4;
}

/* ============================================================
   Next-section link (bottom-right, fixed)
   ============================================================ */
.next-link {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  padding: 0.5rem 0.75rem;
}
.next-link:hover { opacity: 0.55; }
.next-link .arrow { margin-left: 0.5rem; letter-spacing: 0; }

/* ============================================================
   Building detail page
   ============================================================ */
.detail-page {
  min-height: 100vh;
  padding: 5rem 4vw 7rem;
  max-width: 900px;
  margin: 0 auto;
}

.back-link {
  position: fixed;
  top: 1.75rem;
  left: 4rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  z-index: 10;
}
.back-link:hover { opacity: 0.55; }
.back-link .arrow { margin-right: 0.4rem; letter-spacing: 0; }

.detail-page .building-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: 0.005em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 0.75rem;
}

.detail-page .meta {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 3rem;
}
.detail-page .meta span { margin: 0 0.5rem; }
.detail-page .meta .dot { color: #ccc; }

.detail-page .hero {
  width: 100%;
  display: block;
  margin: 0 auto 3rem;
  background: #f3f3f3;
}

.detail-page article {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #222;
}
.detail-page article p { margin-bottom: 1.4rem; }
.detail-page article p:last-child { margin-bottom: 0; }

.detail-page article .lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #111;
}

@media (max-width: 900px) {
  .gallery { column-count: 2; }
  .back-link { left: 1.25rem; }
}
@media (max-width: 540px) {
  .gallery { column-count: 1; }
  .section-page { padding: 4rem 1.25rem 6rem; }
  .detail-page { padding: 4rem 1.25rem 6rem; }
  .next-link { font-size: 0.8rem; bottom: 1rem; right: 1rem; }
}
