/* The Marcellis Family. House palette from Huisstijl Kleuren.md, light by default. */

:root,
:root[data-theme="light"] {
  --bg: #f2eee5;
  --card: #fffdf8;
  --ink: #161a22;
  --dim: #675f50;
  --hair: #c8bea9;
  --ac: #c9a84c;
  --ac-text: #725a14;
  --gutter: clamp(20px, 5vw, 52px);
  --max: 1060px;
}

:root[data-theme="dark"] {
  --bg: #0d0f14;
  --card: #161a22;
  --ink: #ece6d8;
  --dim: #9a917e;
  --hair: #2a3040;
  --ac: #c9a84c;
  --ac-text: #e0c060;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ac-text);
}

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

/* ---- bar ---- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.brand {
  font-size: 1.45rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ac-text); }

.theme-toggle {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible { border-color: var(--ac); }

/* ---- content ---- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 72px;
}

.hero-photo {
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

/* The whole 16:9 photo is shown at every width, so the plaque stays in view. */
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
}

.hero-text {
  text-align: center;
  padding: 28px 0 8px;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.hero-line {
  margin: 0 auto;
  max-width: 36em;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.section {
  padding-top: 64px;
  scroll-margin-top: 80px;
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  text-align: center;
}

.intro,
.more {
  text-align: center;
  color: var(--dim);
  margin: -8px 0 24px;
}

.more { margin: 22px 0 0; }

/* ---- The House ---- */
.house {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "mike tash blue";
}

.person-tash { grid-area: tash; }
.person-mike { grid-area: mike; }
.person-blue { grid-area: blue; }

.person {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
}

.portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.initial {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ac);
}

.soon {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.person h3 {
  margin: 16px 0 6px;
  font-size: 1.6rem;
}

.bio {
  margin: 0 0 14px;
  color: var(--dim);
  flex: 1;
}

.link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ac);
  align-self: flex-start;
}

/* ---- Listen ---- */
.channels {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(22,26,34,.06), 0 8px 24px rgba(22,26,34,.08), 0 0 14px rgba(201,168,76,.14);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}

.channel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c9a84c, #e0c060);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}

.channel:hover,
.channel:focus-visible {
  border-color: var(--ac);
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(22,26,34,.1), 0 18px 44px rgba(22,26,34,.16), 0 0 22px rgba(201,168,76,.38);
}

.channel:hover::before,
.channel:focus-visible::before { transform: scaleX(1); }

:root[data-theme="dark"] .channel { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35), 0 0 16px rgba(201,168,76,.16); }
:root[data-theme="dark"] .channel:hover,
:root[data-theme="dark"] .channel:focus-visible { box-shadow: 0 2px 4px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.5), 0 0 24px rgba(201,168,76,.42); }

@media (prefers-reduced-motion: reduce) {
  .channel, .channel::before { transition: none; }
  .channel:hover, .channel:focus-visible { transform: none; }
}

.channel-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ac-text);
}

.channel-genre { color: var(--dim); font-size: 0.95rem; }

.channel-go {
  margin-top: 8px;
  font-weight: 500;
  color: var(--ac-text);
}

/* ---- Find Us ---- */
.find {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.find a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
}

.find a:hover,
.find a:focus-visible { border-color: var(--ac); color: var(--ac-text); }

/* ---- narrow screens ---- */
@media (max-width: 860px) {
  .house {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "tash tash"
      "mike blue";
  }
  .person-tash { max-width: 420px; justify-self: center; width: 100%; }
  .channels { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  main { padding-top: 18px; }
  .hero-photo { border-radius: 10px; }
  .hero-text { padding-top: 20px; }
  .section { padding-top: 48px; }
  .house {
    grid-template-columns: 1fr;
    grid-template-areas: "tash" "mike" "blue";
  }
  .person-tash { max-width: none; }
  .portrait { aspect-ratio: 4 / 3; }
  .brand { font-size: 1.3rem; }
  .nav-links { gap: 6px 14px; }
}

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

/* ---- Night sky: only in dark mode, same as marcellis.link ---- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: none; }
:root[data-theme="dark"] .sky { display: block; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #c9a84c; opacity: .25; animation: breathe 9s ease-in-out infinite; }
.star.big { width: 5px; height: 5px; box-shadow: 0 0 9px #c9a84c; }
.star.small { width: 2px; height: 2px; }
@keyframes breathe { 0%, 100% { opacity: .12; transform: scale(.9); } 50% { opacity: .6; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .star { animation: none; opacity: .28; } }
body > main { position: relative; z-index: 1; }

/* ---- Music, Releases and Duets on the home page: same gold glow as the channel tiles ---- */
.releases {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.releases:empty { display: none; }
.releases .empty { grid-column: 1 / -1; text-align: center; color: var(--dim); margin: 0; }

.release {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  box-shadow: 0 1px 2px rgba(22,26,34,.06), 0 8px 24px rgba(22,26,34,.08), 0 0 14px rgba(201,168,76,.14);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.release::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, #c9a84c, #e0c060);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.release:hover,
.release:focus-visible {
  border-color: var(--ac);
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(22,26,34,.1), 0 18px 44px rgba(22,26,34,.16), 0 0 22px rgba(201,168,76,.38);
}
.release:hover::before,
.release:focus-visible::before { transform: scaleX(1); }
:root[data-theme="dark"] .release { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35), 0 0 16px rgba(201,168,76,.16); }
:root[data-theme="dark"] .release:hover,
:root[data-theme="dark"] .release:focus-visible { box-shadow: 0 2px 4px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.5), 0 0 24px rgba(201,168,76,.42); }

.release img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.release.square img { aspect-ratio: 1; }
.release .rt {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ac-text);
  padding: 14px 16px 2px;
}
.release .rw { font-size: 0.85rem; color: var(--dim); padding: 0 16px; }
.release .rd { font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 6px 16px 16px; }

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

@media (prefers-reduced-motion: reduce) {
  .release, .release::before { transition: none; }
  .release:hover, .release:focus-visible { transform: none; }
}

@media (max-width: 860px) {
  .partners { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { justify-content: center; }
  .nav-links { justify-content: center; gap: 6px 14px; font-size: 0.9rem; }
}

/* ---- One subheading per artist in Music and Releases ---- */
.artist {
  margin: 34px 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  text-align: center;
}
.section h2 + .intro + .artist,
.section h2 + .artist { margin-top: 0; }
.artist[hidden] { display: none; }

/* ---- Real portraits in the House and Family cards ---- */
.portrait { overflow: hidden; position: relative; width: 100%; max-width: 260px; margin: 0 auto; }
.portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* ---- Family row: same cards as the House, centred under them ---- */
.family {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, calc((100% - 44px) / 3));
  justify-content: center;
}

@media (max-width: 860px) {
  .family { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .family { grid-template-columns: 1fr; }
}
