/* Francesco Saggese - coming soon (revision v02). Self-hosted font and images; no third-party requests. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0e0d0c;
  --ivory: #e8e0d3;
  --secondary: #d6cdbe;
  --status: #cdb48f;
  --m: clamp(1.25rem, 3vw, 3rem);   /* page margin */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--ivory); }
body {
  font-family: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bg); }
.stage__art, .stage__art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__art img { object-fit: cover; object-position: calc(var(--px) * 100%) 50%; }

/* Landscape: artwork is 16:9, cover-cropped. Text sits in the artwork's own negative space, positioned from
   the artwork geometry (so it stays clear of the piano at any aspect ratio). */
.layout-d2w { --px: 1; --tx0: 0.07; --tx1: 0.50; --ty: 0.50; }   /* alternative: larger photograph, ~40% of width visible */
.stage { --imgw: max(100vw, calc(100svh * 1.7778)); --imgh: max(100svh, calc(100vw / 1.7778)); }
.stage__text {
  position: absolute;
  --l: max(var(--m), calc((100vw - var(--imgw)) * var(--px) + var(--tx0) * var(--imgw)));
  --r: min(calc(100vw - var(--m)), calc((100vw - var(--imgw)) * var(--px) + var(--tx1) * var(--imgw)));
  left: var(--l);
  width: max(14rem, calc(var(--r) - var(--l)));
  top: calc((100svh - var(--imgh)) * 0.5 + var(--ty) * var(--imgh));
  transform: translateY(-50%);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  container-type: inline-size;
}
.name {
  margin: 0; font-weight: 300; line-height: 1.04; letter-spacing: 0.012em; color: var(--ivory);
  font-size: clamp(2rem, 6vw, 6rem);                 /* fallback without container units */
  font-size: clamp(2rem, 11cqw, 7.2rem);
  text-wrap: balance;
}
.role {
  margin: 1.1em 0 0; font-weight: 500; text-transform: uppercase; color: var(--secondary);
  font-size: clamp(0.8rem, 1.5vw, 1.4rem);
  font-size: clamp(0.8rem, 3.6cqw, 1.5rem);
  letter-spacing: 0.34em; padding-left: 0.34em;     /* optical centring of tracked caps */
}
.status {
  margin: 3.2em 0 0; font-weight: 600; text-transform: uppercase; color: var(--status);
  font-size: clamp(0.72rem, 1.1vw, 1.1rem);
  font-size: clamp(0.72rem, 2.5cqw, 1.1rem);
  letter-spacing: 0.42em; padding-left: 0.42em;
}

/* Portrait and touch-first phone/tablet layouts use the same mobile artwork. */
@media (orientation: portrait), (pointer: coarse) and (max-width: 1366px) {
  .stage { --imgw: max(100vw, calc(100svh * 0.5625)); --imgh: max(100svh, calc(100vw * 1.7778)); }
  .stage__art img { object-position: 50% 72%; }
  .stage__text {
    left: 50%; width: min(92vw, 34rem); top: auto; transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(2.25rem, 6.5svh, 5rem));
  }
  .name { font-size: clamp(2rem, 10.6vw, 4.6rem); }
  .role { font-size: clamp(0.82rem, 3.3vw, 1.15rem); margin-top: 0.95em; }
  .status { font-size: clamp(0.75rem, 2.8vw, 1rem); margin-top: clamp(1.6rem, 5svh, 3rem); }
}
@media (orientation: landscape) and (pointer: coarse) and (max-width: 1366px) {
  .stage__art img { object-position: 50% 83%; }
  .name { font-size: clamp(2rem, 7vw, 4.6rem); }
}
@media (orientation: landscape) and (max-height: 480px) {
  .status { margin-top: 1.6em; }
}

@media (prefers-contrast: more) { .role { color: var(--ivory); } .status { color: var(--secondary); } }
