/* ── TALESOFBEAUTY.CSS ── Stili per talesofbeauty/index.html ──

   Richiede: shared.css → talesofbeauty.css (in quest'ordine).
   nav, close-section, .reveal, reset, scanlines → shared.css.
*/

/* ── TOKEN FAMIGLIA B ── */
:root {
  --text:        #E8E2D9;
  --muted:       #6B6560;
  --mono-dim:    #3A3530;
  --display:     'Big Shoulders Display', sans-serif;
  --mono:        'IBM Plex Mono', monospace;

  /* Larghezza uniforme del frame fotografico — abbassare se
     l'upscaling disturba sui sorgenti più piccoli (jail1, pic5...) */
  --frame-width: 750px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── TITLE ── */
.title-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  position: relative;
}

.title-section::before {
  content: '';
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 40vh;
  background: linear-gradient(to bottom, transparent, var(--rust), transparent);
}

.title-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  margin-left: 4.5rem;
  margin-bottom: 1.5rem;
}

.title-main {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.5rem, 11vw, 9rem);
  letter-spacing: -0.02em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--text);
  margin-left: 4.5rem;
}

.title-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 4.5rem;
  margin-top: 2rem;
}

.title-meta span { color: var(--mono-dim); margin: 0 0.5rem; }

.scroll-cue {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mono-dim);
  margin-left: 4.5rem;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.scroll-cue span {
  color: var(--rust);
  animation: bob 2s ease-in-out infinite;
}

/* ── GALLERY ── */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.frame {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  border-top: 1px solid var(--mono-dim);
  position: relative;
}

.frame img {
  display: block;
  width: var(--frame-width);
  max-width: 88vw;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}

.frame figcaption {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
}

.frame figcaption::before {
  content: '— ';
  color: var(--rust);
}

/* ── ANIMATIONS ── */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .title-section { padding: 7rem 1.5rem 3rem; }
  .title-section::before { left: 1.5rem; }
  .title-eyebrow, .title-main, .title-meta, .scroll-cue { margin-left: 2.5rem; }

  .frame { padding: 3rem 1.5rem; min-height: 90vh; }
  .frame img { width: 100%; max-width: 90vw; }

  /* close-section: grid già collassato da shared.css; override solo padding */
  .close-section { padding: 4rem 1.5rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}
