:root {
  --bg: #ffffff;
  --panel: #f5f5f5;
  --text: #000000;
  --title-text: #000000;
  --body-text: #7a7a7a;
  --muted: #7a7a7a;
  --light-text: #cecdcd;
  --card-hover: #ebebeb;
  --link-card-bg: #f5f5f5;
  --link-badge-bg: rgba(0, 0, 0, 0);
  --link-badge-text: #cfd3cf;
  --control-bg: rgba(0, 0, 0, 0.2);
  --action-bg: #ffffff;
  --action-hover: #ebebeb;
  --action-hover-strong: #dcdcdc;
  --radius-card: 10px;
  --radius-pill: 999px;
  --content-width: 486px;
  --space-card-gap: 12px;
  --space-card-padding: 16px;
  --space-block-gap: 12px;
  --space-section-gap: 28px;
  --space-inline-gap: 16px;
  --font-text: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --font-size-sm: 12px;
  --font-weight-sm: 400;
  --line-height-sm: 15px;
  --letter-spacing-sm: normal;

  --font-size-base: 14px;
  --font-weight-base: 400;
  --line-height-base: 17px;
  --letter-spacing-base: -0.10px;

  --font-size-lg: 20px;
  --font-weight-lg: 400;
  --line-height-lg: 24px;
  --letter-spacing-lg: 0.35px;

  --font-size-input-ios: 16px;
}

html[data-theme="dark"] {
  --bg: #000000;
  --panel: #1a1a1a;
  --text: #ffffff;
  --title-text: #ffffff;
  --body-text: rgba(225, 229, 226, 0.5);
  --muted: rgba(225, 229, 226, 0.5);
  --light-text: rgba(225, 229, 226, 0.5);
  --card-hover: #2e2f2e;
  --link-card-bg: #1a1a1a;
  --link-badge-bg: #2e2f2e;
  --link-badge-text: #ffffff;
  --control-bg: rgba(128, 128, 128, 0.8);
  --action-bg: #000000;
  --action-hover: #3a3b3a;
  --action-hover-strong: #4a4b4a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  display: block;
  width: 100%;
  border: 0;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.top-controls {
  width: min(100%, var(--content-width));
  margin: 0 auto var(--space-card-gap);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.theme-toggle {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.top-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.top-link-button,
.top-link-button:link,
.top-link-button:visited,
.top-link-button:active {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

.top-link-button:hover,
.top-link-button:focus-visible {
  color: var(--title-text);
  -webkit-text-fill-color: var(--title-text);
}

.theme-toggle:hover {
  background: var(--card-hover);
  color: var(--title-text);
}

.page {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.hero,
.post-card {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--panel);
  border-radius: var(--radius-card);
}

.hero {
  padding: var(--space-card-padding);
}

.biography-card {
  cursor: pointer;
  transition: background 180ms ease;
}

.biography-card:hover {
  background: var(--card-hover);
}

.biography-card:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 2px;
}

.hero h1,
.post-title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--title-text);
}

.hero h1 {
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-lg);
  line-height: var(--line-height-lg);
  letter-spacing: var(--letter-spacing-lg);
}

.hero-copy,
.post-body {
  color: var(--body-text);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  letter-spacing: var(--letter-spacing-base);
  line-height: var(--line-height-base);
}

.hero-copy {
  max-width: none;
  margin: var(--space-block-gap) 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero-copy-extra {
  display: none;
}

.hero-copy-extra .hero-copy {
  display: block;
  margin-top: var(--space-block-gap);
  overflow: visible;
}

.hero-hint {
  margin: var(--space-block-gap) 0 0;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
}

.biography-card.is-expanded .hero-copy {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.biography-card.is-expanded .hero-copy-extra {
  display: block;
}

.meta-line {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  letter-spacing: var(--letter-spacing-base);
  line-height: var(--line-height-base);
  color: var(--muted);
}

.links-section {
  margin-top: var(--space-card-gap);
}

.feed-filters {
  margin: var(--space-section-gap) 0 var(--space-card-gap);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filter-chip {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--body-text);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--card-hover);
  color: var(--title-text);
}

.link-list {
  display: grid;
  gap: var(--space-card-gap);
}

.link-card-shell {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--link-card-bg);
  transition: background 180ms ease;
}

