/* Danny Couture — portfolio
   Palette and type match dannycouture.live so the two sites read as one brand. */

:root {
  --bg: oklch(15.5% .02 285);
  --card: oklch(20% .02 285);
  --elevated: oklch(23% .028 285);
  --fg: oklch(95% .008 90);
  --muted: oklch(67% .015 295);
  --primary: oklch(65% .18 285);
  --accent: oklch(80% .16 70);
  --line: oklch(95% .008 90 / .14);
  --header: oklch(15.5% .02 285 / .84);

  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--accent); color: var(--bg);
  padding: .6rem 1rem; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: .75rem; }

.eyebrow, .role, .num, .stats dt {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Condensed display face: the same Archivo as the body, squeezed and heavy. */
.name, h2, .stats dd {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .9;
}

h2 { font-size: clamp(2.75rem, 7vw, 5rem); text-wrap: balance; }

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
.wordmark {
  font-stretch: 62%; font-weight: 800; font-size: 1.5rem;
  text-transform: uppercase; text-decoration: none; letter-spacing: .01em;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(.25rem, 2vw, 1rem); }
.nav a {
  display: block; padding: .5rem .75rem;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  color: var(--muted); border-radius: 6px; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--fg); background: var(--card); }
.nav a[aria-current="page"] { color: var(--fg); }

@media (max-width: 30rem) {
  .header-inner { gap: .5rem; }
  .wordmark { font-size: 1.125rem; }
  .nav { gap: 0; margin-right: -.375rem; }
  .nav a { padding: .625rem .375rem; font-size: .8125rem; }
}
@media (max-width: 21.5rem) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 0; padding-block: .5rem .25rem; }
  .nav { margin-right: 0; }
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  display: grid; gap: 2.5rem;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
  align-items: end;
}
/* The name is sized from the width of its own column, so it can never run
   into the photo beside it. "COUTURE" is about 3.4em wide in this face. */
.hero-copy { container-type: inline-size; min-width: 0; }
.name {
  white-space: nowrap;
  font-size: clamp(4.5rem, 24vw, 11rem);
  font-size: min(28cqi, 11rem);
  line-height: .8;
  margin-block: 1rem 1.75rem;
  margin-left: -.03em;
}
.name span { display: block; }
.name span:last-child { color: var(--primary); }

.lede {
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 6px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .15s, background-color .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--bg); white-space: nowrap; }
.btn-primary:hover, .btn-accent:hover { opacity: .88; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: oklch(95% .008 90 / .28); }

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 8px; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .name { font-size: clamp(6rem, 12.5vw, 11.5rem); font-size: min(29cqi, 13.5rem); }
}

/* ── Stats ──────────────────────────────────────────── */

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line);
}
.stats > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .6rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(.75rem, 2.5vw, 2rem);
}
.stats > div:first-child { padding-left: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dd { font-size: clamp(2.5rem, 8vw, 5.5rem); color: var(--accent); white-space: nowrap; }
.stats dt { font-size: clamp(.625rem, 1.6vw, .75rem); line-height: 1.5; }

/* ── Sections ───────────────────────────────────────── */

.credits, .about, .listen { padding-top: var(--section); }
.section-head { display: grid; gap: .9rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

/* ── Credit list ────────────────────────────────────── */

.credit-list { border-top: 1px solid var(--line); }

.credit {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  grid-template-areas: "art main" "acc acc";
  gap: 1rem 1.1rem;
  align-items: center;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.num { display: none; grid-area: num; }
.art {
  grid-area: art;
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px; background: var(--card);
}
.credit-main { grid-area: main; min-width: 0; }
.credit h3 {
  font-size: clamp(1.375rem, 3.4vw, 2.125rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.01em;
  margin-block: .4rem .45rem;
  text-wrap: balance;
}
.track { color: var(--muted); font-size: 1rem; line-height: 1.45; }
.track cite { font-style: normal; font-weight: 600; color: var(--fg); }
.track cite::before { content: "\201C"; }
.track cite::after { content: "\201D"; }

.accolades { grid-area: acc; display: grid; gap: .45rem; }
.accolades li {
  position: relative; padding-left: 1.1rem;
  font-size: .9375rem; font-weight: 600; line-height: 1.35;
  color: var(--accent);
}
.accolades li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .4rem; height: .4rem; border-radius: 50%; background: currentColor;
}

@media (min-width: 48rem) {
  .credit {
    grid-template-columns: 2.5rem 8.5rem minmax(0, 1fr) minmax(0, 17rem);
    grid-template-areas: "num art main acc";
    gap: 1.75rem;
    padding-block: 1.75rem;
    transition: background-color .2s;
  }
  .credit:hover { background: oklch(20% .02 285 / .55); }
  .num { display: block; align-self: start; padding-top: .35rem; font-size: .8125rem; }
}

.more { margin-top: 2rem; }

.text-link {
  font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: .3em;
  transition: color .15s;
}
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ── Playlist ───────────────────────────────────────── */

.spotify { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; background: var(--card); }

/* ── About ──────────────────────────────────────────── */

.about-body { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.bio {
  max-width: 44ch;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.4; text-wrap: pretty;
}
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-content: start; }
.plain-list { display: grid; gap: .6rem; margin-top: 1rem; font-size: 1.0625rem; }

@media (min-width: 56rem) {
  .about-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

/* ── Music Reviews band ─────────────────────────────── */

.reviews {
  display: grid; gap: 1.75rem; align-items: center; justify-items: start;
  margin-top: var(--section);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.reviews h2 { font-size: clamp(2.25rem, 5.5vw, 4rem); margin-block: .9rem 1rem; }
.reviews p:not(.eyebrow) { max-width: 46ch; color: var(--muted); }

@media (min-width: 56rem) {
  .reviews { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
}

/* ── Studio photo ───────────────────────────────────── */

.studio { margin-top: clamp(1.25rem, 3vw, 2rem); }
.studio img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 45%;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card);
}
.studio figcaption {
  margin-top: .9rem;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

@media (min-width: 56rem) {
  .studio img { aspect-ratio: 16 / 9; }
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer { margin-top: var(--section); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  padding-block: 2rem; font-size: .9375rem; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
