/* ===== Värit (logon poltettu oranssi) ===== */
:root {
  --orange-light: #d4842c;   /* logon taustan keskikohta */
  --orange:       #c26f2c;
  --orange-dark:  #a9572a;   /* logon taustan reunat */
  --ink:          #1d140e;   /* logon musta, hieman lämmin */
  --ink-soft:     #4a3324;
  --cream:        #fbf1e3;
  --card-bg:      rgba(251, 241, 227, 0.68);
  --card-border:  rgba(255, 248, 238, 0.45);
  --tile-bg:      rgba(255, 250, 243, 0.55);
  --tile-border:  rgba(29, 20, 14, 0.1);
  --radius:       18px;
  --maxw:         760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--orange);
  min-height: 100vh;
}

/* Taustakuva: Uuni-laulukoppi. Toteutettu kiinteänä elementtinä, koska
   background-attachment: fixed ei toimi iOS:llä. Kaksi ensimmäistä
   liukuväriä ovat logon kohdalle osuva valokeila, joka pysyy seinällä
   paikallaan kuten kuvan oma valo. Muut tasaavat sävyjä ja tummentavat
   reunoja hieman. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  --spot-y: 300px;   /* valokeilan keskikohta: logon kohta sivun ylälaidassa */
  background:
    radial-gradient(ellipse min(500px, 62vw) 360px at 50% var(--spot-y), rgba(255, 222, 160, 0.55) 0%, rgba(255, 200, 120, 0.28) 45%, rgba(255, 190, 110, 0) 100%),
    radial-gradient(ellipse min(860px, 100vw) 520px at 50% var(--spot-y), rgba(255, 190, 110, 0.18) 0%, rgba(255, 190, 110, 0) 100%),
    radial-gradient(ellipse at 50% 18%, rgba(212, 132, 44, 0.35) 0%, rgba(169, 87, 42, 0) 55%),
    linear-gradient(180deg, rgba(120, 60, 20, 0) 40%, rgba(120, 55, 20, 0.35) 100%),
    url("assets/uuni.jpg") center top / cover no-repeat,
    var(--orange);
}

/* Hienovarainen rakeisuus, joka toistaa logon kulunutta tekstuuria */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0 0.05 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

/* ===== Hero ===== */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 20px 44px;
  text-align: center;
}

/* PNG:ssä on reilusti tyhjää reunaa – rajataan kuva kehykseen.
   Logon sisältö on noin 16–83,5 % leveydestä ja 13,5–81 % korkeudesta. */
.hero-logo-wrap {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 1350 / 811;
  overflow: hidden;
}
.hero-logo {
  display: block;
  width: 148.1%;
  max-width: none;
  height: auto;
  margin: -12% 0 0 -23.7%;
}

.tagline {
  margin: 22px 0 22px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

/* ===== Painikkeet ===== */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.actions-left { justify-content: flex-start; }

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font: 600 15px/1.2 "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
}
.btn-primary:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.card .btn-ghost:hover { color: var(--cream); }

/* ===== Kortit ===== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 22px;
}

/* Huurrelasi: taustakuva kuultaa läpi sumeana */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 10px 30px rgba(80, 35, 10, 0.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
/* Selaimille ilman sumennustukea: peittävämpi täyttö luettavuuden vuoksi */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(251, 241, 227, 0.9); }
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.card-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--orange);
}

.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

.lead {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
}

/* ===== Referenssit ===== */
.tracks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "play info role"
    "play progress progress";
  align-items: center;
  gap: 6px 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--tile-border);
  background: var(--tile-bg);
  transition: border-color .15s ease;
}
.track.playing { border-color: var(--orange); }

