/*
 * kanjoninlapset.com/tytar — kuuntelulinkkisivu Tytär-singlelle.
 * Sama typografia, tumma pohja ja punainen korostusväri kuin etusivulla.
 */
:root {
  --ink: #0e0c0a;
  --paper: #efe8da;
  --bone: #e9e1d1;
  --body: #c9c0b2;
  --ash: #9e958a;
  --accent: #e63e26;        /* sama punainen kuin etusivulla */
  --accent-hover: #f2836b;
  --line: rgba(239, 232, 218, 0.18);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); text-decoration: none; transition: color .15s ease, background .15s ease; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

.cond { font-family: 'Archivo', 'Arial Narrow', sans-serif; font-stretch: 62%; font-weight: 900; text-transform: uppercase; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; text-transform: none; }
.caps { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.accent { color: var(--accent); }

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 22px;
}
.brand { font-size: 16px; letter-spacing: .02em; }
.brand .serif { font-size: 21px; color: var(--accent); }
.lang { display: flex; align-items: center; gap: 2px; color: var(--ash); }
.lang button {
  font: inherit; letter-spacing: inherit; color: var(--ash); background: none; border: 0;
  min-width: 34px; min-height: 40px; padding: 0 4px; cursor: pointer;
}
.lang button:hover { color: var(--paper); }
.lang button[aria-pressed="true"] { color: var(--paper); }

/* Puhelimella ei yläriviä: nimi on heti soittimen yläpuolella ja kieli tulee selaimesta. */
.top { display: none; }

.stage {
  flex: 1;
  width: 100%; max-width: 460px; margin: 0 auto;
  padding: 24px 20px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.title-block { display: flex; flex-direction: column; gap: 6px; }
.title-block p { margin: 0; font-size: 10px; display: none; } /* puhelimella ei 'Uusi single' -riviä */
.title { margin: 0; line-height: .9; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.title .cond { font-size: clamp(32px, 9.5vw, 38px); color: var(--paper); }
.title .serif { font-size: clamp(38px, 11.5vw, 46px); }

/* Soitin: oma kortti, kunnes kävijä napauttaa; sitten Spotifyn upotus samaan kokoon. */
.player { height: 152px; }
.player-card {
  width: 100%; height: 100%; box-sizing: border-box; margin: 0; padding: 12px; border: 0; border-radius: 12px;
  background: #3a1d17; color: #fff; font: inherit; text-align: left; cursor: pointer;
  display: flex; gap: 14px; align-items: stretch;
}
.player-card:hover .player-play { transform: scale(1.06); }
.player-cover { width: 128px; height: 128px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.player-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.player-brand { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .75); text-align: right; }
.player-title { margin-top: 2px; font-size: 18px; font-weight: 700; }
.player-artist { font-size: 13px; color: rgba(255, 255, 255, .75); }
.player-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-hint { font-size: 11px; color: rgba(255, 255, 255, .7); }
.player-play {
  width: 44px; height: 44px; border-radius: 22px; background: #fff; color: #14110e; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.player iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.player.loading .player-card { opacity: .7; cursor: progress; }
.with-icon { display: flex; align-items: center; gap: 14px; }
.spotify-icon { display: block; width: 26px; height: 25px; flex-shrink: 0; }

.services { display: flex; flex-direction: column; }
.service {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 50px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.service .go { font-size: 11px; color: var(--ash); }
.service .go::after { content: ' ↗'; }
.service:hover .go { color: var(--accent-hover); }
.service.primary {
  min-height: 54px; padding: 0 18px; border: 0;
  background: var(--accent); color: var(--ink); font-weight: 700; letter-spacing: .14em;
}
.service.primary .go { color: var(--ink); font-size: 12px; }
.service.primary:hover { background: var(--accent-hover); color: var(--ink); }
.service.primary:hover .go { color: var(--ink); }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
  padding: 16px 22px 22px; border-top: 1px solid rgba(239, 232, 218, .12);
  font-size: 12px; color: var(--ash);
}
.foot a { color: var(--body); }
.foot .label { color: var(--ash); }

@media (min-width: 900px) {
  .top { display: flex; padding: 22px 48px; border-bottom: 1px solid var(--line); }
  .brand { font-size: 20px; }
  .brand .serif { font-size: 26px; }
  .stage {
    max-width: 1280px; padding: 56px 64px; box-sizing: border-box;
    display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: 72px; row-gap: 28px;
    grid-template-areas: "player title" "player services"; align-content: center;
  }
  .title-block { grid-area: title; align-self: end; }
  .title-block p { font-size: 13px; display: block; }
  .player { grid-area: player; align-self: center; height: 352px; }
  .player-card { padding: 20px; gap: 22px; border-radius: 14px; }
  .player-cover { width: 312px; height: 312px; border-radius: 8px; }
  .player-title { margin-top: 10px; font-size: 24px; }
  .player-artist { font-size: 14px; }
  .player-play { width: 56px; height: 56px; border-radius: 28px; }
  .services { grid-area: services; align-self: start; }
  .title { flex-direction: column; align-items: flex-start; line-height: .85; }
  .title .cond { font-size: clamp(64px, 6.5vw, 92px); }
  .title .serif { font-size: clamp(68px, 7vw, 96px); padding-left: .4em; }
  .services { max-width: 460px; }
  .service { min-height: 52px; }
  .foot { padding: 18px 48px; }
}
@media (prefers-reduced-motion: reduce) { a { transition: none; } }

/* Lisäpalvelut: piilossa, aukeavat yhdestä painikkeesta. */
.more summary {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 50px; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--body);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: '⌄'; font-size: 16px; letter-spacing: 0; }
.more[open] summary::after { content: '⌃'; }
.more summary:hover { color: var(--accent-hover); }
.more:not([open]) .when-open, .more[open] .when-closed { display: none; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.service.small { min-height: 46px; font-size: 11px; letter-spacing: .12em; border-bottom-color: rgba(239, 232, 218, .12); }
.service.small .go { font-size: 0; }
.service.small .go::after { font-size: 11px; content: '↗'; }
.more-head { margin: 22px 0 10px; color: var(--ash); font-size: 11px; }
.other { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.other-item {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid rgba(239, 232, 218, .3);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.other-item .go { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ash); }
.other-item .go::after { content: ' ↗'; }
.other-item:hover { border-color: var(--accent-hover); }
.more[open] summary { color: var(--ash); }

/* Puhelimella 'Lisää palveluja' himmeämpänä, jotta se ei kilpaile kolmen pääpainikkeen kanssa (kontrasti 5,15:1). */
@media (max-width: 899px) {
  .more summary { color: #8a8278; font-size: 11px; font-weight: 500; border-bottom-color: rgba(239, 232, 218, .1); }
}
