@import url("../shared/brand.css");
@import url("../shared/portal.css");

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--ink); }
.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem;
  text-decoration: none; color: var(--brown);
  padding: .2em .7em; border-radius: 999px;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.nav-app { margin-left: .5rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 1.8rem; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav, .nav-app { display: none; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--cream); padding: 1rem 16px; border-bottom: 1px solid var(--line);
  }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5rem 0; }
.hero-card { background: var(--cream); border-radius: 28px; padding: 2.5rem; box-shadow: var(--shadow); }
.hero-card .kicker { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.hero-card h1 { font-size: clamp(3.5rem, 8vw, 6rem); color: var(--ink); margin: .1em 0 .2em; }
.hero-card p { font-size: 1.15rem; margin: 0 0 1.4rem; }
.hero-logo { width: min(380px, 100%); justify-self: center; border-radius: 50%; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.listen { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.listen a { font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); background: #fff; padding: .4em .9em; border-radius: 10px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero-logo { width: 240px; grid-row: 1; }
  .hero-card { padding: 1.6rem; }
}

/* Sections */
section.block { padding: 4.5rem 0; }
section.block.alt { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.6rem, 5vw, 3.6rem); margin: 0; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.page-title { padding: 3.5rem 0 1rem; }
.page-title h1 { font-size: clamp(3.2rem, 7vw, 5rem); }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Song card */
.song-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.song-card .art { height: 140px; position: relative; display: flex; align-items: flex-end; padding: 1rem; }
.song-card .art .play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); font-size: 1.2rem; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.song-card .art .bars { position: absolute; right: 1rem; bottom: 1rem; width: 45%; height: 40px; }
.song-card .body { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .3rem; flex: 1; }
.song-card h3 { font-size: 2rem; margin: 0; }
.song-card .meta { font-size: .88rem; color: var(--muted); }
.song-card .links { display: flex; gap: .8rem; margin-top: auto; padding-top: .6rem; font-size: .9rem; font-weight: 600; }

/* Artist */
.artist { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; background: #fff; border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.artist + .artist { margin-top: 1.4rem; }
.artist .portrait { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 4rem; color: var(--cream); }
.artist h2 { font-size: 3rem; margin-bottom: .1em; }
.artist .songs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.artist:target { outline: 3px solid var(--gold); }
@media (max-width: 640px) { .artist { grid-template-columns: 1fr; } .artist .portrait { width: 140px; } }

/* App promo */
.app-promo { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: center; }
.phone {
  width: 280px; height: 560px; border-radius: 40px; border: 10px solid var(--ink);
  overflow: hidden; background: var(--cream); box-shadow: 0 30px 60px rgba(0,0,0,.25); justify-self: center;
}
.phone iframe { width: 100%; height: 100%; border: 0; }
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.features li { background: #fff; border-radius: 14px; padding: .9rem 1rem; font-weight: 600; }
.features li b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--rust); }
@media (max-width: 820px) { .app-promo { grid-template-columns: 1fr; } }

/* Map */
#map { height: 560px; border-radius: 24px; box-shadow: var(--shadow); z-index: 1; }
.map-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.2rem; }
.map-list { display: grid; gap: .6rem; align-content: start; max-height: 560px; overflow: auto; }
.map-list button { text-align: left; font: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem 1rem; cursor: pointer; color: var(--brown); }
.map-list button strong { display: block; color: var(--ink); }
@media (max-width: 820px) { .map-layout { grid-template-columns: 1fr; } #map { height: 420px; } }
.leaflet-popup-content { font-family: var(--body); }
.leaflet-popup-content h4 { font-family: var(--display); font-size: 1.8rem; margin: 0; color: var(--ink); }

/* Yarns */
.yarn { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.yarn h2 { font-size: 2.4rem; margin: .4em 0 .2em; }
.yarn time { font-size: .85rem; color: var(--muted); }
.yarn:target { outline: 3px solid var(--gold); }

/* Principles / process */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .7rem; }
.steps li { counter-increment: s; background: #fff; border-radius: 14px; padding: 1rem 1rem 1rem 3.6rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: .85rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--rust); color: #fff; font-weight: 700; display: grid; place-items: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: 24px; padding: 1.8rem; box-shadow: var(--shadow); }
.form-card h2 { font-size: 2.6rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d9cfc5; padding: 3rem 0 2rem; margin-top: 3rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--cream); font-size: 2rem; }
.site-footer a { color: #f3e7d6; display: block; text-decoration: none; padding: .15em 0; }
.site-footer .ack { font-size: .9rem; max-width: 52ch; }
.site-footer .small { grid-column: 1 / -1; font-size: .8rem; opacity: .7; border-top: 1px solid #3a3433; padding-top: 1rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Mini player (persistent along the bottom when a song is playing) */
.mini {
  position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%);
  width: min(560px, calc(100% - 32px)); z-index: 60;
  display: flex; align-items: center; gap: .8rem;
  background: var(--ink); color: var(--cream); border-radius: 999px; padding: .5rem .6rem .5rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.3); transition: transform .3s;
}
.mini.show { transform: translate(-50%, 0); }
.mini .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .t b { font-weight: 700; }
.mini button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); cursor: pointer; font-size: 1rem; }
.mini a { color: var(--gold); font-weight: 700; font-size: .85rem; white-space: nowrap; }
