/* Stefania Spezzati — draft one-page site */

:root {
  --bg: #0b0e11;
  --bg-elevated: #14191f;
  --bg-soft: #1a2129;
  --text: #f3f0ea;
  --text-muted: #b7b2a8;
  --accent: #d4a35c;
  --accent-soft: #e0b877;
  --accent-2: #6f8f9c;
  --line: rgba(243, 240, 234, 0.14);
  --focus: #e8c27a;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --font-bio: "Source Serif 4", "Georgia", serif;
  --font-signal: "IBM Plex Mono", "Courier New", monospace;
  --space: clamp(1rem, 2.5vw, 2rem);
  --measure: 40rem;
  --header-h: 3.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

/* Absolute page top for brand link — cancels html scroll-padding */
.home-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  scroll-margin-top: calc(0px - (var(--header-h) + 0.75rem));
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(212, 163, 92, 0.12), transparent 55%),
    radial-gradient(90% 60% at 0% 40%, rgba(111, 143, 156, 0.1), transparent 50%),
    linear-gradient(180deg, #0b0e11 0%, #10151a 45%, #0b0e11 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(11, 14, 17, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 14, 17, 0.92);
}

.nav {
  width: min(1120px, calc(100% - 2 * var(--space)));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--accent-soft);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
}

/* Hero / About */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-drift 28s var(--ease) infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(11, 14, 17, 0.35) 0%, rgba(11, 14, 17, 0.55) 42%, rgba(11, 14, 17, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 14, 17, 0.55) 0%, rgba(11, 14, 17, 0.2) 55%, rgba(11, 14, 17, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2 * var(--space)));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem);
  animation: rise-in 0.9s var(--ease) both;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-ui);
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-lede {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
}

.hero-actions {
  margin: 1.75rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: #14110c;
  border-color: var(--accent);
}

/* Bio — full-bleed newspapers + portrait plate */

.bio-block {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(3.25rem, 8vw, 5.75rem) 0;
  isolation: isolate;
  overflow: clip;
}

.bio-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bio-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.35) saturate(0.55) contrast(1.05) brightness(0.55);
  transform: scale(1.04);
}

.bio-backdrop-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 14, 17, 0.72) 0%, rgba(11, 14, 17, 0.82) 45%, rgba(11, 14, 17, 0.9) 100%),
    linear-gradient(90deg, rgba(11, 14, 17, 0.78) 0%, rgba(11, 14, 17, 0.55) 55%, rgba(11, 14, 17, 0.7) 100%);
}

.bio-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2 * var(--space)));
  margin: 0 auto;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 880px) {
  .bio-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .bio-portrait {
    justify-self: end;
  }
}

@media (max-width: 879px) {
  .bio-portrait {
    order: -1;
    max-width: 18rem;
    justify-self: center;
  }
}

.bio-label {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.bio-text {
  margin: 0;
  max-width: var(--measure);
  font-family: var(--font-ui); /* same as .hero-lede */
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--text);
  text-shadow: 0 1px 18px rgba(11, 14, 17, 0.45);
}

.bio-text + .bio-text {
  margin-top: 1.75rem;
}

.bio-portrait {
  margin: 0;
  width: min(100%, 22rem);
  border: 1.35px solid color-mix(in srgb, var(--accent) 75%, #f3f0ea);
  background: #12161b;
  box-shadow:
    0 0 0 1px rgba(11, 14, 17, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.bio-portrait img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 300 / 261;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) saturate(0.95);
}

/* Contact */

.contact {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 25, 31, 0.85), rgba(11, 14, 17, 0.95));
}

.contact-inner {
  width: min(1120px, calc(100% - 2 * var(--space)));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.75rem, 7vw, 4rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.75rem);
}

.contact-band {
  margin: 0;
}

.contact-intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.contact-intro-copy {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
  max-width: var(--measure); /* same reading measure as About .bio-text */
}

.contact-intro-copy p {
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem); /* match .bio-text */
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-muted);
}

.contact-intro-copy a {
  font-weight: 600;
}

.contact-band-label {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.channel-plates {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.channel-plate {
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--bg-elevated);
  border-left: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
}

.channel-plate--soft {
  border-left-color: color-mix(in srgb, var(--accent-2) 65%, transparent);
}

.channel-plate--muted {
  border-left-color: rgba(243, 240, 234, 0.18);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  opacity: 0.78;
}

.channel-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.channel-plate p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.channel-plate p + p {
  margin-top: 0.7rem;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  font-size: 0.95rem;
}

.channel-status {
  font-weight: 400;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

.signal-handle {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.signal-handle:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

.mail-obfuscated {
  font-weight: 600;
  color: var(--accent-soft);
}

.contact-disclaimer {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(243, 240, 234, 0.1);
}

.contact-disclaimer p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text-muted) 88%, transparent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem var(--space);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Motion */

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }
}

/* Small screens */

@media (max-width: 560px) {
  .nav-brand {
    max-width: 58vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
