:root {
  --ink: #080806;
  --paper: #fffced;
  --sheet-music: #6b8fd3;
  --sheet-writing: #087cb4;
  --sheet-coach: #ffb3b3;
  --sheet-quiz: #ff5710;
  --background: #f2f2f2;
  --peek: 104px;
  --main: calc(100vw - (var(--peek) * 4));
  --pad-x: clamp(24px, 3vw, 32px);
  --pad-y: clamp(24px, 3vw, 32px);
  --circle-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17'%3E%3Ccircle cx='8.5' cy='8.5' r='6.5' fill='%23454545' fill-opacity='0.86'/%3E%3C/svg%3E") 8 8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--ink);
  cursor: var(--circle-cursor), auto;
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  cursor: var(--circle-cursor), pointer;
  text-decoration: none;
}

.site-shell {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.global-brand {
  position: fixed;
  top: var(--pad-y);
  left: var(--pad-x);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
}

.global-logo {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: var(--circle-cursor), pointer;
  font-family: inherit;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1;
}

.global-menu-button {
  display: grid;
  width: 34px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: var(--circle-cursor), pointer;
  place-content: center;
  gap: 5px;
}

.global-menu-button span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ink);
}

.global-logo:hover,
.global-logo:focus-visible,
.sheet-title:hover,
.sheet-title:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: block;
  pointer-events: none;
}

.mobile-menu::before {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 6, 0.3);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  content: "";
  transition: opacity 180ms ease;
}

.mobile-menu.is-open::before {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu.is-open {
  pointer-events: auto;
}

.mobile-topbar {
  display: none;
}

.sheet-stack {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.page-sheet {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--sheet-left, 0);
  z-index: var(--sheet-layer, 1);
  display: flex;
  width: var(--main);
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: var(--pad-y) var(--pad-x);
  --sheet-bg: var(--sheet-color, var(--paper));
  background: var(--sheet-color, var(--paper));
  box-shadow: -6px 0 18px rgba(8, 8, 6, 0.08), 1px 0 0 rgba(8, 8, 6, 0.1);
  transition: left 360ms ease, box-shadow 220ms ease, transform 220ms ease;
}

@media (min-width: 1024px) {
  .is-loading-sheets .page-sheet {
    transform: translateX(calc(100vw + 80px));
  }

  .is-loading-sheets .page-sheet .site-header,
  .is-loading-sheets .page-sheet .content-header,
  .is-loading-sheets .page-sheet.is-active .about-layout,
  .is-loading-sheets .page-sheet.is-active .content-page-inner,
  .is-loading-sheets .page-sheet.is-active .site-footer {
    opacity: 0;
  }

  .has-loaded-sheets .page-sheet {
    animation: sheet-slide-in 1400ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
    animation-delay: var(--intro-delay, 0ms);
  }

  .has-loaded-sheets .page-sheet .site-header,
  .has-loaded-sheets .page-sheet .content-header,
  .has-loaded-sheets .page-sheet.is-active .about-layout,
  .has-loaded-sheets .page-sheet.is-active .content-page-inner,
  .has-loaded-sheets .page-sheet.is-active .site-footer {
    animation: sheet-text-fade-in 720ms ease both;
    animation-delay: 2150ms;
  }
}

@keyframes sheet-slide-in {
  from {
    transform: translateX(calc(100vw + 80px));
  }

  to {
    transform: translateX(0);
  }
}

@keyframes sheet-text-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.page-sheet:not(.is-active):not(.menu-sheet):hover,
.page-sheet:not(.is-active):not(.menu-sheet):focus-within {
  box-shadow: -8px 0 22px rgba(8, 8, 6, 0.12), 1px 0 0 rgba(8, 8, 6, 0.14);
  transform: translateX(14px);
}

.page-sheet.is-active:hover,
.page-sheet.is-active:focus-within {
  box-shadow: -6px 0 18px rgba(8, 8, 6, 0.08), 1px 0 0 rgba(8, 8, 6, 0.1);
  transform: none;
}

.page-sheet.is-active {
  z-index: 30;
}

.sheet-hit-area {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: var(--circle-cursor), pointer;
}

.sheet-hit-area span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.page-sheet.is-active .sheet-hit-area {
  display: none;
}

.page-sheet > :not(.sheet-hit-area) {
  position: relative;
  z-index: 2;
}

.page-sheet {
  --sheet-bg: var(--sheet-color, var(--paper));
  background: var(--sheet-color, var(--paper));
}

.site-header,
.content-header {
  display: grid;
  min-height: 0;
  align-items: start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 24px;
  flex: 0 0 auto;
}

.sheet-title {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.sheet-title span {
  display: block;
}

.sheet-title-stacked {
  display: grid;
  gap: 2px;
  line-height: 0.92;
}

.sheet-title-stacked span {
  width: max-content;
  justify-self: end;
}

.sheet-title-stacked:hover,
.sheet-title-stacked:focus-visible {
  text-decoration: none;
}

.sheet-title-stacked:hover span,
.sheet-title-stacked:focus-visible span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.about-layout,
.content-page-inner {
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: none;
}

.about-layout::-webkit-scrollbar,
.content-page-inner::-webkit-scrollbar,
.page-sheet::-webkit-scrollbar {
  display: none;
}

.page-sheet:not(.is-active) .about-layout,
.page-sheet:not(.is-active) .content-page-inner {
  overflow: hidden;
}

.page-sheet.is-active .about-layout,
.page-sheet.is-active .content-page-inner {
  overflow-y: auto;
}

.page-sheet:not(.is-active) {
  padding-right: 18px;
  padding-left: 18px;
}

.page-sheet:not(.is-active) .site-header,
.page-sheet:not(.is-active) .content-header {
  height: calc(100vh - (var(--pad-y) * 2));
  border-bottom: 0;
  padding-bottom: 0;
}

.page-sheet:not(.is-active) .sheet-title {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: max-content;
  max-width: none;
  margin: 0;
  transform: none;
  white-space: nowrap;
  writing-mode: vertical-rl;
  animation: inactive-title-turn-in 260ms ease both;
}

.page-sheet:not(.is-active) .sheet-title-stacked {
  gap: 0;
}

.page-sheet:not(.is-active) .sheet-title-stacked span {
  display: inline;
  width: auto;
}

.page-sheet:not(.is-active) .sheet-title-stacked span + span::before {
  content: " ";
}

@keyframes inactive-title-turn-in {
  from {
    opacity: 0;
    transform: rotate(-18deg) translateY(-8px);
  }

  to {
    opacity: 1;
    transform: rotate(0deg) translateY(0);
  }
}

.page-sheet:not(.is-active) .about-layout,
.page-sheet:not(.is-active) .content-page-inner,
.page-sheet:not(.is-active) .site-footer {
  opacity: 0;
  pointer-events: none;
}

.page-sheet.is-depth-1 .about-layout,
.page-sheet.is-depth-1 .content-page-inner {
  opacity: 0.4;
}

.page-sheet.is-depth-2 .about-layout,
.page-sheet.is-depth-2 .content-page-inner {
  opacity: 0.3;
}

.page-sheet.is-depth-3 .about-layout,
.page-sheet.is-depth-3 .content-page-inner,
.page-sheet.is-depth-4 .about-layout,
.page-sheet.is-depth-4 .content-page-inner {
  opacity: 0.2;
}

.page-sheet:not(.is-active) .about-layout,
.page-sheet:not(.is-active) .content-page-inner,
.page-sheet:not(.is-active) .site-footer {
  opacity: 0;
}

.page-sheet.has-scroll:not(.is-at-scroll-end)::after {
  position: absolute;
  right: var(--pad-x);
  bottom: calc(clamp(18px, 3vh, 28px) + clamp(14px, 1.1vw, 18px) + 34px);
  left: var(--pad-x);
  z-index: 3;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--sheet-bg, var(--sheet-color, var(--paper))));
  content: "";
}

