:root {
  color-scheme: dark;
  --text: #e5dfd7;
  --muted: #aaa49c;
  --accent: #dfbd91;
  background: #171614;
  color: var(--text);
  font: 1rem/1.68 "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 3rem, 38rem); margin: auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
h1 { font: inherit; margin: 0; }
.intro p + p { margin-top: 1.2rem; }
#age { font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
section { margin-top: 2.65rem; }
h2 { margin: 0 0 .75rem; padding-bottom: .35rem; border-bottom: 1px solid #39332b; }
.extras { margin-top: 2.5rem; display: grid; gap: .45rem; }
footer { margin-top: 2.2rem; font-size: .875rem; }

h2 { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; font-weight: normal; font-style: italic; }
.page-links a { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .25rem 0; }
.page-links { margin-top: 2.5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.collection { width: min(100% - 3rem, 53rem); }
.page-title { margin: 2rem 0 1.75rem; font-size: 2rem; font-weight: normal; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
figure { margin: 0; }
.preview { aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: inherit; overflow: hidden; }
figcaption { display: flex; justify-content: space-between; gap: .75rem; margin-top: .45rem; }
figcaption span { text-align: right; color: var(--muted); font-size: .875rem; }
.calendar { background: #e2dfd8; }
.calendar i { width: 74%; height: 72%; background: repeating-linear-gradient(0deg, transparent 0 18px, #989498 19px 20px), repeating-linear-gradient(90deg, #faf7f0 0 32px, #989498 33px 34px); box-shadow: inset 0 16px #686483; }
.color { background: radial-gradient(ellipse at 35% 35%, #eaaa7a, #a94f6a 28%, #4c385f 51%, #242334 80%); }
.color i { width: 35%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #f4c5b2; box-shadow: 0 0 40px #f4c5b265, inset 0 0 28px #f4c5b265; }
.catalog { background: #27343b; }
.catalog i { width: 73%; height: 66%; background: repeating-linear-gradient(90deg, #71938f 0 23%, transparent 23% 26%); border-block: .75rem solid #364c50; border-radius: .35rem; }
.audio { background: #332840; }
.audio i { width: 65%; height: 35%; background: repeating-linear-gradient(90deg, #e4b4dc 0 4px, transparent 4px 9px); clip-path: polygon(0 50%, 15% 31%, 25% 65%, 40% 10%, 53% 35%, 65% 0, 76% 47%, 90% 24%, 100% 50%, 90% 76%, 76% 53%, 65% 100%, 53% 65%, 40% 90%, 25% 35%, 15% 69%); }
.type { background: #c7b18e; color: #352821; font-size: clamp(3rem, 9vw, 6rem); font-style: italic; }
@media (max-width: 36rem) { .gallery { grid-template-columns: 1fr; } }

[data-border-glow] {
  position: relative;
  --edge-light: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    #ffe1aa, var(--glow-accent, #da92c8) 30%, #7da9df 55%, transparent 75%
  ) no-repeat;
}
[data-border-glow]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  background: var(--edge-light);
  background-size: 100% 100%;
  padding: 1px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: var(--glow-intensity, 0);
  transition: opacity 160ms ease-out;
  pointer-events: none;
}
[data-border-glow="line"]::after {
  inset: auto 0 -1px;
  height: 1px;
  padding: 0;
  mask: none;
  background-image: radial-gradient(
    ellipse 8rem 1px at var(--glow-x, 50%) center,
    #d9b49599, #b58e6a66 45%, transparent
  );
}
.preview-frame {
  border: 1px solid #51473a;
  border-radius: .35rem;
}
.gallery figure:nth-child(2n) { --glow-accent: #dc8dbe; }
.gallery figure:nth-child(2n + 1) { --glow-accent: #8ab6d9; }
.preview-color { display: none; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .chroma-ready .preview:first-child {
    filter: grayscale(.92) brightness(.88);
  }
  .chroma-ready .preview-color {
    display: grid;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease-out;
    mask-image: radial-gradient(
      circle 225px at var(--chroma-x, -225px) var(--chroma-y, -225px),
      #000 20%, transparent 100%
    );
  }
  .chroma-active .preview-color {
    opacity: 1;
    transition-duration: .12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-border-glow]::after { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .shiny-intro {
      display: inline-block;
      background-image: linear-gradient(
        120deg,
        var(--text) 39%,
        #f4e6cd 46%,
        #fff 50%,
        #f4e6cd 54%,
        var(--text) 61%
      );
      background-size: 240% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: intro-shine 2s ease-in-out infinite;
    }
  }
}

@keyframes intro-shine {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.sales strong {
  color: #83de9c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0 .45em #43c66c55;
}
.record-player {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 2.35rem;
  border: 0;
  padding: 0 var(--record-peek) 0 0;
  --record-peek: .75rem;
  background: none;
  color: inherit;
  font: inherit;
  font-size: .9375rem;
  text-align: left;
  cursor: pointer;
}
.record-frame {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}
.record, .record-cover {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
}
.record {
  left: var(--record-peek);
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, #101013 0 4%, #b87a5a 5% 18%, transparent 19%),
    repeating-radial-gradient(circle, transparent 0 1px, #bcb9c229 2px, transparent 3px),
    conic-gradient(#201e23, #766e76 16%, #1b181d 29%, #101013 48%, #67616e 66%, #1a181d 79%, #201e23);
  transition: opacity 140ms ease-out;
}
@media (hover: hover) {
  .record-player:hover .record { opacity: 1; pointer-events: auto; }
  .record-player:hover .record-info { transform: translateX(var(--record-peek)); }
}
.record-player:focus-visible .record,
.record-player.is-scratching .record { opacity: 1; pointer-events: auto; }
.record-player:focus-visible .record-info,
.record-player.is-scratching .record-info { transform: translateX(var(--record-peek)); }
.record-cover {
  border: 1px solid #e5b98f66;
  border-radius: .25rem;
  background:
    radial-gradient(circle at 63% 39%, #ffdaad 0 12%, transparent 13%),
    linear-gradient(165deg, #2a3346 15%, #9d6969 48%, #e2a57d 61%, #534052 62%, #252739 95%);
}
.record-info { display: grid; line-height: 1.35; transition: transform 180ms ease-out; }
.record-artist { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .record, .record-info { transition: none; }
}

.project-list {
  display: grid;
  gap: .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.project-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: baseline;
  gap: .85rem;
}
.project-list li > :last-child, .page-links a span:last-child {
  color: var(--muted);
  font-size: .9375rem;
  text-align: right;
}
.project-list a, .page-links a {
  color: var(--text);
  text-decoration: none;
}
.project-list a:hover, .project-list a:focus-visible, .page-links a:hover, .page-links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.page-links { display: grid; gap: .4rem; font-style: italic; }

.record { cursor: grab; touch-action: none; }
.record-player.is-scratching .record { cursor: grabbing; }

.project-list a { justify-self: start; }

.youtube-count { color: #ff4b4b; text-shadow: 0 0 .45em #ff272752; font-variant-numeric: tabular-nums; white-space: nowrap; }

.discord-count { color: #939bff; text-shadow: 0 0 .45em #6875ff59; font-variant-numeric: tabular-nums; white-space: nowrap; }

.faq-list { margin: 0; }
.faq-list > div { padding: .85rem 0; border-bottom: 1px solid #39332b; }
.faq-list dt { color: var(--text); font-style: italic; }
.faq-list dd { margin: .3rem 0 0; color: var(--muted); }


.record-cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }


.record-loading { position: relative; margin-bottom: 2.35rem; }
.record-loading .record-player { margin-bottom: 0; }
.record-placeholder { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .portfolio-home main { animation: portfolio-enter .12s ease-out both; }
  .record-loading .record-player { animation: portfolio-enter .14s ease-out .52s backwards; }
  .record-placeholder {
    position: absolute;
    inset: 0 auto auto 0;
    display: grid;
    grid-template-columns: 2.5rem 7rem;
    grid-template-rows: .85rem .85rem;
    gap: .35rem .75rem;
    align-content: center;
    height: 2.5rem;
    pointer-events: none;
    animation: placeholder-out .14s ease-in .52s both;
  }
  .record-placeholder span { background: #262421; border-radius: .25rem; }
  .record-placeholder span:first-child { grid-row: span 2; height: 2.5rem; align-self: center; }
  .record-placeholder span:last-child { width: 72%; }
  @keyframes portfolio-enter { from { opacity: 0; } to { opacity: 1; } }
  @keyframes placeholder-out { from { opacity: 1; } to { opacity: 0; } }
}

.faq-view:not([hidden]) {
  display: block;
  width: 100%;
  height: 100dvh;
  border: 0;
}