.link-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: var(--space-inline-gap);
  align-items: center;
  height: 100px;
  padding: var(--space-card-padding) 18px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--link-card-bg);
  box-shadow: none;
  transition: background 180ms ease;
}

.link-row-button {
  width: 100%;
  appearance: none;
  text-align: left;
  cursor: pointer;
}

.link-main {
  display: grid;
  gap: 2px;
}

.link-label {
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: 110%; /* override line-height in link cards */;
  letter-spacing: var(--letter-spacing-base);
  text-transform: none;
  color: var(--title-text);
}

.link-note {
  color: var(--body-text);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: 125%;
  letter-spacing: var(--letter-spacing-base);
}

.link-badge {
  width: 68px;
  height: 68px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: var(--link-badge-bg);
  color: var(--link-badge-text);
  font-family: var(--font-text);
  font-size: 0.88rem; /* fallback text style */
  font-weight: var(--font-weight-base);
  letter-spacing: -0.02em; /* fallback text style */
}

.link-badge-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.link-row:hover {
  background: var(--card-hover);
}

.link-card-shell:hover {
  background: var(--card-hover);
}

.mailing-list-card .link-row {
  height: auto;
  background: transparent;
}

.mailing-list-panel {
  display: grid;
  grid-template-rows: 0fr;
  padding-bottom: 0;
  transition:
    grid-template-rows 200ms ease,
    padding-bottom 200ms ease;
}

.mailing-list-card.is-expanded .mailing-list-panel {
  grid-template-rows: 1fr;
  padding-bottom: 16px;
}

.mailing-list-panel-inner {
  overflow: hidden;
  padding: 0 18px;
}

.mailing-list-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.mailing-list-field {
  min-width: 0;
}

.mailing-list-input {
  min-height: 32px;
}

.mailing-list-field-message {
  margin-top: 6px;
}

.mailing-list-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius-card) - 2px);
  background: var(--action-bg);
  color: var(--title-text);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: 125%;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.mailing-list-submit:hover {
  background: var(--action-hover-strong);
}

.mailing-list-submit:disabled {
  background: var(--action-hover);
  color: var(--light-text);
  cursor: progress;
}

.mailing-list-status {
  margin-top: 8px;
}

.mailing-list-disclaimer {
  margin: 8px 0 0;
  color: var(--light-text);
  font-family: var(--font-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-sm);
  line-height: var(--line-height-sm);
  letter-spacing: var(--letter-spacing-sm);
}

.mailing-list-success {
  margin-top: 8px;
  color: var(--title-text);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
}

.mailing-list-success[hidden] {
  display: none;
}

.feed {
  display: grid;
  gap: var(--space-card-gap);
}

.contact-section {
  margin-top: var(--space-section-gap);
}

.post-card {
  padding: var(--space-card-padding);
}

.post-head {
  position: relative;
  margin-bottom: var(--space-block-gap);
  min-height: 24px;
}

.post-title-wrap {
  display: grid;
  gap: 2px;
  padding-right: 96px;
}

.post-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-lg);
  line-height: var(--line-height-lg);
  letter-spacing: var(--letter-spacing-lg);
}

.meta-type {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 0;
  text-transform: none;
}

.post-body {
  margin: 0 0 var(--space-card-padding);
}

.post-body:last-child {
  margin-bottom: 0;
}

.contact-head {
  margin-bottom: 8px;
}

