.pf {
  --paper: #ffffff;
  --amber: #ffb53d;
  --open: 420ms;
  --ease: cubic-bezier(0.3, 0, 0.1, 1);
  position: relative;
  width: 540px;
  height: 540px;
  overflow: hidden;
  background-size: cover;
  color: var(--paper);
  font-family: "Bodoni Moda Variable", serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  cursor: default;
  user-select: none;
}
.pf *, .pf *::before, .pf *::after { box-sizing: border-box; }

.pf-acc {
  position: absolute;
  inset: 26px 0 auto 0;
  mask-size: 540px 540px;
  mask-position: 0 -26px;
  mask-repeat: no-repeat;
  border-bottom: 1px solid var(--paper);
}
.pf-item { border-top: 1px solid var(--paper); }
.pf-head { margin: 0; font: inherit; }

.pf-trigger {
  all: unset;
  position: relative;
  display: block;
  width: 300px;
  height: 94px;
  padding-left: 28px;
  cursor: pointer;
}
.pf-name {
  display: block;
  position: relative;
  top: -7px;
  font-size: 82px;
  font-weight: 500;
  line-height: 94px;
  letter-spacing: -0.025em;
  transition: translate 200ms var(--ease);
}
.pf-trigger:hover .pf-name { translate: 8px 0; }
.pf-item[data-open] .pf-trigger:hover .pf-name { translate: 0 0; }

/* plus when closed, minus when open: the mark makes a half turn while its upright stroke draws in */
.pf-mark { position: absolute; left: 262px; top: 36px; width: 24px; height: 24px; transition: rotate var(--open) var(--ease); }
.pf-mark::before, .pf-mark::after { content: ""; position: absolute; left: 0; top: 11px; width: 24px; height: 2px; background: currentColor; }
.pf-mark::after { rotate: 90deg; transition: scale var(--open) var(--ease); }
.pf-trigger:hover .pf-mark { rotate: 90deg; }
.pf-item[data-open] .pf-mark { rotate: 180deg; }
.pf-item[data-open] .pf-mark::after { scale: 0 1; }
.pf-trigger:focus-visible { outline: 1px solid var(--paper); outline-offset: -6px; }

.pf-panel {
  height: var(--accordion-panel-height);
  overflow: hidden;
  transition: height var(--open) var(--ease);
}
.pf-panel:is([data-starting-style], [data-ending-style]) { height: 0; }
/* the closing panel waits the one frame the opening panel takes to start, so the tier below is not tugged */
.pf-panel[data-ending-style] { transition-delay: 33ms; }

.pf-notes {
  margin: 0;
  padding: 0 0 18px 30px;
  list-style: none;
  color: var(--amber);
  font-style: italic;
  font-size: 40px;
  font-weight: 500;
  line-height: 44px;
  letter-spacing: -0.01em;
  /* the notes' travel must not count towards the panel's measured height */
  overflow: clip;
}
.pf-notes li { transition: translate 320ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 200ms linear; transition-delay: calc(150ms + var(--i) * 100ms); }
/* no transition into the starting position, only out of it */
.pf-panel[data-starting-style] .pf-notes li { translate: 0 16px; opacity: 0; transition: none; }
.pf-panel[data-ending-style] .pf-notes li { translate: 0 -14px; opacity: 0; transition: translate 220ms var(--ease), opacity 160ms linear; }
