:root {
  --bg: #f3eee6;
  --bg-item: #f3eee6;
  --ink: #1b1916;
  --muted: #59534b;
  --line: #ddd6cb;
  --sidebar: #f3eee6;
  --sidebar-text: #1b1916;
  --sidebar-muted: #5b554d;
  --accent: #795748;
  --accent-soft: #f3d9cc;
  --sidebar-w: 260px;
  --radius: 18px;
  --font-sans: "IBM Plex Mono", system-ui, sans-serif;
  --font-serif: "Cardo", Georgia, serif;
  --font-hw: "Reenie Beanie", cursive;
  --w: 800px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img {
  flex-grow: 1;
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: .2rem;
  text-decoration: underline;
  text-decoration-color: #c0b4af;
}

hr {
  color: var(--sidebar-muted);
  border-bottom: 1px solid var(--sidebar-muted);
}

.layout {
  display: flex;
  min-height: 100vh;
  justify-content: center;
}

.sidebar {
  position: sticky;
  top: 0;
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 20vh 64px 80px 64px;
  z-index: 40;
}

.title {
  text-decoration: none;
  margin-bottom: 36px;
}

.mobile-bar .title {
  margin-bottom: 0px;
}

.title-name {
  font-family: var(--font-hw);
  font-size: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav {
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--sidebar-muted);
  padding: 0.3rem 0px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--sidebar-text);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  position: sticky;
  top: 0;
  z-index: 50;
}


.menu-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 10px;
  padding: 8px 0rem;
  font: inherit;
  cursor: pointer;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 29, 26, 0.45);
  z-index: 30;
}

.content {
  flex: 1;
  min-width: 0;
  max-width: 1000px;
  padding: 20vh 64px 80px 64px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-64px)
}

.hero {
  width: 100%;
  max-width: var(--w);
  margin-bottom: 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
  font-weight: 550;
  line-height: 1.15;
}

h1 {
  font-family: var(--font-sans);
  margin: 0 0 16px;
}

h2 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.lede {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
  align-self: flex-end;
}

.eyebrow {
  text-align: left;
  width: 100%;
  font-size: .8rem;
  font-weight: 600;
  margin: .5rem 0;
  max-width: var(--w)
}

