/* ===========================================================================
   siongrand.com

   The bones of this are the Nubar site's stylesheet, turned inside out for a
   dark canvas. Same idea: a small set of tokens at the top, and every screen
   built from them. Change a value here and the whole site follows.

   On black, shadows do almost nothing, so the work of separating one surface
   from another is done by hairlines and a slightly lifted card colour.
   =========================================================================== */

:root {
  --ink: #f2f2f4;
  --ink-soft: #a6a6ad;
  --ink-faint: #74747c;

  --blue: #4c9dff;
  --blue-hover: #6aaeff;
  --blue-press: #3b86e0;
  --link: #7ab5ff;

  --canvas: #0a0a0b;
  --card-bg: #141417;
  --surface-sunken: #1c1c20;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.17);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.6), 0 20px 48px rgba(0, 0, 0, 0.5);

  --container: 1080px;
  --measure: 66ch;

  --radius-lg: 24px;
  --radius: 20px;
  --radius-sm: 12px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;

  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--canvas);
}

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

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1;
}

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.16;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.lede {
  font-size: clamp(1.12rem, 1.02rem + 0.45vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose p { color: var(--ink-soft); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose h3 { margin-top: 2em; color: var(--ink); }
.prose h3 + p { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li { color: var(--ink-soft); margin-top: 0.4em; }
.prose li::marker { color: var(--ink-faint); }

.small { font-size: 0.9375rem; }
.muted { color: var(--ink-faint); }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { color: var(--blue-hover); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--card-bg);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap-narrow {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

.band { padding-block: clamp(52px, 7vw, 92px); }
.band-tight { padding-block: clamp(36px, 4.5vw, 60px); }

.band-raised {
  background: #0f0f11;
  border-block: 1px solid var(--hairline);
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
}

.section-head { max-width: var(--measure); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 + p { margin-top: 14px; }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-stuck { border-bottom-color: var(--hairline); }

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: 0;
}
.brand:hover { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.07); }
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--card-bg);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-float);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { height: 44px; padding-inline: 14px; border-radius: var(--radius-sm); font-size: 1rem; }
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary { background: var(--blue); color: #06121f; }
.btn-primary:hover { background: var(--blue-hover); color: #06121f; }
.btn-primary:active, .btn-primary.is-pressed { background: var(--blue-press); transform: scale(0.985); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.28); color: var(--ink); }
.btn-secondary:active, .btn-secondary.is-pressed { background: var(--surface-sunken); transform: scale(0.985); }

.btn-lg { min-height: 54px; padding: 14px 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
}
.link-quiet:hover { text-decoration: underline; }
.link-quiet .arw { transition: transform 0.18s ease; }
.link-quiet:hover .arw { transform: translateX(3px); }

/* --- Cards --------------------------------------------------------------- */

.card {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}

.card-lg { border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 40px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); }
.card p + p { margin-top: 12px; }

/* A card that is entirely a link to somewhere else. */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.08s ease;
}
.card-link:hover { border-color: var(--hairline-strong); background: #17171b; color: inherit; }
.card-link:active, .card-link.is-pressed { transform: scale(0.99); }
.card-link .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--link);
}
.card-link:hover .go .arw { transform: translateX(3px); }
.card-link .go .arw { transition: transform 0.18s ease; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding-top: clamp(56px, 10vw, 120px);
  padding-bottom: clamp(40px, 6vw, 68px);
}

.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 52ch; margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }

/* The name, set in the serif, is the only piece of branding on the site. */
.nameplate {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 22px;
}

/* --- Page head ----------------------------------------------------------- */

.page-head {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(24px, 3vw, 36px);
}
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 56ch; margin-top: 18px; }

/* --- Facts list ---------------------------------------------------------- */

.facts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}
.facts li {
  display: flex;
  gap: 20px;
  padding-block: 14px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.facts li:last-child { border-bottom: 1px solid var(--hairline); }
.facts .k {
  flex: 0 0 34%;
  max-width: 220px;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 620px) {
  .facts li { flex-direction: column; gap: 2px; }
  .facts .k { flex: none; max-width: none; }
}

/* --- Media --------------------------------------------------------------- */

.media {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  display: block;
  background: var(--surface-sunken);
}

figure.media-figure { margin: 0; }
figure.media-figure figcaption {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

/* --- Track player -------------------------------------------------------- */

.tracks { display: grid; gap: 12px; }

.track {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.track:hover { border-color: var(--hairline-strong); }
.track.is-playing { border-color: rgba(76, 157, 255, 0.45); background: #131720; }

.track-play {
  width: 52px;
  height: 52px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #0a0a0b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.track-play:hover { background: #fff; }
.track-play:active { transform: scale(0.94); }
.track.is-playing .track-play { background: var(--blue); color: #06121f; }
.track-play .icon-pause { display: none; }
.track.is-playing .track-play .icon-play { display: none; }
.track.is-playing .track-play .icon-pause { display: block; }

.track-body { min-width: 0; }

.track-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.track-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-time {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  flex: none;
}

/* The waveform. A canvas, because a few hundred bars as elements is wasteful
   and this has to stay smooth while the song plays. */
.track-wave {
  position: relative;
  height: 46px;
  cursor: pointer;
  touch-action: none;
}
.track-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.track-meta {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

@media (max-width: 560px) {
  .track { padding: 16px; gap: 14px; }
  .track-play { width: 46px; height: 46px; }
  .track-wave { height: 40px; }
}

/* --- Form ---------------------------------------------------------------- */

.field { display: block; margin-top: 18px; }
.field:first-child { margin-top: 0; }

.field > .label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}

.input, .textarea, .select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-sunken);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue);
  background: #202027;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }

.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2374747c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-note { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-faint); }

.alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  border: 1px solid;
}
.alert-good { background: rgba(48, 160, 100, 0.12); border-color: rgba(48, 160, 100, 0.4); color: #7fd6a6; }
.alert-bad { background: rgba(224, 82, 70, 0.12); border-color: rgba(224, 82, 70, 0.4); color: #f0a09a; }
.is-hidden { display: none; }

/* --- Contact rows -------------------------------------------------------- */

.contact-direct { display: grid; gap: 12px; }
.contact-direct a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.contact-direct a:hover { border-color: var(--hairline-strong); background: #17171b; color: var(--ink); }
.contact-direct .what {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: 0 0 84px;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 40px;
  margin-top: clamp(48px, 7vw, 88px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: baseline;
  justify-content: space-between;
}

.footer-name { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
}
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

.footer-base {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* --- Lyrics -------------------------------------------------------------- */

/* A native <details>, so it opens without JavaScript and a keyboard can reach
   it. The default triangle is replaced by a chevron that turns. */
.lyrics {
  grid-column: 1 / -1;
  border-top: 1px solid var(--hairline);
  margin-top: 4px;
  padding-top: 12px;
}

.lyrics > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-faint);
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lyrics > summary::-webkit-details-marker { display: none; }
.lyrics > summary:hover { color: var(--ink); }

.lyrics > summary .chev {
  transition: transform 0.2s ease;
  flex: none;
}
.lyrics[open] > summary .chev { transform: rotate(90deg); }

.lyrics-body {
  white-space: pre-line;
  margin-top: 14px;
  padding-right: 8px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--ink-soft);
  overscroll-behavior: contain;
}

/* Long lyrics scroll inside their own box so the list of songs stays usable. */
.lyrics-body::-webkit-scrollbar { width: 10px; }
.lyrics-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 3px solid var(--card-bg);
}

@media (prefers-reduced-motion: reduce) {
  .lyrics > summary .chev { transition: none; }
}
