/* ============================================
   Carlo Valte — Musician site
   Tokens: walnut wood, brass strings, mother-of-pearl
   ============================================ */

:root {
  --walnut-deep:  #1f130a;   /* page background */
  --rosewood:     #3c2414;   /* header glow */
  --string-gold:  #c9a13b;   /* brass wound-string accent */
  --ivory:        #ede2c8;   /* mother-of-pearl / primary text */
  --grain-muted:  #a98a63;   /* faded wood grain / secondary text */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;

  --max-width: 880px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--walnut-deep);
  background-image: radial-gradient(circle at 50% 0%, var(--rosewood) 0%, var(--walnut-deep) 70%);
  color: var(--ivory);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */

.site-header { padding: 28px 6%; }

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.nav { display: flex; gap: 32px; }

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--grain-muted);
  font-size: 14px;
  letter-spacing: 0.4px;
  padding-bottom: 8px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--string-gold);
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--ivory); }

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-link:hover::after { animation: string-pluck 0.4s ease-out; }

@keyframes string-pluck {
  0%   { transform: scaleX(1) scaleY(1); }
  25%  { transform: scaleX(1) scaleY(4) translateY(-1.5px); }
  50%  { transform: scaleX(1) scaleY(1) translateY(1px); }
  75%  { transform: scaleX(1) scaleY(2.2) translateY(-0.5px); }
  100% { transform: scaleX(1) scaleY(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link:hover::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Main layout ---------- */

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 6% 80px;
}

/* ---------- Rosette motif (hero) ---------- */

.rosette-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto 36px; }
.rosette { position: absolute; inset: -40px; z-index: 0; }
.rosette circle { fill: none; stroke: var(--string-gold); }
.rosette .ring-outer { stroke-width: 1; opacity: 0.25; }
.rosette .ring-mid   { stroke-width: 1; opacity: 0.35; }
.rosette .ring-inner { stroke-width: 1; opacity: 0.45; }
.rosette .tick { stroke: var(--string-gold); stroke-width: 1.5; opacity: 0.4; }

.profile-image {
  position: relative;
  z-index: 1;
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--string-gold);
}

/* Small echo of the rosette, used quietly on other pages */
.rosette-small { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 70px; height: 70px; z-index: 0; }
.rosette-small circle { fill: none; stroke: var(--string-gold); stroke-width: 1; }
.rosette-small .rs-outer { opacity: 0.25; }
.rosette-small .rs-inner { opacity: 0.4; }

/* ---------- Hero (home) ---------- */

.hero { text-align: center; max-width: var(--max-width); width: 100%; }

.hero h1 {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  color: var(--string-gold);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 15px;
  color: var(--grain-muted);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid var(--string-gold);
  color: var(--ivory);
  text-decoration: none;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover { background: var(--string-gold); color: var(--walnut-deep); }

/* ---------- Page sections (about / contact) ---------- */

.page-section { max-width: var(--max-width); width: 100%; }

.page-title-wrap { position: relative; text-align: center; margin-bottom: 44px; }

.page-section h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.about-grid { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; justify-content: center; }
.about-image-wrap { position: relative; width: 180px; height: 180px; flex-shrink: 0; }

.about-image {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--string-gold);
}

.about-text { flex: 1; min-width: 280px; }
.about-text p { margin-bottom: 18px; line-height: 1.75; color: var(--grain-muted); font-size: 15.5px; }

/* ---------- Contact ---------- */

.contact-section { text-align: center; }
.contact-intro { color: var(--grain-muted); margin-bottom: 30px; font-size: 16px; }

.contact-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--string-gold);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.contact-link:hover { color: var(--string-gold); }
.contact-meta { margin-top: 28px; font-size: 13px; color: var(--grain-muted); letter-spacing: 0.3px; }

/* ---------- Footer ---------- */

.site-footer { text-align: center; padding: 26px; font-size: 12px; color: var(--grain-muted); opacity: 0.7; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .nav-container { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 34px; }
  .about-grid { flex-direction: column; text-align: center; }
}

/* Visible keyboard focus */
a:focus-visible,
.btn:focus-visible { outline: 2px solid var(--string-gold); outline-offset: 3px; }
