@font-face  {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-400.woff2") format("woff2");
}

@font-face  {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
}

:root  {
  color-scheme: dark;
  --background: #050505;
  --text: #f5f5f3;
  --body-text: #dededb;
  --muted: #b5b5b2;
  --line: #292929;
}

:root[data-theme="light"]  {
  color-scheme: light;
  --background: #fff;
  --text: #171717;
  --body-text: #333;
  --muted: #626262;
  --line: #e4e4e4;
}

*  {
  box-sizing: border-box;
}

body  {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 16px/1.8 "Geist", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#stars  {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

header  {
  position: relative;
  padding: 34px 24px 0;
}

footer  {
  width: min(620px, calc(100% - 48px));
  margin: auto auto 0;
  padding: 24px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

footer #copyright  {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.tools  {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.tools button  {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}

.tools svg  {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.tools button, #screensaver button  {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.tools button:hover  {
  color: var(--text);
}

header, main, footer  {
  transition: opacity 400ms ease;
}

:root[data-theme="light"] .photo-placeholder  {
  background: #f7f7f7;
  border-color: var(--line);
  color: var(--muted);
}

body.screensaving  {
  overflow: hidden;
}

body.screensaving header, body.screensaving main, body.screensaving footer  {
  opacity: 0;
  pointer-events: none;
}

#screensaver  {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 32px 24px;
}

#screensaver button  {
  color: var(--text);
}

#screensaver p  {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
  text-align: center;
}

nav  {
  display: flex;
  justify-content: center;
  gap: 34px;
}

button, a  {
  -webkit-tap-highlight-color: transparent;
}

button  {
  font: inherit;
}

nav [role="tab"]  {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

nav [role="tab"][aria-selected="true"]  {
  color: var(--text);
  border-color: #8c8c88;
}

a  {
  color: inherit;
  text-decoration-color: #646460;
  text-underline-offset: 5px;
}

a:hover, nav [role="tab"]:hover  {
  color: var(--text);
  text-decoration-color: currentColor;
}

:focus-visible  {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

main  {
  flex: 1;
  padding: 0 24px 64px;
}

.panel  {
  max-width: 620px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 140ms ease;
}

.panel.fading  {
  opacity: 0;
}

[hidden]  {
  display: none !important;
}

.intro  {
  text-align: center;
  padding: 70px 0 76px;
}

.welcome  {
  color: var(--text);
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(48px, 7vw, 64px);
  text-align: center;
  /* Keep the name and links in place while lifting the smaller headline. */
  min-height: clamp(91.2px, 15.6vw, 132px);
  position: relative;
  top: -12px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 13px;
}

h1  {
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.35;
  letter-spacing: -.035em;
  font-weight: 400;
  margin: 0 0 16px;
}

h2  {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -.025em;
  font-weight: 400;
  margin: 0 0 25px;
}

h3  {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 5px;
}

p  {
  margin: 0 0 22px;
  color: var(--body-text);
}

.intro > p:not(.welcome)  {
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto;
}

.socials  {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 22px;
  row-gap: 10px;
  margin-top: 27px;
  font-size: 16px;
}

.socials a  {
  text-decoration: none;
}

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

.bio  {
  margin-bottom: 47px;
}

.now  {
  padding-left: 18px;
  color: var(--body-text);
}

.now li  {
  padding-left: 5px;
  margin-bottom: 8px;
}

.collection  {
  padding-top: 90px;
}

.collection > h1  {
  margin-bottom: 46px;
}

.collection section + section  {
  margin-top: 58px;
}

/* Keep paragraph spacing even, with more room before a new heading. */
#panel-about section + section  {
  margin-top: 22px;
}

#panel-about section + section:has(> h2) {
  margin-top: 44px;
}

#panel-about section > p:last-child  {
  margin-bottom: 0;
}

/* A quiet hover shine for About's opening thank-you. */
#panel-about section:first-of-type > p:first-child {
  width: fit-content;
  max-width: 100%;
  transition: text-shadow 250ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #panel-about section:first-of-type > p:first-child:hover {
    text-shadow: 0 0 12px #ffffff70;
  }

  :root[data-theme="light"] #panel-about section:first-of-type > p:first-child:hover {
    text-shadow: 0 0 12px #17171740;
  }
}

