/* zoebosin.com — design tokens per design doc */
:root {
  --bg: #EDEAF1;
  --ink: #221F26;
  --accent-primary: #7A2E3A;
  --accent-secondary: #C98A3E;
  --line: #B9B3C4;
  --bg-raised: #F6F4F8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --measure: 68rem;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 560;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.75rem; }

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.mono.upper { text-transform: uppercase; }

a { color: var(--accent-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-secondary); }

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

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- staff motif ---------- */
.staff {
  display: block;
  width: 100%;
  height: 17px; /* 5 lines, 4px apart */
  position: relative;
}
.staff span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.staff span:nth-child(1) { top: 0; }
.staff span:nth-child(2) { top: 4px; }
.staff span:nth-child(3) { top: 8px; }
.staff span:nth-child(4) { top: 12px; }
.staff span:nth-child(5) { top: 16px; }

.staff-divider { margin: 2.75rem 0; }

/* ---------- nav ---------- */
header.site {
  padding: 1.4rem 0 0.9rem;
}
.nav-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--accent-primary); }
nav.main { display: flex; gap: 1.6rem; }
nav.main a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--accent-primary); }
nav.main a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
header.site .staff { margin-top: 0.9rem; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 2.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero .identity {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* hero staff measure */
.hero-staff {
  margin-top: 2rem;
  position: relative;
  height: 72px;
}
.hero-staff .staff { position: absolute; top: 28px; }
.hero-staff .staff span {
  transform-origin: left center;
}
.staff-markers {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  list-style: none;
}
.staff-markers li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.staff-markers .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-primary);
  margin-top: 31px; /* sits on middle staff line */
}
.staff-markers .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* animation (motion-safe only) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-staff .staff span {
    transform: scaleX(0);
    animation: draw-line 0.9s cubic-bezier(0.6, 0, 0.2, 1) forwards;
  }
  .js .hero-staff .staff span:nth-child(2) { animation-delay: 0.08s; }
  .js .hero-staff .staff span:nth-child(3) { animation-delay: 0.16s; }
  .js .hero-staff .staff span:nth-child(4) { animation-delay: 0.24s; }
  .js .hero-staff .staff span:nth-child(5) { animation-delay: 0.32s; }

  .js .staff-markers li {
    opacity: 0;
    transform: translateY(-8px);
    animation: land 0.5s ease-out forwards;
  }
  .js .staff-markers li:nth-child(1) { animation-delay: 1.0s; }
  .js .staff-markers li:nth-child(2) { animation-delay: 1.25s; }
  .js .staff-markers li:nth-child(3) { animation-delay: 1.5s; }
  .js .staff-markers li:nth-child(4) { animation-delay: 1.75s; }

  @keyframes draw-line { to { transform: scaleX(1); } }
  @keyframes land { to { opacity: 1; transform: translateY(0); } }
}

/* ---------- sections ---------- */
section { padding: 1rem 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.section-head .marker {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
  align-self: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.about-grid p { max-width: 34em; }

/* ---------- audio player ---------- */
.tracks { list-style: none; }
.track {
  position: relative;
  padding: 1.1rem 1.25rem;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  overflow: hidden;
}
.track + .track { margin-top: 2px; }
/* staff lines running behind each track row */
.track::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 17px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 4px
  );
  opacity: 0.45;
  pointer-events: none;
}
.track > * { position: relative; }

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  background: var(--bg-raised);
  color: var(--accent-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.play-btn:hover { border-color: var(--accent-secondary); }
.play-btn.playing {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: var(--ink);
}
.play-btn svg { width: 16px; height: 16px; display: block; }
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }

.track-meta { flex: 1; min-width: 0; }
.track-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
}
.track-detail {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #55505c;
  margin-top: 0.15rem;
}
.track-time {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.track-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 130px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.track-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
}
.track-progress::-moz-range-thumb {
  width: 13px; height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
}

.score-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- collaboration strip ---------- */
.collab {
  margin-top: 4rem;
  background: var(--bg-raised);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.collab-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.collab-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.collab p { max-width: 36em; }
.collab .credits {
  margin-top: 1.4rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.collab .credits li {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.collab .credits .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-secondary);
  flex-shrink: 0;
}

/* ---------- CTA row ---------- */
.cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 4rem 0;
}
.cta-row a {
  display: block;
  background: var(--bg-raised);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.cta-row a:hover { background: #efe9e0; }
.cta-row .cta-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 560;
  color: var(--accent-primary);
}
.cta-row .cta-sub {
  font-size: 0.92rem;
  margin-top: 0.3rem;
  color: #55505c;
}

/* ---------- works page ---------- */
.works-list { list-style: none; }
.work {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.work:first-child { border-top: 1px solid var(--line); }
.work-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.work-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
  flex: 1;
  min-width: 12rem;
}
.work-catalog {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #55505c;
  width: 100%;
  margin-top: 0.35rem;
}

.works-section { padding: 1.75rem 0; }
.work-movements {
  width: 100%;
  margin: 0.5rem 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #55505c;
}
.work-movements li { margin-top: 0.15rem; }
.work-note {
  width: 100%;
  font-size: 0.92rem;
  color: #55505c;
  margin-top: 0.3rem;
}

/* ---------- shop ---------- */
.shop-search-label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 26rem;
  margin-bottom: 2.25rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shop-search {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-raised);
  color: var(--ink);
}
.shop-search:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
  border-color: var(--accent-primary);
}
.purchase-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--accent-primary);
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.purchase-link:hover {
  background: var(--accent-primary);
  color: #fff;
}
.shop-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #55505c;
  padding: 2rem 0;
}
.shop-list { list-style: none; }
.shop-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.shop-item:first-child { border-top: 1px solid var(--line); }
.shop-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 560;
  flex: 1;
  min-width: 12rem;
}
.shop-desc { width: 100%; font-size: 0.95rem; color: #55505c; }
.shop-price {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- contact ---------- */
.contact-form {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-raised);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
  border-color: var(--accent-primary);
}
.contact-form button {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.contact-form button:hover { background: var(--accent-secondary); color: var(--ink); }

/* ---------- footer ---------- */
footer.site {
  margin-top: 5rem;
  padding: 2rem 0 2.5rem;
}
footer.site .staff { margin-bottom: 1.5rem; }
footer.site .foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #55505c;
}

/* ---------- page intro ---------- */
.page-intro { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.page-intro p {
  max-width: 36em;
  margin-top: 1rem;
  color: #55505c;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero-grid,
  .about-grid,
  .collab-grid { grid-template-columns: 1fr; }
  .hero-grid img { order: -1; max-width: 26rem; }
  .cta-row { grid-template-columns: 1fr; }
  .staff-markers { flex-wrap: wrap; }
  .hero-staff { height: auto; position: static; }
  .hero-staff .staff { position: static; margin-bottom: 1.1rem; }
  .staff-markers {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
  }
  .staff-markers li { flex-direction: row; gap: 0.6rem; }
  .staff-markers .dot { margin-top: 0; }
  .track { flex-wrap: wrap; }
  .track-progress { width: 100%; order: 5; }
}