.item {
  background: var(--bg-item);
  border-top: 1px solid var(--line);
  padding: 1rem 0px;
  display: flex;
  align-items: center;
  max-width: var(--w);
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.item h3 {
  flex: 1;
}

.item p {
  flex: 2;
  margin: 0;
  color: var(--muted);
  font-size: .8rem
}

.item a {
  flex: 1.25;
  text-align: right;
  font-family: var(--font-sans);
  font-size: .8rem;
}

.projects a {
  flex: 1;
}



.credits a {
  text-align: center;
}

.item .img {
  flex: 1;
  width: 100%;
  align-self: start;
}

.credits .img {
  flex: 0.5;
  width: 100%;
  align-self: start;
}

.credits {
  padding: .5rem 0;
}

.item .item-end {
  text-align: end;
  flex: 1.5;
}

.item .release {
  flex: 1.5
}

.item .release h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.item .composition h3 {
  font-size: 1rem;
}

.item .release p {
  flex: 0.5
}

.item .release-btn {
  flex: 1;
  display: flex;
  justify-content: end;
  align-items: end;


}



.tracks {
  padding: .6rem 0;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.composition {
  flex: 5
}

.date {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  /* or a specific height */
}

.date h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 8px;
}

.program-note {
  flex: 3;
}

.stack {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.section {
  margin-top: 40px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.list li:first-child {
  padding-top: 0;
}

.muted {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

input,
textarea,
select {
  font: inherit;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button[type="submit"] {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  justify-self: start;
}

button[type="submit"]:hover {
  background: var(--accent);
}

.about {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.caption {

  font-size: .5rem;
  text-align: right;
  color: var(--muted);
  margin-top: .5rem;

}

@media (max-width: 900px) {

  .caption {
    text-align: left;
  }

  .about {
    flex-direction: column;
  }

  .past p,
  h3 {
    padding-bottom: 0.5rem;
  }


  .item .item-end {
    text-align: start;
    flex: 1.5;
  }

  .sidebar .title {
    display: none;
  }

  .filler {
    display: none;
  }

  ;

  .about {

    flex-direction: column;

  }

  .mobile-bar {
    display: flex;
  }

  .layout {
    display: block;
  }

  .sidebar {
    z-index: 9999;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .overlay {
    display: block;
  }

  .content {
    padding: 28px 18px 64px;
    transform: none;
  }

  .item {
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  .item .img {
    max-width: 300px;
  }
}

/* Reset the button so it looks like your current .btn div */
button.btn {
  font: inherit;
  color: inherit;
  border: 0;

  .item {
    flex-wrap: wrap;
  }

  cursor: pointer;
  background-color: transparent;
}


/* Expandable region: spans every column of the article's grid */
.details {
  flex: 0 0 100%;
  display: grid;
  grid-template-rows: 0fr;
  /* transition: grid-template-rows 0.4s ease; */
}

.item.is-open .details {
  grid-template-rows: 1fr;
}

.details-inner {
  overflow: hidden;
  min-height: 0;
  /* required for the 0fr collapse to work */
}

.details-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 1.5rem 0 1.25rem;
}

@media (max-width: 700px) {
  .details-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .details {
    transition: none;
  }
}

.program-note {
  margin-top: 4px;
}



.program-note summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
}

.program-note summary::-webkit-details-marker {
  display: none;
}

.program-note summary::after {
  content: " +";
}

.program-note[open] summary::after {
  content: " −";
}

.program-note p {
  margin-top: 10px;
}

summary {
  font-size: .8rem;
  color: var(--muted);
  text-underline-offset: .2rem;
  text-decoration: underline;
  text-decoration-color: #c0b4af;
  user-select: none
}

.past {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-bottom: 4px;
}

.past p {
  margin-bottom: 6px;
}

.about-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.about-btn::after {
  content: " +";
}

.item.is-open .about-btn::after {
  content: " −";
}

.about-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

button.btn {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  background-color: transparent;
  font-size: .8rem;
  text-underline-offset: .2rem;
  text-decoration: underline;
  text-decoration-color: #c0b4af;

}

.track-btn {
    position: relative;
    flex: none;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #9c938e;
    color: #fff;
    font-size: 0;          /* hides the text glyph */
    cursor: pointer;
}

/* Play triangle */
.track-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: .5rem;
    height: .6rem;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Pause bars */
.track-btn.is-playing::before {
    width: .5rem;
    height: .55rem;
    clip-path: none;
    background: linear-gradient(to right,
        currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
}
/* Track rows: button stays left, title wraps to its right */
.tracks p {
  display: flex;
  align-items: flex-start;
  gap: .5em;
  width: fit-content;
  max-width: 100%;
  padding-right: .5em;
  border-radius: 4px;
}


/* Playing state: dark background covers the whole row, text turns white */
.tracks p:has(.track-btn.is-playing) {
  background: #9c938e;
  /* same as the button; swap for a darker shade if you like */
  color: #fff;
}

.track-btn:focus-visible,
.player-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Sticky bottom player: slides up the first time a track is played */
.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: var(--bg, Canvas);
  color: var(--fg, CanvasText);
  border-top: 1px solid currentColor;
  font: inherit;
  transform: translateY(100%);
}

.player.is-active {
  transform: translateY(0);
}

.player-btn {
  background: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  padding: 0;
  /* remove default button padding */
  display: grid;
  /* center the glyph exactly */
  place-items: center;
  font: inherit;
  font-size: .9rem;
  line-height: 1;
  font-variant-emoji: text;
  /* ask for text-style glyphs, not emoji */
  color: inherit;
  cursor: pointer;
}

.player-btn {
    --nudge: 0.1rem;   /* + moves the play triangle right, - moves it left */
    position: relative;
    font-size: 0;
}

.player-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;               /* centers exactly, no transform needed */
    width: .8rem;
    height: .9rem;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    translate: var(--nudge) 0;
}

.player-btn[aria-label="Pause"]::before {
    width: .75rem;
    height: .85rem;
    clip-path: none;
    background: linear-gradient(to right,
        currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
    translate: 0 0;
}

.player-info {
  min-width: 0;
  flex: 0 1 18rem;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.player-label {
  font-size: .75em;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.player-title,
.player-release {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-release {
  font-size: .85em;
  opacity: .75;
}

.player-seek {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: currentColor;
  cursor: pointer;
}

.player-time {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: .85em;
}

body.has-player {
  padding-bottom: 4.5rem;
}

@media (max-width: 600px) {

  .tracks p {
    font-size:.9rem;
  }
  .player {
    gap: .6rem;
    padding: .6rem .75rem 2rem .75rem;
  }

  .player-time {
    display: none;
  }

  .player-info {
    flex-basis: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player {
    transition: none;
  }
}

.press {
  font-weight: 600;

}