@media (prefers-reduced-motion: reduce) {
  #panel-about section:first-of-type > p:first-child {
    transition: none;
  }
}

.entry  {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.entry:first-of-type  {
  padding-top: 0;
}

.entry p  {
  margin: 0;
  font-size: 14px;
}

.entry .author  {
  margin-bottom: 7px;
}

.entry .collection-label, .album .collection-label  {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  margin: 0 0 8px;
}

.album  {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.album-artwork  {
  position: relative;
  padding-right: 28.5714%;
}

.album-artwork > img  {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

/* Reserve the extended record's space; it never overlaps the album text. */
.vinyl-slide  {
  position: absolute;
  top: 0;
  left: 0;
  width: 71.4286%;
  aspect-ratio: 1;
  visibility: hidden;
}

.cover-ready .vinyl-slide  {
  visibility: visible;
}

.vinyl  {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid #303030;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #101010 0 2px, #202020 2px 3px, #101010 3px 5px);
}

.vinyl-label  {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--label-color, #b5262d);
}

.vinyl-label::before  {
  content: "";
  position: absolute;
  top: 4%;
  left: 42%;
  width: 16%;
  height: 10%;
  background: #e8d7cb;
  border-radius: 1px;
}

.vinyl-label::after  {
  content: "";
  position: absolute;
  inset: 43%;
  border-radius: 50%;
  background: #101010;
}

.album-artwork.revealed .vinyl-slide  {
  animation: vinyl-reveal .8s cubic-bezier(.22, .61, .36, 1) both paused;
}

.album-artwork.revealed .vinyl  {
  animation: vinyl-spin 7s linear .8s infinite paused;
}

.album-artwork.playing .vinyl-slide, .album-artwork.playing .vinyl  {
  animation-play-state: running;
}

@keyframes vinyl-reveal  {
  from  {
    transform: translateX(0);
  }
  to  {
    transform: translateX(40%);
  }
}

@keyframes vinyl-spin  {
  to  {
    transform: rotate(360deg);
  }
}

.album p  {
  margin: 0;
  font-size: 14px;
}

.music-preview  {
  margin-top: 22px;
}

.music-preview > summary  {
  width: fit-content;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.music-preview > summary:hover  {
  color: var(--text);
}

.music-player  {
  display: block;
  width: 100%;
  height: 175px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
}

.music-player-link  {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-heading  {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.status  {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* Photos: two simple columns, stacked on mobile. No cropping or animation. */
.photos  {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

figure  {
  margin: 0;
  min-width: 0;
}

.photo-frame  {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--background);
  border: 1px solid var(--line);
}

.photo-frame img  {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.photo-frame.is-loaded img  {
  opacity: 1;
}

.photo-frame .photo-placeholder  {
  position: absolute;
  inset: 0;
}

.photo-placeholder  {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #10100f;
  border: 1px solid #242422;
  color: #999992;
  font-size: 12px;
}

figcaption  {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

noscript  {
  display: block;
  text-align: center;
  margin-top: 100px;
}

@media (max-width: 520px)  {
  header  {
    padding-top: 22px;
  }
  main  {
    padding-inline: 24px;
    padding-bottom: 64px;
  }
  .intro  {
    padding: 60px 0 57px;
  }
  .socials  {
    column-gap: 18px;
  }
  .collection  {
    padding-top: 62px;
  }
  .photos  {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .photo-placeholder  {
    font-size: 10px;
  }
  .project-heading  {
    display: block;
    margin-bottom: 8px;
  }
  .album  {
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 360px)  {
  nav  {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce)  {
  .panel, header, main, footer  {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce)  {
  .album-artwork .vinyl-slide, .album-artwork.revealed .vinyl-slide  {
    animation: none;
    transform: translateX(40%);
  }
  .album-artwork .vinyl, .album-artwork.revealed .vinyl  {
    animation: none;
  }
}