.play {
  grid-area: play;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.play:hover { background: var(--orange-dark); transform: scale(1.05); }
.play svg { width: 20px; height: 20px; fill: var(--cream); }
.play .icon-pause,
.track.playing .icon-play { display: none; }
.track.playing .icon-pause { display: inline; }

.track-info { grid-area: info; min-width: 0; }
.track-info strong { display: block; font-size: 16px; }
.track-info span { font-size: 14px; color: var(--ink-soft); }
.track.missing .track-info span { color: #9a3412; }

.role {
  grid-area: role;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  text-align: right;
}

.progress {
  grid-area: progress;
  height: 4px;
  border-radius: 2px;
  background: rgba(29, 20, 14, 0.12);
  overflow: hidden;
  cursor: pointer;
}
.progress-bar {
  width: 0;
  height: 100%;
  background: var(--orange);
}

.coming-soon {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px dashed var(--orange);
  background: rgba(194, 111, 44, 0.1);
}
.coming-soon svg {
  flex: none;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.coming-soon strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 18px;
}
.coming-soon p { font-size: 15px; color: var(--ink-soft); }

/* ===== Tekijä ===== */
.profile {
  display: flex;
  align-items: center;
  gap: 24px;
}
.avatar {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
}
.profile .lead { margin-bottom: 8px; }

/* ===== Kuvat ===== */
.photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hero {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(80, 35, 10, 0.18);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

/* Kuvapaikka ennen oikeaa kuvaa */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
  color: var(--ink-soft);
  border: 2px dashed rgba(29, 20, 14, 0.28);
  background:
    repeating-linear-gradient(-45deg, rgba(29, 20, 14, 0.045) 0 12px, transparent 12px 24px),
    var(--tile-bg);
}
.photo-hero.placeholder {
  background:
    repeating-linear-gradient(-45deg, rgba(29, 20, 14, 0.045) 0 14px, transparent 14px 28px),
    var(--card-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
.placeholder svg {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.photo-hero.placeholder svg { width: 52px; height: 52px; }
.ph-title {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.photo-hero .ph-title { font-size: 22px; }
.ph-hint { max-width: 32ch; font-size: 13px; line-height: 1.45; }

/* ===== Tiesitkö? ===== */
.funfact {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px dashed var(--orange);
  background: rgba(194, 111, 44, 0.1);
}
.funfact-label {
  display: block;
  margin-bottom: 4px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.funfact p { font-size: 15px; }

/* ===== Studio ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.feature {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--tile-border);
  background: var(--tile-bg);
}
.feature h3 {
  margin: 0 0 6px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .04em;
}
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ===== Laitteisto ===== */
.brands {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brands li {
  padding: 6px 14px;
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  background: var(--tile-bg);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ===== Some-linkit ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.link-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--tile-border);
  background: var(--tile-bg);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.link-tile:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}
.link-tile svg,
.email svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.link-tile svg .fill { fill: var(--orange-dark); }
.link-tile strong { display: block; font-size: 15px; }
.link-tile small {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===== Yhteys ===== */
.email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
}
.card .actions { margin-top: 18px; }

/* ===== Alatunniste ===== */
.footer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 26px 20px 40px;
  border-top: 1px solid rgba(29, 20, 14, 0.25);
  text-align: center;
  font-size: 14px;
}
.footer-name {
  margin: 0 0 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 10px;
}
.footer nav a { text-decoration: none; font-weight: 500; }
.footer nav a:hover { text-decoration: underline; }
.copy { margin: 0; color: var(--ink); opacity: .75; font-size: 13px; }

/* ===== Mobiili ===== */
@media (max-width: 640px) {
  .hero { padding-top: 32px; padding-bottom: 28px; }
  body::before { --spot-y: 150px; }
  .card { padding: 22px 20px; }
  .feature-grid,
  .link-grid { grid-template-columns: 1fr; }
  .track {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "play info"
      "play role"
      "progress progress";
  }
  .role { text-align: left; }
  .gallery { gap: 8px; }
  .gallery .placeholder { padding: 10px; }
  .gallery .placeholder svg { width: 26px; height: 26px; }
  .gallery .ph-title { font-size: 14px; }
  .gallery .ph-hint { display: none; }
  .profile { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-tile, .track, .play { transition: none; }
}
