/* ═══════════════════════════════════════════════════════════════
   overlays.css — info + contact fullscreen overlays
   ═══════════════════════════════════════════════════════════════ */

/* ── Overlay shell ─────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000000;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay[aria-hidden="true"] {
  display: none;
}

/* ── Overlay close button ──────────────────────────────────────── */
.overlay-close {
  position: fixed;
  top: 28px;
  right: 32px;
  font-family: var(--font-body);
  font-size: 24px;
  color: rgba(251, 243, 250, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 210;
  line-height: 1;
}

.overlay-close:hover {
  color: var(--color-text);
}

/* ── Info overlay ──────────────────────────────────────────────── */
#overlay-info .overlay-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 48px 120px;
  text-align: center;
}

.info-big {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.info-big a, .info-big button {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
}

.info-small {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.info-small a, .info-small button {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
}

.info-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.info-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(251, 243, 250, 0.6);
  margin-bottom: 3rem;
}

.info-section-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 243, 250, 0.35);
  margin-bottom: 1rem;
  display: block;
}

.info-bio {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(251, 243, 250, 0.75);
  margin-bottom: 3.5rem;
}

.info-bio p + p {
  margin-top: 1.25rem;
}

/* RSS feed */
.info-rss {
  margin-bottom: 3rem;
}

.info-rss-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(251, 243, 250, 0.07);
}

.info-rss-item a {
  font-size: 0.9rem;
  color: rgba(251, 243, 250, 0.7);
  transition: color 0.2s;
}

.info-rss-item a:hover {
  color: var(--color-text);
}

.info-rss-date {
  font-size: 0.78rem;
  color: rgba(251, 243, 250, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Newsletter */
.info-newsletter {
  margin-top: 2rem;
}

.info-newsletter a {
  font-size: 0.9rem;
  color: rgba(251, 243, 250, 0.5);
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-newsletter a:hover {
  color: var(--color-text);
}

/* ── Contact overlay ───────────────────────────────────────────── */
#overlay-contact {
  overflow: hidden; /* no scrolling — font is fitted to viewport */
}

#overlay-contact .overlay-inner {
  padding: 80px 48px;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.contact-flow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-text);
  width: 100%;
  overflow-wrap: normal;   /* no mid-word breaks */
  word-break: normal;
}

.contact-flow button,
.contact-flow a {
  display: inline;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: var(--color-text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.contact-flow button:hover,
.contact-flow a:hover { opacity: 0.55; }

.contact-email-feedback {
  font-size: 0.28em;
  opacity: 0;
  transition: opacity 0.3s;
  color: rgba(251,243,250,0.5);
  margin-left: 0.4em;
  vertical-align: middle;
}

/* ── Mobile overrides ──────────────────────────────────────────── */
@media (max-width: 768px) {
  #overlay-info .overlay-inner,
  #overlay-contact .overlay-inner {
    padding: 80px 24px 80px;
  }

  .info-big {
    font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
  }

  .info-small {
    font-size: clamp(0.75rem, 3vw, 0.9rem) !important;
  }

  .contact-flow a,
  .contact-flow button {
    display: block;
  }
}
