/* ==========================================================================
   Nicole Dorigo — Opera Mondo
   Minimal, cinematic single-page landing site.
   ========================================================================== */

:root {
  --ink: #f4efe4;
  --ink-dim: rgba(244, 239, 228, 0.92);
  --gold: #c7a559;
  --gold-bright: #f0c860;
  --overlay-top: rgba(10, 9, 8, 0.20);
  --overlay-bottom: rgba(8, 7, 6, 0.52);
  --focus-ring: #f0c860;

  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--ink);
  background: #0c0a09;
}

/* Full-screen hero background image */
.hero {
  position: fixed;
  inset: 0;
  background-image: url("assets/nicole_dorigo_milano.webp");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--overlay-top) 0%,
    rgba(9, 8, 7, 0.28) 45%,
    var(--overlay-bottom) 100%
  );
  z-index: -1;
}

/* Page stage: full viewport, content centred, footer-links pinned toward the base */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  text-align: center;
}

.content {
  max-width: 38rem;
  margin: auto 0;
  padding: 2rem 0;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.heading {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.lede {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-dim);
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.cta {
  flex: 1 1 10rem;
  max-width: 12rem;
  padding: 0.9rem 1.5rem;
  text-align: center;
  border: 2px solid rgba(240, 200, 96, 0.85);
  border-radius: 2px;
  color: var(--gold-bright);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta:hover {
  background-color: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #14110f;
}

.cta:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Contact links: discreet row, large touch targets */
.contact-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 2rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.icon-link:hover {
  color: var(--gold-bright);
  background-color: rgba(244, 239, 228, 0.08);
}

.icon-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  color: var(--gold-bright);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Small phones / narrow viewports */
@media (max-width: 360px) {
  .cta-row {
    gap: 0.75rem;
  }
  .cta {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* Landscape mobile: tighten vertical rhythm */
@media (max-height: 480px) and (orientation: landscape) {
  .stage {
    justify-content: flex-start;
    padding-top: max(1.25rem, env(safe-area-inset-top));
  }
  .content {
    margin: 0;
    padding: 1rem 0;
  }
  .lede {
    margin-top: 0.75rem;
  }
  .cta-row {
    margin-top: 1.25rem;
  }
  .contact-links {
    padding-top: 1rem;
  }
}

/* Desktop: shift the text block and CTAs left, keep the icon row centred */
@media (min-width: 900px) {
  .stage {
    align-items: flex-start;
    padding-left: 8vw;
    padding-right: 8vw;
  }

  .content {
    text-align: left;
  }

  .lede {
    margin-left: 0;
    margin-right: auto;
  }

  .cta-row {
    justify-content: flex-start;
  }

  .contact-links {
    align-self: center;
    width: 100%;
  }
}