.about-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(44px, 8vh, 84px);
  margin: 0;
  padding: clamp(32px, 5vh, 48px) 24px clamp(32px, 5vh, 48px) 0;
}

.about-copy {
  width: min(590px, 100%);
}

.about-layout .sheet-content {
  width: min(800px, 100%);
}

.about-copy,
.content-page-inner > p,
.long-copy p,
.content-block p,
.publication-item span,
.testimonials blockquote,
.sheet-content {
  max-width: 800px;
  font-size: 20px;
  line-height: 1.24;
}

.sheet-content > * {
  max-width: 800px;
}

.sheet-content p,
.sheet-content ul,
.sheet-content ol,
.sheet-content figure,
.sheet-content .wp-block-embed {
  margin-top: 0;
  margin-bottom: 1.1em;
}

.sheet-content a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.sheet-content h2 {
  margin: clamp(42px, 8vh, 84px) 0 18px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.about-copy p {
  margin: 0 0 1.1em;
}

.portrait-card {
  width: min(260px, 48vw);
  margin: 0;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.6;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.inline-page-link,
.project-list a,
.source-links a,
.publication-item a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.content-page-inner {
  width: 100%;
  padding: clamp(32px, 5vh, 48px) 24px clamp(32px, 5vh, 48px) 0;
}

.content-page-inner > p {
  max-width: 800px;
  margin: 0 0 clamp(24px, 4vh, 44px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  border-top: 2px solid var(--ink);
  padding-top: clamp(18px, 3vh, 28px);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 8;
}

.site-credit {
  font-family: Inter, Arial, sans-serif;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: auto;
  opacity: 0.5;
  pointer-events: auto;
  position: relative;
  z-index: 12;
}

.site-credit:hover,
.site-credit:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.project-list {
  display: grid;
  max-width: 620px;
  gap: 14px;
  margin-top: clamp(44px, 8vh, 88px);
}

.project-list a,
.source-links a {
  width: max-content;
  max-width: 100%;
  font-size: 20px;
  line-height: 1;
}

.source-links {
  display: flex;
  max-width: 620px;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: clamp(28px, 5vh, 52px);
}

.source-links a {
  font-size: 16px;
}

.publication-groups,
.content-blocks,
.testimonials {
  display: grid;
  max-width: 620px;
  gap: clamp(42px, 8vh, 84px);
  margin-top: clamp(54px, 10vh, 110px);
}

.content-block {
  display: grid;
  gap: 18px;
}

.content-block h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.publication-list {
  display: grid;
  gap: 18px;
}

.publication-item {
  display: grid;
  gap: 4px;
}

.publication-item a,
.publication-item strong {
  width: max-content;
  max-width: 100%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.testimonials blockquote {
  margin: 0;
  border-left: 2px solid var(--ink);
  padding-left: 18px;
}

.spotify-embeds {
  display: grid;
  width: min(620px, 100%);
  gap: 18px;
  margin-top: clamp(34px, 6vh, 68px);
}

.spotify-frame {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 8px;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 91;
  display: grid;
  width: min(430px, 38vw);
  min-width: 320px;
  grid-auto-rows: 1fr;
  background: var(--paper);
  box-shadow: 18px 0 42px rgba(8, 8, 6, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.mobile-menu.is-open .mobile-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-menu-link {
  display: grid;
  align-items: center;
  align-content: center;
  justify-items: center;
  gap: 0;
  border-top: 2px solid var(--ink);
  background: var(--sheet-color, var(--paper));
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 0.88;
  text-align: center;
}

.mobile-menu-link span {
  line-height: 0.88;
}

.mobile-menu-link:last-child {
  border-bottom: 2px solid var(--ink);
}

@media (max-width: 927px) {
  :root {
    --peek: 0px;
    --main: 100vw;
    --pad-x: clamp(22px, 7vw, 34px);
    --pad-y: 96px;
  }

  body,
  .site-shell,
  .sheet-stack {
    height: auto;
    overflow: visible;
  }

  .is-loading-sheets .page-sheet,
  .has-loaded-sheets .page-sheet {
    animation: none;
    transform: none;
  }

  .is-loading-sheets .page-sheet .site-header,
  .is-loading-sheets .page-sheet .content-header,
  .is-loading-sheets .page-sheet.is-active .about-layout,
  .is-loading-sheets .page-sheet.is-active .content-page-inner,
  .is-loading-sheets .page-sheet.is-active .site-footer,
  .has-loaded-sheets .page-sheet .site-header,
  .has-loaded-sheets .page-sheet .content-header,
  .has-loaded-sheets .page-sheet.is-active .about-layout,
  .has-loaded-sheets .page-sheet.is-active .content-page-inner,
  .has-loaded-sheets .page-sheet.is-active .site-footer {
    opacity: 1;
    animation: none;
  }

  .global-brand {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    pointer-events: auto;
  }

  .mobile-menu::before {
    display: none;
  }

  .mobile-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 92;
    display: grid;
    height: 76px;
    grid-template-columns: 38px auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 var(--pad-x);
    border-bottom: 2px solid var(--ink);
    background: var(--active-sheet-color, var(--paper));
    backdrop-filter: blur(10px);
  }

  .mobile-logo,
  .mobile-current-page {
    font-size: clamp(20px, 6vw, 24px);
    font-weight: 700;
    line-height: 1;
  }

  .mobile-logo {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: var(--circle-cursor), pointer;
    font-family: inherit;
    grid-column: 2;
    justify-self: start;
  }

  .mobile-current-page {
    grid-column: 3;
    display: grid;
    justify-items: end;
    text-align: right;
  }

  .mobile-current-page span,
  .mobile-menu-link span {
    display: block;
  }

  .mobile-menu-button {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    height: 32px;
    justify-self: start;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: var(--circle-cursor), pointer;
    place-content: center;
    gap: 6px;
  }

  .mobile-menu-button span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-menu.is-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu.is-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.is-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu-panel {
    inset: 0;
    width: auto;
    min-width: 0;
    grid-template-rows: repeat(5, 1fr);
    padding-top: 76px;
    box-shadow: none;
    transform: translateY(-10px);
  }

  .mobile-menu.is-open .mobile-menu-panel {
    transform: translateY(0);
  }

  .mobile-menu-link {
    font-size: clamp(30px, 11vw, 58px);
  }

  .page-sheet,
  #about,
  #music,
  #writing,
  #songwriting-coach,
  #quiz-host,
  .page-sheet.is-active {
    display: flex !important;
  }

  .page-sheet {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: 0 !important;
    z-index: 1;
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    height: auto;
    padding: calc(76px + 24px) var(--pad-x) 32px;
    background: var(--sheet-color, var(--paper));
    box-shadow: none;
    transform: none;
  }

  .page-sheet:not(.is-active) {
    display: none !important;
    min-height: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
  }

  .page-sheet.is-active {
    display: flex !important;
  }

  .sheet-hit-area,
  .site-header,
  .content-header {
    display: none;
  }

  .about-layout,
  .content-page-inner {
    flex: 0 0 auto;
    overflow: visible;
    padding: 0;
  }

  .about-copy,
  .content-page-inner > p,
  .long-copy p {
    font-size: clamp(20px, 6vw, 30px);
  }

  .page-sheet.has-scroll:not(.is-at-scroll-end)::after {
    display: none;
  }
}