.contact-card .post-body {
  margin-bottom: 14px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form[hidden] {
  display: none;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-field {
  position: relative;
  display: grid;
  gap: 0;
}

.contact-field-message,
.contact-success,
.contact-status {
  color: var(--body-text);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
}

.contact-input {
  width: 100%;
  border: 0;
  border-radius: calc(var(--radius-card) - 2px);
  background: var(--action-bg);
  color: var(--title-text);
  padding: 12px 14px;
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  outline: 0;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.contact-input::placeholder {
  color: var(--light-text);
}

.contact-input:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--muted);
}

@media (pointer: coarse) {
  .contact-input {
    font-size: var(--font-size-input-ios);
  }
}

.contact-field.is-invalid:focus-within .contact-input {
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--title-text);
}

.contact-textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-actions {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--action-bg);
  color: var(--title-text);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.contact-submit:hover {
  background: var(--action-hover);
}

.contact-submit:disabled {
  background: var(--action-hover);
  color: var(--light-text);
  cursor: progress;
}

.contact-field-message {
  position: relative;
  display: none;
  align-self: start;
  margin: 0;
  margin-top: 8px;
  color: var(--title-text);
}

.contact-field.is-invalid .contact-field-message {
  display: block;
}

.contact-status {
  min-height: 0;
  margin: 0;
}

.contact-status:empty {
  display: none;
}

.contact-status.is-error {
  color: var(--title-text);
}

.contact-success {
  display: grid;
  place-items: center;
  min-height: 206px;
  padding: 6px 0 2px;
}

.contact-success[hidden] {
  display: none;
}

.contact-success-text {
  margin: 0;
  color: var(--title-text);
}

.media-frame,
.embed-shell {
  border: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--panel);
  box-shadow: none;
}

.media-frame {
  margin-bottom: var(--space-card-gap);
}

.media-frame-release {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  aspect-ratio: 1.22 / 1;
  padding: 28px;
}

.release-cover-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(74%, 360px);
  height: 100%;
}

.media-frame img {
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
}

.release-cover-shell img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.media-frame-original img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.embed-shell {
  margin-bottom: var(--space-card-gap);
}

.embed-shell iframe {
  min-height: 366px;
  background: var(--panel);
}

.soundcloud iframe {
  min-height: 166px;
}

.slideshow {
  margin-bottom: var(--space-card-padding);
}

.slideshow-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: none;
}

.slide-track {
  display: flex;
  transition: transform 320ms ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  aspect-ratio: 4 / 4.9;
  object-fit: cover;
}

.slide-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-top: -16px;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--control-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  transition: background 180ms ease;
}

.slide-button:hover {
  background: var(--control-bg);
}

.slide-button::before {
  content: "";
  width: 16px;
  height: 16px;
  background: center / contain no-repeat url("./media/slideshow-arrow.svg");
}

.slide-button-prev {
  left: 16px;
}

.slide-button-prev::before {
  transform: rotate(180deg);
}

.slide-button-next {
  right: 16px;
}

.slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: flex;
  transform: translateX(-50%);
}

.slideshow-dot {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.slideshow-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.56);
}

.slideshow-dot.is-active::before {
  background: rgba(255, 255, 255, 0.96);
}

.slideshow-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.09));
}

.card-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.card-actions-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--action-bg);
  color: var(--title-text);
  font-family: var(--font-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  transition: background 180ms ease, color 180ms ease;
}

.card-action-link:hover {
  background: var(--action-hover);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 440ms ease,
    transform 440ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 820px) {
  .site-shell {
    padding: 20px 14px 42px;
  }

  .top-controls {
    margin-bottom: var(--space-card-gap);
  }

  .feed-filters {
    margin-bottom: var(--space-card-gap);
  }

  .hero,
  .post-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    max-width: none;
  }

  .link-row {
    grid-template-columns: 68px 1fr;
    height: 100px;
    padding: 14px 16px;
  }

  .link-badge {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    font-size: 0.88rem;
  }

  .slide-button {
    width: 28px;
    height: 28px;
    margin-top: -14px;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero h1 {
    font-size: var(--font-size-lg);
  }

  .embed-shell iframe {
    min-height: 280px;
  }

  .soundcloud iframe {
    min-height: 166px;
  }
}
