/* ==========================================================================
   BASE — reset, typography primitives, utilities
   ========================================================================== */

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

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* The JS lerp scroller drives scrolling itself; native smooth would fight it. */
html.has-smooth-scroll { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.2;
  font-feature-settings: var(--font-features);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--white-70); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Visible focus for keyboard users only — never swallowed. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--white); color: var(--bg); }

/* ==========================================================================
   TYPE SCALE
   ========================================================================== */

.t-h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.t-h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--white-70);
}
.t-h2--bright { color: var(--white); }

.t-h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.t-h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.t-h5 {
  font-size: var(--fs-h5);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.t-h6 {
  font-size: var(--fs-h6);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--white-70);
}

.t-body   { font-size: var(--fs-body); font-weight: 400; letter-spacing: -.01em; line-height: 1.45; }
.t-body-m { font-size: var(--fs-body); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.t-small  { font-size: var(--fs-small); line-height: 1.5; color: var(--white-70); }

/* Monospace meta label — the small uppercase eyebrow used above sections. */
.t-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white-50);
  line-height: 1;
}

.t-dim    { color: var(--white-70); }
.t-dimmer { color: var(--white-50); }

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-gap); }
.section--flush-top { padding-top: 0; }

/* Screen-reader-only, still focusable. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: var(--bg); }

/* Underlined inline link, used in body copy. */
.link-u {
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--white-30);
}
.link-u:hover { text-decoration-color: var(--white); }

/* Text link with a rule underneath that wipes in on hover —
   the reference's "View All Projects" treatment. */
.link-rule {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
}
.link-rule__line {
  height: 1px;
  width: 100%;
  background: var(--white-30);
  transform-origin: left;
  transform: scaleX(1);
  transition: background var(--dur-fast) var(--ease-out);
}
.link-rule:hover .link-rule__line { background: var(--white); }

/* Section heading row: "Music" ......... (12) */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.section-head__count { color: var(--white-30); }

.stack-gap   { display: flex; flex-direction: column; gap: 25px; }
.stack-gap-s { display: flex; flex-direction: column; gap: 12px; }

.measure { max-width: 600px; }
.measure-wide { max-width: 820px; }

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