/* Prototype A — "Studio backdrop" (frontend-design skill)
   Sections alternate between the two backdrops of Cécile's studio: white seamless and grey. */

:root {
  --studio-white: #F4F4F2;
  --paper: #FFFFFF;
  --backdrop-grey: #4A4B4D;
  --graphite: #232426;
  --mist: #D9D9D6;
  --blush: #E8D5CC;
  --meadow: #8C9A86;
  --meadow-deep: #5E6B59;
  --on-grey: #F4F4F2;
  --on-grey-soft: #C9CAC6;

  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Monsieur La Doulaise", cursive;

  /* type scale, ratio 1.25 from 18px */
  --fs-s: 0.875rem;
  --fs-body: 1.125rem;
  --fs-lead: 1.375rem;
  --fs-h3: 1.75rem;
  --fs-h2: clamp(2rem, 3.4vw, 2.75rem);
  --fs-h1: clamp(2.6rem, 5.6vw, 4.6rem);

  --margin: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--studio-white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--meadow); outline-offset: 3px; }
h1, h2, h3 { font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { padding-inline: var(--margin); max-width: 1440px; margin-inline: auto; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--margin);
  background: var(--studio-white);
  position: sticky; top: 0; z-index: 10;
}
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.logo-script { font-family: var(--script); font-size: 2.6rem; color: var(--graphite); }
.logo-by { font-size: var(--fs-s); color: var(--backdrop-grey); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 1rem; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--meadow); }
.lang { display: flex; gap: 10px; font-size: var(--fs-s); color: var(--backdrop-grey); }
.lang a { text-decoration: none; }
.lang a[aria-current="true"] { color: var(--graphite); font-weight: 500; }
.menu-toggle { display: none; }

.btn {
  display: inline-block; text-decoration: none; font: inherit; font-size: 1rem; font-weight: 500;
  padding: 14px 26px; background: var(--graphite); color: var(--studio-white); border: 0; cursor: pointer;
  transition: background .2s var(--ease);
}
.btn:hover { background: var(--meadow-deep); }
.btn-light { background: var(--studio-white); color: var(--graphite); }
.btn-light:hover { background: var(--blush); }
.text-link { text-decoration: none; border-bottom: 1px solid var(--meadow); padding-bottom: 2px; align-self: flex-start; }
.text-link:hover { color: var(--meadow-deep); }

/* Backdrops */
.bd-white { background: var(--studio-white); }
.bd-paper { background: var(--paper); }
.bd-grey { background: var(--backdrop-grey); color: var(--on-grey); }
.bd-grey .text-link { border-color: var(--on-grey-soft); }
.bd-grey .text-link:hover { color: var(--paper); }

