/* Hanley artist site. Tokens come from docs/tokens.json (dark theme default, light for the lyric section). */

html { scroll-behavior: smooth; }

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/newsreader-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Allison"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/allison-latin-400-normal.woff2") format("woff2"); }

:root {
  --surface: #0a0a0b;
  --ink: #ecebe8;
  --ink-muted: #a3a29e;
  --border-strong: #6f6e6a;
  --focus: #ffffff;
  --surface-light: #f3f2ef;
  --ink-on-light: #0d0d0e;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --script: "Allison", "Snell Roundhand", cursive;
  --gutter: 48px;
  --fade: 500ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--surface); }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
ul { list-style: none; margin: 0; padding: 0; }

.eyebrow, .nav, .menu__panel a { font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow { margin: 0 0 16px; color: var(--ink-muted); }

/* Header */
.header { display: flex; align-items: center; justify-content: flex-end; padding: 32px var(--gutter); position: relative; z-index: 2; }
.nav { display: flex; gap: 40px; color: var(--ink-muted); }
.nav a { transition: color var(--fade); }
.nav a:hover { color: var(--ink); }
.menu { display: none; }

/* Hero */
.hero { position: relative; }
.hero__img { width: 100%; height: auto; }
.hero__text { position: absolute; left: var(--gutter); bottom: 96px; max-width: 440px; }
.hero__name { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 64px; letter-spacing: -0.015em; }
.hero__desc { margin: 16px 0 0; max-width: 420px; font-size: 16px; line-height: 26px; color: var(--ink-muted); }

/* Genres: four columns on the shared grid, no rules, short underline that grows on hover */
.genres { padding: 240px var(--gutter) 0; }
.genres__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
.genre { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; justify-self: start; }
.genre__name { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 32px; }
.genre__rule { display: block; width: 24px; height: 1px; background: var(--border-strong); transition: width var(--fade), background var(--fade); }
.genre:hover .genre__rule, .genre:focus-visible .genre__rule { width: 100%; background: var(--ink); }

/* Lyric: the one light section */
.lyric { margin-top: 160px; background: var(--surface-light); color: var(--ink-on-light); }
.lyric__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 96px var(--gutter); }
.lyric__text { margin: 0; font-family: var(--script); font-weight: 400; font-size: 52px; line-height: 64px; }
.lyric__text span { display: block; }
.lyric__img { width: 100%; height: auto; mix-blend-mode: multiply; }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; padding: 160px var(--gutter) 48px; }
.footer__name { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 32px; color: var(--ink-muted); }
.social { display: flex; align-items: center; gap: 8px; margin-right: -11px; }
.social__link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink-muted); transition: color var(--fade); }
.social__link:hover, .social__link:focus-visible { color: var(--ink); }

/* Mobile */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .header { padding: 16px var(--gutter); }
  .nav--desktop { display: none; }
  .menu { display: block; }
  .menu__button { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; list-style: none; }
  .menu__button::-webkit-details-marker { display: none; }
  .menu__bar { display: block; height: 1px; background: var(--ink); }
  .menu__bar--long { width: 24px; }
  .menu__bar--short { width: 16px; }
  .menu__panel { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px var(--gutter) 32px; background: var(--surface); transform-origin: top; }
  .menu__panel a { display: block; padding: 14px 0; color: var(--ink); }
  @keyframes menu-in  { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
  @keyframes menu-out { from { transform: scaleY(1); opacity: 1; } to { transform: scaleY(0); opacity: 0; } }
  details[open] .menu__panel { animation: menu-in 500ms ease; }

  .hero__img { height: 420px; object-fit: cover; object-position: 78% center; }
  .hero__text { position: static; max-width: none; padding: 40px var(--gutter) 0; }
  .eyebrow { margin-bottom: 12px; }
  .hero__name { font-size: 48px; line-height: 52px; }
  .hero__desc { margin-top: 12px; }

  .genres { padding-top: 160px; }
  .genres__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .genre__name { font-size: 20px; line-height: 28px; }

  .lyric { margin-top: 96px; }
  .lyric__grid { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .lyric__img { order: -1; }
  .lyric__text { padding: 32px var(--gutter) 96px; font-size: 36px; line-height: 48px; }

  .footer { padding: 96px var(--gutter) 48px; }
}

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