/* Hero: white backdrop text, grey backdrop with the photo hung on it */
.hero { display: grid; grid-template-columns: 5fr 6fr; min-height: calc(100svh - 84px); }
.hero-text {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: var(--section) var(--margin);
}
.hero-text h1 { font-size: var(--fs-h1); max-width: 14ch; }
.hero-text .lead { font-size: var(--fs-lead); font-weight: 300; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-photo {
  background: var(--backdrop-grey);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px, 6vw, 96px);
}
.hero-photo img { width: min(100%, 560px); aspect-ratio: 2 / 3; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: develop 1.6s var(--ease) both; }
  .hero-text > * { animation: rise .9s var(--ease) both; }
  .hero-text > *:nth-child(2) { animation-delay: .12s; }
  .hero-text > *:nth-child(3) { animation-delay: .24s; }
}
@keyframes develop { from { opacity: 0; filter: brightness(1.6) saturate(.2); } to { opacity: 1; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Promo band */
.promo { background: var(--blush); }
.promo .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding-block: 26px; }
.promo strong { font-weight: 500; }
.promo p { max-width: 70ch; }

/* Category chapters */
.chapter { padding-block: var(--section); }
.chapter .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.chapter-text { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.chapter-text h2 { font-size: var(--fs-h2); }
.chapter-text p { max-width: 36ch; }
.chapter-photos { grid-column: 6 / -1; display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: end; }
.chapter-photos img { width: 100%; object-fit: cover; }
.chapter-photos .tall { aspect-ratio: 2 / 3; }
.chapter-photos .wide { aspect-ratio: 3 / 2; }
.chapter.flip .chapter-text { grid-column: 9 / -1; grid-row: 1; }
.chapter.flip .chapter-photos { grid-column: 1 / span 7; grid-row: 1; grid-template-columns: 2fr 3fr; }

/* Studio facts */
.studio { padding-block: var(--section); }
.studio .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.studio h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.studio p + p { margin-top: 14px; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: grid; grid-template-columns: 14ch 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--mist); }
.hours li:last-child { border-bottom: 1px solid var(--mist); }
.hours span:first-child { font-weight: 500; }

/* About teaser */
.about { padding-block: var(--section); }
.about .wrap { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.about h2 { font-size: var(--fs-h2); margin-bottom: 22px; }
.about p { max-width: 54ch; }
.about p + p { margin-top: 14px; }
.about .text-link { display: inline-block; margin-top: 26px; }

/* Contact band */
.contact { padding-block: var(--section); }
.contact .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.contact h2 { font-size: var(--fs-h1); max-width: 12ch; margin-bottom: 28px; }
.contact address { font-style: normal; line-height: 1.8; color: var(--on-grey-soft); }
.contact address a { color: var(--on-grey); }

/* Footer */
.site-footer { padding: 40px var(--margin); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: var(--fs-s); color: var(--backdrop-grey); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }

/* Page title block (gallery, prices) */
.page-head { padding: clamp(56px, 8vw, 110px) var(--margin) clamp(40px, 5vw, 64px); max-width: 1440px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.page-head h1 { font-size: var(--fs-h1); }
.page-head p { font-size: var(--fs-lead); font-weight: 300; max-width: 40ch; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0 var(--margin) 40px; max-width: 1440px; margin-inline: auto; }
.cat-nav a { text-decoration: none; color: var(--backdrop-grey); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.cat-nav a:hover { color: var(--graphite); }
.cat-nav a[aria-current="page"] { color: var(--graphite); border-color: var(--meadow); }

/* Justified gallery: each item grows by its aspect ratio */
.gallery { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 0 var(--margin) var(--section); max-width: 1440px; margin-inline: auto; }
.gallery::after { content: ""; flex-grow: 999; }
.gallery button {
  flex: calc(var(--r) * 1) 1 calc(var(--r) * 300px);
  padding: 0; border: 0; background: var(--mist); cursor: zoom-in; display: block; overflow: hidden;
}
.gallery img { width: 100%; height: 100%; aspect-ratio: var(--r); object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.025); }

/* Lightbox on the grey backdrop */
.lightbox { position: fixed; inset: 0; z-index: 50; background: var(--backdrop-grey); color: var(--on-grey); display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 64px 1fr 56px; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.lightbox figure { grid-column: 2; grid-row: 2; margin: 0; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; transition: opacity .25s var(--ease); }
.lightbox button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; font-size: 2rem; font-weight: 300; }
.lightbox .lb-close { grid-column: 3; grid-row: 1; font-size: 1rem; }
.lightbox .lb-prev { grid-column: 1; grid-row: 2; }
.lightbox .lb-next { grid-column: 3; grid-row: 2; }
.lightbox .lb-count { grid-column: 2; grid-row: 3; text-align: center; font-size: var(--fs-s); color: var(--on-grey-soft); }
.lightbox button:hover { color: var(--paper); }

.gallery-cta { padding-block: var(--section); }
.gallery-cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.gallery-cta h2 { font-size: var(--fs-h2); max-width: 22ch; }

/* Prices */
.price-group { padding-block: clamp(56px, 7vw, 100px); }
.price-group .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 64px; }
.price-group h2 { font-size: var(--fs-h2); }
.price-group .group-intro { margin-top: 16px; max-width: 34ch; }
.prices { list-style: none; margin: 0; padding: 0; }
.prices > li { display: grid; grid-template-columns: 1fr auto; gap: 6px 32px; padding: 22px 0; border-top: 1px solid var(--mist); }
.bd-grey .prices > li { border-color: #6A6B6D; }
.prices > li:last-child { border-bottom: 1px solid var(--mist); }
.bd-grey .prices > li:last-child { border-color: #6A6B6D; }
.prices h3 { font-size: var(--fs-lead); font-weight: 400; }
.prices .amount { font-size: var(--fs-lead); font-weight: 300; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.prices .what { grid-column: 1 / -1; max-width: 60ch; color: inherit; }
.bd-grey .prices .what { color: var(--on-grey-soft); }
.prices ul { margin: 6px 0 0; padding-left: 1.1em; }
.note { margin-top: 24px; max-width: 60ch; }

.faq .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 64px; }
.faq h2 { font-size: var(--fs-h2); }
.faq details { border-top: 1px solid var(--mist); }
.faq details:last-child { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; padding: 20px 0; font-size: var(--fs-lead); font-weight: 400; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-weight: 300; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 22px; max-width: 62ch; }

/* Phone */
@media (max-width: 900px) {
  .nav, .site-header .lang, .site-header .btn { display: none; }
  .menu-toggle { display: inline-block; background: none; border: 0; font: inherit; font-size: 1rem; padding: 8px 0; cursor: pointer; }
  .site-header.menu-open { flex-wrap: wrap; }
  .site-header.menu-open .nav { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 6px; padding-top: 12px; }
  .site-header.menu-open .lang { display: flex; width: 100%; padding-top: 8px; }
  .logo-script { font-size: 2.1rem; }
  .logo-by { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-block: 48px 40px; }
  .hero-photo { padding: 28px; }
  .chapter .wrap, .chapter.flip .wrap { grid-template-columns: 1fr; }
  .chapter-text, .chapter.flip .chapter-text { grid-column: 1; grid-row: 2; }
  .chapter-photos, .chapter.flip .chapter-photos { grid-column: 1; grid-row: 1; gap: 12px; }
  .studio .wrap, .about .wrap, .contact .wrap, .page-head, .price-group .wrap, .faq .wrap { grid-template-columns: 1fr; }
  .about img { max-width: 420px; }
  .gallery button { flex-basis: calc(var(--r) * 160px); }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}
